Yocto 2.5 ERROR building mtd-utils and libusb for colibri-vf

Hi folkes,
i have a problem building the “angstrom-lxde-image” for colibri-vf Yocto 2.5, build machine is based on Ubuntu 14.04.3 64 bit.

Any help will be appreciated,
Torsten

Here is the Error output:

ERROR: Function failed: do_compile (log file is located at /home/boss/Desktop/VF61_Yocto/oe-core/build/out-glibc/work/x86_64-linux/imx-loader-native/git-r1/temp/log.do_compile.25730)
ERROR: Logfile of failure stored in: /home/boss/Desktop/VF61_Yocto/oe-core/build/out-glibc/work/x86_64-linux/imx-loader-native/git-r1/temp/log.do_compile.25730
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 4 CC=gcc -m32 CXX=g++ -m32
| gcc -m32 -o imx_usb imx_usb.o imx_sdp.o -L/home/boss/Desktop/VF61_Yocto/oe-core/build/out-glibc/sysroots/x86_64-linux/usr/lib -L/home/boss/Desktop/VF61_Yocto/oe-core/build/out-glibc/sysroots/x86_64-linux/lib -Wl,-rpath-link,/home/boss/Desktop/VF61_Yocto/oe-core/build/out-glibc/sysroots/x86_64-linux/usr/lib -Wl,-rpath-link,/home/boss/Desktop/VF61_Yocto/oe-core/build/out-glibc/sysroots/x86_64-linux/lib -Wl,-rpath,/home/boss/Desktop/VF61_Yocto/oe-core/build/out-glibc/sysroots/x86_64-linux/usr/lib -Wl,-rpath,/home/boss/Desktop/VF61_Yocto/oe-core/build/out-glibc/sysroots/x86_64-linux/lib -Wl,-O1 pkg-config --libs libusb-1.0
| /usr/bin/ld: skipping incompatible /home/boss/Desktop/VF61_Yocto/oe-core/build/out-glibc/sysroots/x86_64-linux/lib/libusb-1.0.so when searching for -lusb-1.0
| /usr/bin/ld: skipping incompatible /home/boss/Desktop/VF61_Yocto/oe-core/build/out-glibc/sysroots/x86_64-linux/lib/libusb-1.0.a when searching for -lusb-1.0
| /usr/bin/ld: skipping incompatible /home/boss/Desktop/VF61_Yocto/oe-core/build/out-glibc/sysroots/x86_64-linux/lib/libusb-1.0.so when searching for -lusb-1.0
| /usr/bin/ld: skipping incompatible /home/boss/Desktop/VF61_Yocto/oe-core/build/out-glibc/sysroots/x86_64-linux/lib/libusb-1.0.a when searching for -lusb-1.0
| /usr/bin/ld: cannot find -lusb-1.0
| collect2: error: ld returned 1 exit status
| make: *** [imx_usb] Error 1
| ERROR: oe_runmake failed
| WARNING: /home/boss/Desktop/VF61_Yocto/oe-core/build/out-glibc/work/x86_64-linux/imx-loader-native/git-r1/temp/run.do_compile.25730:1 exit 1 from
| exit 1
| ERROR: Function failed: do_compile (log file is located at /home/boss/Desktop/VF61_Yocto/oe-core/build/out-glibc/work/x86_64-linux/imx-loader-native/git-r1/temp/log.do_compile.25730)
ERROR: Task 283 (virtual:native:/home/boss/Desktop/VF61_Yocto/oe-core/build/…/stuff/meta-toradex/recipes-devtools/imx-loader/imx-loader_git.bb, do_compile) failed with exit code ‘1’
ERROR: Function failed: do_compile (log file is located at /home/boss/Desktop/VF61_Yocto/oe-core/build/out-glibc/work/x86_64-linux/mtd-utils-native/1.5.1+gitAUTOINC+9f107132a6-r0/temp/log.do_compile.25726)
ERROR: Logfile of failure stored in: /home/boss/Desktop/VF61_Yocto/oe-core/build/out-glibc/work/x86_64-linux/mtd-utils-native/1.5.1+gitAUTOINC+9f107132a6-r0/temp/log.do_compile.25726
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make CC=gcc RANLIB=ranlib AR=ar CFLAGS=-isystem/home/boss/Desktop/VF61_Yocto/oe-core/build/out-glibc/sysroots/x86_64-linux/usr/include -O2 -pipe -I/home/boss/Desktop/VF61_Yocto/oe-core/build/out-glibc/work/x86_64-linux/mtd-utils-native/1.5.1+gitAUTOINC+9f107132a6-r0/git//include -DWITHOUT_XATTR -m32 BUILDDIR=/home/boss/Desktop/VF61_Yocto/oe-core/build/out-glibc/work/x86_64-linux/mtd-utils-native/1.5.1+gitAUTOINC+9f107132a6-r0/git/
| CHK include/version.h
| LD mkfs.jffs2
| /usr/bin/ld: skipping incompatible /home/boss/Desktop/VF61_Yocto/oe-core/build/out-glibc/sysroots/x86_64-linux/usr/lib/libz.so when searching for -lz
| /usr/bin/ld: skipping incompatible /home/boss/Desktop/VF61_Yocto/oe-core/build/out-glibc/sysroots/x86_64-linux/usr/lib/libz.a when searching for -lz
| /usr/bin/ld: cannot find -lz
| /usr/bin/ld: skipping incompatible /home/boss/Desktop/VF61_Yocto/oe-core/build/out-glibc/sysroots/x86_64-linux/usr/lib/liblzo2.so when searching for -llzo2
| /usr/bin/ld: skipping incompatible /home/boss/Desktop/VF61_Yocto/oe-core/build/out-glibc/sysroots/x86_64-linux/usr/lib/liblzo2.a when searching for -llzo2
| /usr/bin/ld: cannot find -llzo2
| collect2: error: ld returned 1 exit status
| make: *** [/home/boss/Desktop/VF61_Yocto/oe-core/build/out-glibc/work/x86_64-linux/mtd-utils-native/1.5.1+gitAUTOINC+9f107132a6-r0/git/mkfs.jffs2] Error 1
| ERROR: oe_runmake failed
| WARNING: /home/boss/Desktop/VF61_Yocto/oe-core/build/out-glibc/work/x86_64-linux/mtd-utils-native/1.5.1+gitAUTOINC+9f107132a6-r0/temp/run.do_compile.25726:1 exit 1 from
| exit 1
| ERROR: Function failed: do_compile (log file is located at /home/boss/Desktop/VF61_Yocto/oe-core/build/out-glibc/work/x86_64-linux/mtd-utils-native/1.5.1+gitAUTOINC+9f107132a6-r0/temp/log.do_compile.25726)
ERROR: Task 160 (virtual:native:/home/boss/Desktop/VF61_Yocto/oe-core/build/…/stuff/openembedded-core/meta/recipes-devtools/mtd/mtd-utils_git.bb, do_compile) failed with exit code ‘1’
NOTE: Tasks Summary: Attempted 6339 tasks of which 6325 didn’t need to be rerun and 2 failed.
NOTE: Writing buildhistory
No currently running tasks (6339 of 6356)

Summary: 2 tasks failed:
virtual:native:/home/boss/Desktop/VF61_Yocto/oe-core/build/…/stuff/meta-toradex/recipes-devtools/imx-loader/imx-loader_git.bb, do_compile
virtual:native:/home/boss/Desktop/VF61_Yocto/oe-core/build/…/stuff/openembedded-core/meta/recipes-devtools/mtd/mtd-utils_git.bb, do_compile
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

Dear Torsten

The build fails when imx-loader and mtd-utils for x86 are build.
libusb-1.0.so, libz.so and liblzo2.so are not found. Note that they are needed as 32bit libraries.

I guess you’re missing some of the prerequisites as outlined here:

Regards
Max

Hi Max,

you are right, i have done the steps to setup also the 32 bit environment but somehow those libs you mentioned where missing.

thank you very much,
Torsten