[MacPorts] #71475: nodejs22 @22.12.0: running `node` causes kernel panic on Mac OS X 10.7
MacPorts
noreply at macports.org
Mon Feb 3 19:27:55 UTC 2025
#71475: nodejs22 @22.12.0: running `node` causes kernel panic on Mac OS X 10.7
-------------------------+----------------------
Reporter: ryandesign | Owner: ci42
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.10.5
Resolution: | Keywords: lion
Port: nodejs22 |
-------------------------+----------------------
Comment (by i3roly):
thanks for bringing this to my attention ryan.
turns out nodejs22 will now require at least clang-19 or higher, and it
fails to build on my 10.14 machine as it stands.
my question for you is if there's an easy way to link the minimum clang's
llvm path without hard-coding.
i.e. /opt/local/libexec/llvm-19/lib/libc++
either legacyports gets an upgrade or i have to find out how to link the
compiler's libc++ so that it gets encoded into the LD_LIBRARY_PATH:
```
/opt/local/bin/clang++-mp-19 -Wno-error=incompatible-function-pointer-
types -Wl,-L/opt/local/libexec/llvm-19/lib/libc++ -Wno-error=enum-
constexpr-conversion -Wno-error=unknown-warning-option -o
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_nodejs22/nodejs22/work/node-v22.12.0/out/Release/obj.target/torque/deps/v8/src/torque/torque.o
../deps/v8/src/torque/torque.cc '-D_GLIBCXX_USE_CXX11_ABI=1'
'-DNODE_OPENSSL_CONF_NAME=nodejs_conf' '-DNODE_OPENSSL_HAS_QUIC'
'-DICU_NO_USER_DATA_OVERRIDE' '-DV8_GYP_BUILD'
'-DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64' '-D_DARWIN_USE_64_BIT_INODE=1'
'-D_DARWIN_C_SOURCE=1' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS'
'-DV8_TARGET_ARCH_X64' '-DV8_HAVE_TARGET_OS' '-DV8_TARGET_OS_MACOS'
'-DV8_EMBEDDER_STRING="-node.21"' '-DENABLE_DISASSEMBLER'
'-DV8_PROMISE_INTERNAL_FIELD_COUNT=1' '-DV8_SHORT_BUILTIN_CALLS'
'-DOBJECT_PRINT' '-DV8_INTL_SUPPORT' '-DV8_ATOMIC_OBJECT_FIELD_WRITES'
'-DV8_ENABLE_LAZY_SOURCE_POSITIONS' '-DV8_USE_SIPHASH'
'-DV8_SHARED_RO_HEAP' '-DNDEBUG' '-DV8_WIN64_UNWINDING_INFO'
'-DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH' '-DV8_USE_ZLIB'
'-DV8_ENABLE_SPARKPLUG' '-DV8_ENABLE_TURBOFAN'
'-DV8_ENABLE_SYSTEM_INSTRUMENTATION' '-DV8_ENABLE_WEBASSEMBLY'
'-DV8_ENABLE_JAVASCRIPT_PROMISE_HOOKS'
'-DV8_ENABLE_CONTINUATION_PRESERVED_EMBEDDER_DATA'
'-DV8_ALLOCATION_FOLDING' '-DV8_ALLOCATION_SITE_TRACKING'
'-DV8_ADVANCED_BIGINT_ALGORITHMS'
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_nodejs22/nodejs22/work
/zlib-inc -I../deps/v8 -I../deps/v8/include -O3 -gdwarf-2 -fno-strict-
aliasing -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter
-std=gnu++20 -stdlib=libc++ -fno-rtti -Wno-invalid-offsetof -MMD -MF
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_nodejs22/nodejs22/work/node-v22.12.0/out/Release/.deps//opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_nodejs22/nodejs22/work/node-v22.12.0/out/Release/obj.target/torque/deps/v8/src/torque/torque.o.d.raw
-I/opt/local/include -Os -stdlib=libc++ -I/opt/local/include -c
dyld: Symbol not found:
__ZTTNSt3__114basic_ofstreamIcNS_11char_traitsIcEEEE
Referenced from:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_nodejs22/nodejs22/work/node-v22.12.0/out/Release/bytecode_builtins_list_generator
Expected in: /usr/lib/libc++.1.dylib
in
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_nodejs22/nodejs22/work/node-v22.12.0/out/Release/bytecode_builtins_list_generator
Return code is -6
make[1]: ***
[/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_nodejs22/nodejs22/work/node-v22.12.0/out/Release/obj/gen
/generate-bytecode-output-root/builtins-generated/bytecodes-builtins-
list.h] Error 250
make[1]: *** Waiting for unfinished jobs....
clang++: warning: -Wl,-L/opt/local/libexec/llvm-19/lib/libc++: 'linker'
input unused [-Wunused-command-line-argument]
rm 97fee7a9161197f4773c931b142ce1d513f5fa38.intermediate
make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_nodejs22/nodejs22/work/node-v22.12.0/out'
make: *** [node] Error 2
make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_nodejs22/nodejs22/work/node-v22.12.0'
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_nodejs22/nodejs22/work/node-v22.12.0"
&& /usr/bin/make -j36 -w all CC=/opt/local/bin/clang-mp-19
CXX=/opt/local/bin/clang++-mp-19 -Wno-error=incompatible-function-pointer-
types -Wl,-L/opt/local/libexec/llvm-19/lib/libc++ -Wno-error=enum-
constexpr-conversion -Wno-error=unknown-warning-option
CXX.host=/opt/local/bin/clang++-mp-19 -Wno-error=incompatible-function-
pointer-types -Wl,-L/opt/local/libexec/llvm-19/lib/libc++ -Wno-error=enum-
constexpr-conversion -Wno-error=unknown-warning-option CPP=/opt/local/bin
/clang-cpp-mp-19 CPPFLAGS="-I/opt/local/include" CFLAGS="-Os
-I/opt/local/include" CXXFLAGS="-Os -stdlib=libc++ -I/opt/local/include"
LDFLAGS="-L/opt/local/lib -Wl,-headerpad_max_install_names
-L/opt/local/lib -lMacportsLegacySupport" PYTHON=/opt/local/bin/python3.12
V=1
Exit code: 2
Error: Failed to build nodejs22: command execution failed
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_nodejs22/nodejs22/main.log
for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe
there is a bug.
Error: Processing of port nodejs22 failed
```
--
Ticket URL: <https://trac.macports.org/ticket/71475#comment:13>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list