From c90d4051540291162429facf8a1a0a8fb98bd1bc Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Thu, 3 Jul 2014 19:41:31 +0200 Subject: [PATCH] Disable TLS support on x86_64 explicitly. * Building gcc-4.8.3 on x86_64 with TLS support fails with an internal compiler error. Until that problem is fixed, don't use TLS on x86_64, which (due to libstdc++ compatibility) requires the same for the host cross compiler. --- build/scripts/build_cross_tools_gcc4 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/scripts/build_cross_tools_gcc4 b/build/scripts/build_cross_tools_gcc4 index 444a5dccb9..20fdf38c00 100755 --- a/build/scripts/build_cross_tools_gcc4 +++ b/build/scripts/build_cross_tools_gcc4 @@ -25,7 +25,10 @@ x86_64-*) # explicitly using --enable-multilib that causes a build # failure binutilsConfigureArgs="" - gccConfigureArgs="" + # TODO: trying to build gcc-4.8.3 on x86_64 with --enable-tls fails with an + # internal compiler error, so we disable it (overriding --enable-tls used + # in the configure invocation below) until that problem is solved. + gccConfigureArgs="--disable-tls" kernelCcFlags="$kernelCcFlags -mno-red-zone" ;; m68k-*)