[SLE] Compiling - Can I do this?
Hello SuSE people Running SuSE 10.0 AMD 64. I have a few 32 bit programs running on the system. (Opera, for when I want flash) I want to compile a tar.gz file of another application, BUT, I want to compile it as 32 bit. Is that possible? Can I compile in 32 bit mode on a 64 bit system? Bob S. -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
Bob S wrote:
I want to compile a tar.gz file of another application, BUT, I want to compile it as 32 bit. Is that possible? Can I compile in 32 bit mode on a 64 bit system?
Yes. autoconf should figure it all out for you, provided you set the right options, probably for gcc. /Per Jessen, Zürich -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
On Wednesday 12 July 2006 04:30, Per Jessen wrote:
Bob S wrote:
I want to compile a tar.gz file of another application, BUT, I want to compile it as 32 bit. Is that possible? Can I compile in 32 bit mode on a 64 bit system?
Yes. autoconf should figure it all out for you, provided you set the right options, probably for gcc.
Thanks for replying Per, Ummmmm....Could you be just a little more specific?? I pored over the man/info file on autoconf and it was not immediately obvious to me. Can you point me at some how-to? Bob S.
Hello,
In the Message: [suse-linux-e ML: No.276716] with the date of Thu, 13 Jul 2006 01:24:25 -0400 [Bob] == Bob S
has written:
Bob>>> I want to compile a tar.gz file of another application, BUT, I want to Bob>>> compile it as 32 bit. Is that possible? Can I compile in 32 bit mode Bob>>> on a 64 bit system? Per>> Yes. autoconf should figure it all out for you, provided you set the Per>> right options, probably for gcc. Bob> Thanks for replying Per, Bob> Ummmmm....Could you be just a little more specific?? Me, too. :-) I compiled Emacs, enlightenment, bogofilter, etc. I got all of them as 64 bit program. When compiling, I executeed; ./configure --libdir=/usr/lib ... --prefix=/usr but gcc refered /usr/lib64 and /lib64 dirs, not /usr/lib. That is, it it same same as; ./configure --libdir=/usr/lib64:/lib64 .... --prefix=/usr I can't understand this. Could you inform me of it? PS. Bob, have you received my email? I often received rejected return emails. --- Masaru Nomiya mail-to: nomiyac360 @ mg.point.ne.jp "Bill! You married with Computers. Not with Me!" "No..., with money."
Bob S wrote:
On Wednesday 12 July 2006 04:30, Per Jessen wrote:
Bob S wrote:
I want to compile a tar.gz file of another application, BUT, I want to compile it as 32 bit. Is that possible? Can I compile in 32 bit mode on a 64 bit system?
Yes. autoconf should figure it all out for you, provided you set the right options, probably for gcc.
Thanks for replying Per,
Ummmmm....Could you be just a little more specific?? I pored over the man/info file on autoconf and it was not immediately obvious to me. Can you point me at some how-to?
Hi Bob, I _knew_ you were going to ask ... sorry, I haven't had to look at this in any detail, so this might not be any good: - I suspect all you need to do is supply the right flag to gcc, which you do like this: CFLAGS=xxxxxxxxxxxxxxxxxx ./configure --opt=val .... when you run configure. Having had a quick look at the gcc man-page, I think you need the 'm32' option: -m32 -m64 Generate code for a 32-bit or 64-bit environment. The 32-bit environment sets int, long and pointer to 32 bits and generates code that runs on any i386 system. The 64-bit environment sets int to 32 bits and long and pointer to 64 bits and generates code for AMD's x86-64 architecture. /Per Jessen, Zürich -- ENIDAN Technologies GmbH - managed email-security. Is _your_ business under attack? http://www.spamchek.com/ -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
On Thursday 13 July 2006 02:36, Per Jessen wrote:
Bob S wrote:
On Wednesday 12 July 2006 04:30, Per Jessen wrote:
Bob S wrote:
I want to compile a tar.gz file of another application, BUT, I want to compile it as 32 bit. Is that possible? Can I compile in 32 bit mode on a 64 bit system?
Yes. autoconf should figure it all out for you, provided you set the right options, probably for gcc.
Thanks for replying Per,
Ummmmm....Could you be just a little more specific?? I pored over the man/info file on autoconf and it was not immediately obvious to me. Can you point me at some how-to?
Hi Bob,
I _knew_ you were going to ask ... sorry, I haven't had to look at this in any detail, so this might not be any good: - I suspect all you need to do is supply the right flag to gcc, which you do like this:
CFLAGS=xxxxxxxxxxxxxxxxxx ./configure --opt=val ....
when you run configure. Having had a quick look at the gcc man-page, I think you need the 'm32' option:
-m32 -m64 Generate code for a 32-bit or 64-bit environment. The 32-bit environment sets int, long and pointer to 32 bits and generates code that runs on any i386 system. The 64-bit environment sets int to 32 bits and long and pointer to 64 bits and generates code for AMD's x86-64 architecture.
Thanks Per, Will see if I can figure it out from here. Any other knowedgeable comments would be welcome from the other guru's Bob S. -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
Am Freitag, 14. Juli 2006 04:25 schrieb Bob S:
On Thursday 13 July 2006 02:36, Per Jessen wrote:
Bob S wrote:
On Wednesday 12 July 2006 04:30, Per Jessen wrote:
Bob S wrote:
I want to compile a tar.gz file of another application, BUT, I want to compile it as 32 bit. Is that possible? Can I compile in 32 bit mode on a 64 bit system?
Yes. autoconf should figure it all out for you, provided you set the right options, probably for gcc.
Thanks for replying Per,
Ummmmm....Could you be just a little more specific?? I pored over the man/info file on autoconf and it was not immediately obvious to me. Can you point me at some how-to?
Hi Bob,
I _knew_ you were going to ask ... sorry, I haven't had to look at this in any detail, so this might not be any good: - I suspect all you need to do is supply the right flag to gcc, which you do like this:
CFLAGS=xxxxxxxxxxxxxxxxxx ./configure --opt=val ....
when you run configure. Having had a quick look at the gcc man-page, I think you need the 'm32' option:
-m32 -m64 Generate code for a 32-bit or 64-bit environment. The 32-bit environment sets int, long and pointer to 32 bits and generates code that runs on any i386 system. The 64-bit environment sets int to 32 bits and long and pointer to 64 bits and generates code for AMD's x86-64 architecture.
Thanks Per,
Will see if I can figure it out from here. Any other knowedgeable comments would be welcome from the other guru's
Bob S.
Well, i'm not a guru ;-) but you could try the 'linux32' command. Regards ....Volker -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
participants (4)
-
Bob S
-
Masaru Nomiya
-
Per Jessen
-
Volker Poplawski