Question

I'm trying to build an open source project with llvm-gcc 4.2 with -emit-llvm flag. However I get many errors due to warning flags.

Example of these errors:

cc1: error: unrecognized command line option "-Warray-bounds"
cc1: error: unrecognized command line option "-Wjump-misses-init"
cc1: error: unrecognized command line option "-Wvla"
cc1: error: unrecognized command line option "-Wignored-qualifiers"
cc1: error: unrecognized command line option "-Wlogical-op"
cc1: error: unrecognized command line option "-fexcess-precision=fast"

In clang I would use -Wno-error to ignore them, but that doesn't seem to work with llvm-gcc. Manually removing the flags does not seem reasonable considering that there are 144 Makefiles.

How would I approach this problem?

Was it helpful?

Solution

I was trying hard to search for recent information on llvm-gcc and failed. I concluded that it's a dead project that was part of former LLVM releases but is no longer actively developed. Therefore it doesn't support the same set of warnings as current GCC versions and you cannot expect it to work with the same command line.

The errors you're getting tell you which CLI options are not supported and you have no choice than to remove them or stop using llvm-gcc and switch to something more modern. According to the LLVM website, the project you're looking for is called dragonegg.

http://dragonegg.llvm.org/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top