2008-10-06 17:43:05     Failed to build libusb FDPIC shared library in 2008R1.5-RC3

Document created by Aaronwu Employee on Aug 7, 2013
Version 1Show Document
  • View in full screen mode

2008-10-06 17:43:05     Failed to build libusb FDPIC shared library in 2008R1.5-RC3

Hyun-ho Choe (KOREA, REPUBLIC OF)

Message: 63189   

 

Hello, everyone.

 

Tried to build libusb, but failed with following messages.

 

libusb.so.* seemed to be built correctly, but libusbpp.so.* wasn't.

 

Any advice?

 

TIA.

 

 

 

checking for a BSD-compatible install... /usr/bin/install -c

checking whether build environment is sane... yes

checking for gawk... gawk

checking whether make sets $(MAKE)... yes

checking for bfin-linux-uclibc-strip... bfin-linux-uclibc-strip

checking build system type... x86_64-unknown-linux-gnu

checking host system type... bfin-unknown-linux-uclibc

checking for style of include used by make... GNU

checking for bfin-linux-uclibc-gcc... bfin-linux-uclibc-gcc

checking for C compiler default output file name... a.out

checking whether the C compiler works... yes

checking whether we are cross compiling... yes

checking for suffix of executables...

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether bfin-linux-uclibc-gcc accepts -g... yes

checking for bfin-linux-uclibc-gcc option to accept ANSI C... none needed

checking dependency style of bfin-linux-uclibc-gcc... gcc3

checking for a sed that does not truncate output... /bin/sed

checking for egrep... grep -E

checking for ld used by bfin-linux-uclibc-gcc... bfin-linux-uclibc-ld

checking if the linker (bfin-linux-uclibc-ld) is GNU ld... yes

checking for bfin-linux-uclibc-ld option to reload object files... -r

checking for BSD-compatible nm... bfin-linux-uclibc-nm

checking whether ln -s works... yes

checking how to recognise dependent libraries... pass_all

checking how to run the C preprocessor... bfin-linux-uclibc-gcc -E

checking for ANSI C header files... yes

checking for sys/types.h... yes

checking for sys/stat.h... yes

checking for stdlib.h... yes

checking for string.h... yes

checking for memory.h... yes

checking for strings.h... yes

checking for inttypes.h... yes

checking for stdint.h... yes

checking for unistd.h... yes

checking dlfcn.h usability... yes

checking dlfcn.h presence... yes

checking for dlfcn.h... yes

checking for bfin-linux-uclibc-g++... bfin-linux-uclibc-g++

checking whether we are using the GNU C++ compiler... yes

checking whether bfin-linux-uclibc-g++ accepts -g... yes

checking dependency style of bfin-linux-uclibc-g++... gcc3

checking how to run the C++ preprocessor... bfin-linux-uclibc-g++ -E

checking for bfin-linux-uclibc-g77... no

checking for bfin-linux-uclibc-f77... no

checking for bfin-linux-uclibc-xlf... no

checking for bfin-linux-uclibc-frt... no

checking for bfin-linux-uclibc-pgf77... no

checking for bfin-linux-uclibc-fort77... no

checking for bfin-linux-uclibc-fl32... no

checking for bfin-linux-uclibc-af77... no

checking for bfin-linux-uclibc-f90... no

checking for bfin-linux-uclibc-xlf90... no

checking for bfin-linux-uclibc-pgf90... no

checking for bfin-linux-uclibc-epcf90... no

checking for bfin-linux-uclibc-f95... no

checking for bfin-linux-uclibc-fort... no

checking for bfin-linux-uclibc-xlf95... no

checking for bfin-linux-uclibc-ifc... no

checking for bfin-linux-uclibc-efc... no

checking for bfin-linux-uclibc-pgf95... no

checking for bfin-linux-uclibc-lf95... no

checking for bfin-linux-uclibc-gfortran... bfin-linux-uclibc-gfortran

checking whether we are using the GNU Fortran 77 compiler... yes

