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

Khem Raj raj.khem at gmail.com
Sun Aug 23 06:53:05 UTC 2009


On (23/08/09 10:17), Dmitry Vinokurov wrote:
> >>>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.
> >>Looks like error is in wrong ./configure parameter:
> >>--host=i686-linux instead of --host=arm-oe-linux-gnueabi .
> >>Now I'm trying to find, why --host was set to i686 and where it can
> >>be changed.
> >
> >its a cross package so host being i686-linux (I suppose you are building
> >on i686 box) is ok. Look into the config.log error message should be in
> >there
> >
> >-Khem
> Hm, "configure --help" says "--host=HOST cross-compile to build
> programs to run on HOST [BUILD]" and as I understand, I will run
> programs on ARM, so it should be 'arm-oe-linux-gnueabi'.
> 
> Anyway, even if host should be x86, instead of i686-linux-gcc it
> finds arm-vfp-linux-gcc and fails.

dont confuse pure cross with canadian cross. You are doing a normal
cross build here which means build machine is same as host machine.

Your problem is probably because you are overriding CC and friends
which could be confusing (already confused) configure even more.

Try setting CC_FOR_BUILD=<your native compiler on the build machine>

Thanks

-Khem




More information about the Openembedded-devel mailing list