[Buildroot] DirectFB fails to build with buildroot 2009.11

Gilles Talis gilles.talis at gmail.com
Thu Jan 28 13:13:50 UTC 2010


Hi,

I am trying to cross-compile DirectFB using buildroot and I have an issue
during the installation phase.
I am using an external binary toolchain (codesourcery ARM toolchain). The
output of my compilation is as follows:

I have the same error for pretty much all libraries generated by the build
process. At some point, compiler points the wrong libs directory: /usr/lib
instead of <staging_dir>/usr/lib
This is specific to DirectFB as I can compile about almost anything else :-)

Example with the one of the GFX drivers libs generated:

Making install in nvidia
make[4]: Entering directory
`/work/arm-linux/build/directfb-1.4.2/gfxdrivers/nvidia'
make[5]: Entering directory
`/work/arm-linux/build/directfb-1.4.2/gfxdrivers/nvidia'
make[5]: Nothing to be done for `install-exec-am'.
test -z "/usr/lib/directfb-1.4-0/gfxdrivers" || /bin/mkdir -p
"/work/arm-linux/target/usr/lib/directfb-1.4-0/gfxdrivers"
test -z "/usr/lib/directfb-1.4-0/gfxdrivers" || /bin/mkdir -p
"/work/arm-linux/target/usr/lib/directfb-1.4-0/gfxdrivers"
 /bin/bash ../../libtool   --mode=install /usr/bin/install -c -s '
libdirectfb_nvidia.la'
'/work/arm-linux/target/usr/lib/directfb-1.4-0/gfxdrivers/
libdirectfb_nvidia.la'
libtool: install: warning: relinking `libdirectfb_nvidia.la'
(cd /work/arm-linux/build/directfb-1.4.2/gfxdrivers/nvidia; /bin/bash
../../libtool  --tag=CC --mode=relink
/data/omap_linux/a0919486/arm-unknown-linux-uclibcgnueabi/bin/arm-linux-gcc
-Os -pipe -Os --sysroot /work/arm-linux/staging/ -O3 -ffast-math -pipe -Os
-pipe -Os --sysroot /work/arm-linux/staging/ -D_GNU_SOURCE
-Werror-implicit-function-declaration -module -avoid-version --sysroot
/work/arm-linux/staging/ -lz --sysroot /work/arm-linux/staging/ -o
libdirectfb_nvidia.la -rpath /usr/lib/directfb-1.4-0/gfxdrivers nvidia.lo
nvidia_state.lo nvidia_2d.lo nvidia_3d.lo nvidia_primary.lo
nvidia_overlay.lo -lm ../../lib/direct/libdirect.la ../../lib/fusion/
libfusion.la ../../src/libdirectfb.la -ldl -lpthread -inst-prefix-dir
/work/arm-linux/target)
/data/omap_linux/a0919486/arm-unknown-linux-uclibcgnueabi/bin/arm-linux-gcc
-Os -pipe -Os  --sysroot /work/arm-linux/staging/ -shared  .libs/nvidia.o
.libs/nvidia_state.o .libs/nvidia_2d.o .libs/nvidia_3d.o
.libs/nvidia_primary.o .libs/nvidia_overlay.o  -lz -lm
-L/work/arm-linux/target/usr/lib -L/usr/lib -ldirect -lfusion -ldirectfb
-ldl -lpthread  -Wl,-soname -Wl,libdirectfb_nvidia.so -o
.libs/libdirectfb_nvidia.so
/usr/lib/libm.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status
libtool: install: error: relink `libdirectfb_nvidia.la' with the above
command before installing it
make[5]: *** [install-nvidiaLTLIBRARIES] Error 1

Any help would be highly appreciated
Gilles.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20100128/0039914a/attachment.htm>


More information about the buildroot mailing list