Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
new sparc64 stage1
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
Kumba
Developer
Developer


Joined: 16 Jul 2002
Posts: 381
Location: Sigma 957

PostPosted: Fri Sep 06, 2002 5:51 am    Post subject: Reply with quote

Well, it's up and running (Finally!), although I can't seem to get the right combination of USB drivers to make it pick up the USB keyboard, so I'm effectively locked out of the console, but I got sshd working, so now I can just ssh in from my windows machine and tweak with things.

So offhand, what is neccessary to get the system to use GCC 3.2 for 64 bit compiling?, symlink changes, unmergining egcs64?

// Edit
Should I report the glibc glitch (the one that fails on -mcpu=ultrasparc -mtune=ultrasparc) as a bug on bugs.gentoo.org?

--Kumba
_________________
"The past tempts us, the present confuses us, the future frightens us. And our lives slip away, moment by moment, lost in that vast, terrible in-between."
--Emperor Turhan, Centauri Republic
Back to top
View user's profile Send private message
xming
Guru
Guru


Joined: 02 Jul 2002
Posts: 434

PostPosted: Fri Sep 06, 2002 7:33 am    Post subject: up Reply with quote

Well congrats :)

Code:

So offhand, what is neccessary to get the system to use GCC 3.2 for 64 bit compiling?, symlink changes, unmergining egcs64?


I have searched a bit, it is in the Makefile in the kernel src, but I don't think your gcc can produce 64-bit binaries, it is not build as a cross compiler

Code:
Should I report the glibc glitch (the one that fails on -mcpu=ultrasparc -mtune=ultrasparc) as a bug on bugs.gentoo.org?


why not?

xming
Back to top
View user's profile Send private message
Kumba
Developer
Developer


Joined: 16 Jul 2002
Posts: 381
Location: Sigma 957

PostPosted: Fri Sep 06, 2002 7:51 am    Post subject: Reply with quote

Hmm, any way to test whether the default GCC 3.2 emerged by gentoo can or not? I think I read about an -m64 switch for GCC 3.x in the Sparc options somewheres, and some googling around did turn up some people reporting success in building a 2.4.18 linux/sparc64 kernel using GCC 3.1.1.

Otherwise, what are the steps for building a cross-compiler, or references to steps doing such?

--Kumba
_________________
"The past tempts us, the present confuses us, the future frightens us. And our lives slip away, moment by moment, lost in that vast, terrible in-between."
--Emperor Turhan, Centauri Republic
Back to top
View user's profile Send private message
xming
Guru
Guru


Joined: 02 Jul 2002
Posts: 434

PostPosted: Fri Sep 06, 2002 8:26 am    Post subject: gcc Reply with quote

I don't think so

Code:
gcc -m64 hello.c
cc1: -m64 is not supported by this configuration
cc1: -mlong-double-64 not allowed with -m64


There are some howtos on the net about building a cross compiler, anyway I will try when I have some more time

xming
Back to top
View user's profile Send private message
Kumba
Developer
Developer


Joined: 16 Jul 2002
Posts: 381
Location: Sigma 957

PostPosted: Fri Sep 06, 2002 8:33 am    Post subject: Reply with quote

Yeah, I just ran into that. The kernel Makefile has a check to see if the newer GCC is being used, so I ran that check at the prompt and got very similar errors.

Code:
[root@isengard linux]# sparc64-unknown-linux-gcc -m64 -mcmodel=medlow -S -o /dev/null -xc /dev/null
cc1: -m64 is not supported by this configuration
cc1: -mlong-double-64 not allowed with -m64
cc1: -mcmodel= is not supported on 32 bit systems


I'll try and google around, see what I can find (Always been interested in a cross-compiler anyways).


--Kumba
_________________
"The past tempts us, the present confuses us, the future frightens us. And our lives slip away, moment by moment, lost in that vast, terrible in-between."
--Emperor Turhan, Centauri Republic
Back to top
View user's profile Send private message
Blademan
Developer
Developer


Joined: 05 Oct 2002
Posts: 116

PostPosted: Thu Nov 21, 2002 5:54 am    Post subject: Reply with quote

So what are the ideal flags to use for UltraSparc?
Back to top
View user's profile Send private message
Kumba
Developer
Developer


Joined: 16 Jul 2002
Posts: 381
Location: Sigma 957

PostPosted: Thu Nov 21, 2002 8:59 am    Post subject: Reply with quote

I use these flags, and they work pretty well.

Code:
ARCH="sparc64"
PLATFORM="sparc64-unknown-linux-gnu"
CHOST="sparc-unknown-linux-gnu"
CFLAGS="-mcpu=v8 -mtune=v9 -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="-mcpu=v8 -mtune=v9 -O2 -pipe -fomit-frame-pointer"
MAKEOPTS="-j2"


Using -v8 as cpu, then tuning for v9 actually lets glibc compile....otherwise it complains pretty loudly about architecture mismatches.

--Kumba
_________________
"The past tempts us, the present confuses us, the future frightens us. And our lives slip away, moment by moment, lost in that vast, terrible in-between."
--Emperor Turhan, Centauri Republic
Back to top
View user's profile Send private message
Blademan
Developer
Developer


Joined: 05 Oct 2002
Posts: 116

PostPosted: Thu Nov 21, 2002 5:25 pm    Post subject: Reply with quote

Using a U60 with 2 CPUs, is MAKEOPTS="-j3" fine?
Back to top
View user's profile Send private message
xming
Guru
Guru


Joined: 02 Jul 2002
Posts: 434

