When running hello_world in gdb it breaks:

Local<Context> context = Context::New(isolate);

i haven't compiled debug version of library, but backtrace shows this.

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?)

I didn't understand you completely on a process of finding illegal 
instruction. Could you clarify this a bit. 
Could you remember which build arguments were you using when building your 
project library.

Thanks


On Friday, January 9, 2015 at 7:15:13 PM UTC+1, Dean McNamee wrote:
>
> I've built a few versions of v8 on the raspberry pi with no major 
> trouble.  There has always been small hiccups, but the last time the 
> bugs I were filed and fixed.  For example: 
>
> https://github.com/joyent/node/issues/8549 
>
> It could just be a matter of building incorrectly.  What is the 
> illegal instruction?  That will be a good starting point, and then 
> work back through all of the defines to make sure you have all of the 
> features / defines set correctly. 
>
> On Fri, Jan 9, 2015 at 6:56 PM, Milan Pandurov <[email protected] 
> <javascript:>> wrote: 
> > That's pretty sad. I noticed that there are not many threads concerning 
> > raspberry pi and v8. But there are also some people who managed to make 
> it 
> > work, so i guess that in some point in time there was a working git 
> commit + 
> > version of raspberry or some platform specific hack that worked. 
> > Also if you suggest that raspberry pi isn't "supported" than looking for 
> an 
> > alternative is a better solution than hacking this to work? 
> > 
> > 
> > On Friday, January 9, 2015 at 6:30:50 PM UTC+1, Flying Jester wrote: 
> >> 
> >> It might be that the old ISA the rPi uses is just too old to run V8. 
> >> 
> >> Generally, the devs only care about the devices that can also run 
> Android. 
> >> 
> >> 
> >> On Friday, January 9, 2015 at 5:40:30 AM UTC-9, Milan Pandurov wrote: 
> >>> 
> >>> I am having a problem with cross compiling google v8 libraries for 
> >>> raspberry pi, and constantly getting "Illegal instruction" error when 
> >>> compiling official sample from site. These are the steps i followed: 
> >>> 
> >>> Downloaded cross compile https://github.com/raspberrypi/tools/ 
> >>> Cloned v8 git https://chromium.googlesource.com/v8/v8.git 
> >>> Exported CXX LINK point to arm-linux-gnueabihf-g++ from cross compile 
> >>> tools. 
> >>> run make arm.release armv7=false hardfp=on snapshot=off armfpu=vfp 
> >>> armfloatabi=hard -j5 
> >>> Copied generated executable 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. 
> >>> 
> >>> Problem occurs when trying to run other cross-compiled software that 
> is 
> >>> linked to v8 libraries. For example sample code from 
> >>> https://developers.google.com/v8/get_started#intro. Code is 
> cross-compiled 
> >>> with this command (same as example, just changed compiler) 
> >>> 
> >>> 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 
> > [email protected] <javascript:> 
> > 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 [email protected] <javascript:>. 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
-- 
v8-users mailing list
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to