<?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>5743</bug_id>
          
          <creation_ts>2014-01-21 09:58:21 +0000</creation_ts>
          <short_desc>autogen-native: do_compile failed</short_desc>
          <delta_ts>2014-01-21 12:39:55 +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.6</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>normal</bug_severity>
          <target_milestone>1.6 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</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>39947</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2014-01-21 09:58:21 +0000</bug_when>
    <thetext>| /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include/guile/2.0/libguile/error.h:40:24: error: expected &apos;)&apos; before &apos;__attribute__&apos;
| /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include/guile/2.0/libguile/error.h:40:24: error: expected &apos;,&apos; or &apos;;&apos; before &apos;)&apos; token
| /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include/guile/2.0/libguile/error.h:42:27: error: expected &apos;)&apos; before &apos;__attribute__&apos;
| /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include/guile/2.0/libguile/error.h:42:27: error: expected &apos;,&apos; or &apos;;&apos; before &apos;)&apos; token
| /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include/guile/2.0/libguile/error.h:44:46: error: expected &apos;)&apos; before &apos;__attribute__&apos;
| /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include/guile/2.0/libguile/error.h:44:46: error: expected &apos;,&apos; or &apos;;&apos; before &apos;)&apos; token
| /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include/guile/2.0/libguile/error.h:46:30: error: expected &apos;)&apos; before &apos;__attribute__&apos;
| /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include/guile/2.0/libguile/error.h:46:30: error: expected &apos;,&apos; or &apos;;&apos; before &apos;)&apos; token
| /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include/guile/2.0/libguile/error.h:47:50: error: expected &apos;)&apos; before &apos;__attribute__&apos;
| /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include/guile/2.0/libguile/error.h:47:50: error: expected &apos;,&apos; or &apos;;&apos; before &apos;)&apos; token
| /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include/guile/2.0/libguile/error.h:49:6: error: expected &apos;)&apos; before &apos;__attribute__&apos;
| /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include/guile/2.0/libguile/error.h:49:6: error: expected &apos;,&apos; or &apos;;&apos; before &apos;)&apos; token
| /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include/guile/2.0/libguile/error.h:51:6: error: expected &apos;)&apos; before &apos;__attribute__&apos;
| /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include/guile/2.0/libguile/error.h:51:6: error: expected &apos;,&apos; or &apos;;&apos; before &apos;)&apos; token
| /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include/guile/2.0/libguile/error.h:52:44: error: expected &apos;)&apos; before &apos;__attribute__&apos;
| /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include/guile/2.0/libguile/error.h:52:44: error: expected &apos;,&apos; or &apos;;&apos; before &apos;)&apos; token
| /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include/guile/2.0/libguile/error.h:53:57: error: expected &apos;)&apos; before &apos;__attribute__&apos;
| /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include/guile/2.0/libguile/error.h:53:57: error: expected &apos;,&apos; or &apos;;&apos; before &apos;)&apos; token
| /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include/guile/2.0/libguile/error.h:55:21: error: expected &apos;)&apos; before &apos;__attribute__&apos;
| /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include/guile/2.0/libguile/error.h:55:21: error: expected &apos;,&apos; or &apos;;&apos; before &apos;)&apos; token
| /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include/guile/2.0/libguile/error.h:57:28: error: expected &apos;)&apos; before &apos;__attribute__&apos;
| /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include/guile/2.0/libguile/error.h:57:28: error: expected &apos;,&apos; or &apos;;&apos; before &apos;)&apos; token
| /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include/guile/2.0/libguile/error.h:59:41: error: expected &apos;)&apos; before &apos;__attribute__&apos;
| /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include/guile/2.0/libguile/error.h:59:41: error: expected &apos;,&apos; or &apos;;&apos; before &apos;)&apos; token
| /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include/guile/2.0/libguile/error.h:60:50: error: expected &apos;)&apos; before &apos;__attribute__&apos;
| /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include/guile/2.0/libguile/error.h:60:50: error: expected &apos;,&apos; or &apos;;&apos; before &apos;)&apos; token
| /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include/guile/2.0/libguile/error.h:62:19: error: expected &apos;)&apos; before &apos;__attribute__&apos;
| /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include/guile/2.0/libguile/error.h:62:19: error: expected &apos;,&apos; or &apos;;&apos; before &apos;)&apos; token


Comments from RP:
a) you have gcc 4.6, I have gcc 4.8
b) the error appears to come from error.h in SCM_NORETURN definitions
c) the config log for autogen shows different results for
   &quot;checking for working stdnoreturn.h&quot;, yes in my case, no in yours.

The definition of SCM_NORETURN is from __scm.h:
 
#define SCM_NORETURN __attribute__ ((noreturn))

and the dummy stdnoreturn.h that autogen would generate does:

#define noreturn _Noreturn

and then _Noreturn.h defines:

#  define _Noreturn __attribute__ ((__noreturn__))

so I think what is happening is there is double macro overlap with

#define SCM_NORETURN __attribute__ ((noreturn))

becoming

#define SCM_NORETURN __attribute__ ((__attribute__ ((__noreturn__))))</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39954</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2014-01-21 12:39:55 +0000</bug_when>
    <thetext>Merged into master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=ed9dca641707fe8ee109317194308b7aa87f1595</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>