[oe] LPC3250, helloworld-image, configure: error: cannot run C compiled programs

Dmitry Vinokurov d.vinokuroff at gmail.com
Sat Aug 22 07:18:59 UTC 2009


Holger Hans Peter Freyther wrote:
> On Thursday 20 August 2009 20:42:03 Dmitry Vinokurov wrote:
>
> I will update the documentation with these bits:
>
>
> ASSUME_PROVIDED += " virtual/${TARGET_PREFIX}gcc "
> ASSUME_PROVIDED += " virtual/libc "
> ASSUME_PROVIDED += "linux-libc-headers "
> ASSUME_PROVIDED += "virtual/${TARGET_PREFIX}gcc "
> ASSUME_PROVIDED += "virtual/${TARGET_PREFIX}gcc-initial "
> ASSUME_PROVIDED += "virtual/${TARGET_PREFIX}gcc-intermediate "
> ASSUME_PROVIDED += "virtual/${TARGET_PREFIX}binutils "
> ASSUME_PROVIDED += "virtual/${TARGET_PREFIX}libc-for-gcc "
> ASSUME_PROVIDED += "virtual/libintl "
> ASSUME_PROVIDED += "virtual/libiconv "
>
> TARGET_PREFIX = "arm-linux-gnueabi-"
> ASSUME_SHLIBS = "libc.so.6:libc"
>
>
> The main difference are. Assume provided more binaries/libraries, use the 
> TARGET_PREFIX instead of CC, CXX, NM....
>
>
> does this work any better?
> 	z.
>
>   
I changed my config according to your advises, final version attached. 
Tried to build helloworld application: 'bitbake -v -DDD helloworld', it 
compiles and runs on target board fine. Tried to build linux kernel: 
'bitbake -v -DDD linux-2.6.27', it fails with
--------
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... arm-oe-linux-gnueabi
checking for a BSD-compatible install... 
/home/raydan/work/oe/build-linux/tmp/staging/i686-linux/usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... 
/home/raydan/work/oe/build-linux/tmp/staging/i686-linux/usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i686-linux-gcc... 
/opt/nxp/gcc-4.3.2-glibc-2.7/arm-vfp-linux-gnu/../bin/arm-vfp-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C 
compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
+ oefatal 'oe_runconf failed'
+ echo FATAL: 'oe_runconf failed'
FATAL: oe_runconf failed
+ exit 1
ERROR: function do_configure failed
ERROR: see log in 
/home/raydan/work/oe/build-linux/tmp/work/arm-oe-linux-gnueabi/module-init-tools-cross-3.2.2-r5/temp/log.do_configure.30320
NOTE: Task failed: 
/home/raydan/work/oe/build-linux/tmp/work/arm-oe-linux-gnueabi/module-init-tools-cross-3.2.2-r5/temp/log.do_configure.30320
ERROR: TaskFailed event exception, aborting
ERROR: Build of 
/home/raydan/work/oe/openembedded/recipes/module-init-tools/module-init-tools-cross_3.2.2.bb 
do_configure failed
ERROR: Task 107 
(/home/raydan/work/oe/openembedded/recipes/module-init-tools/module-init-tools-cross_3.2.2.bb, 
do_configure) failed
NOTE: Tasks Summary: Attempted 86 tasks of which 21 didn't need to be 
rerun and 1 failed.
ERROR: 
'/home/raydan/work/oe/openembedded/recipes/module-init-tools/module-init-tools-cross_3.2.2.bb' 
failed
--------

I.e. bitbake again confused cross-gcc and x86-gcc. Updated my OE with 
git pull, removed tmp/ and made rebuild -- same result.

--
Best Regards,
Dmitry Vinokurov
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: local.conf
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20090822/edb2cb3a/attachment-0002.ksh>


More information about the Openembedded-devel mailing list