[oe] Linker problem with libfreetype.so when cross-compiling for armv7a from x86_64

johnso87 at crhc.illinois.edu johnso87 at crhc.illinois.edu
Tue Oct 26 19:29:07 UTC 2010


Hi,
    I tried to build the beagleboard-demo-image recipe from scratch on a
64-bit machine running Ubuntu 10.04.  I already had 32- and 64-bit
libfreetype.so installed (in /usr/lib and /usr/lib32) on the host.  I
get an error when trying to compile clxclient, a child project of
JAAA:

NOTE: Running task 5211 of 9419 (ID: 4930,
/scr/johnso87/beagleboard/oebb/sources/openembedded/recipes/jaaa/clxclient_3.6.1.bb,
do_compile)
NOTE: package clxclient-3.6.1-r1: task do_compile: Started
ERROR: Function do_compile failed
NOTE: Task failed: ('function do_compile failed',
'/scr/johnso87/beagleboard/oebb/build/tmp-angstrom_2010_x/work/armv7a-angstrom-linux-gnueabi/clxclient-3.6.1-r1/temp/log.do_compile.5368')
NOTE: oestats: task failed, see
http://tinderbox.openembedded.net/public/logs/task/9211313.txt
ERROR: Logfile of failure stored in:
/scr/johnso87/beagleboard/oebb/build/tmp-angstrom_2010_x/work/armv7a-angstrom-linux-gnueabi/clxclient-3.6.1-r1/temp/log.do_compile.5368
Log data follows:
| NOTE: make -j16
| arm-angstrom-linux-gnueabi-g++ -march=armv7-a -mtune=cortex-a8
-mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb -shared -Wl,-O1
-Wl,--hash-style=gnu -L/usr/lib -L/usr/X11R6/lib `freetype-config --libs`
-Wl,-soname,libclxclient.so.3 -o libclxclient.so.3.6.1 xdisplay.o
xresman.o xhandler.o xwindow.o xdraw.o button.o textip.o enumip.o
menuwin.o scale.o slider.o scroll.o mclist.o meter.o -lpthread -lXft -lX11
| /usr/lib/libfreetype.so: file not recognized: File format not recognized
| collect2: ld returned 1 exit status
| make: *** [libclxclient.so.3.6.1] Error 1
| FATAL: oe_runmake failed
| ERROR: Function do_compile failed
NOTE: package clxclient-3.6.1-r1: task do_compile: Failed
ERROR: TaskFailed event exception, aborting
ERROR: Build of
/scr/johnso87/beagleboard/oebb/sources/openembedded/recipes/jaaa/clxclient_3.6.1.bb
do_compile failed
ERROR: Task 4930
(/scr/johnso87/beagleboard/oebb/sources/openembedded/recipes/jaaa/clxclient_3.6.1.bb,
do_compile) failed with 256
ERROR:
'/scr/johnso87/beagleboard/oebb/sources/openembedded/recipes/jaaa/clxclient_3.6.1.bb'
failed
NOTE: oestats: build failed, see
http://tinderbox.openembedded.net/builds/99197/
ERROR:
'/scr/johnso87/beagleboard/oebb/sources/openembedded/recipes/jaaa/clxclient_3.6.1.bb'
failed


I tried adding /usr/lib32 to the front of my LD_LIBRARY_PATH, and tried
adding -L/usr/lib32 to the compile arguments by hacking my
/usr/bin/freetype-config , but neither seemed to do anything.  It keeps
finding the 64-bit version of libfreetype.so and puking.

Any thoughts?

I'm working from the HEAD of the master OE Git branch.

Thanks,
-Matt








More information about the Openembedded-devel mailing list