checking whether bfin-linux-uclibc-gfortran accepts -g... yes

checking the maximum length of command line arguments... 32768

checking command to parse bfin-linux-uclibc-nm output from bfin-linux-uclibc-gcc object... ok

checking for objdir... .libs

checking for bfin-linux-uclibc-ar... bfin-linux-uclibc-ar

checking for bfin-linux-uclibc-ranlib... bfin-linux-uclibc-ranlib

checking for bfin-linux-uclibc-strip... (cached) bfin-linux-uclibc-strip

checking if bfin-linux-uclibc-gcc static flag  works... yes

checking if bfin-linux-uclibc-gcc supports -fno-rtti -fno-exceptions... no

checking for bfin-linux-uclibc-gcc option to produce PIC... -fPIC

checking if bfin-linux-uclibc-gcc PIC flag -fPIC works... yes

checking if bfin-linux-uclibc-gcc supports -c -o file.o... yes

checking whether the bfin-linux-uclibc-gcc linker (bfin-linux-uclibc-ld) supports shared libraries... yes

checking whether -lc should be explicitly linked in... no

checking dynamic linker characteristics... GNU/Linux ld.so

checking how to hardcode library paths into programs... immediate

checking whether stripping libraries is possible... yes

checking if libtool supports shared libraries... yes

checking whether to build shared libraries... yes

checking whether to build static libraries... yes

configure: creating libtool

appending configuration tag "CXX" to libtool

checking for ld used by bfin-linux-uclibc-g++... bfin-linux-uclibc-ld

checking if the linker (bfin-linux-uclibc-ld) is GNU ld... yes

checking whether the bfin-linux-uclibc-g++ linker (bfin-linux-uclibc-ld) supports shared libraries... yes

checking for bfin-linux-uclibc-g++ option to produce PIC... -fPIC

checking if bfin-linux-uclibc-g++ PIC flag -fPIC works... yes

checking if bfin-linux-uclibc-g++ supports -c -o file.o... yes

checking whether the bfin-linux-uclibc-g++ linker (bfin-linux-uclibc-ld) supports shared libraries... yes

checking dynamic linker characteristics... GNU/Linux ld.so

checking how to hardcode library paths into programs... immediate

checking whether stripping libraries is possible... yes

appending configuration tag "F77" to libtool

checking if libtool supports shared libraries... yes

checking whether to build shared libraries... yes

checking whether to build static libraries... yes

checking for bfin-linux-uclibc-gfortran option to produce PIC... -fPIC

checking if bfin-linux-uclibc-gfortran PIC flag -fPIC works... yes

checking if bfin-linux-uclibc-gfortran supports -c -o file.o... yes

checking whether the bfin-linux-uclibc-gfortran linker (bfin-linux-uclibc-ld) supports shared libraries... yes

checking dynamic linker characteristics... GNU/Linux ld.so

checking how to hardcode library paths into programs... immediate

checking whether stripping libraries is possible... yes

checking for what USB OS support... Linux

checking for bfin-linux-uclibc-gcc... (cached) bfin-linux-uclibc-gcc

checking whether we are using the GNU C compiler... (cached) yes

checking whether bfin-linux-uclibc-gcc accepts -g... (cached) yes

checking for bfin-linux-uclibc-gcc option to accept ANSI C... (cached) none needed

checking dependency style of bfin-linux-uclibc-gcc... (cached) gcc3

checking whether bfin-linux-uclibc-gcc and cc understand -c and -o together... yes

checking for a BSD-compatible install... /usr/bin/install -c

checking for ANSI C header files... (cached) yes

checking for vprintf... yes

checking for _doprnt... no

checking for an ANSI C-conforming const... yes

checking whether byte ordering is bigendian... no

checking limits.h usability... yes

checking limits.h presence... yes

checking for limits.h... yes

checking for unistd.h... (cached) yes

checking values.h usability... yes

checking values.h presence... yes

checking for values.h... yes

checking for memmove... yes

checking for pkg-config... /home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3/tools/bfin-linux-uclibc-pkg-config

