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

Henning Heinold heinold at inf.fu-berlin.de
Tue Mar 1 11:51:21 UTC 2011


On Tue, Mar 01, 2011 at 11:37:04AM +0100, Stefan Schmidt wrote:
> 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
 
Hi,

seems I fixed it only for the newer 1.8.5 release.
Problem is with cacao which is configured from the icedtea Makefile.
It's needing autoreconf and  --with-libtool-sysroot

Have a look at the cacao-libtoolize.patch

Bye Henning




More information about the Openembedded-devel mailing list