Opened 6 months ago

Last modified 6 months ago

#68549 assigned defect

nodejs20 @20.9.0_0: Undefined symbols std::__1::__libcpp_verbose_abort(char const*, ...)

Reported by: RobK88 Owned by: ci42
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: highsierra Cc: ci42, RobK88, cjones051073 (Chris Jones)
Port: nodejs20

Description (last modified by RobK88)

I am unable to upgrade nodejs20 from version @20.8.1_0 to @20.9.0_0 on High Sierra. The build fails.

:info:build Undefined symbols for architecture x86_64:
:info:build   "std::__1::__libcpp_verbose_abort(char const*, ...)", referenced from:
:info:build       __ZNSt3__120__throw_length_errorB7v170003EPKc in js2c.o
:info:build       __ZSt28__throw_bad_array_new_lengthB7v170003v in js2c.o
:info:build       __ZNSt3__125__throw_bad_function_callB7v170003Ev in js2c.o
:info:build       __ZNSt3__120__throw_out_of_rangeB7v170003EPKc in js2c.o
:info:build       __ZNSt3__120__throw_length_errorB7v170003EPKc in libsimdutf.a(simdutf.o)
:info:build ld: symbol(s) not found for architecture x86_64
:info:build clang++: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make[1]: *** [/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_nodejs20/nodejs20/work/node-v20.9.0/out/Release/node_js2c] Error 1
:info:build make[1]: *** Waiting for unfinished jobs....
:info:build rm 5deafc1eea8fa261951ca24c32447494625d91a4.intermediate
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_nodejs20/nodejs20/work/node-v20.9.0/out'
:info:build make: *** [node] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_nodejs20/nodejs20/work/node-v20.9.0'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_nodejs20/nodejs20/work/node-v20.9.0" && /usr/bin/make -j2 -w all CC=/opt/local/bin/clang-mp-17 CXX=/opt/local/bin/clang++-mp-17 CXX.host=/opt/local/bin/clang++-mp-17 CPP=/opt/local/bin/clang-cpp-mp-17 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 " PYTHON=/opt/local/bin/python3.11 V=1 
:info:build Exit code: 2
:error:build Failed to build nodejs20: command execution failed
:debug:build Error code: CHILDSTATUS 77536 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_nodejs20/nodejs20/main.log for details.

Attachments (1)

main.log (5.3 MB) - added by RobK88 6 months ago.

Change History (7)

Changed 6 months ago by RobK88

Attachment: main.log added

comment:1 Changed 6 months ago by RobK88

Description: modified (diff)

comment:2 Changed 6 months ago by RobK88

Cc: RobK88 added

comment:3 Changed 6 months ago by RobK88

Description: modified (diff)
Keywords: HighSierra added; lion removed

comment:4 Changed 6 months ago by RobK88

Here is the workaround -- build using clang-16. See below:

bash-3.2$ sudo port clean nodejs20
Password:
--->  Cleaning nodejs20


bash-3.2$ sudo port upgrade nodejs20 configure.compiler=macports-clang-16
--->  Computing dependencies for nodejs20
--->  Fetching archive for nodejs20
--->  Attempting to fetch nodejs20-20.9.0_0.darwin_17.x86_64.tbz2 from http://packages.macports.org/nodejs20
--->  Attempting to fetch nodejs20-20.9.0_0.darwin_17.x86_64.tbz2 from http://ywg.ca.packages.macports.org/mirror/macports/packages/nodejs20
--->  Attempting to fetch nodejs20-20.9.0_0.darwin_17.x86_64.tbz2 from http://mirror.fcix.net/macports/packages/nodejs20
--->  Fetching distfiles for nodejs20
--->  Verifying checksums for nodejs20
--->  Extracting nodejs20
--->  Applying patches to nodejs20
--->  Configuring nodejs20
--->  Building nodejs20                                  
--->  Staging nodejs20 into destroot                     
--->  Installing nodejs20 @20.9.0_0
--->  Cleaning nodejs20
--->  Computing dependencies for nodejs20
--->  Deactivating nodejs20 @20.8.1_0
--->  Cleaning nodejs20
--->  Activating nodejs20 @20.9.0_0
--->  Cleaning nodejs20
--->  Updating database of binaries
--->  Scanning binaries for linking errors
--->  No broken files found.                             
--->  No broken ports found.
bash-3.2$
Last edited 6 months ago by RobK88 (previous) (diff)

comment:5 Changed 6 months ago by ryandesign (Ryan Carsten Schmidt)

Keywords: highsierra added; HighSierra removed
Owner: set to ci42
Status: newassigned
Summary: nodejs20 @20.9.0_0 -- Unable to upgrade - Build fails - Undefined symbolsnodejs20 @20.9.0_0: Undefined symbols std::__1::__libcpp_verbose_abort(char const*, ...)

comment:6 Changed 6 months ago by kencu (Ken)

Cc: cjones051073 added

chris looping in

Note: See TracTickets for help on using tickets.