checking if we should build the documentation... auto

checking for jade... no

checking for openjade... no

checking for Doxygen tools... checking for dot... not found

checking for doxygen... not found

configure: WARNING: Documentation build components not installed. sgml docs will not be built

configure: creating ./config.status

config.status: creating Makefile

config.status: creating doc/Makefile

config.status: creating libusb.spec

config.status: creating libusb-config

config.status: creating libusb.pc

config.status: creating tests/Makefile

config.status: creating README

config.status: creating INSTALL.libusb

config.status: creating usb.h

config.status: creating Doxyfile

config.status: creating config.h

config.status: executing depfiles commands

config.status: executing default commands

make -C build-libusb-0.1.12 install DESTDIR=/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3/staging

make[4]: Entering directory `/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3/lib/libusb/build-libusb-0.1.12'

Making install in .

make[5]: Entering directory `/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3/lib/libusb/build-libusb-0.1.12'

if /bin/sh ./libtool --mode=compile bfin-linux-uclibc-gcc -DHAVE_CONFIG_H   -I. -DEMBED -D__uClinux__ -I/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3 -mcpu=bf527-0.0 -Werror  -pipe -Wall -g -O2 -fpic       -mcpu=bf527-0.0 -MT usb.lo -MD -MP -MF ".deps/usb.Tpo" -c -o usb.lo ../libusb-0.1.12/usb.c; \

    then mv -f ".deps/usb.Tpo" ".deps/usb.Plo"; else rm -f ".deps/usb.Tpo"; exit 1; fi

if /bin/sh ./libtool --mode=compile bfin-linux-uclibc-gcc -DHAVE_CONFIG_H   -I. -DEMBED -D__uClinux__ -I/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3 -mcpu=bf527-0.0 -Werror  -pipe -Wall -g -O2 -fpic       -mcpu=bf527-0.0 -MT error.lo -MD -MP -MF ".deps/error.Tpo" -c -o error.lo ../libusb-0.1.12/error.c; \

    then mv -f ".deps/error.Tpo" ".deps/error.Plo"; else rm -f ".deps/error.Tpo"; exit 1; fi

if /bin/sh ./libtool --mode=compile bfin-linux-uclibc-gcc -DHAVE_CONFIG_H   -I. -DEMBED -D__uClinux__ -I/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3 -mcpu=bf527-0.0 -Werror  -pipe -Wall -g -O2 -fpic       -mcpu=bf527-0.0 -MT descriptors.lo -MD -MP -MF ".deps/descriptors.Tpo" -c -o descriptors.lo ../libusb-0.1.12/descriptors.c; \

    then mv -f ".deps/descriptors.Tpo" ".deps/descriptors.Plo"; else rm -f ".deps/descriptors.Tpo"; exit 1; fi

if /bin/sh ./libtool --mode=compile bfin-linux-uclibc-gcc -DHAVE_CONFIG_H   -I. -DEMBED -D__uClinux__ -I/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3 -mcpu=bf527-0.0 -Werror  -pipe -Wall -g -O2 -fpic       -mcpu=bf527-0.0 -MT linux.lo -MD -MP -MF ".deps/linux.Tpo" -c -o linux.lo ../libusb-0.1.12/linux.c; \

    then mv -f ".deps/linux.Tpo" ".deps/linux.Plo"; else rm -f ".deps/linux.Tpo"; exit 1; fi

mkdir .libs

bfin-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -DEMBED -D__uClinux__ -I/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3 -mcpu=bf527-0.0 -Werror -pipe -Wall -g -O2 -fpic -mcpu=bf527-0.0 -MT usb.lo -MD -MP -MF .deps/usb.Tpo -c ../libusb-0.1.12/usb.c  -fPIC -DPIC -o .libs/usb.o

bfin-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -DEMBED -D__uClinux__ -I/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3 -mcpu=bf527-0.0 -Werror -pipe -Wall -g -O2 -fpic -mcpu=bf527-0.0 -MT linux.lo -MD -MP -MF .deps/linux.Tpo -c ../libusb-0.1.12/linux.c  -fPIC -DPIC -o .libs/linux.o

