LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-12-2005, 09:29 AM   #1
arshadmomen
LQ Newbie
 
Registered: Feb 2005
Distribution: Scientific Linux 4.4
Posts: 6

Rep: Reputation: 0
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.

Last edited by arshadmomen; 02-12-2005 at 09:32 AM.
 
Old 02-12-2005, 01:44 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,078

Rep: Reputation: 297Reputation: 297Reputation: 297
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.
 
Old 02-13-2005, 09:46 AM   #3
arshadmomen
LQ Newbie
 
Registered: Feb 2005
Distribution: Scientific Linux 4.4
Posts: 6

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hard drive partitions not set up in fstab/mtab odyssey84 Linux - Newbie 6 10-18-2005 07:59 AM
Boot x86 target from flash, with the image and file system on the x86 host. batsayan Linux - Software 2 08-23-2005 12:09 AM
How do I set partitions? ANd install Linux? stickyrabbit Linux - Newbie 8 03-22-2005 05:35 AM
same installation CD of RedHat AS 3.0 for Intel x86 and AMD64? steven_leung Red Hat 1 01-08-2005 03:37 PM
how to set partitions? RIgimp75 Slackware 2 06-13-2003 12:50 AM


All times are GMT -5. The time now is 07:04 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration