public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Compile gcc from source on a 64 bit OS ?
@ 2007-12-27 21:04 Hsieh, Pei-Ying (MED US)
       [not found] ` <7AEC29D79CDD2646955922C34AFF1973124F3D@USMLVV1EXCTV06.ww005.siemens.n      et>
  2007-12-27 21:42 ` Andrew Haley
  0 siblings, 2 replies; 10+ messages in thread
From: Hsieh, Pei-Ying (MED US) @ 2007-12-27 21:04 UTC (permalink / raw)
  To: gcc-help



Dear GCC developers/experts:

I need to compile gcc from source on a 64 bit linux OS (Ubuntu and
OpenSuSE).  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!

Best Regards,

Pei

-------------------------------------
Pei-Ying Hsieh, Ph.D.
Staff Product Engineer 
Siemens Medical Solutions Diagnostics
511 Benedict Ave., MS 32
Tarrytown, NY 10591
USA
Phone: (914)524-3146
fax:   (914)524-3128
email: Pei-Ying.Hsieh@siemens.com
www.siemens.com/diagnostics

----------------------------------------------------------------------------
This message and any included attachments are from Siemens Medical Solutions 
and are intended only for the addressee(s). 
The information contained herein may include trade secrets or privileged or 
otherwise confidential information. Unauthorized review, forwarding, printing, 
copying, distributing, or using such information is strictly prohibited and may 
be unlawful. If you received this message in error, or have reason to believe 
you are not authorized to receive it, please promptly delete this message and 
notify the sender by e-mail with a copy to Central.SecurityOffice@siemens.com 

Thank you

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Compile gcc from source on a 64 bit OS ?
       [not found] ` <7AEC29D79CDD2646955922C34AFF1973124F3D@USMLVV1EXCTV06.ww005.siemens.n      et>
@ 2007-12-27 21:24   ` Dennis Clarke
  0 siblings, 0 replies; 10+ messages in thread
From: Dennis Clarke @ 2007-12-27 21:24 UTC (permalink / raw)
  To: Hsieh, Pei-Ying (MED US); +Cc: gcc-help


>
>
> Dear GCC developers/experts:
>
> I need to compile gcc from source on a 64 bit linux OS (Ubuntu and
> OpenSuSE).  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!

http://gcc.gnu.org/gcc-4.2/changes.html

New Targets and Target Specific Improvements
IA-32/x86-64
-mtune=generic can now be used to generate code running well on common x86
chips. This includes AMD Athlon, AMD Opteron, Intel Pentium-M, Intel Pentium
4 and Intel Core 2.
-mtune=native and -march=native will produce code optimized for the host
architecture as detected using the cpuid instruction.
Added a new command-line option -fstackrealign and and __attribute__
((force_align_arg_pointer)) to realign the stack at runtime. This allows
functions compiled with a vector-aligned stack to be invoked from legacy
objects that keep only word-alignment.

I'm in the 64-bit Solaris world and a -m64 would work neatly.
Maybe even some -xarch or cpu specific target options.
Then again, you're in the linux land where anything can and will happen.
Are you thinking of working with GCC 4.2.2 or GCC 4.2.1 ? I have yet
to see GCC 4.2.2 build cleanly on a 64-bit OS but GCC 4.2.1 does.

see the bottom of http://gcc.gnu.org/gcc-4.2/buildstat.html where there are
a few x86_64-unknown-linux-gnu entries.

Merry Christmas.

Dennis

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Compile gcc from source on a 64 bit OS ?
  2007-12-27 21:04 Compile gcc from source on a 64 bit OS ? Hsieh, Pei-Ying (MED US)
       [not found] ` <7AEC29D79CDD2646955922C34AFF1973124F3D@USMLVV1EXCTV06.ww005.siemens.n      et>
@ 2007-12-27 21:42 ` Andrew Haley
  2007-12-27 22:00   ` Dennis Clarke
  1 sibling, 1 reply; 10+ messages in thread
From: Andrew Haley @ 2007-12-27 21:42 UTC (permalink / raw)
  To: Hsieh, Pei-Ying (MED US); +Cc: gcc-help

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.  I don't
think you'll have any such problems with SUSE, though.

Maybe someone who has built Debian on x86_64 can respond.

Andrew.

-- 
Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, UK
Registered in England and Wales No. 3798903

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Compile gcc from source on a 64 bit OS ?
  2007-12-27 21:42 ` Andrew Haley
