Looks like we are using too much memory during the link for a i386 system : cd "/tmp/buildd/llvm-toolchain-snapshot-3.9~svn265476/build-llvm/tools/lldb/tools/lldb-server" && /tmp/cmake/bin/cmake -E cmake_symlink_executable ../../../../bin/lldb-server-3.9.0 ../../../../bin/lldb-server make[4]: Leaving directory `/tmp/buildd/llvm-toolchain-snapshot-3.9~svn265476/build-llvm' [ 98%] Built target lldb-server /usr/bin/ld: final link failed: Memory exhausted collect2: error: ld returned 1 exit status make[4]: *** [lib/liblldb-3.9.so.1] Error 1
I is trying to use more than 4gb of address space?
I guess so.
Adding -gsplit-dwarf to the CXXFLAGS fixes the issue.
I don't think there is a real solution to this and -gsplit-dwarf is a viable workaround.
Yeah, this is what I end up doing: https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/blob/snapshot/debian/rules#L51