Hi Hank -
It appears that scons is defaulting to build IA32 arch, and is compiling using
flag '-m32'. But you likely do not have the 32-bit compatibility libraries
installed, so the link step fails.
The easiest thing to do is tell scons to build x64 architecture:
scons arch=x64 sample=shell
That should work fine, it does for me on my 64-bit ubuntu box.
If you want to build the 32-bit version, you will have to track down how to
install 32-bit build support for RedHat. On ubuntu I did:
sudo apt-get install ia32-libs-sdl libc6-dev-i386
and I get these files & links in /usr/lib32:
lrwxrwxrwx 1 root root 14 2010-09-01 14:39 /usr/lib32/libstdc++.so
-> libstdc++.so.6
lrwxrwxrwx 1 root root 19 2010-09-01 12:28
/usr/lib32/libstdc++.so.6 -> libstdc++.so.6.0.13
-rw-r--r-- 1 root root 975088 2010-03-26 17:16
/usr/lib32/libstdc++.so.6.0.13
You can verify that these are ELF32 format using 'readelf -h'
Hope this helps,
paul
On Oct 27, 2010, at 1:49 PM, hank hill wrote:
> Hi,
>
> I am totally new to v8. I'm trying to install v8 on a RedHat 6 (64
> bit) box. I have scons installed, and have checked out the trunk.
> While I can build with scons successfully, when I attempt to build the
> V8 shell sample in release mode:
> scons sample=shell or build the V8 developer shell in release mode:
> scons d8
>
> I get errors :
>
> scons: Reading SConscript files ...
> scons: done reading SConscript files.
> scons: Building targets ...
> g++ -o shell -m32 obj/sample/shell/release/shell.o -L. -lv8 -lpthread
> /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/
> 4.4.3/libstdc++.so when searching for -lstdc++
> /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/
> 4.4.3/libstdc++.a when searching for -lstdc++
> /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/
> 4.4.3/libstdc++.so when searching for -lstdc++
> /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/
> 4.4.3/libstdc++.a when searching for -lstdc++
> /usr/bin/ld: cannot find -lstdc++
> collect2: ld returned 1 exit status
> scons: *** [shell] Error 1
>
> scons: building terminated because of errors.
>
>
> Any assistance is appreciated.
>
> thanks
>
> --
> v8-users mailing list
> [email protected]
> http://groups.google.com/group/v8-users
--
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users