Bug 3096 - autogen.sh causes an error in Eclipse
Summary: autogen.sh causes an error in Eclipse
Status: VERIFIED WORKSFORME
Alias: None
Product: Eclipse Plugin
Classification: Yocto Project Subprojects
Component: eclipse-plugin (show other bugs)
Version: 1.3
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.3 M5
Assignee: Jessica
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-09-12 08:52 UTC by Alexandru Georgescu
Modified: 2012-10-18 12:29 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments
adt installer conf (3.63 KB, application/octet-stream)
2012-09-13 16:10 UTC, Alexandru Georgescu
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandru Georgescu 2012-09-12 08:52:30 UTC
When creating a "Hello World ANSI C Autotools Project" in Eclipse, and reconfigureing it with the proper toolchain and sysroot, the following error appears 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



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' 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' 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' is not a valid shell variable name
configure.ac:24: the top level
autom4te: m4 failed with exit status: 1
autoheader: '/opt/poky/1.2+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/autom4te' failed with exit status: 1
configure.ac:24: error: AC_SUBST: `3_hw_c_CFLAGS' 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

====================
Comment 1 Jessica 2012-09-12 16:28:58 UTC
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's not clear to me the rest of the error as to: "More details can be viewed if autogen.sh from the project is run from the console (after the environment is sourced manually):" you mean you run it from a terminal not eclipse?
Comment 2 Alexandru Georgescu 2012-09-12 16:50:44 UTC
(In reply to comment #1)
> 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?

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



>  How did you reconfigure the project in eclipse? 

1. First, before creating a yocto project I configured the "Yocto Project ADT" settings from Window->Preferences-> "Yocto Project ADT"  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 "Project -> Change Yocto Project Settings". All values were correctly set as in step 1. Pressed OK.

4.in "Project Explorer" right click on the Project, and then selected "Reconfigure project"

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




> It's not clear to me the rest of the error as to: "More details can be
> viewed if autogen.sh from the project is run from the console (after the
> environment is sourced manually):" you mean you run it from a terminal not
> 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.
Comment 3 Jessica 2012-09-12 17:06:15 UTC
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'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
Comment 4 Alexandru Georgescu 2012-09-12 17:20:33 UTC
(In reply to comment #3)
> 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'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?

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.

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

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

Thanks,

Alex.
Comment 5 Jessica 2012-09-12 20:32:46 UTC
I can't reproduce the issue, please attach your adt_installer.conf file. thx
Comment 6 Alexandru Georgescu 2012-09-13 16:10:08 UTC
Created attachment 804 [details]
adt installer conf
Comment 7 Jessica 2012-09-17 21:19:49 UTC
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.
Comment 8 Alexandru Georgescu 2012-10-18 12:29:45 UTC
Verified.