View previous topic :: View next topic |
Author |
Message |
Piulena n00b
Joined: 02 Aug 2015 Posts: 12 Location: Berlin, Germany
|
Posted: Thu Oct 13, 2016 8:37 pm Post subject: [SOLVED] Distcc building fails with "final Link failed& |
|
|
So i have 2 machines.
Both are running gcc 5.4.0.
When trying to build, everything seems to work until it goes linking where it stops.
final Link failed: Bad Value
From the Clients make.conf:
march="-march=corei7-avx -O2 -pipe -fPIC"
FEATURES="distcc distcc-pump"
Last edited by Piulena on Sat Oct 15, 2016 9:40 am; edited 1 time in total |
|
Back to top |
|
|
dr_wulsen Tux's lil' helper
Joined: 21 Aug 2013 Posts: 146 Location: Austria
|
Posted: Fri Oct 14, 2016 2:11 pm Post subject: Ldflags |
|
|
Hi there,
AFAIK, the linking only happens locally on the client machine. So could you try to put Code: | LDFLAGS="${CFLAGS}" | in your clients make.conf?
Also, which linker are you using? BFD or GOLD?
BTW, is any mention of "Relocation type" or fPIC in the output of gcc/emerge log file?
Which packe are you trying to build? _________________ There's no stupid questions, only stupid answers. |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8708 Location: ~Brussels - Belgique
|
Posted: Fri Oct 14, 2016 2:19 pm Post subject: |
|
|
What package failed? Some packages cannot be compiled with distcc. _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
Piulena n00b
Joined: 02 Aug 2015 Posts: 12 Location: Berlin, Germany
|
Posted: Sat Oct 15, 2016 6:58 am Post subject: |
|
|
dr_wulsen, i tried both linkers and setting your suggested var, didnt help.
pretty much any package that links fails. |
|
Back to top |
|
|
dr_wulsen Tux's lil' helper
Joined: 21 Aug 2013 Posts: 146 Location: Austria
|
Posted: Sat Oct 15, 2016 8:39 am Post subject: Hello world? |
|
|
Do you have the same versions of:
*gcc
*glibc
*linux-headers
*binutils
on all machines?
I had linking failures, due to one machine having binutils 2.25.1-r1 and the other 2.26.1
This would result in a happy compiling slave machine, and an angry host that could not link the object files together due to format differences.
First step is to ensure that all four packages are the exact same version on all involved machines.
You could try to compile a helloworld.c remotely via distcc and link it locally, just to see what happens with very basic programs. _________________ There's no stupid questions, only stupid answers. |
|
Back to top |
|
|
Piulena n00b
Joined: 02 Aug 2015 Posts: 12 Location: Berlin, Germany
|
Posted: Sat Oct 15, 2016 8:54 am Post subject: |
|
|
Yep, they are both running the exact same Version.
Nano for example compiles just fine. |
|
Back to top |
|
|
Piulena n00b
Joined: 02 Aug 2015 Posts: 12 Location: Berlin, Germany
|
Posted: Sat Oct 15, 2016 9:05 am Post subject: |
|
|
I may have the exact same versions, but forgot switching to the latest binutils Version.
That Fixed it - thank you! |
|
Back to top |
|
|
dr_wulsen Tux's lil' helper
Joined: 21 Aug 2013 Posts: 146 Location: Austria
|
Posted: Sat Oct 15, 2016 9:29 am Post subject: |
|
|
Wohoo, a problem fixed!
Can you please edit your original post to include [SOLVED] in the title?
That's what the admins told me to do with my solved posts
Glad it got fixed, happy distributed compiling! _________________ There's no stupid questions, only stupid answers. |
|
Back to top |
|
|
|