Re: generating 32-bit RPM's
Joshua Jensen <[email protected]>
| Newsgroups | gmane.linux.redhat.amd64 |
|---|---|
| Message-ID | <[email protected]> |
When compiling the kernel on 32bit platforms, you can specify --target of say i686 which activates %ifarch sections inside of the specfile. However, all that really does is use different "-m" compiler switches for CPU optimization. So first off, you have to have the %ifarch stuff defined in your package's specfile (almost no RPMs do), and you would have to have a *cross compiler* installed on your x86_64 platform. I don't know that -m32 does all that you need. Joshua produce 32bit binaries. I'm not a compiler wizard, but from my understanding the 64 bit gcc that ships with Red Hat on x86_64 platforms only targets x86_64 CPUs. Joshua On Thu, Sep 08, 2005 at 11:14:14PM -0500, Jonathan Berry wrote: > On 9/8/05, Wolfgang S. Rupprecht wrote: > > > > Is it possible to generate i386 binary RPM's on an x86_64 system? > > > > I tried the obvious --target switch to buildrpm and that did make an > > appropriately named RPM, but it still appeared to be built with 64-bit > > code and linked with the 64-bit libs. > > Hi Wolfgang, > > The --target switch should be the way to do it. Are you sure that > what was made is 64-bit? I think it might be possible that a > particular RPM is not setup right (with the spec file) to build 32-bit > on a 64-bit machine. I think all the --target switch does is change > which sections of the spec file rpmbuild looks at. I'm not extremely > knowledgeable of rpmbuild, so I could be wrong. I have used it some > so what I say is what I have gathered when I used it. My first step > would be to check the spec file. Make sure under the i386 headings > that it adds the -m32 compile switch and links to /lib and /usr/lib > and not their 64 counterparts. What package are you trying to build? > > Jonathan > > > Microsoft Vista - because "Virus Installer" was too long. > > Ouch :). > > -- > amd64-list mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/amd64-list -- Joshua Jensen [email protected] "If God didn't want us to eat animals, why did he make them out of meat?"