| Summary: | sys-devel/llvm-3.7.1-r1[lldb] fails to build | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Adrian Bassett <Adrian.Bassett> |
| Component: | [OLD] Development | Assignee: | LLVM support project <llvm> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | normal | CC: | kripton, mgorny, pchrist |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Adrian Bassett
2016-03-29 13:12:27 UTC
(In reply to Adrian.Bassett from comment #0) You say your active gcc is 5.3.0, but then quote the opposite (which is the reason for the problem): > FAILED: /usr/bin/clang++ -m32 -DHAVE_PROCESS_VM_READV -DHAVE_ROUND ^^^^^^^^^^^^^^^^ You are using clang (stale copy maybe?) to compile lldb as part of llvm, and that doesn't work because of unsupported headers. I got the same error when trying to build llvm with itself; it should work with 3.8.0 onwards. Just make sure to use gcc and it will build. (In reply to Holger Hoffstätte from comment #1) > (In reply to Adrian.Bassett from comment #0) > > You say your active gcc is 5.3.0, but then quote the opposite (which is the > reason for the problem): > > > FAILED: /usr/bin/clang++ -m32 -DHAVE_PROCESS_VM_READV -DHAVE_ROUND > ^^^^^^^^^^^^^^^^ > You are using clang (stale copy maybe?) to compile lldb as part of llvm, and > that doesn't work because of unsupported headers. I got the same error when > trying to build llvm with itself; it should work with 3.8.0 onwards. > Just make sure to use gcc and it will build. Thanks for the comments. You're quite right: lldb does seem to need (gcc)/g++ to build it, but, using that compiler - 5.3.0, I now have llvm-3.7.1-r1 installed (ebuild modified to use LLVM_LINK_LLVM_DYLIB rather than the, for production builds, deprecated BUILD_SHARED_LIBS). Previously I had been using llvm/clang to (re-)build itself but had only recently (at the time of the 3.7.1 -> 3.7.1-r1 upgrade) enabled the lldb flag to build the native debugger. The problem now is that a revdep-rebuild of mesa[llvm] is required but won't build against 3.7.1-r1 claiming not to be able to find llvm shared libraries. But that's another bug. Are you ok now? This shouldn't happen with current dev-util/lldb. |