Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Building SPARC Kernel Problem
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
Sugarat
Guru
Guru


Joined: 24 Jul 2002
Posts: 348

PostPosted: Sat May 01, 2004 11:28 am    Post subject: Building SPARC Kernel Problem Reply with quote

I am halfway through a gentoo install onto my U5 and hve just configured the kernel.. now when I do make dep I get :

/bin/bash: line 1: sparc64-linux-gcc: command not found
make -C arch/sparc64/kernel check_asm
make[1]: Entering directory `/usr/src/linux-2.4.26-sparc/arch/sparc64/kernel'
sparc64-linux-gcc -E -D__KERNEL__ -I/usr/src/linux-2.4.26-sparc/include -P tmp.c -o tmp.i
make[1]: sparc64-linux-gcc: Command not found
make[1]: *** [check_asm] Error 127
make[1]: Leaving directory `/usr/src/linux-2.4.26-sparc/arch/sparc64/kernel'
make: *** [check_asm] Error 2

I have no need for 64bit anything.. how come its looking for sparc64-linux-gcc ?
Back to top
View user's profile Send private message
Mark Clegg
Apprentice
Apprentice


Joined: 05 Jan 2004
Posts: 269
Location: ZZ9 Plural Z Alpha

PostPosted: Sat May 01, 2004 12:05 pm    Post subject: Reply with quote

You do have need for 64 bit something...

the kernel.


Userland is 32 bit but you need to emerge the 64 bit compiler to build the kernel.
Back to top
View user's profile Send private message
Sugarat
Guru
Guru


Joined: 24 Jul 2002
Posts: 348

PostPosted: Sat May 01, 2004 1:39 pm    Post subject: Reply with quote

Ah ok.. fairy nuff.

So how do I install the kernel..? I've followed all the instructions but its failing to build it..
Back to top
View user's profile Send private message
Sugarat
Guru
Guru


Joined: 24 Jul 2002
Posts: 348

PostPosted: Sat May 01, 2004 2:42 pm    Post subject: Reply with quote

I just looked through the handbook again and cant see that I missed any steps.. I emerged the sparc-sources and did make menuconfig, but it still gives me the error about am issing gcc64
Back to top
View user's profile Send private message
Mark Clegg
Apprentice
Apprentice


Joined: 05 Jan 2004
Posts: 269
Location: ZZ9 Plural Z Alpha

PostPosted: Sat May 01, 2004 3:53 pm    Post subject: Reply with quote

Have you emerged gcc-sparc64
Back to top
View user's profile Send private message
Sugarat
Guru
Guru


Joined: 24 Jul 2002
Posts: 348

PostPosted: Sat May 01, 2004 4:13 pm    Post subject: Reply with quote

Hi Mark,

No - I havent done anything that isnt in the install instructions. If i try and fix things myself people usually go -'Doh! You shouldnt have done that...!'

I've started emerging it now.
Back to top
View user's profile Send private message
Sugarat
Guru
Guru


Joined: 24 Jul 2002
Posts: 348

PostPosted: Sat May 01, 2004 5:23 pm    Post subject: Reply with quote

No.. that failed:

umoddi3.o libgcc/./_udiv_w_sdiv.o libgcc/./_udivmoddi4.o libgcc/./unwind-dw2.o libgcc/./unwind-dw2-fde-glibc.o libgcc/./unwind-sjlj.o libgcc/./unwind-c.o libgcc/./_eprintf.o libgcc/./_bb.o libgcc/./__gcc_bcmp.o
make[2]: sparc64-unknown-linux-gnu-ar: Command not found
make[2]: *** [libgcc.a] Error 127
make[2]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/gcc-sparc64-3.3.3/work/build/gcc'
make[2]: Leaving directory `/var/tmp/portage/gcc-sparc64-3.3.3/work/build/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-sparc64-3.3.3/work/build/gcc'
make: *** [all-gcc] Error 2

!!! ERROR: sys-devel/gcc-sparc64-3.3.3 failed.
!!! Function src_compile, Line 86, Exitcode 2
!!! (no error message)


Does anyone know why the handbook seems to be wrong here?
Back to top
View user's profile Send private message
ciaranm
Retired Dev
Retired Dev


Joined: 19 Jul 2003
Posts: 1719
Location: In Hiding

PostPosted: Sat May 01, 2004 5:40 pm    Post subject: Reply with quote

Did you change your CHOST?
Back to top
View user's profile Send private message
Sugarat
Guru
Guru


Joined: 24 Jul 2002
Posts: 348

PostPosted: Sat May 01, 2004 6:17 pm    Post subject: Reply with quote

No I havent touched it. it is sparc-linux-unknown-gnu
Back to top
View user's profile Send private message
Mark Clegg
Apprentice
Apprentice


Joined: 05 Jan 2004
Posts: 269
Location: ZZ9 Plural Z Alpha

PostPosted: Sat May 01, 2004 6:26 pm    Post subject: Reply with quote

On my system sparc64-unknown-linux-gnu-ar is symlinked to sparc64-unknown-linux-gnu-ar, and it works out whether to do a 32 or 64 bit link based on the executable name invoked.

Thing is, qpkg tells me they both come from binutils

Its a while since I installed my system and I can't remember having problems in that area.

As a shot in the dark, what stage tarball are you using - and it is a sparc64 one isn't it.
Back to top
View user's profile Send private message
Sugarat
Guru
Guru


Joined: 24 Jul 2002
Posts: 348

PostPosted: Sat May 01, 2004 6:30 pm    Post subject: Reply with quote

Aaah.. I think you've just hit the nail on the head old chap..

I think I downloaded a stageII from the sparc directory on the mirror, not the sparc64. I figured I wouldnt need anything 64bit.. Is the sparc directory for older sun architectures then?

I'll go get the sparc64 stageII.
Back to top
View user's profile Send private message
Mark Clegg
Apprentice
Apprentice


Joined: 05 Jan 2004
Posts: 269
Location: ZZ9 Plural Z Alpha

PostPosted: Sat May 01, 2004 6:35 pm    Post subject: Reply with quote

sparc is for 32 bit processors, sparc64 is for 64 bit.

The ultra 5 has an UltraSPARC IIi processor which is 64 bit.

You get a 64 bit kernel and 32 bit userland. - If you want to know why - I think ciaranm put extensive reasons in other threads (certainly somebody has).... just do a search.,
Back to top
View user's profile Send private message
GenTimJS
Guru
Guru


Joined: 03 May 2003
Posts: 406
Location: NH, USA

PostPosted: Sun May 02, 2004 9:01 pm    Post subject: Reply with quote

even through userland is going to be 32bit, your kernel will be 64bit and needs the special 64bit compiler to generate it.

when on an ultra-anything ALWAYS consider your arch to be "sparc64" with the exception of portage ... in portage, our arch is "sparc" for 64 and 32 bit ... for some reason ....
_________________
-Tim Smith
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