Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Distcc building fails with "final Link failed"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Piulena
n00b
n00b


Joined: 02 Aug 2015
Posts: 12
Location: Berlin, Germany

PostPosted: Thu Oct 13, 2016 8:37 pm    Post subject: [SOLVED] Distcc building fails with "final Link failed& Reply with quote

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
View user's profile Send private message
dr_wulsen
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2013
Posts: 146
Location: Austria

PostPosted: Fri Oct 14, 2016 2:11 pm    Post subject: Ldflags Reply with quote

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
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8708
Location: ~Brussels - Belgique

PostPosted: Fri Oct 14, 2016 2:19 pm    Post subject: Reply with quote

What package failed? Some packages cannot be compiled with distcc.
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
Piulena
n00b
n00b


Joined: 02 Aug 2015
Posts: 12
Location: Berlin, Germany

PostPosted: Sat Oct 15, 2016 6:58 am    Post subject: Reply with quote

dr_wulsen, i tried both linkers and setting your suggested var, didnt help.
pretty much any package that links fails.
Back to top
View user's profile Send private message
dr_wulsen
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2013
Posts: 146
Location: Austria

PostPosted: Sat Oct 15, 2016 8:39 am    Post subject: Hello world? Reply with quote

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
View user's profile Send private message
Piulena
n00b
n00b


Joined: 02 Aug 2015
Posts: 12
Location: Berlin, Germany

PostPosted: Sat Oct 15, 2016 8:54 am    Post subject: Reply with quote

Yep, they are both running the exact same Version.
Nano for example compiles just fine.
Back to top
View user's profile Send private message
Piulena
n00b
n00b


Joined: 02 Aug 2015
Posts: 12
Location: Berlin, Germany

PostPosted: Sat Oct 15, 2016 9:05 am    Post subject: Reply with quote

I may have the exact same versions, but forgot switching to the latest binutils Version.
That Fixed it - thank you!
Back to top
View user's profile Send private message
dr_wulsen
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2013
Posts: 146
Location: Austria

PostPosted: Sat Oct 15, 2016 9:29 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum