All of lore.kernel.org
 help / color / mirror / Atom feed
* configure: error: C compiler cannot create executables when creating and building a hello world project.
@ 2012-04-19  9:14 jack
  2012-04-19 18:28 ` Zhang, Jessica
  0 siblings, 1 reply; 3+ messages in thread
From: jack @ 2012-04-19  9:14 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 2307 bytes --]

hello all!
After creating a project in Eclipse, I tried to Configure the 
Cross-Toolchains.

But I did like this:"Select |Project -> Change Yocto Project Settings|: 
This selection brings up the |Project Yocto Settings| Dialog and allows 
you to make changes specific to an individual project.", there was not 
|Project Yocto Settings| Dialog.

Then I select |Project -> Reconfigure Project|,  the information on the 
console:

Invoking autogen.sh in build directory: /home/jackie/workspace/helloclutter

Command-line environment variables:
      CFLAGS=" -g -O0  -m32   -march=i586 
--sysroot=/home/jackie/sysroot" CXXFLAGS=" -g -O0  -m32   -march=i586 
--sysroot=/home/jackie/sysroot" LDFLAGS="  
--sysroot=/home/jackie/sysroot" CPPFLAGS=" -m32   -march=i586 
--sysroot=/home/jackie/sysroot"

sh /home/jackie/workspace/helloclutter/autogen.sh 
--with-libtool-sysroot=/home/jackie/sysroot --target=i586-poky-linux 
--host=i586-poky-linux --build=i686-linux 
--with-libtool-sysroot=/opt/poky/1.1.1/sysroots/i586-poky-linux
configure.ac:21: installing `./compile'
configure.ac:20: installing `./config.guess'
configure.ac:20: installing `./config.sub'
configure.ac:16: installing `./install-sh'
configure.ac:16: installing `./missing'
src/Makefile.am: installing `./depcomp'
configure: loading site script /opt/poky/1.1.1/site-config-i586-poky-linux
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for i586-poky-linux-strip... i586-poky-linux-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i586-poky-linux-gnu
checking how to print strings... printf
checking for style of include used by make... GNU
checking for i586-poky-linux-gcc... i586-poky-linux-gcc
checking whether the C compiler works... no
configure: error: in `/home/jackie/workspace/helloclutter':
configure: error: in `/home/jackie/workspace/helloclutter':
configure: error: C compiler cannot create executables
configure: error: C compiler cannot create executables
See `config.log' for more details

Configuration failed with error

Who can help me? Thank you!

