This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Compile gcc from source on a 64 bit OS ?
- From: Andrew Haley <aph at redhat dot com>
- To: NightStrike <nightstrike at gmail dot com>
- Cc: "Tim Prince" <tprince at myrealbox dot com>, "Dennis Clarke" <dclarke at blastwave dot org>, gcc-help at gcc dot gnu dot org
- Date: Wed, 2 Jan 2008 00:14:09 +0000
- Subject: Re: Compile gcc from source on a 64 bit OS ?
- References: <7AEC29D79CDD2646955922C34AFF1973124F3D@USMLVV1EXCTV06.ww005.siemens.net> <18292.7258.3290.720130@zebedee.pink> <2403.72.39.216.186.1198792782.squirrel@mail.blastwave.org> <18292.52983.593457.489236@zebedee.pink> <b609cb3b0712300819u6804be9fn80932e43bd71ea7@mail.gmail.com> <477A762A.8050500@myrealbox.com> <b609cb3b0801011038n6c5acac4k9cb1826807161b75@mail.gmail.com>
NightStrike writes:
> On 1/1/08, Tim Prince <tprince@myrealbox.com> wrote:
> > NightStrike wrote:
> > > On 12/28/07, Andrew Haley <aph@redhat.com> wrote:
> > >
> > >> Dennis Clarke writes:
> > >> >
> > >> > > Hsieh, Pei-Ying (MED US) writes:
> > >> > >
> > >> > > > I need to compile gcc from source on a 64 bit linux OS (Ubuntu and
> > >> > > > OpenSuSE).
> > >> > >
> > >> > > x86_64, I guess.
> > >> > >
> > >> > > > After scanning through the installation procedures and manual, it
> > >> > > > is not clear to me how to do this on a 64 bit OS (default seems to
> > >> > > > be for 32 bit OS, using -m32). It will be highly appreciated if
> > >> > > > you can shed some light on this. Thanks!
> > >> > >
> > >> > > It's usually configure, make, make install. Debian-derived distros
> > >> > > have some patches because they put 64-bit libraries in /lib instead of
> > >> > > /lib64, which is where the standard says they should be.
> > >> >
> > >> > what standard ? An ISO or OpenGroup document somewhere ?
> > >> `
> > >> Originally the x86_64 ABI, later the Linux FHS.
> > >>
> > >
> > > gcc doesn't look in lib64 for the x86_64-pc-mingw32 target. Is this a bug?
> > >
> > >
> > This was discussed on fortran@gcc.gnu.org. My recollection was an
> > agreement to switch to the lib64 standard.
>
> As I recall, there was no final decision on what to do, nor any patch
> applied to anything. I was hoping to casually raise the issue in the
> hopes that someone who knows how to will supply an appropriate patch.
See gcc/trunk/gcc/config/i386/t-linux64 for an example.
--
Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, UK
Registered in England and Wales No. 3798903