Compiling Error: unrecognized relocation (0x2a) in section

Asked by Levi Armstrong on 2017-10-20

Hello,

I am trying to build Qt Creator 4.4.1 on trusty and I am receiving the compiler error below for amd64 and i386. I tried several things(Changing compiler and other option provide in a google search) and I have been unsuccessful at resolving this issue.

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

Question information

Language:
English Edit question
Status:
Answered
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
2017-10-20
Last reply:
2017-10-20
Colin Watson (cjwatson) said : #1

I'm afraid we really can't help you here with arbitrary compilation issues that you happen to be encountering on our build farm. I'd suggest you start by setting up a local build environment using a tool such as sbuild, so that you can reproduce this locally and debug it interactively.

I was finally able to resolve the issue. I had to use a newer version of the linker. I added a build dependency on binutils-2.26 then pre-pended the environment variable PATH with /usr/lib/binutils-2.26/bin and everything built fine.

Can you help with this problem?

Provide an answer of your own, or ask Levi Armstrong for more information if necessary.

To post a message you must log in.