Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc64 with ebuilds
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
xming
Guru
Guru


Joined: 02 Jul 2002
Posts: 441

PostPosted: Wed Aug 06, 2003 3:52 pm    Post subject: gcc64 with ebuilds Reply with quote

as some people requested this you can d/l the ebuilds of binutils64 and gcc 64 at
http://users.coditel.net/xming/gcc64-ebuilds.tgz

You have to enable PORTAGE_OVERLAY and untar this just above your PORTAGE_OVERLAY DIR. And you will have to emerge the 2 ebuild manually (marked unstable).

Currently you can have this and egc64 on the same system (they do not exclude each other) so when you want to use gcc64 you will have to do

Code:
export PATH=/opt/sparc64/bin:$PATH


This should get you a gcc64 to compile the kernel, this is the only wa if you want to try 2.{5,6}.x.

Please give me some feedback if you use these ebuilds

xming
Back to top
View user's profile Send private message
torradan
Retired Dev
Retired Dev


Joined: 29 Dec 2002
Posts: 52
Location: Niagara Falls, NY

PostPosted: Mon Aug 11, 2003 9:15 pm    Post subject: Reply with quote

Howdy,

Just grabbed these ebuilds today to try a 2.6 test kernel on my spare ultra box.

binutils seems to have built fine, but when i try to grab gcc, none of the mirrors have the file its looking for. Get the following error:

!!! Couldn't download gcc-sparc64-3.2.2.tar.bz2. Aborting.

I looked into the binutils ebuild, and saw that it seems to download plain old binutils, so i took out some of the code in the gcc ebuild, and it fails to build.
SRC_URI="ftp://gcc.gnu.org/pub/gcc/releases/${NEWP}/${P}.tar.bz2"

turned it into this, and no go:
SRC_URI="ftp://gcc.gnu.org/pub/gcc/releases/${NEWP}.tar.bz2"

any assistance would be great
_________________
-Todd <todd@gentoo.org>
-Gentoo/SPARC Developer
Back to top
View user's profile Send private message
xming
Guru
Guru


Joined: 02 Jul 2002
Posts: 441

PostPosted: Tue Aug 12, 2003 12:32 pm    Post subject: Reply with quote

This should be changed from

Quote:

SRC_URI="ftp://gcc.gnu.org/pub/gcc/releases/${NEWP}/${P}.tar.bz2"


to

Code:

SRC_URI="ftp://gcc.gnu.org/pub/gcc/releases/${NEWP}/${NEWP}.tar.bz2"


I will correct the tarball

xming

EDIT: the ebuild tarball has been corrected, BTW thanks todd
Back to top
View user's profile Send private message
sfaulconer
n00b
n00b


Joined: 06 Aug 2003
Posts: 48

PostPosted: Tue Aug 12, 2003 3:15 pm    Post subject: Difference? Reply with quote

I'm just wondering, if you are not running any programs that require large numbers, is there much of an advantage for a standard workstation to have all 64-bit userland? My understanding is that the Gentoo Kernel on SPARC is 64-bit, is that a correct understanding?

Just not sure exactly what the major advantage is. I know Solaris has been 64-bit for sometime, but I don't see the advantage there either. Our use of the Solaris does not seem to take much advantage of 64-bit .

Thanks.

SMF
Back to top
View user's profile Send private message
xming
Guru
Guru


Joined: 02 Jul 2002
Posts: 441

PostPosted: Tue Aug 12, 2003 3:56 pm    Post subject: Reply with quote

simplicity.

- One compiler to compile

- no messy 32 bit and 64 bit versions of the same libraries

- For every userland program which has to interact with kernel space data, they might work in full 32-bit and full 64-bit but not the mix. (this should be fixed by the developer, if you are running all 64-bit you won't have the problem)

xming
Back to top
View user's profile Send private message
sfaulconer
n00b
n00b


Joined: 06 Aug 2003
Posts: 48

PostPosted: Tue Aug 12, 2003 6:37 pm    Post subject: Reply with quote

xming wrote:
simplicity.

- One compiler to compile

- no messy 32 bit and 64 bit versions of the same libraries

- For every userland program which has to interact with kernel space data, they might work in full 32-bit and full 64-bit but not the mix. (this should be fixed by the developer, if you are running all 64-bit you won't have the problem)

xming


Perhaps I'm confused. When I compile my kernel on Gentoo SPARC, it is using a different compiler? Granted, I've just started my first Gentoo-SPARC installation, so I have no direct experience with it yet.

Thanks.

SMF
Back to top
View user's profile Send private message
xming
Guru
Guru


Joined: 02 Jul 2002
Posts: 441

PostPosted: Tue Aug 12, 2003 8:01 pm    Post subject: Reply with quote

Quote:

Perhaps I'm confused. When I compile my kernel on Gentoo SPARC, it is using a different compiler?


yes the old ecgs-2.95.xxx

xming
Back to top
View user's profile Send private message
sfaulconer
n00b
n00b


Joined: 06 Aug 2003
Posts: 48

PostPosted: Wed Aug 13, 2003 7:44 pm    Post subject: Reply with quote

xming wrote:
Quote:

Perhaps I'm confused. When I compile my kernel on Gentoo SPARC, it is using a different compiler?


yes the old ecgs-2.95.xxx

xming


Well, learn something new every day. I hadn't noticed it using anything different. Maybe I should pay more attention. :lol:

Thanks Xming.

SMF
Back to top
View user's profile Send private message
crazy-bee
Apprentice
Apprentice


Joined: 03 Jan 2003
Posts: 170

PostPosted: Mon Sep 01, 2003 12:36 pm    Post subject: Reply with quote

Hi ximing,

I compiled both binutils and gcc64 flawlessly.

But how can tell portage / emerge to use the gcc64 version ?

If I try to compile the kernel with gcc64 and set gcc64 in the Makefile, it complains about not beeing abled to find the ncurses library.

Some directions would be great :-!

Thanks!
Back to top
View user's profile Send private message
xming
Guru
Guru


Joined: 02 Jul 2002
Posts: 441

PostPosted: Mon Sep 01, 2003 1:05 pm    Post subject: Reply with quote

As stated in my 1st post, do this first

Quote:

export PATH=/opt/sparc64/bin:$PATH


before compiling your kernel.

There is no way to build anything others (userland apps) then the kernel by using these ebuilds. These ebuilds are made to replace egcs-sparc64 because 2.6.x requires newer compiler

hope this helps

Ming-Wei
Back to top
View user's profile Send private message
crazy-bee
Apprentice
Apprentice


Joined: 03 Jan 2003
Posts: 170

PostPosted: Mon Sep 01, 2003 2:10 pm    Post subject: Reply with quote

Hi ximing,

thanks for your fast reply. Worked perfectly!

(My mistake was using your PATH line AND adding gcc64 to the Makefile which did not work!)
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