4433ad8f5c
Since the commit [1], the utils/genrandconfig script improved the
configuration randomization used by autobuilders. Since then it can
generate a configuration that is not suitable for an external toolchain
such the "Codescape IMG GNU Linux Toolchain".
Indeed this toolchain can be selected for mips32r5 or mips64r5 while only
mips32r2 or mips64r2 are really supported. The toolchain issue will be
fixed in a followup change.
We want to catch such issue in check_unusable_toolchain function otherwise
it is detected late during the sysroot import into staging and trigger
a weird error message:
ln: failed to create symbolic link 'output/host/mips64el-buildroot-linux-gnu/sysroot//nvmedata/autobuild/instance-25/buildroot/libc.a': No such file or directory
ln: failed to create symbolic link 'output/host/mips64el-buildroot-linux-gnu/sysroot/usr//nvmedata/autobuild/instance-25/buildroot/libc.a': No such file or directory
This is similar test than for the main sysroot check but this time we have
to use the toolchain cflags to check the architecture sysroot.
If the architecture sysroot doesn't exist, the toolchain will reply with
"libc.a".
Either the toolchain is really broken or we used a wrong target
architecture variant. In the later case, the toolchain infrastructure will
print a meaningful error message.
Note: We also may get a similar issue using the toolchain-external-custom package
if a toolchain is used with a wrong target architecture variant.
Fixes:
http://autobuild.buildroot.org/results/701/701e8a5f713f7bdd1f32a4c549cdaac580e2522a/
[1]
|
||
---|---|---|
.. | ||
toolchain-external-arm-aarch64 | ||
toolchain-external-arm-aarch64-be | ||
toolchain-external-arm-arm | ||
toolchain-external-bootlin | ||
toolchain-external-codescape-img-mips | ||
toolchain-external-codescape-mti-mips | ||
toolchain-external-codesourcery-aarch64 | ||
toolchain-external-codesourcery-arm | ||
toolchain-external-codesourcery-mips | ||
toolchain-external-codesourcery-niosII | ||
toolchain-external-custom | ||
toolchain-external-linaro-aarch64 | ||
toolchain-external-linaro-aarch64-be | ||
toolchain-external-linaro-arm | ||
toolchain-external-linaro-armeb | ||
toolchain-external-synopsys-arc | ||
Config.in | ||
pkg-toolchain-external.mk | ||
toolchain-external.mk |