[-- Attachment #2: Type: text/html, Size: 3057 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: configure: error: C compiler cannot create executables when creating and building a hello world project.
  2012-04-19  9:14 configure: error: C compiler cannot create executables when creating and building a hello world project jack
@ 2012-04-19 18:28 ` Zhang, Jessica
  2012-04-20  4:07   ` jack
  0 siblings, 1 reply; 3+ messages in thread
From: Zhang, Jessica @ 2012-04-19 18:28 UTC (permalink / raw)
  To: jack, yocto

[-- Attachment #1: Type: text/plain, Size: 4462 bytes --]

Hi Jack,



I think you've hit a known issue that introduced by the latest LinuxTools project of Eclipse plug-in.  Here's steps that you can have your Eclipse IDE updated to solve the issue:



1.       Under Help->About Eclipse SDK, click "Installation Details", there what is the version of your "Autotools support for CDT(Incubation)" is it 3.0.1.201202152032? And scroll to the bottom, if you see Yocto Plugin for Eclipse and the version is older than 1.2.0.201203141639, then select Yocto Plugin for Eclipse and select uninstall, since the older version of plugin won't be able to handle the bug that introduced by LinuxTools project.  Follow the steps to uninstall the Yocto plug-in and restart your Eclipse

2.       IF your "Autotools support for CDT" version is different from the above mentioned. Under Help->Install New Software, Click on "Available Software Sites" and make sure "Indigo" got checked. And In the" Work With:" drop down, select Indigo, extend "Programming Languages" and select "Autotools support for CDT" and follow the steps to update to the latest version and restart Eclipse

3.       Go to http://downloads.yoctoproject.org/releases/yocto/yocto-1.1.1/eclipse-plugin/indigo, and download org.yocto.sdk-rc1-201203141638-archive.zip<http://downloads.yoctoproject.org/releases/yocto/yocto-1.1.1/eclipse-plugin/indigo/org.yocto.sdk-rc1-201203141638-archive.zip> to your local system, and in Eclipse Help->Install New Software, "Work With:" click ADD, there you can put name as Yocto-1.1.1, and click on Archive and select the Yocto plug-in archive zip file you just downloaded.  Then from the drop down select the Yocto-1.1.1 and follow the steps to finish reinstall and restart Eclipse.



Now your Eclipse IDE should behave as desired which allows you to reconfigure a specific Yocto project using certain sysroot.



Thanks,

Jessica



From: yocto-bounces@yoctoproject.org [mailto:yocto-bounces@yoctoproject.org] On Behalf Of jack
Sent: Thursday, April 19, 2012 2:15 AM
To: yocto@yoctoproject.org
Subject: [yocto] configure: error: C compiler cannot create executables when creating and building a hello world project.



hello all!
After creating a project in Eclipse, I tried to Configure the Cross-Toolchains.

But I did like this:"Select Project -> Change Yocto Project Settings: This selection brings up the Project Yocto Settings Dialog and allows you to make changes specific to an individual project.", there was not Project Yocto Settings Dialog.

Then I select Project -> Reconfigure Project,  the information on the console:

Invoking autogen.sh in build directory: /home/jackie/workspace/helloclutter

Command-line environment variables:
     CFLAGS=" -g -O0  -m32   -march=i586 --sysroot=/home/jackie/sysroot" CXXFLAGS=" -g -O0  -m32   -march=i586 --sysroot=/home/jackie/sysroot" LDFLAGS="  --sysroot=/home/jackie/sysroot" CPPFLAGS=" -m32   -march=i586 --sysroot=/home/jackie/sysroot"

sh /home/jackie/workspace/helloclutter/autogen.sh --with-libtool-sysroot=/home/jackie/sysroot --target=i586-poky-linux --host=i586-poky-linux --build=i686-linux --with-libtool-sysroot=/opt/poky/1.1.1/sysroots/i586-poky-linux
configure.ac:21: installing `./compile'
configure.ac:20: installing `./config.guess'
configure.ac:20: installing `./config.sub'
configure.ac:16: installing `./install-sh'
configure.ac:16: installing `./missing'
src/Makefile.am: installing `./depcomp'
configure: loading site script /opt/poky/1.1.1/site-config-i586-poky-linux
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for i586-poky-linux-strip... i586-poky-linux-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i586-poky-linux-gnu
checking how to print strings... printf
checking for style of include used by make... GNU
checking for i586-poky-linux-gcc... i586-poky-linux-gcc
checking whether the C compiler works... no
configure: error: in `/home/jackie/workspace/helloclutter':
configure: error: in `/home/jackie/workspace/helloclutter':
configure: error: C compiler cannot create executables
configure: error: C compiler cannot create executables
See `config.log' for more details

Configuration failed with error

Who can help me? Thank you!


[-- Attachment #2: Type: text/html, Size: 10647 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: configure: error: C compiler cannot create executables when creating and building a hello world project.
  2012-04-19 18:28 ` Zhang, Jessica
@ 2012-04-20  4:07   ` jack
  0 siblings, 0 replies; 3+ messages in thread
From: jack @ 2012-04-20  4:07 UTC (permalink / raw)
  To: Zhang, Jessica; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 5074 bytes --]

On 2012?04?20? 02:28, Zhang, Jessica wrote:
>
> Hi Jack,
>
> I think you've hit a known issue that introduced by the latest 
> LinuxTools project of Eclipse plug-in.  Here's steps that you can have 
> your Eclipse IDE updated to solve the issue:
>
> 1.Under Help->About Eclipse SDK, click "Installation Details", there 
> what is the version of your "Autotools support for CDT(Incubation)" is 
> it 3.0.1.201202152032? And scroll to the bottom, if you see Yocto 
> Plugin for Eclipse and the version is older than 1.2.0.201203141639, 
> then select Yocto Plugin for Eclipse and select uninstall, since the 
> older version of plugin won't be able to handle the bug that 
> introduced by LinuxTools project.  Follow the steps to uninstall the 
> Yocto plug-in and restart your Eclipse
>
> 2.IF your "Autotools support for CDT" version is different from the 
> above mentioned. Under Help->Install New Software, Click on "Available 
> Software Sites" and make sure "Indigo" got checked. And In the" Work 
> With:" drop down, select Indigo, extend "Programming Languages" and 
> select "Autotools support for CDT" and follow the steps to update to 
> the latest version and restart Eclipse
>
> 3.Go to 
> http://downloads.yoctoproject.org/releases/yocto/yocto-1.1.1/eclipse-plugin/indigo, 
> and download org.yocto.sdk-rc1-201203141638-archive.zip 
> <http://downloads.yoctoproject.org/releases/yocto/yocto-1.1.1/eclipse-plugin/indigo/org.yocto.sdk-rc1-201203141638-archive.zip> 
> to your local system, and in Eclipse Help->Install New Software, "Work 
> With:" click ADD, there you can put name as Yocto-1.1.1, and click on 
> Archive and select the Yocto plug-in archive zip file you just 
> downloaded.  Then from the drop down select the Yocto-1.1.1 and follow 
> the steps to finish reinstall and restart Eclipse.
>
> Now your Eclipse IDE should behave as desired which allows you to 
> reconfigure a specific Yocto project using certain sysroot.
>
> Thanks,
>
> Jessica
>
> *From:*yocto-bounces@yoctoproject.org 
> [mailto:yocto-bounces@yoctoproject.org] *On Behalf Of *jack
> *Sent:* Thursday, April 19, 2012 2:15 AM
> *To:* yocto@yoctoproject.org
> *Subject:* [yocto] configure: error: C compiler cannot create 
> executables when creating and building a hello world project.
>
> hello all!
> After creating a project in Eclipse, I tried to Configure the 
> Cross-Toolchains.
>
> But I did like this:"Select |Project -> Change Yocto Project 
> Settings|: This selection brings up the |Project Yocto Settings| 
> Dialog and allows you to make changes specific to an individual 
> project.", there was not |Project Yocto Settings| Dialog.
>
> Then I select |Project -> Reconfigure Project|,  the information on 
> the console:
>
> Invoking autogen.sh in build directory: 
> /home/jackie/workspace/helloclutter
>
> Command-line environment variables:
>      CFLAGS=" -g -O0  -m32   -march=i586 
> --sysroot=/home/jackie/sysroot" CXXFLAGS=" -g -O0  -m32   -march=i586 
> --sysroot=/home/jackie/sysroot" LDFLAGS="  
> --sysroot=/home/jackie/sysroot" CPPFLAGS=" -m32   -march=i586 
> --sysroot=/home/jackie/sysroot"
>
> sh /home/jackie/workspace/helloclutter/autogen.sh 
> --with-libtool-sysroot=/home/jackie/sysroot --target=i586-poky-linux 
> --host=i586-poky-linux --build=i686-linux 
> --with-libtool-sysroot=/opt/poky/1.1.1/sysroots/i586-poky-linux
> configure.ac:21: installing `./compile'
> configure.ac:20: installing `./config.guess'
> configure.ac:20: installing `./config.sub'
> configure.ac:16: installing `./install-sh'
> configure.ac:16: installing `./missing'
> src/Makefile.am: installing `./depcomp'
> configure: loading site script /opt/poky/1.1.1/site-config-i586-poky-linux
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for i586-poky-linux-strip... i586-poky-linux-strip
> checking for a thread-safe mkdir -p... /bin/mkdir -p
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking build system type... i686-pc-linux-gnu
> checking host system type... i586-poky-linux-gnu
> checking how to print strings... printf
> checking for style of include used by make... GNU
> checking for i586-poky-linux-gcc... i586-poky-linux-gcc
> checking whether the C compiler works... no
> configure: error: in `/home/jackie/workspace/helloclutter':
> configure: error: in `/home/jackie/workspace/helloclutter':
> configure: error: C compiler cannot create executables
> configure: error: C compiler cannot create executables
> See `config.log' for more details
>
> Configuration failed with error
>
> Who can help me? Thank you!
>
Hello,Jessica!
Thank you for your help! I have solved my problem and found the error 
was caused by the wrong path of "sysroot location". But your advice 
still is useful for me, because several days ago,I was puzzled by the 
older version of yocto plugin for eclipse, and you provide a nice 
solution for me.

ThX!
jack

[-- Attachment #2: Type: text/html, Size: 12932 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-04-20  4:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-19  9:14 configure: error: C compiler cannot create executables when creating and building a hello world project jack
2012-04-19 18:28 ` Zhang, Jessica
2012-04-20  4:07   ` jack

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.