<?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>4850</bug_id>
          
          <creation_ts>2013-07-15 14:19:14 +0000</creation_ts>
          <short_desc>Error building libglu</short_desc>
          <delta_ts>2013-07-18 19:44:45 +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>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.5 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="John Weber">rjohnweber</reporter>
          <assigned_to name="Otavio Salvador">otavio</assigned_to>
          
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>34571</commentid>
    <comment_count>0</comment_count>
    <who name="John Weber">rjohnweber</who>
    <bug_when>2013-07-15 14:19:14 +0000</bug_when>
    <thetext>Starting from a semi-clean build (new build/tmp, but with preexisting shared state cache), and a freshly updated set of metadata, I ran bitbake fsl-image-test, here is the header printout:

john@leo:~/fsl-community-bsp/build$ MACHINE=wandboard-dual bitbake fsl-image-test
Loading cache: 100% |###########################################| ETA:  00:00:00
Loaded 1706 entries from dependency cache.

Build Configuration:
BB_VERSION        = &quot;1.19.1&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-12.04&quot;
TARGET_SYS        = &quot;arm-poky-linux-gnueabi&quot;
MACHINE           = &quot;wandboard-dual&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.4+snapshot-20130712&quot;
TUNE_FEATURES     = &quot;armv7a vfp neon&quot;
TARGET_FPU        = &quot;vfp-neon&quot;
meta
meta-yocto        = &quot;(nobranch):a63229917a5708de2d161aba0d67168ce0da6365&quot;
meta-oe           = &quot;(nobranch):c383d6230942bb1558cee02764bced09031cb70f&quot;
meta-fsl-arm      = &quot;master-next:e2f010bec19aef73b4731cb4f66c7412d59b265c&quot;
meta-fsl-arm-extra = &quot;(nobranch):3898b9dfa4bc81791665179d8854d47a5080060e&quot;
meta-fsl-demos    = &quot;(nobranch):eb6bd0d3e799c9053f80104194a0f2a37fb690e2&quot;

~snip~

| /home/john/fsl-community-bsp/build/tmp/sysroots/x86_64-linux/usr/libexec/armv7a-vfp-neon-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.1/ld: cannot find -lGL
| collect2: error: ld returned 1 exit status
| make: *** [libGLU.la] Error 1
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (log file is located at /home/john/fsl-community-bsp/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/libglu/2_9.0.0-0/temp/log.do_compile.7553)
ERROR: Task 4474 (/home/john/fsl-community-bsp/sources/poky/meta/recipes-graphics/mesa/libglu_9.0.0.bb, do_compile) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 2355 tasks of which 2351 didn&apos;t need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

Summary: 1 task failed:

/home/john/fsl-community-bsp/sources/poky/meta/recipes-graphics/mesa/libglu_9.0.0.bb, do_compile
Summary: There was 1 ERROR message shown, returning a non-zero exit code. 

- I encountered the same exact issue with libglu (not able to find -lGL or libGL.so)
- Running bitbake gpu-viv-bin-mx6q followed by bitbake fsl-image-test worked to create an image

I&apos;m fairly sure that libGL.so is not being populated into the sysroot before libglu runs its do_compile task, so it seems to be a dependency problem to me. But others should see this problem as well and they are not.

Then, I started from a brand new shared state cache and new build/tmp just to eliminate the possibility of any issues that could be part of my personal setup here.  I had the same result.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34572</commentid>
    <comment_count>1</comment_count>
    <who name="John Weber">rjohnweber</who>
    <bug_when>2013-07-15 14:19:59 +0000</bug_when>
    <thetext>Forgot to add what could be an associated issue:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=4848</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34575</commentid>
    <comment_count>2</comment_count>
    <who name="Otavio Salvador">otavio</who>
    <bug_when>2013-07-15 15:12:17 +0000</bug_when>
    <thetext>Oh right; I think I understand the issue now.

Let me think a bit about how to fix it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34683</commentid>
    <comment_count>3</comment_count>
    <who name="Otavio Salvador">otavio</who>
    <bug_when>2013-07-18 19:44:45 +0000</bug_when>
    <thetext>Applied in ea8d00398843abe64c80bd89a9bdfede72afffd1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>