bfin-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -DEMBED -D__uClinux__ -I/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3 -mcpu=bf527-0.0 -Werror -pipe -Wall -g -O2 -fpic -mcpu=bf527-0.0 -MT error.lo -MD -MP -MF .deps/error.Tpo -c ../libusb-0.1.12/error.c  -fPIC -DPIC -o .libs/error.o

bfin-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -DEMBED -D__uClinux__ -I/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3 -mcpu=bf527-0.0 -Werror -pipe -Wall -g -O2 -fpic -mcpu=bf527-0.0 -MT descriptors.lo -MD -MP -MF .deps/descriptors.Tpo -c ../libusb-0.1.12/descriptors.c  -fPIC -DPIC -o .libs/descriptors.o

bfin-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -DEMBED -D__uClinux__ -I/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3 -mcpu=bf527-0.0 -Werror -pipe -Wall -g -O2 -fpic -mcpu=bf527-0.0 -MT error.lo -MD -MP -MF .deps/error.Tpo -c ../libusb-0.1.12/error.c -o error.o >/dev/null 2>&1

bfin-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -DEMBED -D__uClinux__ -I/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3 -mcpu=bf527-0.0 -Werror -pipe -Wall -g -O2 -fpic -mcpu=bf527-0.0 -MT usb.lo -MD -MP -MF .deps/usb.Tpo -c ../libusb-0.1.12/usb.c -o usb.o >/dev/null 2>&1

bfin-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -DEMBED -D__uClinux__ -I/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3 -mcpu=bf527-0.0 -Werror -pipe -Wall -g -O2 -fpic -mcpu=bf527-0.0 -MT descriptors.lo -MD -MP -MF .deps/descriptors.Tpo -c ../libusb-0.1.12/descriptors.c -o descriptors.o >/dev/null 2>&1

if /bin/sh ./libtool --mode=compile bfin-linux-uclibc-g++ -DHAVE_CONFIG_H   -I. -DEMBED -D__uClinux__ -I/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3 -mcpu=bf527-0.0  -pipe -Wall     -mcpu=bf527-0.0 -MT usbpp.lo -MD -MP -MF ".deps/usbpp.Tpo" -c -o usbpp.lo ../libusb-0.1.12/usbpp.cpp; \

    then mv -f ".deps/usbpp.Tpo" ".deps/usbpp.Plo"; else rm -f ".deps/usbpp.Tpo"; exit 1; fi

bfin-linux-uclibc-g++ -DHAVE_CONFIG_H -I. -DEMBED -D__uClinux__ -I/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3 -mcpu=bf527-0.0 -pipe -Wall -mcpu=bf527-0.0 -MT usbpp.lo -MD -MP -MF .deps/usbpp.Tpo -c ../libusb-0.1.12/usbpp.cpp  -fPIC -DPIC -o .libs/usbpp.o

bfin-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -DEMBED -D__uClinux__ -I/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3 -mcpu=bf527-0.0 -Werror -pipe -Wall -g -O2 -fpic -mcpu=bf527-0.0 -MT linux.lo -MD -MP -MF .deps/linux.Tpo -c ../libusb-0.1.12/linux.c -o linux.o >/dev/null 2>&1

/bin/sh ./libtool --mode=link bfin-linux-uclibc-gcc -Werror  -pipe -Wall -g -O2 -fpic       -mcpu=bf527-0.0  -mcpu=bf527-0.0 -o libusb.la -rpath /usr/lib -version-info 8:4:4 -release 0.1 -export-dynamic   usb.lo error.lo descriptors.lo linux.lo

bfin-linux-uclibc-gcc -shared  .libs/usb.o .libs/error.o .libs/descriptors.o .libs/linux.o   -mcpu=bf527-0.0 -mcpu=bf527-0.0 -Wl,-soname -Wl,libusb-0.1.so.4 -o .libs/libusb-0.1.so.4.4.4

