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 ====================
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?
(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.
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
(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.
I can't reproduce the issue, please attach your adt_installer.conf file. thx
Created attachment 804 [details] adt installer conf
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.
Verified.