From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 09 Jul 2024 16:45:57 +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 1sRC6P-0037Wg-04 for lore@lore.pengutronix.de; Tue, 09 Jul 2024 16:45:57 +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 1sRC6O-0007T6-9X; Tue, 09 Jul 2024 16:45:56 +0200 Received: from smtp75.iad3b.emailsrvr.com ([146.20.161.75]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sRC63-0007Sq-01 for ptxdist@pengutronix.de; Tue, 09 Jul 2024 16:45:35 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mev.co.uk; s=20221208-6x11dpa4; t=1720536333; bh=kNT0bRtEqCFT0JG8HzjfayEF5JspLrsIhX+bqOIN/38=; h=Date:To:From:Subject:From; b=Sbz/WG3LeWTJhkcHcd5AdDswKRo04IKegGVUyiHBrxyVYjhPwnbbsvxWvfJbgI1De Lnyy0ve6SP+kr4QtLdGw8fXlz0KfNxGqVRJ4QljtAbHdZpJ4tGATQ5RnpL14mP+iz6 JEpQLXsmIS/O4t/+bPkYphfGRB8BtZ7G3mHgFbOw= X-Auth-ID: abbotti@mev.co.uk Received: by smtp10.relay.iad3b.emailsrvr.com (Authenticated sender: abbotti-AT-mev.co.uk) with ESMTPSA id 040ECE0210 for ; Tue, 9 Jul 2024 10:45:32 -0400 (EDT) Message-ID: <5397b601-b66b-4a08-8076-e38a660fe227@mev.co.uk> Date: Tue, 9 Jul 2024 15:45:31 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-GB To: ptxdist From: Ian Abbott Organization: MEV Ltd. Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Classification-ID: 77b0c9df-9431-475d-88fd-7eb3aeea1cfc-1-1 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-3.6 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Subject: [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 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 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? Kind regards, Ian -- -=( Ian Abbott || MEV Ltd. is a company )=- -=( registered in England & Wales. Regd. number: 02862268. )=- -=( Regd. addr.: S11 & 12 Building 67, Europa Business Park, )=- -=( Bird Hall Lane, STOCKPORT, SK3 0XA, UK. || www.mev.co.uk )=-