[llvm-dev] Is GCC 4.7 still supported?

Artyom Skrobov via llvm-dev llvm-dev at lists.llvm.org
Mon Oct 17 03:19:06 PDT 2016


Hello,

http://llvm.org/docs/GettingStarted.html#software lists "GCC >=4.7.0" among requirements for building LLVM.
However, my attempt of building LLVM+Clang with gcc 4.7.3 has failed with a multitude of errors, such as:

lib/LTO/Caching.cpp:74:7: error: looser throw specifier for 'virtual llvm::lto::localCache(std::string, llvm::lto::AddFileFn)::<lambda(unsigned int, llvm::StringRef)>::CacheStream::~CacheStream()'
In file included from LTO/Caching.h:18:0,
                 from LTO/Caching.cpp:14:
LTO/LTO.h:271:11: error:   overriding 'virtual llvm::lto::NativeObjectStream::~NativeObjectStream() noexcept (true)'

tools/clang/include/clang/Analysis/CFG.h:998:38: error: '<::' cannot begin a template-argument list [-fpermissive]
tools/clang/include/clang/Analysis/CFG.h:998:38: note: '<:' is an alternate spelling for '['. Insert whitespace between '<' and '::'
tools/clang/include/clang/Analysis/CFG.h:998:38: note: (if you use '-fpermissive' G++ will accept your code)


Either the docs or the makefiles need fixing; so, which is correct and which is wrong?
If no one else has been building LLVM with GCC 4.7 recently, does that mean that nobody cares about 4.7, and therefore it's unsupported?



More information about the llvm-dev mailing list