how to build multilib gcc-3.4.x? - Solaris

This is a discussion on how to build multilib gcc-3.4.x? - Solaris ; Hi How do you build gcc-3.4.5 for solaris x64 with multilib support? gcc detects i386 by default and just builds a 32-bit non-multilib version. If I pass --enable-multilib on the configure line, it does the same thing. If I set ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: how to build multilib gcc-3.4.x?

  1. how to build multilib gcc-3.4.x?

    Hi

    How do you build gcc-3.4.5 for solaris x64 with multilib support? gcc
    detects i386 by default and just builds a 32-bit non-multilib version.
    If I pass --enable-multilib on the configure line, it does the same
    thing. If I set the host/build type to [amd64|x86_64]-pc-solaris2.10,
    gcc fails to build (configuration not supported).

    The gcc install notes say that i?86-pc-solaris2.10 is only supported
    on gcc-4.0 but since I can build an i386-pc-solaris2.10 gcc this is
    obviously wrong.

    The gcc from the software companion has multilib support, so I know
    this can be done!

    thanks
    -frank

  2. Re: how to build multilib gcc-3.4.x?


    Frank Cusack wrote:
    > How do you build gcc-3.4.5 for solaris x64 with multilib support? gcc
    > detects i386 by default and just builds a 32-bit non-multilib version.
    > If I pass --enable-multilib on the configure line, it does the same
    > thing. If I set the host/build type to [amd64|x86_64]-pc-solaris2.10,
    > gcc fails to build (configuration not supported).


    > The gcc install notes say that i?86-pc-solaris2.10 is only supported
    > on gcc-4.0 but since I can build an i386-pc-solaris2.10 gcc this is
    > obviously wrong.
    > The gcc from the software companion has multilib support, so I know
    > this can be done!


    I think you have to use gas (GNU assembler...)
    gcc -v contains:
    --with-as=/usr/sfw/bin/gas --with-gnu-as


  3. Re: how to build multilib gcc-3.4.x?

    On 23 Jan 2006 16:59:04 -0800 "gerryt@" wrote:
    > Frank Cusack wrote:
    >> How do you build gcc-3.4.5 for solaris x64 with multilib support? gcc
    >> detects i386 by default and just builds a 32-bit non-multilib version.
    >> If I pass --enable-multilib on the configure line, it does the same
    >> thing. If I set the host/build type to [amd64|x86_64]-pc-solaris2.10,
    >> gcc fails to build (configuration not supported).

    >
    >> The gcc install notes say that i?86-pc-solaris2.10 is only supported
    >> on gcc-4.0 but since I can build an i386-pc-solaris2.10 gcc this is
    >> obviously wrong.
    >> The gcc from the software companion has multilib support, so I know
    >> this can be done!

    >
    > I think you have to use gas (GNU assembler...)
    > gcc -v contains:
    > --with-as=/usr/sfw/bin/gas --with-gnu-as


    Yeah, saw that but it wasn't it (which I didn't think it could be).
    Found the SUNWgccS package and I see there are lots of diffs from
    the 3.4.3 that you would download. I think I should be able to
    pull out just the multilib stuff.

    -frank

  4. Re: how to build multilib gcc-3.4.x?

    Frank Cusack writes:

    > How do you build gcc-3.4.5 for solaris x64 with multilib support? gcc
    > detects i386 by default and just builds a 32-bit non-multilib version.
    > If I pass --enable-multilib on the configure line, it does the same
    > thing. If I set the host/build type to [amd64|x86_64]-pc-solaris2.10,
    > gcc fails to build (configuration not supported).
    >
    > The gcc install notes say that i?86-pc-solaris2.10 is only supported
    > on gcc-4.0 but since I can build an i386-pc-solaris2.10 gcc this is
    > obviously wrong.


    It is corrent insofar as it means full (multilib) support for Solaris
    10/x86. The old i386-pc-solaris2.x configuration still works (but I don't
    really remember if you need special changes for Solaris 10, which may or
    may not have been integrated into GCC 3.4.x).

    > The gcc from the software companion has multilib support, so I know
    > this can be done!


    True, but the necessary changes weren't integrated into FSF gcc until GCC
    4.0.0. The GCC 3.4.x installed in /usr/sfw/bin was built from the
    csl-sol210-3_4-branch branch in the GCC SVN repository, see

    http://gcc.gnu.org/svn.html

    for details. You see this if you run /usr/sfw/bin/gcc --version:

    gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)

    Rainer

    --
    -----------------------------------------------------------------------------
    Rainer Orth, Faculty of Technology, Bielefeld University

+ Reply to Thread