public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc 4.0.0 Ada build
@ 2005-05-28  2:53 Robert Love
  2005-05-28  3:32 ` David Gressett
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Robert Love @ 2005-05-28  2:53 UTC (permalink / raw)
  To: gcc-help

I grabbed the 4.0.0 tarball and unpacked it on my Fedora Core 3 Intel  
machine.  I want to build Ada, C, C++ and Fortran.  I have a prior  
version of Gnat installed.

When configuring I used

    --enable-threads=gnat

but when the build errors off I'm told "gnat is an unknown thread  
package".


Questions:

1) Is the argument "gnat" or "libgnat"?

2) Does this thread library come with the tarball?  If not where do I  
get it?

3) What other options work with Ada?

Any other tips for building Ada as part of gcc 4.0.0

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

* Re: gcc 4.0.0 Ada build
  2005-05-28  2:53 gcc 4.0.0 Ada build Robert Love
@ 2005-05-28  3:32 ` David Gressett
  2005-05-28 20:28 ` Duncan Sands
  2005-05-28 20:55 ` Duncan Sands
  2 siblings, 0 replies; 4+ messages in thread
From: David Gressett @ 2005-05-28  3:32 UTC (permalink / raw)
  To: Robert Love, gcc-help

At 09:53 PM 5/27/2005, Robert Love wrote:
>I grabbed the 4.0.0 tarball and unpacked it on my Fedora Core 3 Intel
>machine.  I want to build Ada, C, C++ and Fortran.  I have a prior
>version of Gnat installed.
>
>When configuring I used
>
>    --enable-threads=gnat
>
>but when the build errors off I'm told "gnat is an unknown thread
>package".
>
>
>Questions:
>
>1) Is the argument "gnat" or "libgnat"?
>
>2) Does this thread library come with the tarball?  If not where do I
>get it?
>
>3) What other options work with Ada?
>
>Any other tips for building Ada as part of gcc 4.0.0

See http://gcc.gnu.org/ml/gcc/2005-04/msg01533.html 


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

* Re: gcc 4.0.0 Ada build
  2005-05-28  2:53 gcc 4.0.0 Ada build Robert Love
  2005-05-28  3:32 ` David Gressett
@ 2005-05-28 20:28 ` Duncan Sands
  2005-05-28 20:55 ` Duncan Sands
  2 siblings, 0 replies; 4+ messages in thread
From: Duncan Sands @ 2005-05-28 20:28 UTC (permalink / raw)
  To: Robert Love; +Cc: gcc-help

> I grabbed the 4.0.0 tarball and unpacked it on my Fedora Core 3 Intel  
> machine.  I want to build Ada, C, C++ and Fortran.  I have a prior  
> version of Gnat installed.
> 
> When configuring I used
> 
>     --enable-threads=gnat
> 
> but when the build errors off I'm told "gnat is an unknown thread  
> package".

Hi Robert, here is how ACT build their GNAT pro compiler:

$ gcc -v
Reading specs from /usr/gnat/lib/gcc/i686-pc-linux-gnu/3.4.5/specs
Configured with: /bonn.a/gnatmail-5_34/build-bonn/src/configure --prefix=/usr/gnat --enable-languages=c,c++,ada --disable-nls --disable-checking --disable-libada --enable-threads=posix
Thread model: posix
gcc version 3.4.5 20050523 (prerelease) for GNAT Pro 5.04w (20050521)

It looks like the gcc docs need to be updated.

All the best,

Duncan.

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

* Re: gcc 4.0.0 Ada build
  2005-05-28  2:53 gcc 4.0.0 Ada build Robert Love
  2005-05-28  3:32 ` David Gressett
  2005-05-28 20:28 ` Duncan Sands
@ 2005-05-28 20:55 ` Duncan Sands
  2 siblings, 0 replies; 4+ messages in thread
From: Duncan Sands @ 2005-05-28 20:55 UTC (permalink / raw)
  To: Robert Love; +Cc: Arnaud Charlet, gcc-help

> When configuring I used
> 
>     --enable-threads=gnat
> 
> but when the build errors off I'm told "gnat is an unknown thread  
> package".

Maybe the following documentation patch should be applied:

--- configure.html.orig	2005-05-28 22:49:32.466872948 +0200
+++ configure.html	2005-05-28 22:50:56.666117558 +0200
@@ -473,11 +473,6 @@ like C++ and Java.  The possibilities fo
           <dl>
 <dt><code>aix</code><dd>AIX thread support. 
 <br><dt><code>dce</code><dd>DCE thread support. 
-<br><dt><code>gnat</code><dd>Ada tasking support.  For non-Ada programs, this setting is equivalent
-to `<samp><span class="samp">single</span></samp>'.  When used in conjunction with the Ada run time, it
-causes GCC to use the same thread primitives as Ada uses.  This option
-is necessary when using both Ada and the back end exception handling,
-which is the default for most Ada targets. 
 <br><dt><code>mach</code><dd>Generic MACH thread support, known to work on NeXTSTEP.  (Please note
 that the file needed to support this configuration, <samp><span class="file">gthr-mach.h</span></samp>, is
 missing and thus this setting will cause a known bootstrap failure.) 
@@ -582,7 +577,6 @@ their runtime libraries should be built.
      <p>Currently, you can use any of the following:
 <code>all</code>, <code>ada</code>, <code>c</code>, <code>c++</code>, <code>f95</code>, <code>java</code>,
 <code>objc</code>, <code>obj-c++</code>, <code>treelang</code>. 
-Building the Ada compiler has special requirements, see below. 
 If you do not pass this flag, or specify the option <code>all</code>, then all
 default languages available in the <samp><span class="file">gcc</span></samp> sub-tree will be configured. 
 Ada, Objective-C++, and treelang are not default languages; the rest are. 



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

end of thread, other threads:[~2005-05-28 20:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-28  2:53 gcc 4.0.0 Ada build Robert Love
2005-05-28  3:32 ` David Gressett
2005-05-28 20:28 ` Duncan Sands
2005-05-28 20:55 ` Duncan Sands

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).