<?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>2307</bug_id>
          
          <creation_ts>2012-04-16 17:26:20 +0000</creation_ts>
          <short_desc>autogen-native do_compile failure</short_desc>
          <delta_ts>2012-04-16 21:32:11 +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>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>1.2</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>(1.2)</status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>1.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Darren Hart">dvhart</reporter>
          <assigned_to name="Nitin Kamble">nitin.a.kamble</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <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>20463</commentid>
    <comment_count>0</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-04-16 17:26:20 +0000</bug_when>
    <thetext>Autobuilder failure report:
http://autobuilder.yoctoproject.org:8010/builders/crownbay-noemgd/builds/110/steps/shell_19/logs/stdio

OE Build Configuration:
BB_VERSION        = &quot;1.15.1&quot;
TARGET_ARCH       = &quot;i586&quot;
TARGET_OS         = &quot;linux&quot;
MACHINE           = &quot;crownbay-noemgd&quot;

Failure is NOT specific to crownbay, also observed on many other machines.

DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.1+snapshot-20120414&quot;
TUNE_FEATURES     = &quot;m32 core2&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-yocto        = &quot;master:9ff001cba1196b91be16ff9290919de820a2d44c&quot;
meta-intel        
meta-crownbay     
meta-tlk          = &quot;master:f75f9b6f68473eb0efac802409608f8389be0030&quot;
meta-qt3          = &quot;master:f8475d5c5935695d4d1dfff1d7be30f49e162094&quot;

| In file included from ag.c:8:0:
| autogen.h:33:19: error: operator &apos;&lt;&apos; has no left operand
| In file included from autogen.h:40:0,
|                  from ag.c:8:
| expr.h:28:19: error: operator &apos;&gt;=&apos; has no left operand
| expr.h:31:23: fatal error: guile/gh.h: No such file or directory</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20467</commentid>
    <comment_count>1</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-04-16 18:06:28 +0000</bug_when>
    <thetext>I can not reproduce the issue. the autogen-native is building fine on my system.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20469</commentid>
    <comment_count>2</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-04-16 18:10:09 +0000</bug_when>
    <thetext>I don&apos;t know if it is related. But RPs grub fix added autogen-native as a DEPENDS. This has the potential to try and build autogen-native earlier than we may have before. On our highly parallel builds, is it possible we hit this failure due to a missing dependency?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20471</commentid>
    <comment_count>3</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-04-16 18:12:57 +0000</bug_when>
    <thetext>it is a native recipe. It is also built grub-efi-native at early stage. so IMO the timing reason is unlikely.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20474</commentid>
    <comment_count>4</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-04-16 20:23:55 +0000</bug_when>
    <thetext>it it possible bitbake is trying to build autoggen-native before guile-native is complete with it&apos;s sysroot task ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20477</commentid>
    <comment_count>5</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-04-16 21:26:23 +0000</bug_when>
    <thetext>Richard has pushed a fix for this:

commit 15b16060c76bbdcc3dec37cab389aed64d4fdd1d
Author: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
Date:   Mon Apr 16 22:08:18 2012 +0100

    autogen-native: Fix sstate relocation issue when reusing libguile

    This was found to cause issues on the Yocto autobuilders and fixes do_compile
    failures when guile-native has been relocated.

    (From OE-Core rev: d928e91a57e6e9dfa6a7d4e888e1e1064d7fc668)

    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;

diff --git a/meta/recipes-devtools/autogen/autogen-native_5.12.bb b/meta/recipes-devtools/autogen/autogen-native_5.12.bb
index cdf1ea9..eb3721d 100644
--- a/meta/recipes-devtools/autogen/autogen-native_5.12.bb
+++ b/meta/recipes-devtools/autogen/autogen-native_5.12.bb
@@ -13,7 +13,7 @@ SRC_URI = &quot;${GNU_MIRROR}/autogen/rel${PV}/autogen-${PV}.tar.gz&quot;
 SRC_URI[md5sum] = &quot;6c6671b76021fb30dd43b0d5fdb7180b&quot;
 SRC_URI[sha256sum] = &quot;37e885d6c8a58f33ab198d38bb972fa4c14236f951d628161dde6e20527d0df2&quot;

-PR = &quot;r1&quot;
+PR = &quot;r2&quot;

 DEPENDS = &quot;guile-native libtool-native libxml2-native&quot;
 RDEPENDS = &quot;automake pkgconfig&quot;
@@ -22,3 +22,14 @@ inherit autotools native

 # Following line will be needed for the non-native target recipe.
 #CFLAGS += &quot;-L${STAGING_LIBDIR} -lguile-2.0 -lgc -pthread -I${STAGING_INCDIR}/guile/2.0 -I${STAGING_INCDIR}&quot;
+
+# autogen-native links against libguile which may have been relocated with sstate
+# these environment variables ensure there isn&apos;t a relocation issue
+export GUILE_LOAD_PATH = &quot;${STAGING_DATADIR_NATIVE}/guile/2.0&quot;
+export GUILE_LOAD_COMPILED_PATH = &quot;${STAGING_LIBDIR_NATIVE}/guile/2.0/ccache&quot;
+
+do_install_append () {
+       create_wrapper ${D}/${bindir}/autogen \
+               GUILE_LOAD_PATH=${STAGING_DATADIR_NATIVE}/guile/2.0 \
+               GUILE_LOAD_COMPILED_PATH=${STAGING_LIBDIR_NATIVE}/guile/2.0/ccache
+}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20478</commentid>
    <comment_count>6</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-04-16 21:32:11 +0000</bug_when>
    <thetext>The issue is fixed now.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>