[yocto] configure: error: C compiler cannot create executables when creating and building a hello world project.
jack
woailinux at hotmail.com
Thu Apr 19 02:14:57 PDT 2012
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!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20120419/fe8ab1e6/attachment.html>
More information about the yocto
mailing list