View previous topic :: View next topic |
Author |
Message |
jbwillia Tux's lil' helper
Joined: 07 May 2004 Posts: 108 Location: TN, USA
|
Posted: Sat May 08, 2004 11:01 am Post subject: "emerge system" failure on sparc64 smp |
|
|
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 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 |
|
|
Pigeon Guru
Joined: 21 Jun 2002 Posts: 307
|
Posted: Sat May 08, 2004 1:12 pm Post subject: |
|
|
It's probably due to bad cflags.
Can you post the error message it dies with and your cflags? |
|
Back to top |
|
|
jbwillia Tux's lil' helper
Joined: 07 May 2004 Posts: 108 Location: TN, USA
|
Posted: Sat May 08, 2004 8:47 pm Post subject: |
|
|
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 |
|
|
hardave Retired Dev
Joined: 12 Nov 2003 Posts: 38 Location: Alberta, Canada
|
Posted: Sat May 08, 2004 9:16 pm Post subject: Re: "emerge system" failure on sparc64 smp |
|
|
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 |
|
|
jbwillia Tux's lil' helper
Joined: 07 May 2004 Posts: 108 Location: TN, USA
|
Posted: Sat May 08, 2004 11:04 pm Post subject: |
|
|
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 |
|
|
hardave Retired Dev
Joined: 12 Nov 2003 Posts: 38 Location: Alberta, Canada
|
Posted: Sat May 08, 2004 11:19 pm Post subject: |
|
|
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 |
|
|
jbwillia Tux's lil' helper
Joined: 07 May 2004 Posts: 108 Location: TN, USA
|
Posted: Sun May 09, 2004 6:16 am Post subject: |
|
|
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 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. |
|
Back to top |
|
|
jbwillia Tux's lil' helper
Joined: 07 May 2004 Posts: 108 Location: TN, USA
|
Posted: Sun May 09, 2004 7:02 am Post subject: grr, new error |
|
|
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 |
|
|
hardave Retired Dev
Joined: 12 Nov 2003 Posts: 38 Location: Alberta, Canada
|
Posted: Sun May 09, 2004 7:58 am Post subject: |
|
|
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 |
|
|
jbwillia Tux's lil' helper
Joined: 07 May 2004 Posts: 108 Location: TN, USA
|
Posted: Sun May 09, 2004 8:03 am Post subject: |
|
|
oh, fun!!! I've done that once already ... well, i'll give this another shot ... * sighhh |
|
Back to top |
|
|
|