You are not logged in.

#1 2010-01-16 13:59:21

cinan
Member
From: Slovakia
Registered: 2008-07-04
Posts: 251
Website

howto build 32bit package on Arch64?

hello,
yesterday i installed 64bit arch. I need to build 32bit and 64bit packages for my repo. I don't know how to build 32bit packages on my machine. I read http://wiki.archlinux.org/index.php/Arc … _Arch64.3F but I do something wrong. I installed gcc-multilib and tried to build mc-new (linux32 yaourt -S mc-new). I got 64bit package. Although 'linux32 uname -a' says I have i686 machine.
What did I do wrong?
Thanks (I don't want i686 chroot)

Offline

#2 2010-01-16 14:02:03

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

Re: howto build 32bit package on Arch64?

Best to create an i686 chroot and use that (using "linux32 chroot <path>")

Offline

#3 2010-01-16 14:10:55

cinan
Member
From: Slovakia
Registered: 2008-07-04
Posts: 251
Website

Re: howto build 32bit package on Arch64?

well, so there's no way with gcc-multilib? What about chroot size (I don't have big hdd)?

Offline

#4 2010-01-16 15:02:01

jelly
Administrator
From: /dev/null
Registered: 2008-06-10
Posts: 714

Re: howto build 32bit package on Arch64?

multilib is just ugly and you will miss much stuff all the time. A 32 bit chroot wont be very big because you can remove the kernel and some other stuff
http://wiki.archlinux.org/index.php/Ins … _in_Arch64

Offline

#5 2010-01-17 15:09:40

cinan
Member
From: Slovakia
Registered: 2008-07-04
Posts: 251
Website

Re: howto build 32bit package on Arch64?

I installed i686 system to /opt/arch32. Then I did 'sudo linux32 chroot /opt/arch32'. Now I can build 32bit packages running on i686? Am I right?

Is this ok? /opt/arch32/etc/makepkg.conf:
CARCH="i686"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=native -mtune=generic -O2 -pipe"
CXXFLAGS="-march=native -mtune=generic -O2 -pipe"

Offline

Board footer

Powered by FluxBB