[OE-core] [PATCH] gcc: poison default sysroot path

Koen Kooi koen at dominion.thruhere.net
Sun Oct 26 11:34:27 UTC 2014


> Op 24 okt. 2014, om 16:10 heeft Richard Purdie <richard.purdie at linuxfoundation.org> het volgende geschreven:
> 
> Various pieces of the code assume that the --sysroot option gets passed
> into the compiler tools. By having a "sane" default, we don't always
> spot when this occurs and this can later show up as breakage in sstate,
> or in usage of the external toolchain.
> 
> We've long since talked about poisoning the default such that it will
> break unless the correct option is specified. This patch does just that.
> 
> If this patch causes something to fail to build, it most likely means
> the various compiler flags and commands are not correctly being passed
> through to the underlying piece of software and that there is a real
> problem that needs fixing, its not the fault of this patch. 

So hopefully this won't be needed anymore in my autobuilders:

export GCCARCH=$(MACHINE=${machine} bitbake -e | grep TARGET_ARCH\= | awk -F'"' '{print $2}') 
MACHINE=$machine bitbake gcc-cross-${GCCARCH} -c cleansstate || true

Current offenders are: u-boot, linux and on x86 only, opencv.

regards,

Koen


More information about the Openembedded-core mailing list