Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Broken C compiler emerging dev-libs/expat-2.2.1 [SOLVED]
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
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2021

PostPosted: Fri Jun 23, 2017 8:56 am    Post subject: Broken C compiler emerging dev-libs/expat-2.2.1 [SOLVED] Reply with quote

Last night I ran "emerge --update --blah blah world" and it failed at dev-libs/expat. Looking at the build logs, there was a horrible message configure: error: C compiler cannot create executables. There are lots of explanations of what to do when you have a broken C compiler in Gentoo, but I could see I'd successfully compiled stuff recently.

I looked for any relevant Gentoo bugs. There is one: dev-libs/expat-2.2.1 configure failure with app-shells/dash as /bin/sh. And yes, I am using dash. So the bypass is to
Code:
eselect sh list
eselect sh set n   ## for appropriate n to get bash
emerge -1 dev-libs/expat
eselect sh set m  ## to go back to dash, if you so wish

to use bash to handle expat.

Just posting this to save anyone else going down the rabbit hole of broken C compilers.
_________________
Greybeard
Back to top
View user's profile Send private message
mrbassie
l33t
l33t


Joined: 31 May 2013
Posts: 791
Location: over here

PostPosted: Fri Jun 23, 2017 9:22 am    Post subject: Reply with quote

Thanks, that hit me as well.
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