2009-11-24 08:46:31     build libusb failed with 2008R1-RC3

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

2009-11-24 08:46:31     build libusb failed with 2008R1-RC3

david wang (CHINA)

Message: 82703   

 

Hi,

 

  My kernel is release version of 2008R1-RC3 and toolchain is 2008r1.5-14.  I met a compile problem when buiding libusb, the message is below,

 

  Can anyone tell me why? Is libusb supported by 2008R1-RC3? Thanks!

 

.....

 

[ -z "" ] || (cd /home/wangyixin/working/ipcam/trunk/uClinux-dist-2008R1.5-RC3/staging; chmod 755 ./usr/lib/lib*.so*; chmod 644 ./usr/lib/lib*.la ./usr/lib/lib*.a; sed -i "/^libdir=/s:=.*:='/home/wangyixin/working/ipcam/trunk/uClinux-dist-2008R1.5-RC3/staging/usr/lib':" ./usr/lib/*.la; sed -i "/^prefix=/s:=.*:='/home/wangyixin/working/ipcam/trunk/uClinux-dist-2008R1.5-RC3/staging/usr':" ./usr/lib/pkgconfig/*.pc ./usr/bin/*-config; true)

[ -z "zlib libusb" ] || make -j4 libusb zlib || exit $?

make[2]: Entering directory `/home/wangyixin/working/ipcam/trunk/uClinux-dist-2008R1.5-RC3/lib'

make -C libusb

make -C zlib

make[3]: Entering directory `/home/wangyixin/working/ipcam/trunk/uClinux-dist-2008R1.5-RC3/lib/libusb'

make -C build-libusb-0.1.12 install DESTDIR=/home/wangyixin/working/ipcam/trunk/uClinux-dist-2008R1.5-RC3/staging

make[3]: Entering directory `/home/wangyixin/working/ipcam/trunk/uClinux-dist-2008R1.5-RC3/lib/zlib'

install -d -m0755 /home/wangyixin/working/ipcam/trunk/uClinux-dist-2008R1.5-RC3/staging/usr/lib

install -m0644 libz.a /home/wangyixin/working/ipcam/trunk/uClinux-dist-2008R1.5-RC3/staging/usr/lib

cp -pP libz.so* /home/wangyixin/working/ipcam/trunk/uClinux-dist-2008R1.5-RC3/staging/usr/lib

make[4]: Entering directory `/home/wangyixin/working/ipcam/trunk/uClinux-dist-2008R1.5-RC3/lib/libusb/build-libusb-0.1.12'

Making install in .

install -d -m0755 /home/wangyixin/working/ipcam/trunk/uClinux-dist-2008R1.5-RC3/staging/usr/include

install -m0644 zconf.h zlib.h /home/wangyixin/working/ipcam/trunk/uClinux-dist-2008R1.5-RC3/staging/usr/include

make[3]: Leaving directory `/home/wangyixin/working/ipcam/trunk/uClinux-dist-2008R1.5-RC3/lib/zlib'

make[5]: Entering directory `/home/wangyixin/working/ipcam/trunk/uClinux-dist-2008R1.5-RC3/lib/libusb/build-libusb-0.1.12'

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

bfin-linux-uclibc-g++ -shared -nostdlib /opt/uClinux/bfin-linux-uclibc/bfin-linux-uclibc/runtime/usr/lib/crtreloc.o /opt/uClinux/bfin-linux-uclibc/bfin-linux-uclibc/runtime/usr/lib/crti.o /opt/uClinux/bfin-linux-uclibc/lib/gcc/bfin-linux-uclibc/4.1.2/crtbeginS.o  .libs/usbpp.o  -Wl,--rpath -Wl,/home/wangyixin/working/ipcam/trunk/uClinux-dist-2008R1.5-RC3/lib/libusb/build-libusb-0.1.12/.libs /home/wangyixin/working/ipcam/trunk/uClinux-dist-2008R1.5-RC3/lib/libusb/build-libusb-0.1.12/.libs/libusb.so -L/opt/uClinux/bfin-linux-uclibc/lib/gcc/bfin-linux-uclibc/4.1.2 -L/opt/uClinux/bfin-linux-uclibc/lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/lib -L/opt/uClinux/bfin-linux-uclibc/bfin-linux-uclibc/runtime/lib -L/opt/uClinux/bfin-linux-uclibc/bfin-linux-uclibc/runtime/usr/lib -lstdc++ -lm -lc -lgcc_s /opt/uClinux/bfin-linux-uclibc/lib/gcc/bfin-linux-uclibc/4.1.2/crtendS.o /opt/uClinux/bfin-linux-uclibc/bfin-linux-uclibc/runtime/usr/lib/crtn.o  -mcpu=bf527-0.1 -mcpu=bf527-0.1 -Wl,-soname -Wl,libusbpp-0.1.so.4 -o .libs/libusbpp-0.1.so.4.4.4

/home/blackfin/release/toolchain-08r1.5-14/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: cannot find /lib//libc.so.0

collect2: ld returned 1 exit status

make[5]: *** [libusbpp.la] Error 1

make[5]: Leaving directory `/home/wangyixin/working/ipcam/trunk/uClinux-dist-2008R1.5-RC3/lib/libusb/build-libusb-0.1.12'

make[4]: *** [install-recursive] Error 1

make[4]: Leaving directory `/home/wangyixin/working/ipcam/trunk/uClinux-dist-2008R1.5-RC3/lib/libusb/build-libusb-0.1.12'

make[3]: *** [all] Error 2

make[3]: Leaving directory `/home/wangyixin/working/ipcam/trunk/uClinux-dist-2008R1.5-RC3/lib/libusb'

make[2]: *** [libusb] Error 2

make[2]: Leaving directory `/home/wangyixin/working/ipcam/trunk/uClinux-dist-2008R1.5-RC3/lib'

make[1]: *** [all] Error 2

make[1]: Leaving directory `/home/wangyixin/working/ipcam/trunk/uClinux-dist-2008R1.5-RC3/lib'

make: *** [subdirs] Error 1

[wangyixin@svnhost uClinux-dist-2008R1.5-RC3]$

[wangyixin@svnhost uClinux-dist-2008R1.5-RC3]$

QuoteReplyEditDelete

 

 

2009-11-24 11:21:55     Re: build libusb failed with 2008R1-RC3

Robin Getz (UNITED STATES)

Message: 82709   

 

Davie:

 

The best thing to do is update to 2009R1

 

-Robin

QuoteReplyEditDelete

 

 

2009-11-24 22:09:35     Re: build libusb failed with 2008R1-RC3

david wang (CHINA)

Message: 82714   

 

Robin:

 

  I agree with you. But we can't move to 2009R1 at this time, because we have a lot of work to do in our old product.

 

  I bulid the user/vendor application with flat-share not elf option, the libusb can be build ok. but I met the kernel panic at startup with message,

 

 

 

Using physmap partition information

Creating 8 MTD partitions on "physmap-flash.0":

0x00000000-0x00040000 : "Bootloader"

0x00040000-0x00140000 : "Kernel"

0x00140000-0x003f0000 : "RootFS"

0x003f0000-0x003f8000 : "Log"

0x003f8000-0x003fa000 : "User_Config"

0x003fa000-0x003fc000 : "User_Config0"

0x003fc000-0x003fe000 : "Upgrade_Config"

0x003fe000-0x00400000 : "System_config"

bfin-spi bfin-spi.0: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0, regs_base@ffc00500, dma channel@7

usb 1-1: new full speed USB device using musb_hdrc and address 2

usb 1-1: configuration #1 chosen from 1 choice

usbcore: registered new interface driver usbserial

drivers/usb/serial/usb-serial.c: USB Serial support registered for generic

usbcore: registered new interface driver usbserial_generic

drivers/usb/serial/usb-serial.c: USB Serial Driver core

i2c /dev entries driver

i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller Driver, Version 1.8, regs_base@ffc01400

sht10 modules init success

Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50 2006 UTC).

ASoC version 0.13.1

ALSA device list:

  No soundcards found.

TCP cubic registered

NET: Registered protocol family 1

NET: Registered protocol family 17

Freeing unused kernel memory: 3320k freed

dma_alloc_init: dma_page @ 0x00628000 - 512 pages at 0x01e00000

 

BINFMT_FLAT: reloc outside program 0x1025a0c (0 - 0xfebe5df4/0x2520), killing init!

Failed to execute /init

BINFMT_FLAT: reloc outside program 0x1025a0c (0 - 0xfebe5df4/0x2520), killing init!

BINFMT_FLAT: reloc outside program 0x1025a0c (0 - 0xfebe5df4/0x2520), killing init!

BINFMT_FLAT: reloc outside program 0x1014afc (0 - 0xfebda2c4/0x38ca0), killing sh!

Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

QuoteReplyEditDelete

 

 

2009-11-24 22:38:26     Re: build libusb failed with 2008R1-RC3

Mike Frysinger (UNITED STATES)

Message: 82715   

 

dont mix versions of software like the FAQ says

Attachments

    Outcomes