Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
C compiler cannot create executables
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
oddle
n00b
n00b


Joined: 11 May 2004
Posts: 24

PostPosted: Tue Jun 14, 2005 3:01 pm    Post subject: C compiler cannot create executables Reply with quote

All,

I started a process that I had HOPED would be quick and painless but so far has been very difficult (at least for me). What I am trying to do is do an upgrade of gnome on my E250. So far I have had MD5SUM failures on packages in portage, I ran into a dependencies problem with evolution-data-server and libsoup.2.2.so vs libsoup.2.3.so. Now I'm running into another problem.

during my
Code:
emerge -uD gnome


I get another error that says

Code:

checking cache ./config.cache
checking host system type. . . sparc-unknown-linux-gnu
checking target system type. . . sparc-unknown-linux-gnu
checking build system type. . . sparc-unknown-linux-gnu
checking for a BSD compatible install. . . /bin/install -c
checking whether ln works. . . yes
checking whether ln -s works. . . yes
checking for gcc. . . gcc
checking whether the C compiler (gcc -02 -pipe -mcpu-ultrasparc ) works. . . no
configure: error: installation or configuration problem: C compiler cannot create executables.

!!!  ERROR: sys-devel/binutils-2.16.1 failed.
!!!  Function toolchain-binutils_src_compile, Line 126, Exitcode 1
!!!  configure failed
!!!  If you need support, post the topmost build error, NOT this status message.


Any help on this??

Thanks
Oddle
Back to top
View user's profile Send private message
tomk
Administrator
Administrator


Joined: 23 Sep 2003
Posts: 7219
Location: Sat in front of my computer

PostPosted: Tue Jun 14, 2005 3:33 pm    Post subject: Reply with quote

Have you read this FAQ and the topics linked from it?
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
oddle
n00b
n00b


Joined: 11 May 2004
Posts: 24

PostPosted: Tue Jun 14, 2005 5:51 pm    Post subject: Thanks... will let you know how it goes from here Reply with quote

tomk,

I went to the FAQ link and I had either tried each solution or the proposed solution did not work, UNTIL I got to nearly the bottom of page 3 and found toddles13 post about binutils-config. While the solution to my problem was not exactly what he proposed (there isn't a --sparc option), his post did point me to a solution. The solution that worked for me is as follows:

Code:

binutils-config -c


which shows current configuration

Code:

binutils-config -l


shows available configurations

I found that my binutils-config current configuration was pointing to a profile that didn't exist. To fix this I used the following

Code:

binutils-config sparc-unknown-linux-gnu-X.X.X


where sparc-unknown-linux-gnu-X.X.X was the latest available version from the binutils-config -l command

and finally

Code:

source /etc/profile


when running the source /etc/profile, I did get an error about an IF Statement... but it all seems to be working now... will update more later.

Thanks
Oddle
Back to top
View user's profile Send private message
equi-NoX
Apprentice
Apprentice


Joined: 17 Feb 2004
Posts: 172
Location: Paris, France

PostPosted: Tue Jun 14, 2005 6:20 pm    Post subject: Reply with quote

I had the same problem and it just works now, thanks ! :)
Back to top
View user's profile Send private message
oddle
n00b
n00b


Joined: 11 May 2004
Posts: 24

PostPosted: Tue Jun 14, 2005 7:42 pm    Post subject: update on my emerge Reply with quote

Well I have emerged about half of the packages required when performing a
Code:

emerge -uD gnome

and so far no errors. I hate to change the main topic to [SOLVED] but I'm thinking it will be going that way soon!

Glad this helped equi-Nox

Thanks All
Oddle
Back to top
View user's profile Send private message
ktech
Guru
Guru


Joined: 12 Apr 2003
Posts: 340

PostPosted: Tue Jun 14, 2005 8:01 pm    Post subject: Reply with quote

binutils package should be modified to acomplish this, as I have had the same problem...
Back to top
View user's profile Send private message
gust4voz
Retired Dev
Retired Dev


Joined: 09 Sep 2003
Posts: 373
Location: Buenos Aires, Argentina

PostPosted: Tue Jun 14, 2005 9:38 pm    Post subject: Reply with quote

binutils-2.16.1? That sounds terribly like a blanket ACCEPT_KEYWORDS=~sparc somewhere.
People, you should know that doing ~arch isn't for the faint of heart.
~arch is testing - things can break, and they do.
If you just want some ~arch package or stuff please use /etc/portage/package.* (man 5 portage) for that.
It's not fun getting hit by core or toolchain stuff breaking, and when you realize it may be a real PITA to roll back.
_________________
Gustavo Zacarias
Gentoo/SPARC monkey
Back to top
View user's profile Send private message
rsborn
Tux's lil' helper
Tux's lil' helper


Joined: 10 Feb 2004
Posts: 105
Location: Webster, NY

PostPosted: Tue Jun 14, 2005 11:29 pm    Post subject: Reply with quote

I agree with you Gustavo, the problem is there is not as many of us sparc guys and the packages tend to stay ~ longer than most of us like. I for one keep ~sparc as a default but won't do an emerge world until a day or so after my sync, let the real daring ones wring out the really weird problems

Rick
Back to top
View user's profile Send private message
gust4voz
Retired Dev
Retired Dev


Joined: 09 Sep 2003
Posts: 373
Location: Buenos Aires, Argentina

PostPosted: Wed Jun 15, 2005 12:58 am    Post subject: Reply with quote

For ebuilds that have been ~sparc forever with no stable version and are known to work you can report them on https://bugs.gentoo.org (assigned to sparc@).
Same applies for ebuilds that are not even keyworded ~sparc.
There are plans to make kind of a testing team for sparc (like amd64 has), not official devs, to help on keywording/testing.
But please, only stuff you use, not just go plain testing anything nobody cares about and reporting to score points since they later take time out of devels hands to maintain.
_________________
Gustavo Zacarias
Gentoo/SPARC monkey
Back to top
View user's profile Send private message
rsborn
Tux's lil' helper
Tux's lil' helper


Joined: 10 Feb 2004
Posts: 105
Location: Webster, NY

PostPosted: Wed Jun 15, 2005 4:00 am    Post subject: Reply with quote

Yep, I completely agree, a few months ago I needed Plone for a little project I was doing and it was masked (missing keyword), this forced me to setup a portage overlay and set all of the keywords, tested and then wrote bugs on the missing keywords. Hopefully everyone that needs a package does this sort of thing.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc 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