Opened 12 years ago

Closed 12 years ago

#35146 closed defect (fixed)

nodejs @0.8.2 build failure on Leopard, crash in mksnapshot

Reported by: danielcardosods@… Owned by: ci42
Priority: Normal Milestone:
Component: ports Version: 2.1.1
Keywords: leopard Cc: ryandesign (Ryan Carsten Schmidt)
Port: nodejs

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Out of terminal:

$ sudo port install nodejs
Password:
--->  Computing dependencies for nodejs
--->  Building nodejs
Error: org.macports.build for port nodejs returned: command execution failed
Please see the log file for port nodejs for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nodejs/nodejs/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port nodejs failed

main.log

:notice:build --->  Building nodejs
:debug:build Executing org.macports.build (nodejs)
:debug:build port disallows a parallel build
:debug:build Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nodejs/nodejs/work/.CC_PRINT_OPTIONS' LIBRARY_PA$
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nodejs/nodejs/work/node-v0.8.2" && /usr/bin/make -w all CC=/usr/bin/gcc-4.0 CXX=/usr/bi$
:debug:build Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nodejs/nodejs/work/node-v0.8.2" && /usr/bin/make -w all CC=/usr/bin/gcc-4.0 CXX=/u$
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nodejs/nodejs/work/node-v0.8.2'
:info:build /usr/bin/make -C out BUILDTYPE=Release
:info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nodejs/nodejs/work/node-v0.8.2/out'
:info:build   LD_LIBRARY_PATH=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nodejs/nodejs/work/node-v0.8.2/out/Release/lib.host:/opt/local/var/macports/build/_opt_local_v$
:info:build /bin/sh: line 1: 25410 Bus error               "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nodejs/nodejs/work/node-v0.8.2/out/Release/mksnapshot" --log-sna$
:info:build make[1]: *** [/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nodejs/nodejs/work/node-v0.8.2/out/Release/obj.target/v8_snapshot/geni/snapshot.cc] Error 138
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nodejs/nodejs/work/node-v0.8.2/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_release_tarballs_ports_devel_nodejs/nodejs/work/node-v0.8.2'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nodejs/nodejs/work/node-v0.8.2" && /usr/bin/make -w all CC=/usr/bin/gcc-4.0 CXX=/usr/bin/g+$
:info:build Exit code: 2
:error:build org.macports.build for port nodejs returned: command execution failed
:debug:build Error code: CHILDSTATUS 25396 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: targets not executed for nodejs: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Please see the log file for port nodejs for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nodejs/nodejs/main.log

Change History (5)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Description: modified (diff)
Keywords: nodejs 10.5 removed
Owner: changed from macports-tickets@… to ciserlohn@…
Summary: nodejs @0.8.2 re error - build failurenodejs @0.8.2 build failure on Leopard, crash in mksnapshot

I've been discussing this problem in the nodejs discussion group since 0.8.0. The problem seems to be specific to older systems like Leopard; I don't see the problem on Snow Leopard. Another user reported the same problem on Slackware Linux 13.

The first suggestion in the group was to try building --without-snapshot, which succeeds, but the node it builds does not work (all of the tests fail). Another developer thought some fixes that were included in 0.8.2 would help; they didn't. I tried building with gcc-4.2 instead of gcc-4.0; no change. The next suggestion was to try changing the optimization flags (i.e. setting configure.optflags to something other than -O2), so that's the next thing I'll try.

comment:2 Changed 12 years ago by ci42

Could you please test node@0.8.3 (sudo port selfupdate && sudo port upgrade nodejs)?

The change log mentions:

* build: fix spurious mksnapshot crashes for good (Ben Noordhuis)

I have no access to a Leopard system, so I can't test it myself.

comment:3 Changed 12 years ago by danielcardosods@…

The problem continues..

main.log

