Re: cross compilation x86_64 <-> i386
"Michel Salim" <[email protected]>
| Newsgroups | gmane.linux.freshrpms.user |
|---|---|
| Message-ID | <[email protected]> |
2007/2/28, Paulo Cavalcanti <[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. > This page lists useful mock tricks: http://fedoraproject.org/wiki/Extras/MockTricks --autocache basically lets you cut the download time, but if you're a heavy user you might want to run a local mirror of the Fedora repository you need. -- Michel Salim http://hircus.wordpress.com/ My theology, briefly, is that the universe was dictated but not signed. -- Christopher Morley