Gentoo Archives: gentoo-sparc

From: Zhang Weiwu <zhangweiwu@××××××.com>
To: gentoo-sparc@l.g.o
Subject: [gentoo-sparc] 64-bit gentoo-sparc, how to make it happen?
Date: Sun, 25 Jun 2006 03:59:39
Message-Id: 1151208080.4074.55.camel@esmeralda.realss
1 I have been using gentoo linux on my ultra-sparc U2 and U5 for two
2 years, untill very recently I learnt the gentoo Linux is actually not
3 64-bit (it is 32-bit).
4
5 The U2 gets broken after I upgraded OBP (when I tries Solaris 10, it
6 prompted OBP is 32-bit OBP, I must upgrade to 64bit, then I did it, then
7 this U2 never boots up again). I have the remaining U5 box serving as
8 print server, it simply run out of CPU power (a single A4 brochure
9 printing uses up CPU and caused very slow printing). I think I can run
10 the machine in 64-bit mode, recompile related packages in 64-bit
11 executable to regain some speed.
12
13 I tried to adjust C-flags:
14
15 CFLAGS="-O2 -m64 -mcpu=ultrasparc -fomit-frame-pointer -pipe"
16 (added -m64)
17
18 then emerge a package, get this error:
19
20 checking whether the C compiler (gcc -O2 -m64 -mcpu=ultrasparc
21 -fomit-frame-pointer -pipe ) works... no
22
23 I think perhaps it is not possible to compile anything in 64-bit
24 executable when the kernel itself is running in 32-bit mode. Perhaps it
25 is not possible to run 64-bit code on 32-bit kernal at all (if this
26 sounds obvious, I admit I am a newbie). So what should I do? Should I
27 try to compile a kernel with -m64 first? Then there comes another
28 question: can 32-bit OBP loads 64bit kernel? I don't know if I have 64
29 OBP at all (and don't know how to tell it), my other U2 has had 32bit
30 OBP, that's for sure.
31
32 and even if I try to compile a 64-bit kernel, that may as well not
33 possible because it seems gcc refuse to run with -m64 (the error message
34 above).
35
36 Besides, is 64-big executable much faster then 32-bit executable?
37
38 P.S. I bet there must be an article somewhere on the Internet telling
39 how to get 64-bit linux running on sparcs, only that I didn't find it.
40
41 --
42 gentoo-sparc@g.o mailing list

Replies

Subject Author
Re: [gentoo-sparc] 64-bit gentoo-sparc, how to make it happen? Zhang Weiwu <zhangweiwu@××××××.com>
Re: [gentoo-sparc] 64-bit gentoo-sparc, how to make it happen? Etaoin Shrdlu <shrdlu@×××××××××××××.org>