<?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>3096</bug_id>
          
          <creation_ts>2012-09-12 08:52:30 +0000</creation_ts>
          <short_desc>autogen.sh causes an error in Eclipse</short_desc>
          <delta_ts>2012-10-18 12:29:45 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Eclipse Plugin</product>
          <component>eclipse-plugin</component>
          <version>1.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.3 M5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandru Georgescu">alexandru.c.georgescu</reporter>
          <assigned_to name="Jessica">jessica.zhang</assigned_to>
          <cc>ioanax.grigoropol</cc>
    
    <cc>laurentiu.palcu</cc>
    
    <cc>yp.ep.watcher</cc>
    
    <cc>yp.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>25095</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2012-09-12 08:52:30 +0000</bug_when>
    <thetext>When creating a &quot;Hello World ANSI C Autotools Project&quot; in Eclipse, and reconfigureing it with the proper toolchain and sysroot, the following error appears in &quot;Problems&quot; pane:


Description	Resource	Path	Location	Type
Error 127 occurred while running /home/alex/workspace/3_hw_c/autogen.sh	3_hw_c		-1	Configure Problem



More details can be viewed if autogen.sh from the project is run from the console (after the environment is sourced manually):

alex@alex-pc:~/workspace/3_hw_c$ ./autogen.sh 
configure.ac:24: error: AC_SUBST: `3_hw_c_CFLAGS&apos; is not a valid shell variable name
configure.ac:24: the top level
autom4te: m4 failed with exit status: 1
aclocal: error: autom4te failed with exit status: 1
configure.ac:24: error: AC_SUBST: `3_hw_c_CFLAGS&apos; is not a valid shell variable name
configure.ac:24: the top level
autom4te: m4 failed with exit status: 1
configure.ac:24: error: AC_SUBST: `3_hw_c_CFLAGS&apos; is not a valid shell variable name
configure.ac:24: the top level
autom4te: m4 failed with exit status: 1
autoheader: &apos;/opt/poky/1.2+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/autom4te&apos; failed with exit status: 1
configure.ac:24: error: AC_SUBST: `3_hw_c_CFLAGS&apos; is not a valid shell variable name
configure.ac:24: the top level
autom4te: m4 failed with exit status: 1
automake: error: autoconf failed with exit status: 1
./autogen.sh: 9: ./autogen.sh: ./configure: not found
alex@alex-pc:~/workspace/3_hw_c$


====================
ADT-installer used: 
http://autobuilder.yoctoproject.org/pub/nightly/20120910-5/adt_installer-QA/

Eclipse pluting used:
http://autobuilder.yoctoproject.org/pub/nightly/20120910-5/eclipse-plugin/juno/

Commit: dd3edc9fbb674682947e8218202fdbeef8635dd5

====================</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25111</commentid>
    <comment_count>1</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2012-09-12 16:28:58 +0000</bug_when>
    <thetext>Hi Alex,

What is your toolchain and sysroot, e.g. from nightly build or your local build, against which poky commit?  How did you install your toolchain, adt_installer or tar ball?  How did you reconfigure the project in eclipse?  It&apos;s not clear to me the rest of the error as to: &quot;More details can be viewed if autogen.sh from the project is run from the console (after the environment is sourced manually):&quot; you mean you run it from a terminal not eclipse?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25113</commentid>
    <comment_count>2</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2012-09-12 16:50:44 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Hi Alex,
&gt; 
&gt; What is your toolchain and sysroot, e.g. from nightly build or your local
&gt; build, against which poky commit?  How did you install your toolchain,
&gt; adt_installer or tar ball?

I have installed them using adt-installer with default settings (Using ARM architecture). So the toolchain, and sysroots were created by the installer in 
/opt/poky/1.2+snapshot and 
/home/alex/test-yocto/arm locations.

The commit from autobuilder is: dd3edc9fbb674682947e8218202fdbeef8635dd5



&gt;  How did you reconfigure the project in eclipse? 

1. First, before creating a yocto project I configured the &quot;Yocto Project ADT&quot; settings from Window-&gt;Preferences-&gt; &quot;Yocto Project ADT&quot;  menu.

The settings I used are:
Toolchain: /opt/poky/1.2+snapshot
Sysroot:   /home/alex/test-yocto/arm
Target Arch: armv5te-poky-linux-gnueabi
qemu kernel:  /home/alex/_current/adt-installer/download_image/zImage-qemuarm.bin

2. I created a new Hello World ANSI C project.

3. Checked the &quot;Project -&gt; Change Yocto Project Settings&quot;. All values were correctly set as in step 1. Pressed OK.

4.in &quot;Project Explorer&quot; right click on the Project, and then selected &quot;Reconfigure project&quot;

5. After reconfigure was complete, the error appeared in Problems pane:

