Hello all,
I'm having significant issues compiling JamVM for an ARM architecture.
My dilemma is as follows:
I have been almost completely unsuccessful in building a toolchain
with buildroot. The more they fix, the less it works, is how it seems.
Therefore, I've put together a toolchain with crosstool, against
glibc3.5.6.
I need to be able to statically compile against glibc, since I'm
unable to compile against uclibc. So far, this hasn't been a problem
with just about everything else. (I don't have glibc installed on my
dev board, and I don't have enough space to do so. This creates the
need for static compilation.)
When I try this, I get the following error:
Making all in src
make[1]: Entering directory `/home/apolauf/jamvm-1.4.5/src'
make all-recursive
make[2]: Entering directory `/home/apolauf/jamvm-1.4.5/src'
Making all in os
make[3]: Entering directory `/home/apolauf/jamvm-1.4.5/src/os'
Making all in linux
make[4]: Entering directory `/home/apolauf/jamvm-1.4.5/src/os/linux'
Making all in arm
make[5]: Entering directory `/home/apolauf/jamvm-1.4.5/src/os/linux/arm'
/bin/sh ../../../../libtool --mode=compile arm-softfloat-linux-gnu-gcc
-Os -static -I/opt/crosstool/gcc-3.4.5-glibc-2.3.6/arm-softfloat-linux-gnu/arm-soft-linux-gnu/include
-L/opt/crosstool/gcc-3.4.5-glibc-2.3.6/arm-softfloat-linux-gnu/arm-soft-linux-gnu/lib
-I../../../../src -Os -static
-I/opt/crosstool/gcc-3.4.5-glibc-2.3.6/arm-softfloat-linux-gnu/arm-soft-linux-gnu/include
-c -o callNative.lo callNative.S
libtool: compile: unable to infer tagged configuration
make[5]: Leaving directory `/home/apolauf/jamvm-1.4.5/src/os/linux/arm'
make[4]: Leaving directory `/home/apolauf/jamvm-1.4.5/src/os/linux'
make[3]: Leaving directory `/home/apolauf/jamvm-1.4.5/src/os'
make[2]: Leaving directory `/home/apolauf/jamvm-1.4.5/src'
make[1]: Leaving directory `/home/apolauf/jamvm-1.4.5/src'
libtool: compile: specify a tag with `--tag'
make[5]: *** [callNative.lo] Error 1
make[4]: *** [all-recursive] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
If I remove "-static" from CC and CFLAGS, the error disappears, but I
get a dynamically linked executable, though for the correct
architecture. What can I do to statically compile? Any help would be
appreciated. Thanks,
-Adrian
|