arm-linux-gnueabihf-g++
from cross compile tools.make arm.release armv7=false hardfp=on snapshot=off armfpu=vfp armfloatabi=hard -j5
shell
and d8
from out/arm.release directory to pi (Raspbian kernel version 3.6.11) and it WORKS. These steps prove that cross compilation toolchain is functional.arm-linux-gnueabihf-g++ -I. hello_world.cc -o hello_world -Wl,--start-group out/x64.release/obj.target/{tools/gyp/libv8_{base,libbase,snapshot,libplatform},third_party/icu/libicu{uc,i18n,data}}.a -Wl,--end-group -lrt -pthread
When i copy that code to pi and run it i get SIGILL (Illegal instruction).
Note: cross compiled software that doesn't use v8 libraries works fine. Also x64 v8 libraries on host computer work fine.
On newer kernel versions shell
and d8
were also throwing SIGILL but than i switched to older version 3.6.11 (problems with newer kernel https://groups.google.com/forum/#!topic/v8-users/IPT9EeYK9bg) and they started working, but compiled sample code is still showed same issues.
Did anyone have similar experience? Any suggestion on how to overcome this problem?
--
--
v8-users mailing list
v8-u...@googlegroups.com
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to the Google Groups "v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Local<Context> context = Context::New(isolate);
Program received signal SIGILL, Illegal instruction.0x23b1375c in ?? ()(gdb) backtrace#0 0x23b1375c in ?? ()#1 0x23b6bf90 in ?? ()#2 0x23b6bf90 in ?? ()Backtrace stopped: previous frame identical to this frame (corrupt stack?)
[----------] 6 tests from ChangeLowering32Test[ RUN ] ChangeLowering32Test.ChangeInt32ToTaggedIllegal instruction
make arm.release arm_version=6 armfpu=vfp armfloatabi=hard