building i386 packages in x86_64 Fedora 10

Tosh toshlinux at gmail.com
Fri Mar 20 09:08:30 UTC 2009


David Hláčik wrote:
> Hello guys,
>
> i want to build i386 freetype source rpm on by 64 bit Fedora 10, so i
> will issue rpmbuild -ba --target i386 .... , i will usually end up
> with gcc error. Do i need 32bit gcc compiler to built that?  As I know
> it is not in x86_64 repository :(.
>
> Please, how to generally build 32bit packages on 64 bit platform.
> Should i use mock? Is there a simple way, when i want to build just 3
> packages.
>
> Thanks,
>
> D.
>
you will need to give the command as following
rpmbuild -ba --target=i386 --define "_libdir /usr/lib" --define "_lib 
/lib" ~/rpmbuild/SPEC/<specfile>
also make sure you have ALL the i386 devel packages !!!


-- 
Toshaan <toshlinux at gmail.com> - http://www.toshaan.be




More information about the fedora-list mailing list