Re: cross compilation x86_64 <-> i386
"Paulo Cavalcanti" <[email protected]>
| Newsgroups | gmane.linux.freshrpms.user |
|---|---|
| Message-ID | <[email protected]> |
On 2/27/07, Philippe A. <[email protected]> wrote: > > > Hello list, > > > > > > This may be regarded as slightly off-topic, but I do not know a > > > better place where to ask the question. I have installed FC6 x86_64 > > > on my new system and I am having problems compiling packages in 32 > > > bits and 64 bits. Freetype is one package I need to compile for > > > Does this getcha any further? > > > > $ setarch i386 rpmbuild -bb --target i386 freetype.spec > > > Exact same result. I even tried running commands separately: > > $ setarch i386 > $ rpmbuild ... > I would use "mock" for rebuilding rpms for other fedora versions/architectures. Mock is the building system used by packagers from extras, and employs a chroot environment. It keeps a separated rpm database, and one can build 32 bits rpms in a 64 bits system. It is slow because it downloads the build requirements of the src.rpm before the compilation starts. There is an option for keeping whatever has been installed before. Just use "yum install mock" and read the documentation. -- Paulo Roma Cavalcanti LCG - UFRJ