All,

I've had very mixed results during the three or four times I've run through the 
ADT manual from scratch.  There seems to be a real problem I keep encountering 
that I'd like to describe to the community with the hope that someone 
understands why I keep getting stuck.  I'm running a 32bit Ubuntu 11.10 VM and 
trying to build for a x86_64 sugarbay target machine.

The issue is that no matter which "route" I take to setup my toolchain (be it 
via the installer script or a premade toolchain I've downloaded) I always get 
"configure: error: C compiler cannot create executables" when I try to use 
Project->Reconfigure Project after starting a new HelloWorld example in 
Eclipse.  The ADT manual explicitly steps the user through to this point but 
using the Reconfigure Project feature (that puts together your Makefile for 
you) never completes.  When looking closer at the config.log I always find 
something that looks like this:

configure:3285: $? = 0
configure:3274: x86_64-poky-linux-gcc -v >&5
Using built-in specs.
COLLECT_GCC=x86_64-poky-linux-gcc
COLLECT_LTO_WRAPPER=/opt/poky/1.1.1/sysroots/i686-pokysdk-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.3/lto-wrapper
Target: x86_64-poky-linux
Configured with: 
/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86-64/build/build/tmp/work-shared/gcc-4.6.2+svnr181430-r17/gcc-4_6-branch/configure
 --build=x86_64-linux --host=i686-pokysdk-linux --target=x86_64-poky-linux 
--prefix=/opt/poky/1.1.1/sysroots/i686-pokysdk-linux/usr 
--exec_prefix=/opt/poky/1.1.1/sysroots/i686-pokysdk-linux/usr 
--bindir=/opt/poky/1.1.1/sysroots/i686-pokysdk-linux/usr/bin/x86_64-poky-linux 
--sbindir=/opt/poky/1.1.1/sysroots/i686-pokysdk-linux/usr/bin/x86_64-poky-linux 
--libexecdir=/opt/poky/1.1.1/sysroots/i686-pokysdk-linux/usr/libexec/x86_64-poky-linux
 --datadir=/opt/poky/1.1.1/sysroots/i686-pokysdk-linux/usr/share 
--sysconfdir=/opt/poky/1.1.1/sysroots/i686-pokysdk-linux/etc 
--sharedstatedir=/opt/poky/1.1.1/sysroots/i686-pokysdk-linux/com 
--localstatedir=/opt/poky/1.1.1/sysroots/i686-pokysdk-linux/var 
--libdir=/opt/poky/1.1.1/sysroots/i686-pokysdk-linux/usr/lib/x86_64-poky-linux 
--includedir=/opt/poky/1.1.1/sysroots/i686-pokysdk-linux/usr/include 
--oldincludedir=/opt/poky/1.1.1/sysroots/i686-pokysdk-linux/usr/include 
--infodir=/opt/poky/1.1.1/sysroots/i686-pokysdk-linux/usr/share/info 
--mandir=/opt/poky/1.1.1/sysroots/i686-pokysdk-linux/usr/share/man 
--disable-silent-rules 
--with-libtool-sysroot=/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86-64/build/build/tmp/sysroots/i686-pokysdk-linux-nativesdk
 --with-gnu-ld --enable-shared --enable-languages=c,c++ --enable-threads=posix 
--disable-multilib --enable-c99 --enable-long-long --enable-symvers=gnu 
--enable-libstdcxx-pch --program-prefix=x86_64-poky-linux- 
--enable-target-optspace --enable-lto --enable-libssp --disable-bootstrap 
--disable-libgomp --disable-libmudflap --enable-cheaders=c_global 
--with-local-prefix=/opt/poky/1.1.1/sysroots/x86_64-poky-linux/usr 
--with-gxx-include-dir=/usr/include/c++ 
--with-build-time-tools=/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86-64/build/build/tmp/sysroots/x86_64-linux/usr/x86_64-poky-linux/bin
 --with-sysroot=/opt/poky/1.1.1/sysroots/x86_64-poky-linux 
--with-build-sysroot=/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86-64/build/build/tmp/sysroots/qemux86-64
 --disable-libunwind-exceptions --disable-libssp --disable-libgomp 
--disable-libmudflap 
--with-mpfr=/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86-64/build/build/tmp/sysroots/i686-pokysdk-linux-nativesdk
 
--with-mpc=/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86-64/build/build/tmp/sysroots/i686-pokysdk-linux-nativesdk
 --enable-nls --enable-__cxa_atexit
Thread model: posix
gcc version 4.6.3 20111117 (prerelease) (GCC)
configure:3285: $? = 0
configure:3274: x86_64-poky-linux-gcc -V >&5
x86_64-poky-linux-gcc: error: unrecognized option '-V'
x86_64-poky-linux-gcc: fatal error: no input files
compilation terminated.
configure:3285: $? = 1
configure:3274: x86_64-poky-linux-gcc -qversion >&5
x86_64-poky-linux-gcc: error: unrecognized option '-qversion'
x86_64-poky-linux-gcc: fatal error: no input files
compilation terminated.

I've tried to figure out what this error means but haven't had any luck.  
People have made some suggestions that I've tried and they haven't worked 
either.  So, I've been told to file a bug about this but I wasn't sure which 
category it goes under and I've never filed a bug in the Yocto project before.  
I'll try to get to it this week.

In the meantime, if anyone has tried to get through the ADT manual and is cross 
compiling I'd love to hear about how it went for you.

Thanks,

~Andy Gikling
LasX Industries Inc.
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to