You are not logged in.
Hello,
I was just wondering if it was possible to build to both i386 and x86_64 from a 64-bit machine, and if so, how? I have tried changing my makepkg configs and PKGBUILD files to build to 'any' architecture but that causes alot of problems...
Thanks.
Last edited by Ubuntuz (2013-02-10 16:16:22)
Offline
Offline
Thanks for the supernaturally fast reply! However, would you be able to dumb it down a bit for me? I'm finding some of these wiki articles tricky to understand...
EDIT: If I just change the PKGBUILD $arch to " 'i386', 'x86_64' " and change the makepkg config to i386 and x86_64 as I need to, would these properly compile the package for each architecture? Or are other steps needed?
Last edited by Ubuntuz (2013-02-10 16:06:01)
Offline
OK, first off, put i386 out of your mind. Arch uses i686, not i386. Hell, the kernel even dropped support for i386.
Second, stop editing makepkg.conf. If you want to build for i686 on a x86_64 installation, it needs to be done inside a chroot. "Convenience Way" in that wiki page makes it very simple, one command will automatically set up the chroot, clean it, update it, and build the package for you.
Offline
OK, first off, put i386 out of your mind. Arch uses i686, not i386. Hell, the kernel even dropped support for i386.
Second, stop editing makepkg.conf. If you want to build for i686 on a x86_64 installation, it needs to be done inside a chroot. "Convenience Way" in that wiki page makes it very simple, one command will automatically set up the chroot, clean it, update it, and build the package for you.
Ah sorry, I did mean 'i686'. Anyways, thanks, I'll give it some more reading...
Offline
See my build script for both arches and sync to/from my local repo hosted on my router. Modify as needed. Note-Setting up a 32-bit chroot is trivial. I cleaned-up that wiki page myself
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline