LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   can amd64 + x86 coexist on the same set of partitions? (https://www.linuxquestions.org/questions/linux-software-2/can-amd64-x86-coexist-on-the-same-set-of-partitions-289295/)

arshadmomen 02-12-2005 09:29 AM

can amd64 + x86 coexist on the same set of partitions?
 
Hi,

I want to compile some 32bit rpms on an amd64 machine.

I am not sure how to that while using a 64bit kernel - so a better option would be boot into a 32bit mode.

So can I use the same set of partitions to dual boot into a 64bit mode and into a 32 bit mode ?

On the other hand, if 32bit rpms can be built from src rpms on a 64bit OS then I might not need to put in two OS in the first place.

Can either of these be done?


Thanks in Advance,

A.

btmiller 02-12-2005 01:44 PM

When you compile something from source, it will be built against the libraries and compiler available on your system. Portable (that is to say, written to work on multiple platforms) source code is not inherently 32 bit or 64 bit. So if you just want to compile something for your own machine, don't worry about it. However, if you want to compile something for 32 bit x86 machines on a x86_64 host, you'll need pass the -m32 switch to gcc, which will force it to build 32 bit binaries.

arshadmomen 02-13-2005 09:46 AM

Thanks.

Let me bug you again - how do I impose the -m32 flag in the spec file for the rpms?

This might be a trivial question - I wish I knew the answer.

Thanks again,

A.


All times are GMT -5. The time now is 09:04 PM.