The new versiong of u-boot-fslc fails at compilation. error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory More info: http://autobuilder.yoctoproject.org/main/builders/nightly-fsl-arm/builds/28/steps/BuildImages_2/logs/stdio
I am trying to reproduce it in my machine.
I couldn't reproduce the issue in my developer machine. I am wondering why it has break in the autobuilder...
Notice how the binary is compiled: gcc -isystem/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-fsl-arm/build/build/tmp/sysroots/x86_64-linux/usr/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -include /home/pokybuild/yocto-autobuilder/yocto-slave/nightly-fsl-arm/build/build/tmp/work/imx28evk-poky-linux-gnueabi/u-boot-fslc/v2014.01-r0/git/include/libfdt_env.h -idirafter /home/pokybuild/yocto-autobuilder/yocto-slave/nightly-fsl-arm/build/build/tmp/work/imx28evk-poky-linux-gnueabi/u-boot-fslc/v2014.01-r0/git/include -idirafter /home/pokybuild/yocto-autobuilder/yocto-slave/nightly-fsl-arm/build/build/tmp/work/imx28evk-poky-linux-gnueabi/u-boot-fslc/v2014.01-r0/git/arch/arm/include -idirafter /home/pokybuild/yocto-autobuilder/yocto-slave/nightly-fsl-arm/build/build/tmp/work/imx28evk-poky-linux-gnueabi/u-boot-fslc/v2014.01-r0/git/include -I /home/pokybuild/yocto-autobuilder/yocto-slave/nightly-fsl-arm/build/build/tmp/work/imx28evk-poky-linux-gnueabi/u-boot-fslc/v2014.01-r0/git/lib/libfdt -I /home/pokybuild/yocto-autobuilder/yocto-slave/nightly-fsl-arm/build/build/tmp/work/imx28evk-poky-linux-gnueabi/u-boot-fslc/v2014.01-r0/git/tools -DCONFIG_SYS_TEXT_BASE=0x40000100 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE -pedantic -DCONFIG_MXS -L/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-fsl-arm/build/build/tmp/sysroots/x86_64-linux/lib -L/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-fsl-arm/build/build/tmp/sysroots/x86_64-linux/usr/lib -o mkimage aisimage.o image-sig.o crc32.o default_image.o fit_image.o image-fit.o image-host.o image.o imagetool.o imximage.o kwbimage.o md5.o mkimage.o mxsimage.o omapimage.o os_support.o pblimage.o sha1.o ublimage.o fdt.o fdt_ro.o fdt_rw.o fdt_strerror.o fdt_wip.o -lssl -lcrypto There is no rpath in there yet we're expecting it to find libssl from the native sysroot. I believe the problem is: diff --git a/recipes-bsp/u-boot/u-boot-fslc.inc b/recipes-bsp/u-boot/u-boot-fslc.inc index 485c252..0475c8c 100644 --- a/recipes-bsp/u-boot/u-boot-fslc.inc +++ b/recipes-bsp/u-boot/u-boot-fslc.inc @@ -22,7 +22,7 @@ S = "${WORKDIR}/git" # used for generating the boot logo and other tools used # during the build process. EXTRA_OEMAKE += 'HOSTCC="${BUILD_CC} ${BUILD_CPPFLAGS}" \ - HOSTLDFLAGS="-L${STAGING_BASE_LIBDIR_NATIVE} -L${STAGING_LIBDIR_NATIVE}" \ + HOSTLDFLAGS="${BUILD_LDFLAGS}" \ HOSTSTRIP=true' PACKAGE_ARCH = "${MACHINE_ARCH}" The BUILD_LDFLAGS contain the needed rpath linker directives. It should be possible to reproduce on a host where there is no "native" libssl for it to use instead.
Fixed in http://git.yoctoproject.org/cgit/cgit.cgi/meta-fsl-arm/commit/?id=bf431b06a27c2be728c93fedb0e9d2eb4d29ec85
Verified issue solved poky: 8ac8eca2e3bd8c78e2b31ea974930ed0243258a3 meta-fsl-arm : 2680f54d02fa6efe4cd2aaef7bda9e46cf3e9672