Building RPMs for i386

Carsten Boehlke cb at bo-mc.de
Thu Dec 30 15:11:25 UTC 2004


Hm... It works for some RPMs but not for all.
Is it generally possible to build i386 RPMs on a amd64 machine?

Carsten.



> On Thu, 2004-12-30 at 14:38 +0100, Carsten Boehlke wrote:
>> Hi.
>>
>> I've tried your tip "rpmbuild --ba vsftpd.spec --target=i386"
>>
>> but I get this error:
>>
>> "cc1: CPU you selected does not support x86-64 instruction set"
>>
>> What is my mistake?
>
> if the rpm in question doesn't use the RPM CFLAGS but invents it's own,
> then it misses the -m32 compiler option needed.
> you might be able to do
> CC="gcc -m32" rpmbuild .....
>
> but at that point it's pure luck
>




More information about the amd64-list mailing list