[oe] Recent problems with host library leakage into the build

Stefan Schmidt stefan at datenfreihafen.org
Tue Mar 1 10:37:04 UTC 2011


Hello.

I just stumbled over two problems in the testing-release bracnh that have wrong
path to the libs while linking the binaries and fail due to ld not being happy
to link x86_64 with ARM :)

openjdk-6_6b18-1.8:

| arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon
-mfloat-abi=softfp -mthumb-interwork -mno-thumb
--sysroot=/home/stefan/oe-dev/build/tmp/sysroots/armv7a-angstrom-linux-gnueabi
-shared  -Wl,--whole-archive ../../src/fdlibm/.libs/libfdlibm.a
../../src/mm/.libs/libmm.a ../../src/native/.libs/libnative.a
../../src/threads/.libs/libthreads.a ../../src/toolbox/.libs/libtoolbox.a
../../src/vm/.libs/libvm.a ../../src/vmcore/.libs/libvmcore.a
-Wl,--no-whole-archive  -L/usr/lib -lz -lpthread -ldl  -march=armv7-a
-mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb
-Wl,--version-script=../../contrib/mapfile-vers-product -Wl,-O1
-Wl,--hash-style=gnu -Wl,-soname -Wl,libjvm.so -o .libs/libjvm.so
| /usr/lib/libz.so: file not recognized: File format not recognized
| collect2: ld returned 1 exit status
| libtool: install: error: relink `libjvm.la' with the above command before
installing it

I imagine that I have seen something similar for freetype, but I can't reproduce
it right now.

Anyone an idea what causes this? If not I'm going to bisect it. Its just
painful as openjdk needs tons of time to build.

regards
Stefan Schmidt




More information about the Openembedded-devel mailing list