On Sat, Jan 12, 2013 at 1:18 AM, Louis Santillan <[email protected]> wrote:
> I believe it is because somewhere in the build process, mksnapshot is run. > However, mksnapshot is compiled for arm and not $HOST. > > See (http://n8.io/cross-compiling-nodejs-v0.8/). > If that's indeed the case (and not just an assumption by someone who hasn't tried it), it must be a bug in node.js's build system. Cross-compiling V8 on its own for ARM works just fine with snapshot=on. mksnapshot can be run on the host thanks to V8's built-in simulator. Example after running "make android_arm.release" on an x86_64 host with $CXX etc. set to a cross compiler ("make arm.release" would do just the same): $ file out/android_arm.release/d8 out/android_arm.release/d8: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked (uses shared libs), not stripped $ file out/android_arm.release/mksnapshot out/android_arm.release/mksnapshot: ELF 32-bit LSB executable, Intel 80386, version 1 (GNU/Linux), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, not stripped > > -L > > > On Fri, Jan 11, 2013 at 1:16 AM, Jakob Kummerow <[email protected]>wrote: > >> On Fri, Jan 11, 2013 at 1:59 AM, Louis Santillan <[email protected]>wrote: >> >>> How does that affect building on arm (pi, beagle, panda) and/or cross >>> compilation? >> >> >> Everything just works. See >> https://code.google.com/p/v8/wiki/BuildingWithGYP#Cross-compiling . >> >> >>> Cross compiling for pi on x86 requires building with snapshots off. >> >> >> Why? >> >> It's easy to turn off building with snapshot if required: "make >> arm.release snapshot=off". I see no reason to do that for cross-compile >> builds, however. >> >> >>> There are over 500k pi sold already and node.js and v8 are popular >>> applications run on it. >>> >>> -L >>> >>> >>> On Thursday, January 10, 2013, Jakob Kummerow wrote: >>> >>>> Yes, building with snapshot=on is the default. >>>> >>>> Disregard the SConstruct file. It is no longer used and about to be >>>> deleted. The SCons based build has been dead for a while now. >>>> >>>> >>>> On Thu, Jan 10, 2013 at 9:11 PM, utkonos <[email protected]> wrote: >>>> >>>>> It seems from the instructions that snapshot=on is the default for >>>>> building v8, and you need to specify snapshot=off now. However, I see the >>>>> following lines in SConstruct: >>>>> >>>>> 'snapshot': { >>>>> 'values': ['on', 'off', 'nobuild'], >>>>> 'default': 'off', >>>>> 'help': 'build using snapshots for faster start-up' >>>>> >>>>> >> -- >> 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 > -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