(cd .libs && rm -f libusb-0.1.so.4 && ln -s libusb-0.1.so.4.4.4 libusb-0.1.so.4)

(cd .libs && rm -f libusb.so && ln -s libusb-0.1.so.4.4.4 libusb.so)

bfin-linux-uclibc-ar cru .libs/libusb.a  usb.o error.o descriptors.o linux.o

bfin-linux-uclibc-ranlib .libs/libusb.a

creating libusb.la

(cd .libs && rm -f libusb.la && ln -s ../libusb.la libusb.la)

bfin-linux-uclibc-g++ -DHAVE_CONFIG_H -I. -DEMBED -D__uClinux__ -I/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3 -mcpu=bf527-0.0 -pipe -Wall -mcpu=bf527-0.0 -MT usbpp.lo -MD -MP -MF .deps/usbpp.Tpo -c ../libusb-0.1.12/usbpp.cpp -o usbpp.o >/dev/null 2>&1

/bin/sh ./libtool --mode=link bfin-linux-uclibc-g++  -pipe -Wall     -mcpu=bf527-0.0  -mcpu=bf527-0.0 -o libusbpp.la -rpath /usr/lib -version-info 8:4:4 -release 0.1 -export-dynamic  -lusb  usbpp.lo

libtool: link: warning: library `/home/firebird/work/blackfin/toolchain/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/libstdc++.la' was moved.

bfin-linux-uclibc-g++ -shared -nostdlib /home/firebird/work/blackfin/toolchain/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/lib/crtreloc.o /home/firebird/work/blackfin/toolchain/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/lib/crti.o /home/firebird/work/blackfin/toolchain/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/crtbeginS.o  .libs/usbpp.o  -Wl,--rpath -Wl,/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3/lib/libusb/build-libusb-0.1.12/.libs -Wl,--rpath -Wl,/home/firebird/work/blackfin/toolchain/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2 -Wl,--rpath -Wl,/home/firebird/work/blackfin/toolchain/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2 -L/opt/uClinux/bfin-linux-uclibc/bfin-linux-uclibc/runtime/usr/lib -L/opt/uClinux/bfin-linux-uclibc/bfin-linux-uclibc/runtime/lib -L/opt/uClinux/bfin-linux-uclibc/lib/gcc/bfin-linux-uclibc/../../../bfin-linux-uclibc/lib -L/opt/uClinux/bfin-linux-uclibc/bfin-linux-uclibc/lib -L/opt/uClinux/bfin-linux-uclibc/bfin-linux-uclibc/bin -L/usr/src/rpm/BUILD/blackfin-toolchain-08r1.5/gcc_build-4.1/./gcc -L/usr/src/rpm/BUILD/blackfin-toolchain-08r1.5/gcc_build-4.1/bfin-linux-uclibc/libstdc++-v3/src/.libs -L/usr/src/rpm/BUILD/blackfin-toolchain-08r1.5/gcc_build-4.1/bfin-linux-uclibc/libstdc++-v3/src /home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3/lib/libusb/build-libusb-0.1.12/.libs/libusb.so -L/home/firebird/work/blackfin/toolchain/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2 -L/home/firebird/work/blackfin/toolchain/bfin-linux-uclibc/bin/../lib/gcc -L/home/firebird/work/blackfin/toolchain/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/lib -L/home/firebird/work/blackfin/toolchain/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/lib -L/home/firebird/work/blackfin/toolchain/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/lib /home/firebird/work/blackfin/toolchain/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/libstdc++.so -lm -lc -lgcc_s /home/firebird/work/blackfin/toolchain/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/crtendS.o /home/firebird/work/blackfin/toolchain/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/lib/crtn.o  -mcpu=bf527-0.0 -mcpu=bf527-0.0 -Wl,-soname -Wl,libusbpp-0.1.so.4 -o .libs/libusbpp-0.1.so.4.4.4

(cd .libs && rm -f libusbpp-0.1.so.4 && ln -s libusbpp-0.1.so.4.4.4 libusbpp-0.1.so.4)

(cd .libs && rm -f libusbpp.so && ln -s libusbpp-0.1.so.4.4.4 libusbpp.so)

bfin-linux-uclibc-ar cru .libs/libusbpp.a  usbpp.o

bfin-linux-uclibc-ranlib .libs/libusbpp.a

creating libusbpp.la

(cd .libs && rm -f libusbpp.la && ln -s ../libusbpp.la libusbpp.la)

make[6]: Entering directory `/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3/lib/libusb/build-libusb-0.1.12'

