Gary,

Pls compile your application using the cmd line to debug the error:

# source /home/gary/mytarget_poky/tmp/environment-setup-ppc603e-poky-linux
# cd /home/gthomas/workspace/yocto_test3
# ./configure --host=powerpc-poky-linux --build=i686-linux 
--target=powerpc-poky-linux

If it still fails, you may look at the config.log to see what actually goes 
wrong here.

Best regards,
-Lianhao

>> Gary Thomas wrote:
>>>> I did that and now I can move a bit farther. I managed to select my
>>>> SDK type (ppc603e-poky-linux) and started with the autotools
>>>> example. However, I
>>>> get this error when trying to run autogen.sh:
>>>> 
>>>> 
>>>> Generating Makefile in build directory:
>>>> /home/gthomas/workspace/yocto_test3
>>>> 
>>>> sh /home/gthomas/workspace/yocto_test3/configure
>>>> --host=powerpc-poky-linux --build=i686-linux
>>>> --target=powerpc-poky-linux checking for a BSD-compatible install...
>>>> /usr/bin/install -c
>>>> checking whether build environment is sane... yes
>>>> checking for powerpc-poky-linux-strip... no
>>>> checking for strip... strip
>>>> configure: WARNING: using cross tools not prefixed with host triplet
>>>> 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... powerpc-poky-linux-gnu
>>>> checking for style of include used by make... GNU
>>>> checking for powerpc-poky-linux-gcc... powerpc-poky-linux-gcc
>>>> checking whether the C compiler works... no
>>>> configure: error: in `/home/gthomas/workspace/yocto_test3':
>>>> configure: error: C compiler cannot create executables
>>>> See `config.log' for more details.
>>>> 
>>>> Configuration failed with error
>>>> 
>>>> It looks like there is a confusion over the SDK type and the
>>>> compiler setup?
>>>> 
>>> 
>>> BTW, this was on my console (hidden by the eclipse window), in
>>> case it helps:
>>> 
>>> get env key CC value powerpc-poky-linux-gcc
>>> get env key CXX value powerpc-poky-linux-g++
>>> get env key GDB value powerpc-poky-linux-gdb
>>> get env key TARGET_PREFIX value powerpc-poky-linux-
>>> get env key CONFIGURE_FLAGS value --target=powerpc-poky-linux
>>> --host=powerpc-poky-linux --build=i686-linux get env key CFLAGS value
>>> -mcpu=603e -mhard-float
>>> get env key CXXFLAGS value -mcpu=603e -mhard-float
>>> get env key POKY_NATIVE_SYSROOT value
>>> /home/gary/mytarget_poky/tmp/sysroots/i686-linux
>>> get env key POKY_TARGET_SYSROOT value
>>> /home/gary/mytarget_poky/tmp/sysroots/ppc603e-poky-linux
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to