[cfe-dev] [Patch] Fail to build with gcc version 4.8.1 20130904 (r202243)

Sylvestre Ledru sylvestre at debian.org
Fri Oct 11 04:25:07 PDT 2013


Hello,

Since a few days, the LLVM toolchain package fails to build with this error:

/tmp/buildd/llvm-toolchain-snapshot-3.4~svn192427/tools/clang/lib/Basic/Targets.cpp:3615:15: error: 'static bool {anonymous}::ARMTargetInfo::shouldUseInlineAtomic(const llvm::Triple&)' cannot be overloaded
   static bool shouldUseInlineAtomic(const llvm::Triple &T) {
               ^
/tmp/buildd/llvm-toolchain-snapshot-3.4~svn192427/tools/clang/lib/Basic/Targets.cpp:3585:15: error: with 'static bool {anonymous}::ARMTargetInfo::shouldUseInlineAtomic(const llvm::Triple&)'
   static bool shouldUseInlineAtomic(const llvm::Triple &T) {
               ^

Here is indeed a duplicated declaration.
The attached patch fixes the issue for me.

Is it ok applying in the source tree ?

Thanks,
Sylvestre

-------------- next part --------------
A non-text attachment was scrubbed...
Name: removeduplicatedeclaration.diff
Type: text/x-patch
Size: 1590 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20131011/0e493e49/attachment.bin>


More information about the cfe-dev mailing list