test -z "/usr/bin" || mkdir -p -- . "/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3/staging/usr/bin"

test -z "/usr/lib" || mkdir -p -- . "/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3/staging/usr/lib"

test -z "/usr/include" || mkdir -p -- . "/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3/staging/usr/include"

/usr/bin/install -c 'libusb-config' '/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3/staging/usr/bin/libusb-config'

/bin/sh ./libtool --mode=install /usr/bin/install -c  'libusb.la' '/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libusb.la'

test -z "/usr/include" || mkdir -p -- . "/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3/staging/usr/include"

test -z "/usr/lib/pkgconfig" || mkdir -p -- . "/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3/staging/usr/lib/pkgconfig"

/usr/bin/install -c -m 644 '../libusb-0.1.12/usbpp.h' '/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3/staging/usr/include/usbpp.h'

/usr/bin/install -c -m 644 'libusb.pc' '/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3/staging/usr/lib/pkgconfig/libusb.pc'

/usr/bin/install -c -m 644 'usb.h' '/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3/staging/usr/include/usb.h'

/usr/bin/install -c .libs/libusb-0.1.so.4.4.4 /home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libusb-0.1.so.4.4.4

(cd /home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3/staging/usr/lib && rm -f libusb-0.1.so.4 && ln -s libusb-0.1.so.4.4.4 libusb-0.1.so.4)

(cd /home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3/staging/usr/lib && rm -f libusb.so && ln -s libusb-0.1.so.4.4.4 libusb.so)

/usr/bin/install -c .libs/libusb.lai /home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libusb.la

/usr/bin/install -c .libs/libusb.a /home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libusb.a

bfin-linux-uclibc-ranlib /home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libusb.a

chmod 644 /home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libusb.a

libtool: install: warning: remember to run `libtool --finish /usr/lib'

/bin/sh ./libtool --mode=install /usr/bin/install -c  'libusbpp.la' '/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libusbpp.la'

libtool: install: warning: relinking `libusbpp.la'

(cd /home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3/lib/libusb/build-libusb-0.1.12; /bin/sh ./libtool  --mode=relink bfin-linux-uclibc-g++ -pipe -Wall -mcpu=bf527-0.0 -mcpu=bf527-0.0 -o libusbpp.la -rpath /usr/lib -version-info 8:4:4 -release 0.1 -export-dynamic -lusb usbpp.lo -inst-prefix-dir /home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3/staging)

