Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
"emerge system" failure on sparc64 smp
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
jbwillia
Tux's lil' helper
Tux's lil' helper


Joined: 07 May 2004
Posts: 108
Location: TN, USA

PostPosted: Sat May 08, 2004 11:01 am    Post subject: "emerge system" failure on sparc64 smp Reply with quote

I am doing my first ever install of Gentoo and trying to do the "stage2 to stage3" portion of install, but it is failing. It is checking whether the C compiler works and comes up with no. I tried rerunning
Code:
emerge system
in a 32-bit userland because I read that it would work on http://www.ultralinux.com/faq.html. I use Debian on my pc and love it, but I'd really like to get Gentoo working on my Sun Ultra 60 that I just got. Please Help!!! :(
Back to top
View user's profile Send private message
Pigeon
Guru
Guru


Joined: 21 Jun 2002
Posts: 307

PostPosted: Sat May 08, 2004 1:12 pm    Post subject: Reply with quote

It's probably due to bad cflags.

Can you post the error message it dies with and your cflags?
Back to top
View user's profile Send private message
jbwillia
Tux's lil' helper
Tux's lil' helper


Joined: 07 May 2004
Posts: 108
Location: TN, USA

PostPosted: Sat May 08, 2004 8:47 pm    Post subject: Reply with quote

I have the messages in a file but I'm having a hard time getting them onto this computer because the machine i'm installing on does not have ftp, sftp, scp, sshd ... or anytihng that I can use to transfer the file over here. However, if you think it may be the cflags then here's the gcc line it's attempting:
(gcc -mcpu=ultrasparc -mtune=ultrasparc -m64 -O3 -pipe )
I looked all those flags up on the gcc page that is linked out of the install page, so they should all work. I just want to get this wroking.
Back to top
View user's profile Send private message
hardave
Retired Dev
Retired Dev


Joined: 12 Nov 2003
Posts: 38
Location: Alberta, Canada

PostPosted: Sat May 08, 2004 9:16 pm    Post subject: Re: "emerge system" failure on sparc64 smp Reply with quote

jbwillia wrote:
I tried rerunning in a 32-bit userland

Gentoo Sparc only uses a 32-bit userland, there is no supported 64-bit userland at the moment. Make sure you leave your your CHOST to the default 'sparc-unknown-linux-gnu'. Things WILL break if it is changed.

You could also look in the config.log file in the build directory of the package that's breaking for a better idea of what's going on.

jbwillia wrote:
the machine i'm installing on does not have ftp, sftp, scp, sshd

The livecd should have sshd on it. Before chrooting just do a:
Code:
# passwd
# /etc/init.d/sshd start
Back to top
View user's profile Send private message
jbwillia
Tux's lil' helper
Tux's lil' helper


Joined: 07 May 2004
Posts: 108
Location: TN, USA

PostPosted: Sat May 08, 2004 11:04 pm    Post subject: Reply with quote

I did not change the CHOST; it still is 'sparc-unknown-linux-gnu' ... however, if I do a
Code:
#unname -m
#sparc64
#sparc32 /bin/bash
#uname -m
#sparc

it still does not work. That is what I meant by switching to a 32-bit userland. Also, I have already done a chroot. I guess I could reboot the machine from the cd and remount all my partitions, but I doubt it will do much. The problem is that gcc is bombing:
Code:
#checking for gcc... gcc
#checking whether the C compiler (gcc -mcpu=ultrasparc -mtune=ultrasparc -m64 -O3 -pipe ) works... no
#configure: error: installation or configuration problem: C compiler cannot create executables.
Back to top
View user's profile Send private message
hardave
Retired Dev
Retired Dev


Joined: 12 Nov 2003
Posts: 38
Location: Alberta, Canada

PostPosted: Sat May 08, 2004 11:19 pm    Post subject: Reply with quote

The -m64 should not be used to compile userland programs, it tells the compiler to create 64-bit code. If it's in your CFLAGS, it shouldn't be. Also what package is it failing on?
Back to top
View user's profile Send private message
jbwillia
Tux's lil' helper
Tux's lil' helper


Joined: 07 May 2004
Posts: 108
Location: TN, USA

PostPosted: Sun May 09, 2004 6:16 am    Post subject: Reply with quote

It's failing on e2fsprogs-1.35. Anyways, I just took out the -m64, and it seems to be working; as in, it's currently compiling as I type this. Thank you very very much. Now I can get on with it :D I have to say, being new to Gentoo, I love these official forums. I assume I'll come to love portage as well seeing that's what everyone else is raving about. 8)
Back to top
View user's profile Send private message
jbwillia
Tux's lil' helper
Tux's lil' helper


Joined: 07 May 2004
Posts: 108
Location: TN, USA

PostPosted: Sun May 09, 2004 7:02 am    Post subject: grr, new error Reply with quote

alright, gcc is working ok now ... it successfully compiled 4 packages before coming up with a new error. Why am I having such bad luck?
Code:
>>> emerge (5 of 76) sys-apps/baselayout-1.9.0 to /
>>> md5 src_uri ;-) sysvinit-2.84.tar.gz
>>> md5 src_uri ;-) rc-scripts-1.4.11.tar.bz2
>>> Unpacking source...
>>> Unpacking sysvinit-2.84.tar.gz to /var/tmp/portage/baselayout-1.9.0/work
>>> Unpacking rc-scripts-1.4.11.tar.bz2 to /var/tmp/portage/baselayout-1.9.0/work
>>> Source unpacked.
 * Building Utilities...
gcc  -o consoletype consoletype.o
/usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.3.3/../../../../sparc-unknown-linux-gnu/bin/ld: consoletype.o: Relocations in generic ELF (EM: 3)
consoletype.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [consoletype] Error 1

!!! ERROR: sys-apps/baselayout-1.9.0 failed.
!!! Function src_compile, Line 88, Exitcode 2
!!! problem compiling utilities


This is becoming aggrivating.
Back to top
View user's profile Send private message
hardave
Retired Dev
Retired Dev


Joined: 12 Nov 2003
Posts: 38
Location: Alberta, Canada

PostPosted: Sun May 09, 2004 7:58 am    Post subject: Reply with quote

The problem is part of your system currently compiled as 64-bit, you can't mix 64-bit and 32-bit libraries. I hate to say it, but the easist thing to do is probablly reformat your partitions and extract the stage again. It sucks, but hopefully you won't have any more problems.
Back to top
View user's profile Send private message
jbwillia
Tux's lil' helper
Tux's lil' helper


Joined: 07 May 2004
Posts: 108
Location: TN, USA

PostPosted: Sun May 09, 2004 8:03 am    Post subject: Reply with quote

oh, fun!!! :x I've done that once already ... well, i'll give this another shot ... * sighhh
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