roy@mainserver1 node-v0.8.0]$ uname -a
Linux mainserver1 2.6.35.4-rscloud #8 SMP Mon Sep 20 15:54:33 UTC 2010
x86_64 x86_64 x86_64 GNU/Linux
[roy@mainserver1 node-v0.8.0]$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.5.1/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla
--enable-bootstrap --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-gnu-unique-object
--enable-linker-build-id
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada,lto --enable-plugin
--enable-java-awt=gtk --disable-dssi
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
--enable-libgcj-multifile --enable-java-maintainer-mode
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib
--with-ppl --with-cloog --with-tune=generic --with-arch_32=i686
--build=x86_64-redhat-linux
Thread model: posix
gcc version 4.5.1 20100924 (Red Hat 4.5.1-4) (GCC)
So I ran it with --without-snapshot and got this:
make[1]: Leaving directory `/home/users/roy/node-v0.8.0/out'
ln -fs out/Release/node node
[roy@mainserver1 node-v0.8.0]$ sudo make install
make -C out BUILDTYPE=Release
make[1]: Entering directory `/home/users/roy/node-v0.8.0/out'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/users/roy/node-v0.8.0/out'
ln -fs out/Release/node node
out/Release/node tools/installer.js install
make: *** [install] Segmentation fault
[roy@mainserver1 node-v0.8.0]$
[roy@mainserver1 node-v0.8.0]$ out/Release/node node
Segmentation fault
[roy@mainserver1 node-v0.8.0]$
After this failed, I did "make clean" and ran again like this:
[roy@mainserver1 node-v0.8.0]$ ./configure
--prefix=/home/users/roy/share/node-v0.8 --without-snapshot
[roy@mainserver1 node-v0.8.0]$ make -C out BUILDTYPE=Debug
it complied fine with no errors and worked.
[roy@mainserver1 node-v0.8.0]$ out/Debug/node
> process.version
'v0.8.0'
now to the last suggestion you made:
I made the change to deps/v8/build/common.gypi
and run:
[roy@mainserver1 node-v0.8.0]$ ./configure
--prefix=/home/users/roy/share/node-v0.8 --without-snapshot
[roy@mainserver1 node-v0.8.0]$ sudo make
[roy@mainserver1 node-v0.8.0]$ out/Release/node
> process.version
'v0.8.0'
sudo make install
[roy@mainserver1 node-v0.8.0]$ /home/users/roy/share/node-v0.8/bin/node
> process.version
'v0.8.0'
This seems to have solved the problem.
Thanks,
Roy
On Monday, June 25, 2012 7:01:23 PM UTC-4, Ben Noordhuis wrote:
> On Tue, Jun 26, 2012 at 12:48 AM, rhasson <> wrote:
> > I downloaded the latest v.0.8 tar file and tried to compile it on my
> Fedora
> > 14 and I got this error:
> > LINK(target) /home/users/roy/node-v0.8.0/out/Release/mksnapshot
> > LINK(target) /home/users/roy/node-v0.8.0/out/Release/mksnapshot:
> Finished
> > ACTION v8_snapshot_run_mksnapshot
> /home/users/roy/node-v0.8.0/out/Release/obj.target/v8_snapshot/geni/snapsho t.cc
> > /bin/sh: line 1: 27974 Segmentation fault
> > "/home/users/roy/node-v0.8.0/out/Release/mksnapshot"
> > --log-snapshot-positions --logfile
> "/home/users/roy/node-v0.8.0/out/Release/obj.target/v8_snapshot/geni/snapsh ot.log"
> "/home/users/roy/node-v0.8.0/out/Release/obj.target/v8_snapshot/geni/snapsh ot.cc"
> > make[1]: ***
> [/home/users/roy/node-v0.8.0/out/Release/obj.target/v8_snapshot/geni/snapsh ot.cc]
> > Error 139
> > make[1]: Leaving directory `/home/users/roy/node-v0.8.0/out'
> > make: *** [node] Error 2
> > Any ideas what could be causing this error?
> It could be a number of things.
> - Can you post the output of `uname -a` and `g++ -v`? It might be a
> compiler bug, see e.g. [1].
> - Does the debug build work? `make -C out BUILDTYPE=Debug`
> - Does `./configure --without-snapshot` produce a working binary?
> - What happens when you set v8_no_strict_aliasing% to 1 in
> deps/v8/build/common.gypi?
> [1] https://github.com/joyent/node/issues/2912