lude
Posts: 9
Joined: Sun Jan 06, 2013 4:53 pm

Compiling V8 on Gentoo

Tue Jan 22, 2013 8:12 pm

Every time I try to compile V8 I get an illegal instruction during the build:

Code: Select all

  LD_LIBRARY_PATH=/var/tmp/portage/dev-lang/v8-3.15.11.5/work/v8-3.15.11.5/out/arm.release/lib.host:/var/tmp/portage/dev-lang/v8-3.15.11.5/work/v8-3.15.11.5/ou
t/arm.release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../tools/gyp; mkdir -p /var/tmp/portage/dev-lang/v8-3.15.11.5/work/v8-3.15.11.5/out/arm.release/obj.target/v8_snapshot/geni; "/var/tmp/portage/dev-lang/v8-3.15.11.5/work/v8-3.15.11.5/out/arm.release/mksnapshot" --log-snapshot-positions --logfile "/var/tmp/portage/dev-lang/v8-3.15.11.5/work/v8-3.15.11.5/out/arm.release/obj.target/v8_snapshot/geni/snapshot.log" "/var/tmp/portage/dev-lang/v8-3.15.11.5/work/v8-3.15.11.5/out/arm.release/obj.target/v8_snapshot/geni/snapshot.cc"
/bin/sh: line 1:  1245 Illegal instruction     "/var/tmp/portage/dev-lang/v8-3.15.11.5/work/v8-3.15.11.5/out/arm.release/mksnapshot" --log-snapshot-positions --logfile "/var/tmp/portage/dev-lang/v8-3.15.11.5/work/v8-3.15.11.5/out/arm.release/obj.target/v8_snapshot/geni/snapshot.log" "/var/tmp/portage/dev-lang/v8-3.15.11.5/work/v8-3.15.11.5/out/arm.release/obj.target/v8_snapshot/geni/snapshot.cc"
make[1]: *** [/var/tmp/portage/dev-lang/v8-3.15.11.5/work/v8-3.15.11.5/out/arm.release/obj.target/v8_snapshot/geni/snapshot.cc] Error 132
make[1]: Leaving directory `/var/tmp/portage/dev-lang/v8-3.15.11.5/work/v8-3.15.11.5/out'
make: *** [arm.release] Error 2
I've tried making CFLAGS adjustments, I've tried editing makefiles to change
-DCAN_USE_ARMV7_INSTRUCTIONS=1
to
-DCAN_USE_ARMV7_INSTRUCTIONS=0

I'm at my wits end. Has anyone out there successfully compiled V8 on a pi running Gentoo?

jjackowski
Posts: 44
Joined: Thu Jan 10, 2013 5:25 am

Re: Compiling V8 on Gentoo

Tue Jan 22, 2013 9:28 pm

I had what I recall as a similar issue with Firefox, but it might be completely different. I had to use the latest gcc (~arm) instead of the 4.5.4 that is marked as stable. It may be worth a try.

lude
Posts: 9
Joined: Sun Jan 06, 2013 4:53 pm

Re: Compiling V8 on Gentoo

Tue Jan 22, 2013 10:01 pm

No dice, was already using gcc-4.7.2.

lude
Posts: 9
Joined: Sun Jan 06, 2013 4:53 pm

Re: Compiling V8 on Gentoo

Wed Jan 23, 2013 5:15 pm

Appears I'm the victim of this:

https://code.google.com/p/v8/issues/detail?id=2393

If anyone else searches and lands here, you can merge the 3.14 version of V8 just fine, I have the binary package if you want it as well.

Return to “Gentoo”