:info:build   /usr/bin/g++-4.0 '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D_DARWIN_USE_64_BIT_INODE=1' '-DENABLE_DEBUGGER_SUPPORT' '-DV8_TARGET_ARCH_IA32' -I/opt/local/include/openssl -I../deps/v8/src  -O3 -gdwarf-2 -Wnewline-eo$
:info:build ../deps/v8/src/objects.h:1006: warning: integer overflow in expression
:info:build   /usr/bin/g++-4.0 '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D_DARWIN_USE_64_BIT_INODE=1' '-DENABLE_DEBUGGER_SUPPORT' '-DV8_TARGET_ARCH_IA32' -I/opt/local/include/openssl -I../deps/v8/src  -O3 -gdwarf-2 -Wnewline-eo$
:info:build ../deps/v8/src/objects.h:1006: warning: integer overflow in expression
:info:build   LD_LIBRARY_PATH=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nodejs/nodejs/work/node-v0.8.3/out/Release/lib.host:/opt/local/var/macports/build/_opt_local_v$
:info:build   /usr/bin/g++-4.0 '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D_DARWIN_USE_64_BIT_INODE=1' '-DENABLE_DEBUGGER_SUPPORT' '-DV8_TARGET_ARCH_IA32' -I/opt/local/include/openssl -I../deps/v8/src  -O3 -gdwarf-2 -Wnewline-eo$
:info:build ../deps/v8/src/objects.h:1006: warning: integer overflow in expression
:info:build   rm -f /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nodejs/nodejs/work/node-v0.8.3/out/Release/libv8_base.a && ./gyp-mac-tool filter-libtool libtool -static$
:info:build   /usr/bin/g++-4.0 '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D_DARWIN_USE_64_BIT_INODE=1' '-DENABLE_DEBUGGER_SUPPORT' '-DV8_TARGET_ARCH_IA32' -I/opt/local/include/openssl -I../deps/v8/src  -O3 -gdwarf-2 -Wnewline-eo$
:info:build ../deps/v8/src/objects.h:1006: warning: integer overflow in expression
:info:build   /usr/bin/g++-4.0 '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D_DARWIN_USE_64_BIT_INODE=1' '-DENABLE_DEBUGGER_SUPPORT' '-DV8_TARGET_ARCH_IA32' -I/opt/local/include/openssl -I../deps/v8/src  -O3 -gdwarf-2 -Wnewline-eo$
:info:build ../deps/v8/src/objects.h:1006: warning: integer overflow in expression
:info:build   /usr/bin/g++-4.0 '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D_DARWIN_USE_64_BIT_INODE=1' '-DENABLE_DEBUGGER_SUPPORT' '-DV8_TARGET_ARCH_IA32' -I/opt/local/include/openssl -I../deps/v8/src  -O3 -gdwarf-2 -Wnewline-eo$
:info:build ../deps/v8/src/objects.h:1006: warning: integer overflow in expression
:info:build   rm -f /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nodejs/nodejs/work/node-v0.8.3/out/Release/libv8_nosnapshot.a && ./gyp-mac-tool filter-libtool libtool -$
:info:build   /usr/bin/g++-4.0 '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D_DARWIN_USE_64_BIT_INODE=1' '-DENABLE_DEBUGGER_SUPPORT' '-DV8_TARGET_ARCH_IA32' -I/opt/local/include/openssl -I../deps/v8/src  -O3 -gdwarf-2 -Wnewline-eo$
:info:build ../deps/v8/src/objects.h:1006: warning: integer overflow in expression
:info:build   ./gyp-mac-tool flock /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nodejs/nodejs/work/node-v0.8.3/out/Release/linker.lock /usr/bin/g++-4.0 -Wl,-search_paths$
:info:build   LINK(target) /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nodejs/nodejs/work/node-v0.8.3/out/Release/mksnapshot: Finished
:info:build   LD_LIBRARY_PATH=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nodejs/nodejs/work/node-v0.8.3/out/Release/lib.host:/opt/local/var/macports/build/_opt_local_v$
:info:build /bin/sh: line 1: 89497 Bus error               "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nodejs/nodejs/work/node-v0.8.3/out/Release/mksnapshot" --log-sna$
:info:build make[1]: *** [/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nodejs/nodejs/work/node-v0.8.3/out/Release/obj.target/v8_snapshot/geni/snapshot.cc] Error 138
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nodejs/nodejs/work/node-v0.8.3/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_release_tarballs_ports_devel_nodejs/nodejs/work/node-v0.8.3'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nodejs/nodejs/work/node-v0.8.3" && /usr/bin/make -w all CC=/usr/bin/gcc-4.0 CXX=/usr/bin/g+$
:info:build Exit code: 2
:error:build org.macports.build for port nodejs returned: command execution failed
:debug:build Error code: CHILDSTATUS 84663 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: targets not executed for nodejs: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Please see the log file for port nodejs for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nodejs/nodejs/main.log

comment:4 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

I've now completed my various attempts at working around this (see the thread on Google Groups) and nothing I've done has helped.

I think at this point it's safe to mark nodejs/nodejs-devel as requiring darwin 10 or greater.

comment:5 Changed 12 years ago by ci42

Resolution: fixed
Status: newclosed

Mark as requiring darwin 10 or greater in r96197 and r96198.

Note: See TracTickets for help on using tickets.