Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Cannot compile node.js 0.8.2 under CentOS 6.2 #3675

Closed
yeysus opened this issue Jul 9, 2012 · 5 comments
Closed

Cannot compile node.js 0.8.2 under CentOS 6.2 #3675

yeysus opened this issue Jul 9, 2012 · 5 comments
Labels

Comments

@yeysus
Copy link

yeysus commented Jul 9, 2012

Hello. CentOS 6.2 64-Bit. Node.js 0.8.0 and 0.8.1 ran on the same machine. Compiling Node.js 0.8.2 from source (make) fails, see below. Some hints? Thanks.

LINK(target) /opt/node-v0.8.2/out/Release/mksnapshot: Finished
ACTION _opt_node_v0_8_2_deps_v8_tools_gyp_v8_gyp_v8_snapshot_target_run_mksnapshot /opt/node-v0.8.2/out/Release/obj.target/v8_snapshot/geni/snapshot.cc
pure virtual method called
terminate called without an active exception
/bin/sh: line 1: 7431 Aborted "/opt/node-v0.8.2/out/Release/mksnapshot" --log-snapshot-positions --logfile "/opt/node-v0.8.2/out/Release/obj.target/v8_snapshot/geni/snapshot.log" "/opt/node-v0.8.2/out/Release/obj.target/v8_snapshot/geni/snapshot.cc"
make[1]: *** [/opt/node-v0.8.2/out/Release/obj.target/v8_snapshot/geni/snapshot.cc] Error 134
make[1]: Leaving directory `/opt/node-v0.8.2/out'
make: *** [node] Error 2

@bnoordhuis
Copy link
Member

Please see #3673. Compile with make CFLAGS+=-O2 CXXFLAGS+=-O2 for now, that seems to work around the compiler bug.

@yeysus
Copy link
Author

yeysus commented Jul 9, 2012

OK thanks. Since it was closed i saw it just a few minutes ago, but the solution there is unclear and the variant "make BUILDTYPE=Debug" did not work for me. "make CFLAGS+=-O2 CXXFLAGS+=-O2" works, however "make install" fails afterwards, see below. What am I missing? Thanks, Jesus

LINK(target) /opt/node-v0.8.2/out/Release/mksnapshot: Finished
ACTION _opt_node_v0_8_2_deps_v8_tools_gyp_v8_gyp_v8_snapshot_target_run_mksnapshot /opt/node-v0.8.2/out/Release/obj.target/v8_snapshot/geni/snapshot.cc
pure virtual method called
terminate called without an active exception
/bin/sh: line 1: 24034 Aborted "/opt/node-v0.8.2/out/Release/mksnapshot" --log-snapshot-positions --logfile "/opt/node-v0.8.2/out/Release/obj.target/v8_snapshot/geni/snapshot.log" "/opt/node-v0.8.2/out/Release/obj.target/v8_snapshot/geni/snapshot.cc"
make[1]: *** [/opt/node-v0.8.2/out/Release/obj.target/v8_snapshot/geni/snapshot.cc] Error 134
make[1]: Leaving directory `/opt/node-v0.8.2/out'
make: *** [node] Error 2

@bnoordhuis
Copy link
Member

Oh, sorry about that. Run make install CFLAGS+=-O2 CXXFLAGS+=-O2 instead of just make install, otherwise the Makefile recompiles the binary without -O2 again.

@yeysus
Copy link
Author

yeysus commented Jul 9, 2012

OK. Now it works, including the npm modules I use for accessing PostgreSQL, MongoDB, Oracle XE, Redis, and MySQL. Thanks @bnoordhuis.

@DeanWard
Copy link

Those flags solved the issue for me, thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants