I rebuilt the 4.0.0 from scratch and got the same error. I actually built it without openobex, which succeeds and then configure in the openobex package and it fails.
Also, when I say "from scratch," I mean I delete everything including /opt/freescale and start again with configuration files I maintain for the kernel and LTIB -- that is
Then I ran the same thing with 4.1.0 and got exactly the same results. I also looked at the packages and spec files that changed and none of the changes included libusb or openobex.
I also looked at the transcript of the build process and found a few suspicious items. One was this line during openobex build:
It appears to be checking the build host rather than the target RFS. You can somewhat see this in context (but without the error) in the original post. (I think I am somewhat misinterpreting this message because I see other instances that look this way, but the files are properly located in the target rootfs.) However, for libusb, the file is not in the target RFS. Shouldn't it be?
Also, when building libusb, it appears to use a mixture of -fPIC and unspecified PIC compiles.I can't quite follow the bookkeeping on this, but it appears that the last compilation of usb.c (the specific one openobex complains about) is without -fPIC:
Processing: libusb
====================
Build path taken because: no prebuilt rpm,
rpmbuild --dbpath /home/ljump/TST/iMX6/boundary/ltib/rootfs//var/lib/rpm --target arm --define '_unpackaged_files_terminate_build 0' --define '_target_cpu arm' --define '__strip strip' --define '_topdir /home/ljump/TST/iMX6/boundary/ltib/rpm' --define '_prefix /usr' --define '_tmppath /home/ljump/TST/iMX6/boundary/ltib/tmp' --define '_rpmdir /home/ljump/TST/iMX6/boundary/ltib/rpm/RPMS' --define '_mandir /usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir /var' -bb /home/ljump/TST/iMX6/boundary/ltib/dist/lfs-5.1/libusb/libusb.spec
Building target platforms: arm
Building for target arm
Executing(%prep): /bin/sh -e /home/ljump/TST/iMX6/boundary/ltib/tmp/rpm-tmp.10791
+ umask 022
+ cd /home/ljump/TST/iMX6/boundary/ltib/rpm/BUILD
+ cd /home/ljump/TST/iMX6/boundary/ltib/rpm/BUILD
+ rm -rf libusb-0.1.8
+ /bin/gzip -dc /home/ljump/TST/iMX6/boundary/ltib/rpm/SOURCES/libusb-0.1.8.tar.gz
+ tar -xvvf -
drwxrwxrwx 500/500 0 2004-02-11 08:27 libusb-0.1.8/
-rw-r--r-- 500/500 1911 2004-02-11 08:27 libusb-0.1.8/README
-rw-r--r-- 500/500 27314 2004-02-11 08:27 libusb-0.1.8/Makefile.in
-rwxr-xr-x 500/500 710215 2004-02-11 08:27 libusb-0.1.8/configure
-rw-r--r-- 500/500 80 2004-01-27 14:36 libusb-0.1.8/AUTHORS
-rw-r--r-- 500/500 26428 2004-01-27 14:36 libusb-0.1.8/COPYING
-rw-r--r-- 500/500 189 2004-01-27 14:36 libusb-0.1.8/ChangeLog
-rw-r--r-- 500/500 2063 2004-01-27 14:36 libusb-0.1.8/INSTALL.libusb.in
-rw-r--r-- 500/500 1338 2004-01-27 14:36 libusb-0.1.8/Makefile.am
-rw-r--r-- 500/500 8 2004-01-27 14:36 libusb-0.1.8/NEWS
-rw-r--r-- 500/500 1922 2004-01-27 14:36 libusb-0.1.8/README.in
-rw-r--r-- 500/500 244630 2004-02-11 08:27 libusb-0.1.8/aclocal.m4
-rwxr-xr-x 500/500 38504 2004-01-27 14:36 libusb-0.1.8/config.guess
-rw-r--r-- 500/500 2282 2004-02-11 08:27 libusb-0.1.8/config.h.in
-rwxr-xr-x 500/500 28224 2004-01-27 14:36 libusb-0.1.8/config.sub
-rw-r--r-- 500/500 6531 2004-02-11 08:27 libusb-0.1.8/configure.in
-rwxr-xr-x 500/500 12117 2004-01-27 14:36 libusb-0.1.8/depcomp
-rwxr-xr-x 500/500 5598 2004-01-27 14:36 libusb-0.1.8/install-sh
-rw-r--r-- 500/500 1267 2004-01-27 14:36 libusb-0.1.8/libusb-config.in
-rw-r--r-- 500/500 1244 2004-01-27 14:36 libusb-0.1.8/libusb.spec.in
-rw-r--r-- 500/500 141554 2004-01-27 14:36 libusb-0.1.8/ltmain.sh
-rwxr-xr-x 500/500 6472 2004-01-27 14:36 libusb-0.1.8/missing
-rwxr-xr-x 500/500 722 2004-01-27 14:36 libusb-0.1.8/mkinstalldirs
-rw-r--r-- 500/500 7995 2004-01-27 14:36 libusb-0.1.8/usb.h.in
-rw-r--r-- 500/500 6220 2004-01-27 14:36 libusb-0.1.8/usb.c
-rw-r--r-- 500/500 1268 2004-01-27 14:36 libusb-0.1.8/usbi.h
-rw-r--r-- 500/500 759 2004-01-27 14:36 libusb-0.1.8/error.c
-rw-r--r-- 500/500 716 2004-01-27 14:36 libusb-0.1.8/error.h
-rw-r--r-- 500/500 13760 2004-01-27 14:36 libusb-0.1.8/descriptors.c
-rw-r--r-- 500/500 16797 2004-01-27 14:36 libusb-0.1.8/bsd.c
-rw-r--r-- 500/500 15854 2004-02-11 08:25 libusb-0.1.8/linux.c
-rw-r--r-- 500/500 2764 2004-01-27 14:36 libusb-0.1.8/linux.h
-rw-r--r-- 500/500 34451 2004-01-27 14:36 libusb-0.1.8/darwin.c
-rw-r--r-- 500/500 2248 2004-01-27 14:36 libusb-0.1.8/LICENSE
-rw-r--r-- 500/500 1240 2004-02-11 08:27 libusb-0.1.8/libusb.spec
-rw-r--r-- 500/500 2041 2004-02-11 08:27 libusb-0.1.8/INSTALL.libusb
drwxrwxrwx 500/500 0 2004-02-11 08:27 libusb-0.1.8/tests/
-rw-r--r-- 500/500 13395 2004-02-11 08:27 libusb-0.1.8/tests/Makefile.in
-rw-r--r-- 500/500 114 2004-01-27 14:36 libusb-0.1.8/tests/Makefile.am
-rw-r--r-- 500/500 3655 2004-01-27 14:36 libusb-0.1.8/tests/testlibusb.c
drwxrwxrwx 500/500 0 2004-02-11 08:27 libusb-0.1.8/doc/
-rw-r--r-- 500/500 9024 2004-02-11 08:27 libusb-0.1.8/doc/Makefile.in
-rw-r--r-- 500/500 812 2004-01-27 14:36 libusb-0.1.8/doc/Makefile.am
-rw-r--r-- 500/500 2155 2004-01-27 14:36 libusb-0.1.8/doc/manual.sgml
-rw-r--r-- 500/500 1901 2004-01-27 14:36 libusb-0.1.8/doc/api.sgml
-rw-r--r-- 500/500 2790 2004-01-27 14:36 libusb-0.1.8/doc/examples.sgml
-rw-r--r-- 500/500 25786 2004-01-27 14:36 libusb-0.1.8/doc/functions.sgml
-rw-r--r-- 500/500 1591 2004-01-27 14:36 libusb-0.1.8/doc/intro.sgml
-rw-r--r-- 500/500 3706 2004-01-27 14:36 libusb-0.1.8/doc/website.dsl
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd libusb-0.1.8
+ exit 0
Executing(%build): /bin/sh -e /home/ljump/TST/iMX6/boundary/ltib/tmp/rpm-tmp.10791
+ umask 022
+ cd /home/ljump/TST/iMX6/boundary/ltib/rpm/BUILD
+ cd libusb-0.1.8
+ ENDIAN=little
+ case $ENDIAN in
+ conf_opts=ac_cv_c_bigendian=no
+ ./configure --prefix=/usr --host=arm-linux --build=i686-pc-linux-gnu --disable-build-docs ac_cv_c_bigendian=no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/home/ljump/TST/iMX6/boundary/ltib/rpm/BUILD/libusb-0.1.8/missing: Unknown `--run' option
Try `/home/ljump/TST/iMX6/boundary/ltib/rpm/BUILD/libusb-0.1.8/missing --help' for more information
configure: WARNING: `missing' script is too old or missing
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for arm-linux-strip... arm-linux-strip
checking build system type... i686-pc-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking for style of include used by make... GNU
checking for arm-linux-gcc... gcc
checking for C compiler default output... 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 gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... ld
checking if the linker (ld) is GNU ld... yes
checking for ld option to reload object files... -r
checking for BSD-compatible nm... /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-linux-nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )
checking how to run the C preprocessor... 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 arm-linux-g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for arm-linux-g77... no
checking for arm-linux-f77... no
checking for arm-linux-xlf... no
checking for arm-linux-frt... no
checking for arm-linux-pgf77... no
checking for arm-linux-fl32... no
checking for arm-linux-af77... no
checking for arm-linux-fort77... no
checking for arm-linux-f90... no
checking for arm-linux-xlf90... no
checking for arm-linux-pgf90... no
checking for arm-linux-epcf90... no
checking for arm-linux-f95... no
checking for arm-linux-fort... no
checking for arm-linux-xlf95... no
checking for arm-linux-lf95... no
checking for arm-linux-g95... no
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fl32... no
checking for af77... no
checking for fort77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for lf95... no
checking for g95... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-linux-nm -B output from gcc object... ok
checking for objdir... .libs
checking for arm-linux-ar... ar
checking for arm-linux-ranlib... arm-linux-ranlib
checking for arm-linux-strip... (cached) arm-linux-strip
checking for arm-linux-file... no
checking for file... /usr/bin/file
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
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 g++... ld
checking if the linker (ld) is GNU ld... yes
checking whether the g++ linker (ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
appending configuration tag "F77" to libtool
checking whether to enable maintainer-specific portions of Makefiles... no
checking for what USB OS support... Linux
checking for arm-linux-gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for gcc option to accept ANSI C... none needed
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... (cached) 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 if we should build the documentation... no
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 tests/Makefile
config.status: creating README
config.status: creating INSTALL.libusb
config.status: creating usb.h
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing default commands
+ make
make all-recursive
make[1]: Entering directory `/home/ljump/TST/iMX6/boundary/ltib/rpm/BUILD/libusb-0.1.8'
Making all in .
make[2]: Entering directory `/home/ljump/TST/iMX6/boundary/ltib/rpm/BUILD/libusb-0.1.8'
if /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -MT usb.lo -MD -MP -MF ".deps/usb.Tpo" \
-c -o usb.lo `test -f 'usb.c' || echo './'`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 gcc -DHAVE_CONFIG_H -I. -I. -I. -MT error.lo -MD -MP -MF ".deps/error.Tpo" \
-c -o error.lo `test -f 'error.c' || echo './'`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 gcc -DHAVE_CONFIG_H -I. -I. -I. -MT descriptors.lo -MD -MP -MF ".deps/descriptors.Tpo" \
-c -o descriptors.lo `test -f 'descriptors.c' || echo './'`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 gcc -DHAVE_CONFIG_H -I. -I. -I. -MT linux.lo -MD -MP -MF ".deps/linux.Tpo" \
-c -o linux.lo `test -f 'linux.c' || echo './'`linux.c; \
then mv -f ".deps/linux.Tpo" ".deps/linux.Plo"; \
else rm -f ".deps/linux.Tpo"; exit 1; \
fi
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I. -MT error.lo -MD -MP -MF .deps/error.Tpo -c error.c -fPIC -DPIC -DPIC -o error.o
rm -f .libs/linux.lo
gcc -DHAVE_CONFIG_H -I. -I. -I. -MT linux.lo -MD -MP -MF .deps/linux.Tpo -c linux.c -fPIC -DPIC -DPIC -o linux.o
mv -f error.o .libs/error.lo
rm -f .libs/descriptors.lo
rm -f .libs/usb.lo
gcc -DHAVE_CONFIG_H -I. -I. -I. -MT error.lo -MD -MP -MF .deps/error.Tpo -c error.c -o error.o >/dev/null 2>&1
gcc -DHAVE_CONFIG_H -I. -I. -I. -MT usb.lo -MD -MP -MF .deps/usb.Tpo -c usb.c -fPIC -DPIC -DPIC -o usb.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -MT descriptors.lo -MD -MP -MF .deps/descriptors.Tpo -c descriptors.c -fPIC -DPIC -DPIC -o descriptors.o
mv -f linux.o .libs/linux.lo
gcc -DHAVE_CONFIG_H -I. -I. -I. -MT linux.lo -MD -MP -MF .deps/linux.Tpo -c linux.c -o linux.o >/dev/null 2>&1
mv -f .libs/error.lo error.lo
mv -f usb.o .libs/usb.lo
gcc -DHAVE_CONFIG_H -I. -I. -I. -MT usb.lo -MD -MP -MF .deps/usb.Tpo -c usb.c -o usb.o >/dev/null 2>&1
descriptors.c: In function 'usb_get_descriptor_by_endpoint':
descriptors.c:15:3: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
descriptors.c: In function 'usb_get_descriptor':
descriptors.c:24:3: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
descriptors.c: In function 'usb_parse_endpoint':
descriptors.c:58:5: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
descriptors.c: In function 'usb_parse_interface':
descriptors.c:144:5: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
descriptors.c:221:5: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
descriptors.c: In function 'usb_parse_configuration':
descriptors.c:258:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
descriptors.c:277:3: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
descriptors.c: In function 'usb_fetch_and_parse_descriptors':
descriptors.c:418:3: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
mv -f descriptors.o .libs/descriptors.lo
gcc -DHAVE_CONFIG_H -I. -I. -I. -MT descriptors.lo -MD -MP -MF .deps/descriptors.Tpo -c descriptors.c -o descriptors.o >/dev/null 2>&1
mv -f .libs/usb.lo usb.lo
mv -f .libs/descriptors.lo descriptors.lo
mv -f .libs/linux.lo linux.lo
/bin/sh ./libtool --mode=link gcc -o libusb.la -rpath /usr/lib -version-info 8:0:4 -release 0.1 -export-dynamic usb.lo error.lo descriptors.lo linux.lo
rm -fr .libs/libusb.la .libs/libusb.* .libs/libusb-0.1.*
gcc -shared usb.lo error.lo descriptors.lo linux.lo -Wl,-soname -Wl,libusb-0.1.4 -o .libs/libusb-0.1.4.4.0
(cd .libs && rm -f libusb-0.1.4 && ln -s libusb-0.1.4.4.0 libusb-0.1.4)
(cd .libs && rm -f libusb && ln -s libusb-0.1.4.4.0 libusb)
ar cru .libs/libusb.a usb.o error.o descriptors.o linux.o
arm-linux-ranlib .libs/libusb.a
creating libusb.la
(cd .libs && rm -f libusb.la && ln -s ../libusb.la libusb.la)
make[2]: Leaving directory `/home/ljump/TST/iMX6/boundary/ltib/rpm/BUILD/libusb-0.1.8'
Making all in tests
make[2]: Entering directory `/home/ljump/TST/iMX6/boundary/ltib/rpm/BUILD/libusb-0.1.8/tests'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -g -O2 -g -Wall -MT testlibusb.o -MD -MP -MF ".deps/testlibusb.Tpo" \
-c -o testlibusb.o `test -f 'testlibusb.c' || echo './'`testlibusb.c; \
then mv -f ".deps/testlibusb.Tpo" ".deps/testlibusb.Po"; \
else rm -f ".deps/testlibusb.Tpo"; exit 1; \
fi
/bin/sh ../libtool --mode=link gcc -g -O2 -g -Wall -o testlibusb testlibusb.o ../libusb.la
mkdir .libs
gcc -g -O2 -g -Wall -o .libs/testlibusb testlibusb.o ../.libs/libusb
creating testlibusb
make[2]: Leaving directory `/home/ljump/TST/iMX6/boundary/ltib/rpm/BUILD/libusb-0.1.8/tests'
Making all in doc
make[2]: Entering directory `/home/ljump/TST/iMX6/boundary/ltib/rpm/BUILD/libusb-0.1.8/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/ljump/TST/iMX6/boundary/ltib/rpm/BUILD/libusb-0.1.8/doc'
make[1]: Leaving directory `/home/ljump/TST/iMX6/boundary/ltib/rpm/BUILD/libusb-0.1.8'
+ exit 0
Executing(%install): /bin/sh -e /home/ljump/TST/iMX6/boundary/ltib/tmp/rpm-tmp.36681
+ umask 022
+ cd /home/ljump/TST/iMX6/boundary/ltib/rpm/BUILD
+ cd libusb-0.1.8
+ rm -rf /home/ljump/TST/iMX6/boundary/ltib/tmp/libusb
+ make install DESTDIR=/home/ljump/TST/iMX6/boundary/ltib/tmp/libusb//opt/freescale/rootfs/arm
Making install in .
make[1]: Entering directory `/home/ljump/TST/iMX6/boundary/ltib/rpm/BUILD/libusb-0.1.8'
make[2]: Entering directory `/home/ljump/TST/iMX6/boundary/ltib/rpm/BUILD/libusb-0.1.8'
/bin/sh ./mkinstalldirs /home/ljump/TST/iMX6/boundary/ltib/tmp/libusb//opt/freescale/rootfs/arm/usr/bin
/bin/sh ./mkinstalldirs /home/ljump/TST/iMX6/boundary/ltib/tmp/libusb//opt/freescale/rootfs/arm/usr/lib
/bin/sh ./mkinstalldirs /home/ljump/TST/iMX6/boundary/ltib/tmp/libusb//opt/freescale/rootfs/arm/usr/include
mkdir /home/ljump/TST/iMX6/boundary/ltib/tmp/libusb
mkdir /home/ljump/TST/iMX6/boundary/ltib/tmp/libusb
mkdir /home/ljump/TST/iMX6/boundary/ltib/tmp/libusb/opt
mkdir /home/ljump/TST/iMX6/boundary/ltib/tmp/libusb/opt
mkdir /home/ljump/TST/iMX6/boundary/ltib/tmp/libusb/opt/freescale
mkdir: mkdir: mkdir /home/ljump/TST/iMX6/boundary/ltib/tmp/libusb/opt/freescale/rootfs
cannot create directory `/home/ljump/TST/iMX6/boundary/ltib/tmp/libusb': File exists
cannot create directory `/home/ljump/TST/iMX6/boundary/ltib/tmp/libusb/opt': File existsmkdir /home/ljump/TST/iMX6/boundary/ltib/tmp/libusb/opt/freescale/rootfs
mkdir /home/ljump/TST/iMX6/boundary/ltib/tmp/libusb/opt/freescale/rootfs/arm
mkdir /home/ljump/TST/iMX6/boundary/ltib/tmp/libusb/opt/freescale/rootfs/arm
mkdir: mkdir /home/ljump/TST/iMX6/boundary/ltib/tmp/libusb/opt/freescale/rootfs/arm/usr
mkdir: cannot create directory `/home/ljump/TST/iMX6/boundary/ltib/tmp/libusb/opt/freescale/rootfs': File exists
mkdir /home/ljump/TST/iMX6/boundary/ltib/tmp/libusb/opt/freescale/rootfs/arm/usr
cannot create directory `/home/ljump/TST/iMX6/boundary/ltib/tmp/libusb/opt/freescale/rootfs/arm': File exists
mkdir /home/ljump/TST/iMX6/boundary/ltib/tmp/libusb/opt/freescale/rootfs/arm/usr
mkdir /home/ljump/TST/iMX6/boundary/ltib/tmp/libusb/opt/freescale/rootfs/arm/usr/include
mkdir: mkdir: cannot create directory `/home/ljump/TST/iMX6/boundary/ltib/tmp/libusb/opt/freescale/rootfs/arm/usr': File exists
mkdir /home/ljump/TST/iMX6/boundary/ltib/tmp/libusb/opt/freescale/rootfs/arm/usr/bin
cannot create directory `/home/ljump/TST/iMX6/boundary/ltib/tmp/libusb/opt/freescale/rootfs/arm/usr': File exists
mkdir /home/ljump/TST/iMX6/boundary/ltib/tmp/libusb/opt/freescale/rootfs/arm/usr/lib
/usr/bin/install -c -m 644 usb.h /home/ljump/TST/iMX6/boundary/ltib/tmp/libusb//opt/freescale/rootfs/arm/usr/include/usb.h
/bin/sh ./libtool --mode=install /usr/bin/install -c libusb.la /home/ljump/TST/iMX6/boundary/ltib/tmp/libusb//opt/freescale/rootfs/arm/usr/lib/libusb.la
/usr/bin/install -c libusb-config /home/ljump/TST/iMX6/boundary/ltib/tmp/libusb//opt/freescale/rootfs/arm/usr/bin/libusb-config
/usr/bin/install -c .libs/libusb-0.1.4.4.0 /home/ljump/TST/iMX6/boundary/ltib/tmp/libusb//opt/freescale/rootfs/arm/usr/lib/libusb-0.1.4.4.0
(cd /home/ljump/TST/iMX6/boundary/ltib/tmp/libusb//opt/freescale/rootfs/arm/usr/lib && rm -f libusb-0.1.4 && ln -s libusb-0.1.4.4.0 libusb-0.1.4)
(cd /home/ljump/TST/iMX6/boundary/ltib/tmp/libusb//opt/freescale/rootfs/arm/usr/lib && rm -f libusb && ln -s libusb-0.1.4.4.0 libusb)
/usr/bin/install -c .libs/libusb.lai /home/ljump/TST/iMX6/boundary/ltib/tmp/libusb//opt/freescale/rootfs/arm/usr/lib/libusb.la
/usr/bin/install -c .libs/libusb.a /home/ljump/TST/iMX6/boundary/ltib/tmp/libusb//opt/freescale/rootfs/arm/usr/lib/libusb.a
arm-linux-ranlib /home/ljump/TST/iMX6/boundary/ltib/tmp/libusb//opt/freescale/rootfs/arm/usr/lib/libusb.a
chmod 644 /home/ljump/TST/iMX6/boundary/ltib/tmp/libusb//opt/freescale/rootfs/arm/usr/lib/libusb.a
libtool: install: warning: remember to run `libtool --finish /usr/lib'
make[2]: Leaving directory `/home/ljump/TST/iMX6/boundary/ltib/rpm/BUILD/libusb-0.1.8'
make[1]: Leaving directory `/home/ljump/TST/iMX6/boundary/ltib/rpm/BUILD/libusb-0.1.8'
Making install in tests
make[1]: Entering directory `/home/ljump/TST/iMX6/boundary/ltib/rpm/BUILD/libusb-0.1.8/tests'
make[2]: Entering directory `/home/ljump/TST/iMX6/boundary/ltib/rpm/BUILD/libusb-0.1.8/tests'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/ljump/TST/iMX6/boundary/ltib/rpm/BUILD/libusb-0.1.8/tests'
make[1]: Leaving directory `/home/ljump/TST/iMX6/boundary/ltib/rpm/BUILD/libusb-0.1.8/tests'
Making install in doc
make[1]: Entering directory `/home/ljump/TST/iMX6/boundary/ltib/rpm/BUILD/libusb-0.1.8/doc'
make[2]: Entering directory `/home/ljump/TST/iMX6/boundary/ltib/rpm/BUILD/libusb-0.1.8/doc'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/ljump/TST/iMX6/boundary/ltib/rpm/BUILD/libusb-0.1.8/doc'
make[1]: Leaving directory `/home/ljump/TST/iMX6/boundary/ltib/rpm/BUILD/libusb-0.1.8/doc'
+ rm -f /home/ljump/TST/iMX6/boundary/ltib/tmp/libusb//opt/freescale/rootfs/arm//usr/lib/libusb.la
+ exit 0
Processing files: libusb-0.1.8-1
Finding Provides: (using /opt/freescale/ltib/usr/lib/rpm/find-provides)...
Finding Requires: (using /opt/freescale/ltib/usr/lib/rpm/find-requires)...
/usr/bin/ldd: line 161: /lib64/ld-linux-x86-64.so.2: cannot execute binary file
/usr/bin/ldd: line 161: /lib64/ld-linux-x86-64.so.2: cannot execute binary file
/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-none-linux-gnueabi-objdump: /home/ljump/TST/iMX6/boundary/ltib/tmp/libusb/opt/freescale/rootfs/arm/usr/bin/libusb-config: File format not recognized
PreReq: rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1
Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1
Requires: libc.so.6(GLIBC_2.4)
Wrote: /home/ljump/TST/iMX6/boundary/ltib/rpm/RPMS/arm/libusb-0.1.8-1.arm.rpm
Executing(%clean): /bin/sh -e /home/ljump/TST/iMX6/boundary/ltib/tmp/rpm-tmp.38384
+ umask 022
+ cd /home/ljump/TST/iMX6/boundary/ltib/rpm/BUILD
+ cd libusb-0.1.8
+ rm -rf /home/ljump/TST/iMX6/boundary/ltib/tmp/libusb
+ exit 0
Build time for libusb: 8 seconds
sudo /opt/freescale/ltib/usr/bin/rpm --root /home/ljump/TST/iMX6/boundary/ltib/rootfs --dbpath /var/lib/rpm -e --allmatches --nodeps --define '_tmppath /tmp/ltib' libusb 2>/dev/null
sudo /opt/freescale/ltib/usr/bin/rpm --root /home/ljump/TST/iMX6/boundary/ltib/rootfs --dbpath /var/lib/rpm --prefix / --ignorearch -ivh --force --excludedocs --define '_tmppath /tmp/ltib' /home/ljump/TST/iMX6/boundary/ltib/rpm/RPMS/arm/libusb-0.1.8-1.arm.rpm
error: failed to stat /home/ljump/.gvfs: Permission denied
Preparing... ########################################### [100%]
1:libusb ########################################### [100%]
Processing: usbutils
======================
Is there a tool to determine if the final libusb library contains non PIC symbol linkage?
Are you using the same toolchain (gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain)?