@ 2007-12-27 22:00   ` Dennis Clarke
  2007-12-28 10:25     ` Andrew Haley
  0 siblings, 1 reply; 10+ messages in thread
From: Dennis Clarke @ 2007-12-27 22:00 UTC (permalink / raw)
  To: Andrew Haley; +Cc: Hsieh, Pei-Ying (MED US), gcc-help


> 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 ?

Dennis

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Compile gcc from source on a 64 bit OS ?
  2007-12-27 22:00   ` Dennis Clarke
@ 2007-12-28 10:25     ` Andrew Haley
  2007-12-30 16:19       ` NightStrike
  0 siblings, 1 reply; 10+ messages in thread
From: Andrew Haley @ 2007-12-28 10:25 UTC (permalink / raw)
  To: Dennis Clarke; +Cc: Hsieh, Pei-Ying (MED US), gcc-help

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.

Andrew.

-- 
Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, UK
Registered in England and Wales No. 3798903

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Compile gcc from source on a 64 bit OS ?
  2007-12-28 10:25     ` Andrew Haley
@ 2007-12-30 16:19       ` NightStrike
  2007-12-30 20:28         ` Andrew Haley
  2008-01-01 17:20         ` Tim Prince
  0 siblings, 2 replies; 10+ messages in thread
From: NightStrike @ 2007-12-30 16:19 UTC (permalink / raw)
  To: Andrew Haley; +Cc: Dennis Clarke, Hsieh, Pei-Ying (MED US), gcc-help

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?

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Compile gcc from source on a 64 bit OS ?
  2007-12-30 16:19       ` NightStrike
@ 2007-12-30 20:28         ` Andrew Haley
  2008-01-01 17:20         ` Tim Prince
  1 sibling, 0 replies; 10+ messages in thread
From: Andrew Haley @ 2007-12-30 20:28 UTC (permalink / raw)
  To: NightStrike; +Cc: Dennis Clarke, Hsieh, Pei-Ying (MED US), gcc-help

NightStrike writes:
 > 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?

Is this a serious question?

Andrew.

-- 
Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, UK
Registered in England and Wales No. 3798903

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Compile gcc from source on a 64 bit OS ?
  2007-12-30 16:19       ` NightStrike
  2007-12-30 20:28         ` Andrew Haley
@ 2008-01-01 17:20         ` Tim Prince
  2008-01-01 18:39           ` NightStrike
  1 sibling, 1 reply; 10+ messages in thread
From: Tim Prince @ 2008-01-01 17:20 UTC (permalink / raw)
  To: NightStrike; +Cc: Andrew Haley, Dennis Clarke, gcc-help

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.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Compile gcc from source on a 64 bit OS ?
  2008-01-01 17:20         ` Tim Prince
@ 2008-01-01 18:39           ` NightStrike
  2008-01-02  0:14             ` Andrew Haley
  0 siblings, 1 reply; 10+ messages in thread
From: NightStrike @ 2008-01-01 18:39 UTC (permalink / raw)
  To: Tim Prince; +Cc: Andrew Haley, Dennis Clarke, gcc-help

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.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Compile gcc from source on a 64 bit OS ?
  2008-01-01 18:39           ` NightStrike
@ 2008-01-02  0:14             ` Andrew Haley
  0 siblings, 0 replies; 10+ messages in thread
From: Andrew Haley @ 2008-01-02  0:14 UTC (permalink / raw)
  To: NightStrike; +Cc: Tim Prince, Dennis Clarke, gcc-help

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-01-02  0:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-27 21:04 Compile gcc from source on a 64 bit OS ? Hsieh, Pei-Ying (MED US)
     [not found] ` <7AEC29D79CDD2646955922C34AFF1973124F3D@USMLVV1EXCTV06.ww005.siemens.n      et>
2007-12-27 21:24   ` Dennis Clarke
2007-12-27 21:42 ` Andrew Haley
2007-12-27 22:00   ` Dennis Clarke
2007-12-28 10:25     ` Andrew Haley
2007-12-30 16:19       ` NightStrike
2007-12-30 20:28         ` Andrew Haley
2008-01-01 17:20         ` Tim Prince
2008-01-01 18:39           ` NightStrike
2008-01-02  0:14             ` Andrew Haley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).