[oe] Creating a new recipe, how to fix config.log: CROSS COMPILE Badness /usr/include in INCLUDEPATH?

Frans Meulenbroeks fransmeulenbroeks at gmail.com
Thu Aug 19 19:11:32 UTC 2010


2010/8/19 AJ ONeal <coolaj86 at gmail.com>:
> I'm assuming that this "CROSS COMPILE Badness" is part of OE and not part of
> the package.

Right
>
> What is it that I need to do to correct this error? Please point me in the
> right direction.

see below
>
>
> NOTE: Running task 391 of 552 (ID: 8,
> /home/coolaj86/overo-oe/user.collection/recipes/nodejs/nodejs_0.1.104.bb,
> do_qa_configure)
> ERROR: This autoconf log indicates errors, it looked at host includes.
> Rerun configure task after fixing this.
>
>
>
>
> config.log:
> ----------------------------------------
> Checking for library execinfo
> ==>
>
> int main() {
>  return 0;
> }
>
> <==
> [1/2] cxx: build/.conf_check_0/test.cpp ->
> build/.conf_check_0/testbuild/default/test_1.o
> CROSS COMPILE Badness: /usr/include in INCLUDEPATH: /usr/include
> cc1plus: internal compiler error: in add_path, at c-incpath.c:425
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <http://gcc.gnu.org/bugs.html> for instructions.
> ['arm-angstrom-linux-gnueabi-g++', '-march=armv7-a', '-mtune=cortex-a8',
> '-mfpu=neon', '-mfloat-abi=softfp',
> '-isystem/home/coolaj86/overo-oe/tmp/sysroots/armv7a-angstrom-linux-gnueabi/usr/include',
> '-fexpensive-optimizations', '-frename-registers', '-fomit-frame-pointer',
> '-O2', '-ggdb3', '-fpermissive', '-fvisibility-inlines-hidden',
> '-isystem/home/coolaj86/overo-oe/tmp/sysroots/armv7a-angstrom-linux-gnueabi/usr/include',
> '-isystem/home/coolaj86/overo-oe/tmp/sysroots/armv7a-angstrom-linux-gnueabi/usr/include',
> '-I/usr/local/include', '-I/usr/include', '../test.cpp', '-c', '-o',

The line above contains the bad guys. -I/usr/include and
-I/usr/local/include point to dirs on your host system, not to cross
include dirs.
You might have to redefine an env var (e.g. INCDIR) or you need to
patch the makefile it it contains a hard-coded path.

Good luck with your recipe.
Frans




More information about the Openembedded-devel mailing list