<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>6098</bug_id>
          
          <creation_ts>2014-04-02 10:07:00 +0000</creation_ts>
          <short_desc>u-boot-fslc-v2014.01-r0: task do_compile: Failed</short_desc>
          <delta_ts>2014-09-29 10:17:36 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BSPs</product>
          <component>bsps-meta-fsl-arm</component>
          <version>1.6</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.6 M5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Cristiana Voicu">cristiana.voicu</reporter>
          <assigned_to name="Otavio Salvador">otavio</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>richard.purdie</cc>
          
          <qa_contact name="Andra Necula">andrax.g.necula</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>42136</commentid>
    <comment_count>0</comment_count>
    <who name="Cristiana Voicu">cristiana.voicu</who>
    <bug_when>2014-04-02 10:07:00 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42180</commentid>
    <comment_count>1</comment_count>
    <who name="Otavio Salvador">otavio</who>
    <bug_when>2014-04-02 17:34:41 +0000</bug_when>
    <thetext>I am trying to reproduce it in my machine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42244</commentid>
    <comment_count>2</comment_count>
    <who name="Otavio Salvador">otavio</who>
    <bug_when>2014-04-03 18:23:28 +0000</bug_when>
    <thetext>I couldn&apos;t reproduce the issue in my developer machine. I am wondering why it has break in the autobuilder...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42531</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-04-10 14:23:03 +0000</bug_when>
    <thetext>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&apos;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 = &quot;${WORKDIR}/git&quot;
 #        used for generating the boot logo and other tools used
 #        during the build process.
 EXTRA_OEMAKE += &apos;HOSTCC=&quot;${BUILD_CC} ${BUILD_CPPFLAGS}&quot; \
-                 HOSTLDFLAGS=&quot;-L${STAGING_BASE_LIBDIR_NATIVE} -L${STAGING_LIBDIR_NATIVE}&quot; \
+                 HOSTLDFLAGS=&quot;${BUILD_LDFLAGS}&quot; \
                  HOSTSTRIP=true&apos;
 
 PACKAGE_ARCH = &quot;${MACHINE_ARCH}&quot;

The BUILD_LDFLAGS contain the needed rpath linker directives.

It should be possible to reproduce on a host where there is no &quot;native&quot; libssl for it to use instead.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42797</commentid>
    <comment_count>4</comment_count>
    <who name="Otavio Salvador">otavio</who>
    <bug_when>2014-04-19 20:35:54 +0000</bug_when>
    <thetext>Fixed in http://git.yoctoproject.org/cgit/cgit.cgi/meta-fsl-arm/commit/?id=bf431b06a27c2be728c93fedb0e9d2eb4d29ec85</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45928</commentid>
    <comment_count>5</comment_count>
    <who name="Andra Necula">andrax.g.necula</who>
    <bug_when>2014-09-29 10:17:36 +0000</bug_when>
    <thetext>Verified issue solved
poky: 8ac8eca2e3bd8c78e2b31ea974930ed0243258a3
meta-fsl-arm : 2680f54d02fa6efe4cd2aaef7bda9e46cf3e9672</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>