[oe] Cross canadian gcc configuration

Jacob Kroon jacob.kroon at gmail.com
Sun Dec 14 13:30:51 UTC 2014


Hi Alfonso,

On Sun, Dec 14, 2014 at 8:46 AM, Alfonso Tamés <alfonso at tames.com> wrote:
>
> When I try to compile a hello world program with the
> arm-poky-linux-gnueabi-gcc compiler, first I get an error not finding
> <stdio.h>, and when I pass the directory through the -I flag, I get the
> classic"stubs.h:7:29: fatal error: gnu/stubs-soft.h: No such file or
> directory" error which I supposed is being thrown since gcc cross canadian
> is not being configured by default (as my image) hard float.
>
> I noticed in the gcc-cross-canadian.inc that the --with-gxx-include-dir
> and --with-sysroot in EXTRA_OECONF_PATHS have a "/not/exist" string:
>
> EXTRA_OECONF_PATHS = "\
> --with-gxx-include-dir=/not/exist${target_includedir}/c++/${BINV} \
> --with-build-time-tools=${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS}/bin
> \
> --with-sysroot=/not/exist \
> --with-build-sysroot=${STAGING_DIR_TARGET} \
> "
>
>

The sysroot is poisoned by intention. Try sourcing the environment script
from the SDK, and use $CC instead of invoking the compiler binary directly.

See git commit 04b725511a505c582a3abdf63d096967f0320779 in
openembedded-core.

Jacob



More information about the Openembedded-devel mailing list