Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
clang build doesn't respect CHOST
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
xaviermiller
Bodhisattva
Bodhisattva


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

PostPosted: Wed Nov 15, 2017 8:57 pm    Post subject: clang build doesn't respect CHOST Reply with quote

Hi!

I have defined my CHOST as "x86_64-gentoo-linux-gnu" (in place of "x86_64-pc-linux-gnu") and it has always worked (since I compile).

Clang has been pushed recently in my environment, and I had a problem because "clang cannot create executables".

Indeed, clang has been compiled as "x86_64-pc-linux-gnu". And CMake/configure is trying to call "x86_64-gentoo-linux-gnu".

Is there a way to build clang by telling it to respect my special CHOST?
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


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

PostPosted: Fri Nov 17, 2017 7:56 pm    Post subject: Reply with quote

Workaround:
Code:
cd /usr/local/bin
for f in /usr/lib/llvm/5/bin/*pc* ; do ln -svf $f  $(basename $f | sed -e 's/pc/gentoo/') ; done

_________________
Kind regards,
Xavier Miller
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