[yocto] Yocto ADT Build Errors
Zhang, Jessica
jessica.zhang at intel.com
Fri Sep 21 10:28:37 PDT 2012
Hi Daniel,
Seems you're using eclipse plug-in for 1.2 release , so what is the poky tree that you're using? 1.2 or 1.2.1 release. I need to reproduce on my local system.
So to be precise, what bitbake command you've been running besides "bitbake meta-ide-support" ?
Thanks,
Jessica
From: yocto-bounces at yoctoproject.org [mailto:yocto-bounces at yoctoproject.org] On Behalf Of daniel_norris at selinc.com
Sent: Friday, September 21, 2012 10:10 AM
To: yocto at yoctoproject.org
Subject: [yocto] Yocto ADT Build Errors
Hi,
I've been following the ADT User's Guide and I'm having trouble getting Eclipse to build the Hello World ANSI C Autotools project. I am using a build-system derived toolchain targeting PowerPC.
I am able to invoke QEMU using NFS, but configuring the project gives me this output on the console:
Invoking autogen.sh in build directory: /home/daninorr/workspace/Hello
Command-line environment variables:
CFLAGS=" -g -O0 --sysroot=/data/add_ntp/sdk" CXXFLAGS=" -g -O0 --sysroot=/data/add_ntp/sdk" LDFLAGS=" --sysroot=/data/add_ntp/sdk" CPPFLAGS=" --sysroot=/data/add_ntp/sdk"
sh /home/daninorr/workspace/Hello/autogen.sh --with-libtool-sysroot=/data/add_ntp/sdk --target=powerpc-poky-linux --host=powerpc-poky-linux --build=x86_64-linux --with-libtool-sysroot=/data/add_ntp/sdk
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 /home/daninorr/Projects/poky/meta/site/endian-big
configure: loading site script /home/daninorr/Projects/poky/meta/site/powerpc-common
configure: loading site script /home/daninorr/Projects/poky/meta/site/common-linux
configure: loading site script /home/daninorr/Projects/poky/meta/site/common-glibc
configure: loading site script /home/daninorr/Projects/poky/meta/site/powerpc32-linux
configure: loading site script /home/daninorr/Projects/poky/meta/site/powerpc-linux
configure: loading site script /home/daninorr/Projects/poky/meta/site/common
configure: loading site script /data/add_ntp/tmp/sysroots/qemuppc/usr/share/powerpc-poky-linux_config_site.d/ncurses_config
configure: loading site script /data/add_ntp/tmp/sysroots/qemuppc/usr/share/powerpc-poky-linux_config_site.d/eglibc_config
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for powerpc-poky-linux-strip... powerpc-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... x86_64-pc-linux-gnu
checking host system type... powerpc-poky-linux-gnu
checking how to print strings... printf
checking for style of include used by make... GNU
checking for powerpc-poky-linux-gcc... powerpc-poky-linux-gcc -m32 -mhard-float -mcpu=603e --sysroot=/data/add_ntp/tmp/sysroots/qemuppc
checking whether the C compiler works... no
configure: error: in `/home/daninorr/workspace/Hello':
configure: error: in `/home/daninorr/workspace/Hello':
configure: error: C compiler cannot create executables
configure: error: C compiler cannot create executables
See `config.log' for more details
Configuration failed with error
The /data/add_ntp/sdk folder is the extracted sysroot .
However, I can build the project from the terminal if I source the generated environment-setup-ppc603e-poky-linux file, cd into the workspace and run sh autogen.sh $CONFIGURATION_FLAGS; make.
config.log has the following errors:
root=/data/add_ntp/tmp/sysroots/qemuppc -V >&5
powerpc-poky-linux-gcc: error: unrecognized command line option '-V'
powerpc-poky-linux-gcc: fatal error: no input files
configure:3166: powerpc-poky-linux-gcc -m32 -mhard-float -mcpu=603e --sys root=/data/add_ntp/tmp/sysroots/qemuppc -qversion >&5
powerpc-poky-linux-gcc: error: unrecognized command line option '-qversion'
powerpc-poky-linux-gcc: fatal error: no input files
compilation terminated.
Some information about my system:
OS: Ubuntu 12.04 64-bit
Eclipse: 3.7.2
Yocto ADT Plugin: 1.2.0.201206291757
Autotools Plugin: 3.0.1.201202152032
I followed the ADT User's Guide instructions almost verbatim, so I'm not sure if I did something wrong or not.
Thanks!
-------------------------------------------------------
Daniel Norris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20120921/15682b0d/attachment.html>
More information about the yocto
mailing list