libtool: link: warning: library `/home/firebird/work/blackfin/toolchain/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/libstdc++.la' was moved.

bfin-linux-uclibc-g++ -shared -nostdlib /home/firebird/work/blackfin/toolchain/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/lib/crtreloc.o /home/firebird/work/blackfin/toolchain/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/lib/crti.o /home/firebird/work/blackfin/toolchain/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/crtbeginS.o  .libs/usbpp.o  -Wl,--rpath -Wl,/home/firebird/work/blackfin/toolchain/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2 -L/opt/uClinux/bfin-linux-uclibc/bfin-linux-uclibc/runtime/usr/lib -L/opt/uClinux/bfin-linux-uclibc/bfin-linux-uclibc/runtime/lib -L/opt/uClinux/bfin-linux-uclibc/lib/gcc/bfin-linux-uclibc/../../../bfin-linux-uclibc/lib -L/opt/uClinux/bfin-linux-uclibc/bfin-linux-uclibc/lib -L/opt/uClinux/bfin-linux-uclibc/bfin-linux-uclibc/bin -L/usr/src/rpm/BUILD/blackfin-toolchain-08r1.5/gcc_build-4.1/./gcc -L/usr/src/rpm/BUILD/blackfin-toolchain-08r1.5/gcc_build-4.1/bfin-linux-uclibc/libstdc++-v3/src/.libs -L/usr/src/rpm/BUILD/blackfin-toolchain-08r1.5/gcc_build-4.1/bfin-linux-uclibc/libstdc++-v3/src -L/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3/staging/usr/lib -L/usr/lib -lusb -L/home/firebird/work/blackfin/toolchain/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2 -L/home/firebird/work/blackfin/toolchain/bfin-linux-uclibc/bin/../lib/gcc -L/home/firebird/work/blackfin/toolchain/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/lib -L/home/firebird/work/blackfin/toolchain/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/lib -L/home/firebird/work/blackfin/toolchain/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/lib -L/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3/staging/home/firebird/work/blackfin/toolchain/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2 -lstdc++ -lm -lc -lgcc_s /home/firebird/work/blackfin/toolchain/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/crtendS.o /home/firebird/work/blackfin/toolchain/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/lib/crtn.o  -mcpu=bf527-0.0 -mcpu=bf527-0.0 -Wl,-soname -Wl,libusbpp-0.1.so.4 -o .libs/libusbpp-0.1.so.4.4.4

/usr/lib/libm.so: file not recognized: File format not recognized

collect2: ld returned 1 exit status

libtool: install: error: relink `libusbpp.la' with the above command before installing it

make[6]: *** [install-libLTLIBRARIES] 오류 1

make[6]: Leaving directory `/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3/lib/libusb/build-libusb-0.1.12'

make[5]: *** [install-am] 오류 2

make[5]: Leaving directory `/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3/lib/libusb/build-libusb-0.1.12'

make[4]: *** [install-recursive] 오류 1

make[4]: Leaving directory `/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3/lib/libusb/build-libusb-0.1.12'

make[3]: *** [all] 오류 2

make[3]: Leaving directory `/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3/lib/libusb'

make[2]: *** [libusb] 오류 2

make[2]: Leaving directory `/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3/lib'

make[1]: *** [all] 오류 2

make[1]: Leaving directory `/home/firebird/work/blackfin/uClinux-dist-2008R1.5-RC3/lib'

make: *** [subdirs] 오류 1

 

TranslateQuoteReplyEditDelete

 

 

2008-10-06 23:38:25     Re: Failed to build libusb FDPIC shared library in 2008R1.5-RC3

Robin Getz (UNITED STATES)

Message: 63193   

 

You need to select fdpic as the build option.

 

-Robin

QuoteReplyEditDelete

 

 

2008-10-07 02:12:32     Re: Failed to build libusb FDPIC shared library in 2008R1.5-RC3

Hyun-ho Choe (KOREA, REPUBLIC OF)

Message: 63195   

 

If you meant "Blackfin Build Options" -> "Binary format" to FDPIC, I already do it.

 

And, of course, I checked on to kernel binfmt support for FDPIC(it is default to on).

 

does anybody suffer same problem?

 

No matter what target I selected, same error occurs if I selected "Build libusb" or "usbutils(lsusb)".

 

 

 

- Choe, Hyun-ho

TranslateQuoteReplyEditDelete

 

 

2008-10-07 02:36:21     Re: Failed to build libusb FDPIC shared library in 2008R1.5-RC3

Mike Frysinger (UNITED STATES)

Message: 63197   

 

go into lib/libusb/libusb-0.1.12 and run this command:

patch -p0 < ../../DirectFB/patches/libtool-relink-hack.patch

 

then it should build fine after you run the clean target

QuoteReplyEditDelete

 

 

2008-10-07 03:22:48     Re: Failed to build libusb FDPIC shared library in 2008R1.5-RC3

Hyun-ho Choe (KOREA, REPUBLIC OF)

Message: 63199   

 

Thanks a lot. It works.

Attachments

    Outcomes