[llvm-dev] unable to compile llvm with gcc 4.7.4

Teresa Johnson via llvm-dev llvm-dev at lists.llvm.org
Mon Oct 10 06:58:36 PDT 2016


+pcc who added the NativeObjectStream class

Looks like a known gcc bug, fixed in 4.8:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53613

Not sure what we do in cases like this, if it is a gcc bug.


On Mon, Oct 10, 2016 at 2:50 AM, via llvm-dev <llvm-dev at lists.llvm.org>
wrote:

> On Sat, Oct 08, 2016 at 11:02:37AM +0000, sylvain.bertrand at gmail.com
> wrote:
> > Hi,
> >
> > Encounter a compilation issue related to c++.
> >
> > Software versions:
> >       - gcc 4.7.4
> >       - llvm git commit 98a1ca117e6743dd7f2d505443a96f591d083eab
> >
> > Build log:
> >
> > Scanning dependencies of target LLVMLTO
> > [ 53%] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/Caching.cpp.o
> > /tmp/pkgs/llvm/lib/LTO/Caching.cpp: In lambda function:
> > /tmp/pkgs/llvm/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 /tmp/pkgs/llvm/include/llvm/LTO/Caching.h:18:0,
> >                  from /tmp/pkgs/llvm/lib/LTO/Caching.cpp:14:
> > /tmp/pkgs/llvm/include/llvm/LTO/LTO.h:271:11: error:   overriding
> 'virtual llvm::lto::NativeObjectStream::~NativeObjectStream() noexcept
> (true)'
> > lib/LTO/CMakeFiles/LLVMLTO.dir/build.make:67: recipe for target
> 'lib/LTO/CMakeFiles/LLVMLTO.dir/Caching.cpp.o' failed
> > make[2]: *** [lib/LTO/CMakeFiles/LLVMLTO.dir/Caching.cpp.o] Error 1
> > CMakeFiles/Makefile2:2584: recipe for target 'lib/LTO/CMakeFiles/LLVMLTO.dir/all'
> failed
> > make[1]: *** [lib/LTO/CMakeFiles/LLVMLTO.dir/all] Error 2
> > Makefile:149: recipe for target 'all' failed
> > make: *** [all] Error 2
>
> Is this the right mailing list to report compilation error? I tried to get
> a
> bugzilla account, unsuccessfully.
>
> --
> Sylvain
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>



-- 
Teresa Johnson |  Software Engineer |  tejohnson at google.com |  408-460-2413
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161010/931f7368/attachment-0001.html>


More information about the llvm-dev mailing list