PostPosted: Thu Nov 21, 2002 11:04 pm    Post subject: Reply with quote

yep
Back to top
View user's profile Send private message
manson
n00b
n00b


Joined: 23 Nov 2002
Posts: 5
Location: TX, USA

PostPosted: Sat Nov 23, 2002 4:59 am    Post subject: Reply with quote

Blademan007 wrote:
Using a U60 with 2 CPUs, is MAKEOPTS="-j3" fine?


General rule to follow is -jx where x=number of cpus + 1
1 cpu= -j2
2 cpus = -j3

Other people have reported success with x=number of cpus + 2

The general rule should work in most cases.

Laterz
_________________
This message brought to you by a NON-microsoft product.

Manson
Gentoo Linux Sparc Platform Developer
Back to top
View user's profile Send private message
o_florian
n00b
n00b


Joined: 12 Nov 2002
Posts: 9
Location: Berlin, Germany

PostPosted: Wed Jan 15, 2003 6:46 pm    Post subject: Reply with quote

Hi,
I have bootstrapped, and emerged a Ultra 5 with 1.4r2 over last weekend
xfree, WindowMaker and so worked fine, but now after an emerge sync, emerge world monday, after which everything worked quite fine still, the first problems emerge too.

this morning I did a new emerge sync, but
I cant compile the new portage-2.0.46-r6, gcc, texutils and whatnot
anymore. re-emerging binutils fails too.

errors mostly :
Quote:

/usr/bin/ld: warning: sparc:v9 architecture of input file 'some .o file'
is incompatible with sparc output


during the emerge of gcc these are mostly ignored, but it fails later,
at portage these errors are deadly at once

Quote:

ld libsandbox.o sandbox_futils.o canonicalize.o -shared -fPIC -ldl -lc -o libsandbox.so
ld: skipping incompatible /usr/lib/libdl.so when searching for -ldl
ld: skipping incompatible /usr/lib/libdl.a when searching for -ldl
ld: cannot find -ldl
make: *** [libsandbox.so] Error 1

!!! ERROR: sys-apps/portage-2.0.46-r6 failed.
!!! Function src_compile, Line 6, Exitcode 2
!!! (no error message)



my make.conf :
Quote:

USE="+sparc64"
CHOST="sparc64-gentoo-linux-gnu"
CFLAGS="-mcpu=v9 -mtune=v9 -O3 -pipe -falign-functions=4 -fprefetch-loop-arrays -ffast-math -fomit-frame-pointer "
CXXFLAGS="${CFLAGS}"
ACCEPT_KEYWORDS="sparc64"
MAKEOPTS="-j2"


whith exactly these settings did he bootstrap and emerged the system,
so what is wrong now ?

any ideas ?
_________________
Some people claim that the UNIX learning
curve is steep, but at least you only have to
climb it once.
Back to top
View user's profile Send private message
Weeve
Retired Dev
Retired Dev


Joined: 30 Oct 2002
Posts: 641

PostPosted: Fri Jan 17, 2003 2:48 am    Post subject: Reply with quote

Howdy,

Currently, you cannot have -mcpu=v9 as this will attempt to build things using 64 bit libraries. Also, having -mtune=v9 is not doing anything additional to help you. I would suggest you change -mcpu=v9 to -mcpu=ultrasparc and drop the -mtune.

Let me know if that helps.

Thanks
Back to top
View user's profile Send private message
Kumba
Developer
Developer


Joined: 16 Jul 2002
Posts: 381
Location: Sigma 957

PostPosted: Fri Jan 17, 2003 10:29 pm    Post subject: Reply with quote

You've got your USE and CHOST settings all wrong. Currently, gentoo-sparc uses "sparc" to denote both sparc32 (sun4c/d/m) and sparc64 (sun4u with 32-bit userland). Using sparc64 itself implies using an Ultrasparc system (sun4u) with 64-bit userland, which isn't exactly working yet. Below are my CFLAG Settings which work well for me. You might want to mimic them.

Code:
USE="-arts -avi -cups -dhcpcd -imlib -java -gnome -gpm -mikmod -motif -mpeg -oggvorbis -pdflib -qt -qtmt -quicktime -xmms"
ACCEPT_KEYWORDS="~sparc"
ARCH="sparc"
PLATFORM="sparc64-unknown-linux-gnu"
CHOST="sparc-unknown-linux-gnu"
CFLAGS="-mcpu=ultrasparc -mtune=ultrasparc -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-mcpu=ultrasparc -mtune=ultrasparc -O3 -pipe -fomit-frame-pointer"
MAKEOPTS="-j2"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/pam.d"


These work well for me for 99% of all sparc packages. glibc and mozilla don't work with the CFLAGS I have, but the ebuild file usually takes care of this by temporarily substituting working flags.

--Kumba
_________________
"The past tempts us, the present confuses us, the future frightens us. And our lives slip away, moment by moment, lost in that vast, terrible in-between."
--Emperor Turhan, Centauri Republic
Back to top
View user's profile Send private message
stonent
Veteran
Veteran


Joined: 07 Aug 2003
Posts: 1139
Location: Texas

PostPosted: Thu Jan 01, 2004 7:40 am    Post subject: Reply with quote

I see this is an old topic, but I was curious if anything new has been learned between then and now? Is a 64+64 system available, or are we still doing 64+32?
_________________
Inspiron 4100 & Sun UltraAXe
Portage on Solaris|Dell Laptop Hacks
The way you feel about organized religion is the same way I feel about organized socialism.
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
Goto page Previous  1, 2
Page 2 of 2

 
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