[LLVMdev] C++0x Bug in CMake?

Chandler Carruth chandlerc at google.com
Tue Jan 21 10:24:59 PST 2014

On Tue, Jan 21, 2014 at 10:20 AM, Dmitri Gribenko <gribozavr at gmail.com>wrote:

> On Tue, Jan 21, 2014 at 8:03 PM, Renato Golin <renato.golin at linaro.org>
> wrote:
> > Chandler,
> >
> > I may be doing this wrong, but I'm getting a weird error in building LLVM
> > with Clang via CMake.
> I have been debugging a similar issue that I isolated to r199484.  The
> issue surfaces for me as:
> /opt/centos/devtoolset-1.1/root/usr/bin/ld:
> ../../lib/libLLVMAArch64CodeGen.a(AArch64AsmPrinter.cpp.o): relocation
> R_X86_64_32 against `.rodata..L.str5' can not be used when making a
> shared object; recompile with -fPIC
> ../../lib/libLLVMAArch64CodeGen.a: could not read symbols: Bad value
> clang-3.4: error: linker command failed with exit code 1 (use -v to
> see invocation)
> [ 95%] make[2]: *** [lib/libLTO.so] Error 1
> The same can be seen on some of our bulidbots (those that use Clang and
> CMake).

This *could* be the same thing I suppose... If my fix actually helps,
please let me know. But I don't completely see how this particular error
happens so I'll be intrigued.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140121/1e40fba1/attachment.html>

More information about the llvm-dev mailing list