From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 10 Jul 2024 08:32:12 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1sRQs8-003Kuc-2S for lore@lore.pengutronix.de; Wed, 10 Jul 2024 08:32:12 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1sRQs8-0003fe-BE; Wed, 10 Jul 2024 08:32:12 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sRQrp-0003fU-Jr; Wed, 10 Jul 2024 08:31:53 +0200 Received: from [2a0a:edc0:2:b01:1d::c5] (helo=pty.whiteo.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sRQrp-008SED-4J; Wed, 10 Jul 2024 08:31:53 +0200 Received: from mol by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1sRQrp-008M80-0B; Wed, 10 Jul 2024 08:31:53 +0200 Date: Wed, 10 Jul 2024 08:31:53 +0200 From: Michael Olbrich To: Ian Abbott Message-ID: Mail-Followup-To: Ian Abbott , ptxdist References: <5397b601-b66b-4a08-8076-e38a660fe227@mev.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5397b601-b66b-4a08-8076-e38a660fe227@mev.co.uk> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-IRC: #ptxdist @freenode Subject: Re: [ptxdist] nodejs build problems X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: ptxdist Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false On Tue, Jul 09, 2024 at 03:45:31PM +0100, Ian Abbott wrote: > Hello folks, > > This is my first time trying to build nodejs for arm-v7a-linux-gnueabif and > I'm not having much luck. It's failing at the "nodejs.prepare" stage in the > `try_check_compiler(CXX, 'c++)` call in "configure.py: > > ---------------------[8<]------------------------ > > Traceback (most recent call last): > File "/mnt/lindata/work/abbotti/ptxdist/projects/its-ipt4-demo/platform-its-ipt4v2/build-target/node-v20.11.0/./configure", > line 29, in > Node.js configure: Found Python 3.11.2... > import configure > File "/mnt/lindata/work/abbotti/ptxdist/projects/its-ipt4-demo/platform-its-ipt4v2/build-target/node-v20.11.0/configure.py", > line 2026, in > check_compiler(output) > File "/mnt/lindata/work/abbotti/ptxdist/projects/its-ipt4-demo/platform-its-ipt4v2/build-target/node-v20.11.0/configure.py", > line 1038, in check_compiler > ok, is_clang, clang_version, gcc_version = try_check_compiler(CXX, > 'c++') > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/mnt/lindata/work/abbotti/ptxdist/projects/its-ipt4-demo/platform-its-ipt4v2/build-target/node-v20.11.0/configure.py", > line 944, in try_check_compiler > gcc_version = tuple(map(int, values[1:1+3])) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > ValueError: invalid literal for int() with base 10: '__STDC__' > make: *** [/usr/local/lib/ptxdist-2024.03.0/rules/nodejs.make:84: /mnt/lindata/work/abbotti/ptxdist/projects/its-ipt4-demo/platform-its-ipt4v2/state/nodejs.prepare] > Error 1 > ---------------------[>8]------------------------ > > This is being built in a Debian 12 ("bookworm") schroot. (I also get the > same problem when building in my usual Debian "testing" environment.) > > As you can see, I am using ptxdist-2024.03.0. The selected_toolchain is > `/opt/OSELAS.Toolchain-2023.07.1/arm-v7a-linux-gnueabihf/gcc-13.2.1-clang-16.0.6-glibc-2.37-binutils-2.40-kernel-6.3.6-sanitized/bin`. > > I tried downgrading to the nodejs-v18.13.0 rules and patch series from > ptxdist-2024.01.0, but it fails in the same way, so I think there is some > incompatibility between that `try_check_compiler` function and the > toolchain. > > I'm wondering if anyone else has seen the same problem and managed to solve > it? Hmmm, I've not seen this in my build tests. And I'm testing that combination as well. If you run ptxdist with '-v' then the whole compiler commandline is recorded in the logfile (with a 'wrapper:' prefix). Maybe call it manually to see what actually happens here. Michael -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |