You are not logged in.

#1 2005-10-09 02:10:35

dlin
Member
From: Taipei,Taiwan
Registered: 2005-09-21
Posts: 264

pacman rebuild for i586

I'm rebuild the pacman on i686 machine by setting the makepkg.conf to 586.

But I found my i586 pacman package can't run on i586 machine.
It display 'Illegal instruction'.

I double check the building steps, I found the pacman require libtar.
And the libtar is still i686's version.

So, do I need downgrade my libtar library when I want to compile 586 on 686 machine?


Running 4 ArchLinux including sh4twbox,server,notebook,desktop. my AUR packages, old project Arch on colinux,

Offline

#2 2005-10-09 18:23:16

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,615
Website

Re: pacman rebuild for i586

if you want to cross compile, then you need to bootstrap your toolchain appropriately.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2005-10-12 05:33:34

dlin
Member
From: Taipei,Taiwan
Registered: 2005-09-21
Posts: 264

Re: pacman rebuild for i586

Well, I'm doing cross-compile.

But I found the ArchLinux seems can't have simple method to do such thing.

for build the pacman, I must do

glibc -> gcc -> zlib -> libtar -> pacman.

This sequence is what I found in PKGBUILD. 

I build glibc to 586, then install on my 686.
Then, I build gcc, install on my 686.
Then, build zlib,...

And wish the last result pacman could work on 586.

But I'm still not successful yet.


Running 4 ArchLinux including sh4twbox,server,notebook,desktop. my AUR packages, old project Arch on colinux,

Offline

#4 2005-10-12 06:46:38

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,615
Website

Re: pacman rebuild for i586

If your goal is i586 straight up, you might try the i586 repository and iso's floating around here somewhere.

I am not sure of the current status of it...well, of any of the archlinux ports for that matter..for all I know, they could all be dead..
But you might find a workable enough iso that you can start compiling your own versions of things at least.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#5 2005-10-13 00:29:12

dlin
Member
From: Taipei,Taiwan
Registered: 2005-09-21
Posts: 264

Re: pacman rebuild for i586

thanks, but I want to try build myself iso for i586.

I found such iso is too old alough it is workable on my i586.


Running 4 ArchLinux including sh4twbox,server,notebook,desktop. my AUR packages, old project Arch on colinux,

Offline

#6 2005-10-13 00:53:57

syamajala
Member
From: here, there, everywhere
Registered: 2005-01-25
Posts: 604
Website

Re: pacman rebuild for i586

cactus, the ports have never been stronger! arch64 has 4 devs in all. and ppc has 2. i586 is ...

Offline

#7 2005-10-13 01:41:32

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,615
Website

Re: pacman rebuild for i586

good news! smile


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#8 2005-10-13 02:18:19

loserMcloser
Member
From: Canada
Registered: 2004-12-15
Posts: 122

Re: pacman rebuild for i586

dlin wrote:

I build glibc to 586, then install on my 686.
Then, I build gcc, install on my 686.
Then, build zlib,...
But I'm still not successful yet.

I'm not an expert, but the procedure I used to build an Arch system on i586 was:

* installed some other i586-compatible distribution on the i586 machine (in my case, slackware)
* built pacman (I had to install libtar on to the slackware install first)
* started building the base packages, using pacman's --root option to install them in some temporary location
* once I had enough base packages built for chroot'ing to the temporary location to work, I rebuilt all the packages installed so far while chrooted to the temporary arch directory
* built enough base packages under the chroot environment to get a bootable system
* copied the contents of the temporary arch directory to a second hard drive
* booted into arch from the second hard drive, then wiped the slackware install off the main hard drive and replaced it with the arch system from the second drive
* continued building more packages, though where possible I started cross-compiling on my i686 machine

I think you will avoid lots of cross-compiling headaches if you get your base system up and running using natively compiled i586 packages.

Note also that the PKGBUILD for glibc will need some modifications to compile on i586.

Offline

#9 2005-10-13 02:21:22

syamajala
Member
From: here, there, everywhere
Registered: 2005-01-25
Posts: 604
Website

Re: pacman rebuild for i586

you could also use distcc between systems. it should help with speeding up compile times. and ccache

Offline

Board footer

Powered by FluxBB