[Qt-creator] Build Error: unrecognized relocation (0x2a) in section `.text._ZN5clang7tooling19CompilationDatabaseD2Ev'

Eike Ziller Eike.Ziller at qt.io
Wed Nov 29 12:56:15 CET 2017


> On 20. Oct 2017, at 22:27, Armstrong, Levi H. <levi.armstrong at swri.org> wrote:
> 
> Hello,
>  
> I am trying to build Qt Creator 4.4.1 on trusty using g++-4.9 and I am receiving the compiler error below for amd64 and i386 but builds fine on arm64 and armhf. I tried several things (Changing compiler and other option provide in a google search) and I have been unsuccessful at resolving this issue. The issue only occurs if I include the build of the clang code model (LLVM_INSTALL_DIR=/usr/lib/llvm-3.9).
>  
> Regards,
>  
> Levi
>  
> Build Log:
> https://launchpadlibrarian.net/341828881/buildlog_ubuntu-trusty-amd64.qt59creator_4.4.1-1trusty48_BUILDING.txt.gz
>  
> Error:
> /usr/bin/ld: /usr/lib/llvm-3.9/lib/libclangTooling.a(CompilationDatabase.cpp.o): unrecognized relocation (0x2a) in section `.text._ZN5clang7tooling19CompilationDatabaseD2Ev'
> /usr/bin/ld: final link failed: Bad value
> collect2: error: ld returned 1 exit status

Information “out there” seems to hint that this can happen if you try to link with an earlier binutils than the one that was used to build the static lib.

-- 
Eike Ziller
Principal Software Engineer

The Qt Company GmbH
Rudower Chaussee 13
D-12489 Berlin
eike.ziller at qt.io
http://qt.io
Geschäftsführer: Mika Pälsi,
Juha Varelius, Mika Harjuaho
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B



More information about the Qt-creator mailing list