<?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>4845</bug_id>
          
          <creation_ts>2013-07-12 05:51:19 +0000</creation_ts>
          <short_desc>m4-native:do_configure failed with gcc version 4.1.2 on x86</short_desc>
          <delta_ts>2014-07-24 15:33:24 +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>core</component>
          <version>1.5</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chunrong Guo">b40290</reporter>
          <assigned_to name="Randy MacLeod">randy.macleod</assigned_to>
          <cc>b40290</cc>
    
    <cc>bluelightning</cc>
    
    <cc>hongxu.jia</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <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>34526</commentid>
    <comment_count>0</comment_count>
    <who name="Chunrong Guo">b40290</who>
    <bug_when>2013-07-12 05:51:19 +0000</bug_when>
    <thetext>branch:master
poky :a63229917a5708de2d161aba0d67168ce0da6365

Test Env: 
CentOS release 5.9 (Final)
Linux 2.6.18-348.12.1.el5.centos.plus
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-54)

$ source  ./oe-init-build-env 

add BUILD_CFLAGS_append = &quot; -march=native&quot; to local.conf

$bitbake m4-native
the below error log:
NOTE: Executing RunQueue Tasks
$&lt;50&gt;ERROR: Function failed: do_configure (log file is located at /home/poky/build/tmp/work/x86_64-linux/m4-native/1.4.16-r4/temp/log.do_configure.21791)
$&lt;50&gt;ERROR: Logfile of failure stored in: /home/poky/build/tmp/work/x86_64-linux/m4-native/1.4.16-r4/temp/log.do_configure.21791
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: Executing shell function autotools_preconfigure
| DEBUG: Shell function autotools_preconfigure finished
| DEBUG: Executing shell function do_configure
| NOTE: Running /home/b19537/jenkins/reports/poky/build/tmp/work/x86_64-linux/m4-native/1.4.16-r4/m4-1.4.16/configure  --build=x86_64-linux                  --host=x86_64-linux             --target=x86_64-linux                   --prefix=/home/b19537/jenkins/reports/poky/build/tmp/sysroots/x86_64-linux/usr             --exec_prefix=/home/b19537/jenkins/reports/poky/build/tmp/sysroots/x86_64-linux/usr             --bindir=/home/b19537/jenkins/reports/poky/build/tmp/sysroots/x86_64-linux/usr/bin                 --sbindir=/home/b19537/jenkins/reports/poky/build/tmp/sysroots/x86_64-linux/usr/sbin               --libexecdir=/home/b19537/jenkins/reports/poky/build/tmp/sysroots/x86_64-linux/usr/lib/m4                  --datadir=/home/b19537/jenkins/reports/poky/build/tmp/sysroots/x86_64-linux/usr/share                   --sysconfdir=/home/b19537/jenkins/reports/poky/build/tmp/sysroots/x86_64-linux/etc                 --sharedstatedir=/home/b19537/jenkins/reports/poky/build/tmp/sysroots/x86_64-linux/com             --localstatedir=/home/b19537/jenkins/reports/poky/build/tmp/sysroots/x86_64-linux/var     --libdir=/home/b19537/jenkins/reports/poky/build/tmp/sysroots/x86_64-linux/usr/lib               --includedir=/home/b19537/jenkins/reports/poky/build/tmp/sysroots/x86_64-linux/usr/include                 --oldincludedir=/home/b19537/jenkins/reports/poky/build/tmp/sysroots/x86_64-linux/usr/include              --infodir=/home/b19537/jenkins/reports/poky/build/tmp/sysroots/x86_64-linux/usr/share/info              --mandir=/home/b19537/jenkins/reports/poky/build/tmp/sysroots/x86_64-linux/usr/share/man                   --disable-silent-rules            --disable-dependency-tracking
| checking for a BSD-compatible install... /usr/bin/install -c
| checking whether build environment is sane... yes
| checking for a thread-safe mkdir -p... /bin/mkdir -p
| checking for gawk... gawk
| checking whether make sets $(MAKE)... yes
| checking for x86_64-linux-gcc... gcc
| checking whether the C compiler works... no
| configure: error: in `/home/poky/build/tmp/work/x86_64-linux/m4-native/1.4.16-r4/build&apos;:
| configure: error: C compiler cannot create executables
| See `config.log&apos; for more details
| Configure failed. The contents of all config.log files follows to aid debugging
| ERROR: oe_runconf failed
| ERROR: Function failed: do_configure (log file is located at /home/b19537/jenkins/reports/poky/build/tmp/work/x86_64-linux/m4-native/1.4.16-r4/temp/log.do_configure.21791)
$&lt;50&gt;ERROR: Task 1044 (/home/poky/meta/recipes-devtools/m4/m4-native_1.4.16.bb, do_configure) failed with exit code &apos;1&apos;
$&lt;50&gt;NOTE: Tasks Summary: Attempted 19 tasks of which 18 didn&apos;t need to be rerun and 1 failed.
No currently running tasks (18 of 1669)

Summary: 1 task failed:
  /home/poky/meta/recipes-devtools/m4/m4-native_1.4.16.bb, do_configure
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34527</commentid>
    <comment_count>1</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2013-07-12 07:00:25 +0000</bug_when>
    <thetext>gcc 4.1.2 doesn&apos;t support option `-march=native&apos;.

It is supported in 4.2 or later, see details:

http://gcc.gnu.org/gcc-4.2/changes.html

You could update your host gcc to fix this.
So, I think it&apos;s not a bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34577</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-07-15 17:23:58 +0000</bug_when>
    <thetext>Assigning to Randy as Mark tells me he&apos;s working on a fix for this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44673</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-07-24 15:33:24 +0000</bug_when>
    <thetext>At this project gcc 4.1.2 is old and isn&apos;t something the project is planning to support.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>