[LLVMbugs] [Bug 12827] New: COVERED_SWITCH_DEFAULT is misdetected as supported
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon May 14 16:34:38 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=12827
Bug #: 12827
Summary: COVERED_SWITCH_DEFAULT is misdetected as supported
Product: Build scripts
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: autoconf
AssignedTo: unassignedbugs at nondot.org
ReportedBy: austinenglish at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 8560
--> http://llvm.org/bugs/attachment.cgi?id=8560
hack to disable that flag
With a fresh checkout of llvm/clang, I tried to build out of tree:
$ rm -rf build
$ cd build
$ ../configure --enable-optimized
configure detects -Wcovered-switch-default as supported:
#checking optional compiler flags... -Wno-variadic-macros
-Wno-missing-field-initializers -Wcovered-switch-default
(as it should, since a recent clang is installed in /usr/local/bin). If I run
make, however:
austin at debian-buildbot:~/src/llvm/build$ make
make[1]: Entering directory `/home/austin/src/llvm/build/lib/Support'
llvm[1]: Compiling regcomp.c for Release+Asserts build
cc1: error: unrecognized command line option "-Wcovered-switch-default"
/bin/rm: cannot remove
`/home/austin/src/llvm/build/lib/Support/Release+Asserts/regcomp.d.tmp': No
such file or directory
make[1]: ***
[/home/austin/src/llvm/build/lib/Support/Release+Asserts/regcomp.o] Error 1
make[1]: Leaving directory `/home/austin/src/llvm/build/lib/Support'
make: *** [all] Error 1
my workaround has been to hack out support from the makefiles, then it compiles
fine.
I get the same error if I use gcc-4.5.3 to compile, which lacks support for
that flag.
OS is debian testing, 32-bit.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list