This repository has been archived by the owner. 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

Comments

Projects
None yet
3 participants
@yeysus

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

This comment has been minimized.

Show comment
Hide comment
@bnoordhuis

bnoordhuis Jul 9, 2012

Member

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

Member

bnoordhuis commented Jul 9, 2012

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

@bnoordhuis bnoordhuis closed this Jul 9, 2012

@yeysus

This comment has been minimized.

Show comment
Hide comment
@yeysus

yeysus 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

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

This comment has been minimized.

Show comment
Hide comment
@bnoordhuis

bnoordhuis Jul 9, 2012

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.

Member

bnoordhuis commented Jul 9, 2012

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

This comment has been minimized.

Show comment
Hide comment
@yeysus

yeysus Jul 9, 2012

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

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

This comment has been minimized.

Show comment
Hide comment
@DeanWard

DeanWard Jul 13, 2012

Those flags solved the issue for me, thank you!

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.