You are not logged in.

#1 2007-12-18 00:19:19

k.mandla
Member
From: Japan
Registered: 2006-05-16
Posts: 86
Website

Rebuilding gcc and gcc-libs for i586

Hi. A quick question, if you don't mind. I'm trying to rebuild (or should I say update?) just about everything on an i586, but I'm a little stuck between gcc and gcc-libs.

This is from the PKGBUILD for gcc-libs ...

makedepends=('binutils>=2.18-3' 'gcc>=4.2.2')

And this is from the PKGBUILD for gcc ...

depends=('binutils>=2.18-3' "gcc-libs>=${pkgver}")

where $(pkgver) is the same as the gcc version, or 4.2.2. So on the surface it appears I can't compile either one since each one seems to be a dependency for the other (and makepkg spits out an error to that effect, for both, when I try).

Is there a graceful or correct way to rebuild both packages? Is there another package I'm overlooking that will handle both of them?

As you can imagine, I'd like to do this correctly the first time, since the trial-and-error method involves hours off my life. wink

Cheers and thanks in advance.

Last edited by k.mandla (2007-12-18 00:21:50)


Linux user No. 409907

Offline

#2 2007-12-18 01:34:12

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,400
Website

Re: Rebuilding gcc and gcc-libs for i586

If you look at the gcc and gcc-libs PKBUILDs you will see they are about the same, but just install different things.  My strategy would be to build gcc & gcc-libs while ignoring the dependency check in makepkg.  Then install both at the same time.  You could maybe then rebuild and install gcc-libs followed by rebuilding and installing gcc, but I don't think it is too necessary because gcc bootstraps itself by default anyway. 

Saying that, I have always been pretty reckless at maintaining my toolchain.  You should probably go gcc -> glibc -> binutils -> gcc  (gcc = gcc+gcc-libs) or something like that...

Offline

#3 2007-12-18 13:15:23

k.mandla
Member
From: Japan
Registered: 2006-05-16
Posts: 86
Website

Re: Rebuilding gcc and gcc-libs for i586

Thanks, I'll give it a whirl and see what happens. Cheers!


Linux user No. 409907

Offline

#4 2007-12-19 13:27:46

k.mandla
Member
From: Japan
Registered: 2006-05-16
Posts: 86
Website

Re: Rebuilding gcc and gcc-libs for i586

No luck, I'm afraid. makepkg crashes on both gcc and gcc-libs with the -d flag. I still have a few tricks up my sleeve, so if I find a way around this I'll tell later. smile


Linux user No. 409907

Offline

#5 2007-12-19 22:13:02

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,400
Website

Re: Rebuilding gcc and gcc-libs for i586

What version of gcc do you currently have on your system?  Is it makepkg that "crashes" or does the gcc build fail.  If the later, you may have to take it in steps... (3.4 -> 4.0 -> 4.2 - I have that problem in mingw)

Offline

#6 2007-12-19 23:28:42

k.mandla
Member
From: Japan
Registered: 2006-05-16
Posts: 86
Website

Re: Rebuilding gcc and gcc-libs for i586

makepkg will halt without a -d flag, and the build process snags and stops with -d.

The gcc version is 4.1.1. I started with an installation of Lowarch, hoping that I could hopscotch my way up to a current system. It's gone well so far, but this part is turning prickly.

I compiled both packages for i586, plus glibc-2.7 and binutils-2.18, overnight on my "fast" machine (1Ghz ... lol ), so later today I'll see if copying them across and installing en masse helps at all. Judging from the wiki pages, it should help.

Thanks for the tips, by the way. Compiling is not my favorite thing, but I'm learning a lot.

Last edited by k.mandla (2007-12-19 23:31:17)


Linux user No. 409907

Offline

#7 2007-12-21 00:06:03

k.mandla
Member
From: Japan
Registered: 2006-05-16
Posts: 86
Website

Re: Rebuilding gcc and gcc-libs for i586

Well, updating those four packages alone made the system unusable -- "Illegal instruction" errors at every terminal, and the system wouldn't boot. Oh well. I've learned a lot.

I'm under a time crunch for the holidays so I may have to postpone this for a while and come back to it later. Thanks for the suggestions, Allan.


Linux user No. 409907

Offline

#8 2008-02-17 10:38:00

PEGAS
Member
Registered: 2007-11-27
Posts: 2

Re: Rebuilding gcc and gcc-libs for i586

Hey man! How are you doing? Ill be very happy you will share with me your i586 Arch repo or smthng like this! Thx a lot!

Offline

#9 2008-02-23 05:02:57

karolinali
Member
Registered: 2006-11-20
Posts: 1

Re: Rebuilding gcc and gcc-libs for i586

I have built much of archlinux for i586. It can be found on ftp://archi586.ath.cx/archi586

That collection is slightly non-standard, since some packages have newer versions than archlinux, and I have put some updates from testing into core. It is also based on abs from december. It is running itself, so it is perfectly working.

It did not at all go as smooth and easy that I throught that building archlinux from source would be.

Offline

Board footer

Powered by FluxBB