From patchwork Wed Nov 23 20:30:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Website Alois X-Patchwork-Id: 1708471 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=HaBQaKq+; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NHXtH467wz23mg for ; Thu, 24 Nov 2022 07:34:46 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type:List-Help: Reply-To:List-Archive:List-Unsubscribe:List-Subscribe:From:List-Post:List-Id: Message-ID:MIME-Version:Subject:To:Date:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=HOrD/qYvc6odIJVtp7vjFoAsCD+X5NaVzxytcku0w1o=; b=HaBQaKq+8c1xcEv5YvCRDqaNZp 4XN3D9u9Fyj4HZaMomc8e7k5Jtrf/bOUCuornbUSQjk6ZKLB57wLvorR+s7VRg+SlccDJX3sWQ+GU LJBhBpqmBrvDVesHdwHEj3sms74+LXZad4NlKVIu1SJFUj2Rm/hC3oz4V1kZJwgOnR5RvVSpWCIGv IZ+3H6brBVPXnPCu/JzGmKaPR55t1pHNlmJymEC14Dr635pTY9Qc80S1EtP0Mu2Mymwsxe1kN0J8S UbYZkwv/H5eAkeiMStq+snizAi8QenQ+OjXxKaXjDGDkoBydHxyYx38Kp7bmOCoxXn6T+/Vrq7NEl I1iOL59Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oxwOU-002I3G-HU; Wed, 23 Nov 2022 20:30:54 +0000 Date: Wed, 23 Nov 2022 20:30:35 +0000 To: openwrt-devel@lists.openwrt.org Subject: [PATCH buildbot] docker,worker: install g++-multilib MIME-Version: 1.0 Message-ID: List-Id: OpenWrt Development List List-Post: X-Patchwork-Original-From: Alois Klink via openwrt-devel From: Website Alois Precedence: list X-Mailman-Version: 2.1.34 X-BeenThere: openwrt-devel@lists.openwrt.org List-Subscribe: , List-Unsubscribe: , List-Archive: Reply-To: Alois Klink List-Help: Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header. To mitigate this problem, the original message has been wrapped automatically by the mailing list software. From [openwrt/docker@5484951][1] (GitHub PR [#89][2]): Node fails to cross-compile from a 64-bit build machine to 32-bit host with the following error: ``` In file included from /usr/include/c++/8/memory:62, from ../deps/v8/src/libplatform/default-foreground-task-runner.h:8, from ../deps/v8/src/libplatform/default-foreground-task-runner.cc:5: /usr/include/c++/8/bits/stl_algobase.h:59:10: fatal error: bits/c++config.h: No such file or directory #include ^~~~~~~~~~~~~~~~~~ compilation terminated. ``` On Debian, `g++-multilib` can be installed to fix this. [1]: https://gitlab.com/openwrt/docker/-/commit/54849510d7802028b94757051cca6d004a9ca1d1 [2]: https://github.com/openwrt/docker/pull/89 Fixes: https://github.com/openwrt/packages/issues/18476 Fixes: https://forum.openwrt.org/t/142722 Signed-off-by: Alois Klink Signed-off-by: Alois Klink --- Notes: I've made a merge request on `openwrt/buildbot` GitLab too, see , but @hnyman on the OpenWRT forums recommended me to cross-post it to mailing list since GitLab isn't well used. (apologies if any formatting is wrong in this, it's my first time using `git send-email`) As of `Tue Nov 22 23:02:34 2022`, you can view https://downloads.openwrt.org/releases/faillogs-22.03/arm_cortex-a9_vfpv3-d16/packages/node/compile.txt and see the above error (I'm assuming that this buildbot is creating the above errors). We should probably also note in the OpenWRT wiki in https://openwrt.org/docs/guide-developer/toolchain/install-buildsystem#package_prerequisites that `node` requires `g++-multilib`. These changes are untested, but they're pretty simple so should work. The GitLab repo has some CI as well, but it doesn't seem to be working since my merge request is from a forked repo. docker/buildworker/Dockerfile | 1 + 1 file changed, 1 insertion(+) -- 2.34.1 diff --git a/docker/buildworker/Dockerfile b/docker/buildworker/Dockerfile index 5219f92..871b7b1 100644 --- a/docker/buildworker/Dockerfile +++ b/docker/buildworker/Dockerfile @@ -18,6 +18,7 @@ RUN \ ccache \ curl \ gawk \ + g++-multilib \ gcc-multilib \ genisoimage \ git-core \