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 <module>
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 <module>
    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 <[email protected]> || 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 )=-

Reply via email to