<?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>1434</bug_id>
          
          <creation_ts>2011-08-31 15:57:14 +0000</creation_ts>
          <short_desc>grub: host compiler used during configure task</short_desc>
          <delta_ts>2011-09-07 18:22:53 +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-intel</component>
          <version>1.0</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>Undecided</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>1.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Darren Hart">dvhart</reporter>
          <assigned_to name="Edwin Zhai">edwin.zhai</assigned_to>
          <cc>shane.wang</cc>
    
    <cc>tom.zanussi</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>15923</commentid>
    <comment_count>0</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2011-08-31 15:57:14 +0000</bug_when>
    <thetext>The meta-intel grub recipe&apos;s log.do_configure contains the following. It appears that some of the configure tests are just using the host gcc:

configure:8739: checking for __bswapsi2
configure:8739: gcc -o conftest -O2 -pipe -g -feliminate-unused-debug-types -DGRUB_MACHINE_PCBIOS=1 -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes                -Wundef -Wstrict-prototypes -g -falign-jumps=1 -falign-loops=1 -falign-functions=1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -fno-dwarf2-cfi-asm -m32 -fno-stack-protector -mno-stack-arg-probe -Werror -nostdlib -Wl,--defsym,___main=0x8100 -Wl,--defsym,abort=main -Wno-error  -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -m32 conftest.c -lgcc &gt;&amp;5
In file included from /usr/include/features.h:387,
                 from /usr/include/limits.h:27,
                 from /usr/lib/gcc/x86_64-linux-gnu/4.4.5/include-fixed/limits.h:122,
                 from /usr/lib/gcc/x86_64-linux-gnu/4.4.5/include-fixed/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-linux-gnu/4.4.5/include-fixed/limits.h:11,
                 from conftest.c:62:
/usr/include/gnu/stubs.h:7: fatal error: gnu/stubs-32.h: No such file or directory compilation terminated.
configure:8739: $? = 1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15966</commentid>
    <comment_count>1</comment_count>
    <who name="Edwin Zhai">edwin.zhai</who>
    <bug_when>2011-09-02 01:44:37 +0000</bug_when>
    <thetext>I found this may be generic issue that exist also for grub_0.97 under meta. It&apos;s common that configure just create a .c file that include some headers to detect some configuration like instruction support of CPU. It&apos;s not reasonable for cross-compile environment, as configure runs on build platform, while instructions running from target system.

So I&apos;m not sure how to handing this? Make some hacks inside the c file to use sysroots headers here, or disable such checks?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16057</commentid>
    <comment_count>2</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2011-09-06 09:14:25 +0000</bug_when>
    <thetext>Edwin, have you been able to make any further progress? Are you still targeting 1.1?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16069</commentid>
    <comment_count>3</comment_count>
    <who name="Edwin Zhai">edwin.zhai</who>
    <bug_when>2011-09-06 17:28:04 +0000</bug_when>
    <thetext>patch already out.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16089</commentid>
    <comment_count>4</comment_count>
    <who name="Edwin Zhai">edwin.zhai</who>
    <bug_when>2011-09-07 18:22:53 +0000</bug_when>
    <thetext>Merged into master @ 93ca6d36a525c5d8e6c99f53bb1d03b5d862cbf7</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>