[compiler-rt] fef39cc - [tsan] Another attempt to fix GCC 8.3 build after D107911

Douglas Yung via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 16 17:07:47 PDT 2021


Author: Douglas Yung
Date: 2021-08-16T17:01:57-07:00
New Revision: fef39cc472a773fae4761deaab1c701024ad13ec

URL: https://github.com/llvm/llvm-project/commit/fef39cc472a773fae4761deaab1c701024ad13ec
DIFF: https://github.com/llvm/llvm-project/commit/fef39cc472a773fae4761deaab1c701024ad13ec.diff

LOG: [tsan] Another attempt to fix GCC 8.3 build after D107911

This removes the -Werror compilation flag for x64 linux to work around a gcc bug.

GCC 8.3 reports '__tsan::v3::Event::type’ is too small to hold all values of ‘enum class __tsan::v3::EventType’
incorrectly which gets promoted to an error and causes the build to fail.

Added: 
    

Modified: 
    compiler-rt/lib/tsan/go/buildgo.sh

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/tsan/go/buildgo.sh b/compiler-rt/lib/tsan/go/buildgo.sh
index 661a2e21c2f32..489da16066dd4 100755
--- a/compiler-rt/lib/tsan/go/buildgo.sh
+++ b/compiler-rt/lib/tsan/go/buildgo.sh
@@ -59,7 +59,7 @@ if [ "`uname -a | grep Linux`" != "" ]; then
 	elif [ "`uname -a | grep x86_64`" != "" ]; then
 		SUFFIX="linux_amd64"
 		ARCHCFLAGS="-m64 -msse4.2"
-		OSCFLAGS="$OSCFLAGS -ffreestanding -Wno-unused-const-variable -Werror -Wno-unknown-warning-option"
+		OSCFLAGS="$OSCFLAGS -ffreestanding -Wno-unused-const-variable -Wno-unknown-warning-option"
 	elif [ "`uname -a | grep aarch64`" != "" ]; then
 		SUFFIX="linux_arm64"
 		ARCHCFLAGS=""


        


More information about the llvm-commits mailing list