Bug 6098 - u-boot-fslc-v2014.01-r0: task do_compile: Failed
Summary: u-boot-fslc-v2014.01-r0: task do_compile: Failed
Status: VERIFIED FIXED
Alias: None
Product: BSPs
Classification: Build System, Metadata & Runtime
Component: bsps-meta-fsl-arm (show other bugs)
Version: 1.6
Hardware: x86 Multiple
: High normal
Target Milestone: 1.6 M5
Assignee: Otavio Salvador
QA Contact: Andra Necula
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-04-02 10:07 UTC by Cristiana Voicu
Modified: 2014-09-29 10:17 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cristiana Voicu 2014-04-02 10:07:00 UTC
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
Comment 1 Otavio Salvador 2014-04-02 17:34:41 UTC
I am trying to reproduce it in my machine.
Comment 2 Otavio Salvador 2014-04-03 18:23:28 UTC
I couldn't reproduce the issue in my developer machine. I am wondering why it has break in the autobuilder...
Comment 3 Richard Purdie 2014-04-10 14:23:03 UTC
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.
Comment 5 Andra Necula 2014-09-29 10:17:36 UTC
Verified issue solved
poky: 8ac8eca2e3bd8c78e2b31ea974930ed0243258a3
meta-fsl-arm : 2680f54d02fa6efe4cd2aaef7bda9e46cf3e9672