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

Discussion in 'C Programming' started by Joe Young, Aug 9, 2011.

  1. Joe Young

    Joe Young Guest

    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
     
    Joe Young, Aug 9, 2011
    #1
    1. Advertising

  2. Joe Young <> 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.
     
    Ben Bacarisse, Aug 9, 2011
    #2
    1. Advertising

  3. Ben Bacarisse <> writes:
    > Joe Young <> 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.ghoti.net/~kst>
    Nokia
    "We must do something. This is something. Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"
     
    Keith Thompson, Aug 9, 2011
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Fangs
    Replies:
    3
    Views:
    9,839
    darshana
    Oct 26, 2008
  2. Peter

    1 day gnu, whole life gnu?

    Peter, Jan 10, 2005, in forum: Java
    Replies:
    3
    Views:
    353
    John C. Bollinger
    Jan 10, 2005
  3. Replies:
    12
    Views:
    595
    Richard Heathfield
    Apr 8, 2007
  4. Raymond Hettinger

    Is a 32-bit build faster than a 64-bit build

    Raymond Hettinger, Nov 12, 2010, in forum: Python
    Replies:
    3
    Views:
    258
    Antoine Pitrou
    Nov 13, 2010
  5. catcalls
    Replies:
    18
    Views:
    5,700
    Angel
    Jan 11, 2011
Loading...

Share This Page