Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > How do you get gnu gcc to build a 64 bit binary compiler?

Reply
Thread Tools

How do you get gnu gcc to build a 64 bit binary compiler?

 
 
Joe Young
Guest
Posts: n/a
 
      08-09-2011
Problems building 64 bit gnu gcc
x86 Solaris 10
source gcc-3.4.6




How do you get gnu gcc to build a 64 bit binary compiler?


I've got two gcc-3.4.6 source directories. And am compiling the first
with
../configure -with-arch-64=cpu --with-tune-64=cpu --with-cpu-64=cpu
in order to make a 64 bit capable gcc compiler ready and able to
compile
the second source directory with the same configure line (albeit with
a
different destination and install directory) in order to end up with a
64 bit
gcc compiler.


The problem is that both compilations produce the same result, a 32
bit gcc
/usr/local/bin/gcc: ELF 32-bit LSB executable 80386 Version 1 [FPU],
dynamically linked, not stripped




Below is a list of compile options for gnu gcc
http://gcc.gnu.org/install/configure.html
 
Reply With Quote
 
 
 
 
Ben Bacarisse
Guest
Posts: n/a
 
      08-09-2011
Joe Young <(E-Mail Removed)> writes:

> Problems building 64 bit gnu gcc
> x86 Solaris 10
> source gcc-3.4.6


I suggest you try a group about gcc -- that's where the gcc experts will
be.

> How do you get gnu gcc to build a 64 bit binary compiler?
>
> I've got two gcc-3.4.6 source directories. And am compiling the first
> with
> ./configure -with-arch-64=cpu --with-tune-64=cpu --with-cpu-64=cpu


Literally that line? The documentation suggests you should say

./configure -with-arch-64=i386 --with-tune-64=i386 --with-cpu-64=i386

> in order to make a 64 bit capable gcc compiler ready and able to
> compile
> the second source directory with the same configure line (albeit with
> a
> different destination and install directory) in order to end up with a
> 64 bit
> gcc compiler.


<snip>
--
Ben.
 
Reply With Quote
 
 
 
 
Keith Thompson
Guest
Posts: n/a
 
      08-09-2011
Ben Bacarisse <(E-Mail Removed)> writes:
> Joe Young <(E-Mail Removed)> writes:
>> Problems building 64 bit gnu gcc
>> x86 Solaris 10
>> source gcc-3.4.6

>
> I suggest you try a group about gcc -- that's where the gcc experts will
> be.


Like gnu.gcc.help.

[snip]

--
Keith Thompson (The_Other_Keith) http://www.velocityreviews.com/forums/(E-Mail Removed) <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
binary to C (gcc GNU/Linux compiled machine code) catcalls C Programming 18 01-11-2011 12:04 PM
Is a 32-bit build faster than a 64-bit build Raymond Hettinger Python 3 11-13-2010 12:28 PM
What is the point of having 16 bit colour if a computer monitor can only display 8 bit colour? How do you edit 16 bit colour when you can only see 8 bit? Scotius Digital Photography 6 07-13-2010 03:33 AM
SWsoft Acronis Disk Director Suite 9.0 Build 508, Acronis OS Selector 8.0 Build 917, Acronis Partition Expert 2003 Build 292, Acronis Power Utilities 2004 Build 502, F-SECURE.ANTI vIRUS.PROXY v1.10.17.WINALL, F-SECURE.ANTI vIRUS v5.50.10260 for CITRI vvcd Computer Support 0 09-25-2004 01:38 AM



Advertisments