Description	Resource	Path	Location	Type
Error 127 occurred while running /home/alex/workspace/3_hw_c/autogen.sh	3_hw_c		-1	Configure Problem




&gt; It&apos;s not clear to me the rest of the error as to: &quot;More details can be
&gt; viewed if autogen.sh from the project is run from the console (after the
&gt; environment is sourced manually):&quot; you mean you run it from a terminal not
&gt; eclipse?


Sorry, I think I offered too much information:) . On the last part, after I saw the error, I tried to run the autogen.sh from the project manually because no other information was displayed in Eclipse. The steps were:

1. I sourced the environment: /opt/poky/1.2+snapshot/environment-setup-armv5te-poky-linux-gnueabi
2. Run autogen.sh from the project folder. The output was as I described in the bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25114</commentid>
    <comment_count>3</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2012-09-12 17:06:15 +0000</bug_when>
    <thetext>Alex,

No information is too much as to help reproduce a bug.  Thanks for the quick response with the detailed infos.  One further question:

I have installed them using adt-installer with default settings (Using ARM architecture). So the toolchain, and sysroots were created by the installer in 
/opt/poky/1.2+snapshot and 
/home/alex/test-yocto/arm locations.

The commit from autobuilder is: dd3edc9fbb674682947e8218202fdbeef8635dd5


So you&apos;re using adt-installer built by AB or you did a local clone of poky by that commit and build adt-installer locally and use the default setting?

I have a feeling the bug is not related to Eclipse but much to autotools, but I need to reproduce locally first.

Thanks,
jessica</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25115</commentid>
    <comment_count>4</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2012-09-12 17:20:33 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; Alex,
&gt; 
&gt; No information is too much as to help reproduce a bug.  Thanks for the quick
&gt; response with the detailed infos.  One further question:
&gt; 
&gt; I have installed them using adt-installer with default settings (Using ARM
&gt; architecture). So the toolchain, and sysroots were created by the installer
&gt; in 
&gt; /opt/poky/1.2+snapshot and 
&gt; /home/alex/test-yocto/arm locations.
&gt; 
&gt; The commit from autobuilder is: dd3edc9fbb674682947e8218202fdbeef8635dd5
&gt; 
&gt; 
&gt; So you&apos;re using adt-installer built by AB or you did a local clone of poky
&gt; by that commit and build adt-installer locally and use the default setting?

Just used the adt-installer built by AB. I have displayed added commit info just to clarify that adt-installer was built against it.

FYI, The machine I am using to test is Ubuntu 12.04 on 64bit.

&gt; 
&gt; I have a feeling the bug is not related to Eclipse but much to autotools,
&gt; but I need to reproduce locally first.

Same here, that&apos;s why I tried to use only the toolchain to build it locally.

Thanks,

Alex.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25123</commentid>
    <comment_count>5</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2012-09-12 20:32:46 +0000</bug_when>
    <thetext>I can&apos;t reproduce the issue, please attach your adt_installer.conf file. thx</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25202</commentid>
    <comment_count>6</comment_count>
      <attachid>804</attachid>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2012-09-13 16:10:08 +0000</bug_when>
    <thetext>Created attachment 804
adt installer conf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25321</commentid>
    <comment_count>7</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2012-09-17 21:19:49 +0000</bug_when>
    <thetext>I used the latest adt-installer from http://autobuilder.yoctoproject.org/pub/nightly/CURRENT/adt_installer-QA/ and everything works.  Please make sure clean your old /opt/poky/1.2+snapshot directory and your old adt_installer directory and re-test.  Since recenly we have many cleanup and bug fixes in adt-install/repo and relocatable sdk and sdk in general.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26714</commentid>
    <comment_count>8</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2012-10-18 12:29:45 +0000</bug_when>
    <thetext>Verified.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>804</attachid>
            <date>2012-09-13 16:10:08 +0000</date>
            <delta_ts>2012-09-13 16:10:08 +0000</delta_ts>
            <desc>adt installer conf</desc>
            <filename>adt_installer.conf</filename>
            <type>application/octet-stream</type>
            <size>3715</size>
            <attacher name="Alexandru Georgescu">alexandru.c.georgescu</attacher>
            
              <data encoding="base64">IyBZb2N0byBBRFQgSW5zdGFsbGVyIENvbmZpZ3VyYXRpb24gRmlsZQojCiMgQ29weXJpZ2h0IDIw
MTAtMjAxMSBieSBJbnRlbCBDb3JwLgojCiMgUGVybWlzc2lvbiBpcyBoZXJlYnkgZ3JhbnRlZCwg
ZnJlZSBvZiBjaGFyZ2UsIHRvIGFueSBwZXJzb24gb2J0YWluaW5nIGEgY29weSAK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