Re: [Jamvm-general] Cross-compiling fro ARM
Brought to you by:
rlougher
From: Robert L. <rob...@gm...> - 2012-12-19 13:24:55
|
On 19 December 2012 12:55, Robert Lougher <rob...@gm...> wrote: > On 19 December 2012 09:44, modsrm <mo...@gm...> wrote: >> >> Hi there, >> >> ill bump this up cos im having the same problem while compiling JamVM for >> ARM. >> >> This is my configure command line: >> >> PATH=$PATH:/home/mods/development/embedded/tools/toolchain/arm-unknown-linux-gnueabi/bin/ >> ./configure --host=arm-unknown-linux-gnueabi >> CPPFLAGS="-I/home/mods/development/embedded/tools/rootfs/include" >> LDFLAGS="-L/home/mods/development/embedded/tools/rootfs/lib" >> >> This is the failure of make: >> >> arm-unknown-linux-gnueabi-gcc -g -O2 >> -I/home/mods/development/embedded/tools/rootfs/include >> -L/home/mods/development/embedded/tools/rootfs/lib >> engine/compute_relocatability.c -o engine/compute_relocatability >> engine/compute_relocatability.c:24:17: fatal error: jam.h: No such file or >> directory >> >> I hope somebody can help! >> > > That file should not be built when cross-compiling. This means that > configure has not entered cross-compilation mode. This is probably > because you have only specified --host (the host is what you are > building on, not the target) The autoconf recommended way to enable > cross-compilation is to specify both --build (the target) and --host > (the host machine). If they are different, cross-compilation mode is > enabled, and no runtime checks are performed. > I've got that the wrong way round, --build is the build machine type (I'm guessing x86[_64] linux) and --host is the ARM machine. If configure still refuses to enter cross-compilation try --disable-int-inlining. It's the relocation checks for the code-copying JIT that are done differently if cross-compiling so disabling it will "fix" the problem. However, performance will be affected (how much depends on the ARM architecture). The code-copying JIT was enabled by default on ARM in JamVM 1.5.4. Rob. > >> Thanks in advance, >> >> Roberto >> >> >> >> Jean-Marie Geffroy wrote: >>> >>> Hi, >>> >>> Thank you for this great JVM. I'm using it since 1 year embedded on >>> ARM systems for prototypes and consider using even more now. However, >>> I have a small problem when trying to cross-compile JamVM 1.5.4 for >>> ARM. I get the following error message: >>> >>> engine/compute_relocatability.c:24:17: jam.h: No such file or directory >>> >>> Any idea about it ? >>> >>> Thank you very much in advance, >>> >>> Jean-MArie >>> >>> ------------------------------------------------------------------------------ >>> Throughout its 18-year history, RSA Conference consistently attracts the >>> world's best and brightest in the field, creating opportunities for >>> Conference >>> attendees to learn about information security's most important issues >>> through >>> interactions with peers, luminaries and emerging and established >>> companies. >>> http://p.sf.net/sfu/rsaconf-dev2dev >>> _______________________________________________ >>> Jamvm-general mailing list >>> Jam...@li... >>> https://lists.sourceforge.net/lists/listinfo/jamvm-general >>> >>> >> -- >> View this message in context: http://old.nabble.com/Cross-compiling-fro-ARM-tp27234882p34813193.html >> Sent from the JamVM mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------------ >> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial >> Remotely access PCs and mobile devices and provide instant support >> Improve your efficiency, and focus on delivering more value-add services >> Discover what IT Professionals Know. Rescue delivers >> http://p.sf.net/sfu/logmein_12329d2d >> _______________________________________________ >> Jamvm-general mailing list >> Jam...@li... >> https://lists.sourceforge.net/lists/listinfo/jamvm-general |