Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc-sparc64 failed to compile [RESOLVED]
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
oldan
Tux's lil' helper
Tux's lil' helper


Joined: 11 Dec 2003
Posts: 137
Location: Atlanta, Georgia, USA

PostPosted: Wed Mar 02, 2005 3:31 am    Post subject: gcc-sparc64 failed to compile [RESOLVED] Reply with quote

G'day!
I'm installing Gentoo on my new-to-me Sun Ultra-10 using a network connected stage 2 install (using the minimal ISO).
Everything compiled just fine until we got to the gcc compile (naturally!).

As it finished the *LAST* file for "emerge system" I got the following error:
Code:
make[2]: sparc64-unknown-linux-gnu-ar: Command not found


I suspect the command that caused it is above in this mess:
Code:

make[3]: Entering directory '/var/tmp/portage/gcc-sparc64-3.3.5/work/build/gcc'
make[3]: Leaving directory '/var/tmp/portage/gcc-sparc64-3.3.5/work/build/gcc'
rm -rf ./libgcc.a
sparc64-unknown-linux-gnu-ar rc ./libgcc.a libgcc/ (followed by a bunch of .o filenames)
.

Apparently this is in src_compile of the ebuild.
Any ideas what could be amiss?
--Oldan
Back to top
View user's profile Send private message
oldan
Tux's lil' helper
Tux's lil' helper


Joined: 11 Dec 2003
Posts: 137
Location: Atlanta, Georgia, USA

PostPosted: Thu Mar 03, 2005 4:13 pm    Post subject: Resolution Reply with quote

Well, now - I'm happy to report that the problem has been resolved.

I took a careful look for the file that was being requested
Oldan wrote:
sparc64-unknown-linux-gnu-ar
.

I didn't find it. I did, however find
Newdan wrote:
sparc64-Sun4u-linux-gnu-ar
.

Then it hit me. I had been going through the documentation which clearly says:
Documentation wrote:
Although it may be tempting for non-stage1 users, they should not change CHOST setting in make.conf
.

But I did. I changed from sparc64-unknown to sparc64-Sun4u (attempting to specify my processor more correctly).

Clearly this is why you don't change your CHOSTS. :D

Part of the process creates an "ar" file specific to your host type which is called when compiling stuff.

So all you lookey lous who came by and found this post... put that in the back of your brain for the next time someone asks!

Hanging my head down for not reading the perfectly wonderful docs,
--oldan
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