comp.lang.ada
 help / color / mirror / Atom feed
* Re: gnat and RedHat 5.1
  1998-10-28  0:00 gnat and RedHat 5.1 Dominique Jean-Prost
@ 1998-10-28  0:00 ` David C. Hoos, Sr.
  1998-11-03  0:00   ` Eugene Fokin
  1998-10-28  0:00 ` Samuel Tardieu
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 7+ messages in thread
From: David C. Hoos, Sr. @ 1998-10-28  0:00 UTC (permalink / raw)



Dominique Jean-Prost wrote in message
<3637161F.4638@vegaserv.univ-fcomte.fr>...
>how can I install this fuc*!@ gnat.
>I got the binaries of gnatmake.
>I did a doconfig and then a doinstall.
>
>At the end, neither gnatmake neither gcc worked !!!
>please help me
>DoM

Since you gave us no clue as to what version of gnat you installed, what
options you specified when installing, nor what error messages you received
when attempting to use gnat, it is difficult to help.

Furthermore, the use of expletives in your message is not conducive to
obtaining help.

Nevertheless, I will pass on what information I have which may bear on your
problem.

Since this is a gnat question, the place you want to look is the gnat chat
archive.

Here is a list of links to some of the gnat chat archive messages on this
subject:

http://www.gnat.com/chat/1852.html
http://www.gnat.com/chat/1853.html
http://www.gnat.com/chat/1854.html
http://www.gnat.com/chat/1855.html
http://www.gnat.com/chat/1857.html
http://www.gnat.com/chat/1858.html
http://www.gnat.com/chat/1864.html
http://www.gnat.com/chat/1901.html
http://www.gnat.com/chat/1903.html
http://www.gnat.com/chat/1936.html
http://www.gnat.com/chat/1940.html
http://www.gnat.com/chat/1941.html
http://www.gnat.com/chat/1944.html
http://www.gnat.com/chat/2248.html
http://www.gnat.com/chat/2249.html
http://www.gnat.com/chat/2252.html
http://www.gnat.com/chat/2253.html
http://www.gnat.com/chat/2254.html
http://www.gnat.com/chat/2276.html
http://www.gnat.com/chat/2279.html
http://www.gnat.com/chat/2280.html
http://www.gnat.com/chat/2384.html
http://www.gnat.com/chat/2385.html
http://www.gnat.com/chat/2499.html
http://www.gnat.com/chat/2500.html
http://www.gnat.com/chat/2501.html
http://www.gnat.com/chat/2502.html
http://www.gnat.com/chat/2505.html
http://www.gnat.com/chat/2508.html
http://www.gnat.com/chat/2509.html
http://www.gnat.com/chat/2511.html
http://www.gnat.com/chat/2512.html
http://www.gnat.com/chat/2513.html
http://www.gnat.com/chat/2514.html
http://www.gnat.com/chat/2516.html
http://www.gnat.com/chat/2778.html
http://www.gnat.com/chat/2779.html
http://www.gnat.com/chat/2780.html
http://www.gnat.com/chat/2781.html
http://www.gnat.com/chat/2855.html
http://www.gnat.com/chat/2857.html
http://www.gnat.com/chat/2859.html





Here is a posting I have made many, many times regarding gnat-3.10p with
Redhat:


A number of people have found that this solution works for them.  The
cause of the segmentation fault is the change of the size of sigset_t
from 32 bits to 1024 bits.

I have posted this message several times on gnat chat -- so here it is
again:


For what it's worth, Here's how I have gnat-3.10p running on RedHat 5.0.
I did it originally with the 2.0.31 kernel, the upgraded to the 2.0.32
kernel.


The fundamental problem is that RedHat 5.0 increases the size of sigset_t
from 32 bits to 1024 bits.


To correct this problem, the file s-osinte.ads needs to be altered -- e.g.
as follows:


591c591,593
< type sigset_t is new unsigned_long;



---
>    SIGSET_NWORDS : constant := 1024 / (unsigned_long'Size);
>
>    type sigset_t is array (1 .. SIGSET_NWORDS) of unsigned_long;

Then, the adalib(s) need to be compiled -- either the native linux threads
runtime or the Florida State University (fsu) runtime, or both.

To do this I executed the following script in each adalib directory:

#!/bin/tcsh -f
foreach f (../adainclude/*.ad[bs])
  gcc -c -O2 -gnatpga -I- $f
end

To be sure, this script re-compiles some stuff not rendered obsolete by
the change to s-osinte.ads, but it was quicker just to recompile
everything than to figure out what needed to be recompiled.

Next, the libgnat.a archive needs to be rebuilt with something like:

ar ru libgnat.a *.o, in each of the adalibs.

In my case, the size of the libgnat.a file for the native rts changed as
follows:
-rw-r--r--   1 root     root      1747090 Feb 14 12:21 ../adalib/libgnat.a
-rw-r--r--   1 4168     1100      1740584 Aug 24  1997
../adalib/libgnat.a.orig

I don't remember for sure, but I don't think I manually manipulated any of
the symbolic links related to the libraries, but at any rate, here's what my
/usr/lib/gcc-lib/i386-linux/2.7.2.1 directory looks like (sorry but these
long lines may wrap in you mail client):

NOTE: While the above comment about my not remembering making any
symbolic liks is true, the evidence below suggests that I symbolically
linked
several files in  /usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/2.7.2.1 to the
/usr/lib/gcc-lib/i386-linux/2.7.2.1 directory.

total 2743
lrwxrwxrwx   1 root     root           50 Feb 12 05:24 2.7.2.1 ->
/usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/2.7.2.1
lrwxrwxrwx   1 root     root           55 Feb 12 05:24 SYSCALLS.c.X ->
/usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/SYSCALLS.c.X
lrwxrwxrwx   1 root     root           58 Feb 20 04:22 adainclude ->
/usr/lib/gcc-lib/i386-linux/2.7.2.1/rts-native/adainclude/
lrwxrwxrwx   1 root     root           54 Feb 20 04:22 adalib ->
/usr/lib/gcc-lib/i386-linux/2.7.2.1/rts-native/adalib/
lrwxrwxrwx   1 root     root           46 Feb 12 05:24 cc1 ->
/usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/cc1
lrwxrwxrwx   1 root     root           50 Feb 12 05:24 cc1plus ->
/usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/cc1plus
lrwxrwxrwx   1 root     root           46 Feb 12 05:24 cpp ->
/usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/cpp
lrwxrwxrwx   1 root     root           53 Feb 12 05:24 crtbegin.o ->
/usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/crtbegin.o
lrwxrwxrwx   1 root     root           54 Feb 12 05:24 crtbeginS.o ->
/usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/crtbeginS.o
lrwxrwxrwx   1 root     root           51 Feb 12 05:24 crtend.o ->
/usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/crtend.o
lrwxrwxrwx   1 root     root           52 Feb 12 05:24 crtendS.o ->
/usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/crtendS.o
-rwxr-xr-x   1 4168     1100      2271408 Sep 12  1997 gnat1
lrwxrwxrwx   1 root     root           50 Feb 12 05:24 include ->
/usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/include
-rw-r--r--   1 root     root       206902 Feb 14 10:10 libgcc.a
-rw-r--r--   1 root     root       238346 Feb 14 10:10 libgthreads.a
-rw-r--r--   1 root     root        74242 Feb 14 10:10 libmalloc.a
drwxr-xr-x   4 4168     1100         1024 Aug 24  1997 rts-fsu
drwxr-xr-x   4 4168     1100         1024 Aug 24  1997 rts-native
lrwxrwxrwx   1 root     root           48 Feb 12 05:24 specs ->
/usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/specs

As a further sanity check, executing "gcc -v" should result in a message
like:

Reading specs from: /usr/lib/gcc-lib/i386-linux/2.7.2.1/specs

The 2.7.2.1 directory points to 2.7.2.3 because gcc 2.7.2.3 was installed
first (as part of the Linux installation), then gnat was installed on top of
that -- and gnat is 2.7.2.1-based.

I hope I've covered all of the bases here, as this installation is working
fine for me.

I should acknowledge that others of this group helped me when I ran into the
problem a few weeks ago, identifying the cause of the problem and providing
the broad outline of what to do.

Good luck to all who have this problem.

David C. Hoos, Sr.










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

* Re: gnat and RedHat 5.1
  1998-10-28  0:00 ` Samuel Tardieu
@ 1998-10-28  0:00   ` Dale Pontius
  0 siblings, 0 replies; 7+ messages in thread
From: Dale Pontius @ 1998-10-28  0:00 UTC (permalink / raw)


In article <873e88kdq3.fsf@zaphod.enst.fr>,
        Samuel Tardieu <sam@ada.eu.org> writes:
>>>>>> "Dominique" == Dominique Jean-Prost
>>>>>> <jeanpros@vegaserv.univ-fcomte.fr> writes:
>
> Dominique> how can I install this fuc*!@ gnat.
>
> Calling some piece of free software a fuc*!@ software on a public
> newsgroup is not the best way to get some help. Haven't you read the
> netiquette? I guess it should be available somewhere in your university.
>
> But of course, if *you* cannot install a software, it can only be a
> fuc*!@ software, right? I would suggest that you contact someone who
> knows computer systems well (looks like you don't) and seek some help
> from him/help.
>
I might only add that this 'GNAT on RedHat 5.x' has become almost
an faq. I've seen it answered two or three times in the past
month on this newsgroup, and I've participated in discussions of
this issue in another thread.

Since the last time I saw this was on Oct 22, and that's not that
long ago, it may not have spooled off your server, yet. If it has,
go to Deja News and look for:

Subject: Re: gnat-3.10p and RedHat Linux (was Gnat  Free ?)

Dale Pontius
(NOT speaking for IBM)




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

* gnat and RedHat 5.1
@ 1998-10-28  0:00 Dominique Jean-Prost
  1998-10-28  0:00 ` David C. Hoos, Sr.
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Dominique Jean-Prost @ 1998-10-28  0:00 UTC (permalink / raw)


how can I install this fuc*!@ gnat.
I got the binaries of gnatmake.
I did a doconfig and then a doinstall.

At the end, neither gnatmake neither gcc worked !!!
please help me
DoM




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

* Re: gnat and RedHat 5.1
  1998-10-28  0:00 gnat and RedHat 5.1 Dominique Jean-Prost
  1998-10-28  0:00 ` David C. Hoos, Sr.
@ 1998-10-28  0:00 ` Samuel Tardieu
  1998-10-28  0:00   ` Dale Pontius
  1998-10-29  0:00 ` Jerry van Dijk
  1998-11-12  0:00 ` Aidan Skinner
  3 siblings, 1 reply; 7+ messages in thread
From: Samuel Tardieu @ 1998-10-28  0:00 UTC (permalink / raw)
  To: Dominique Jean-Prost

>>>>> "Dominique" == Dominique Jean-Prost
>>>>> <jeanpros@vegaserv.univ-fcomte.fr> writes:

Dominique> how can I install this fuc*!@ gnat.

Calling some piece of free software a fuc*!@ software on a public
newsgroup is not the best way to get some help. Haven't you read the
netiquette? I guess it should be available somewhere in your university.

But of course, if *you* cannot install a software, it can only be a
fuc*!@ software, right? I would suggest that you contact someone who
knows computer systems well (looks like you don't) and seek some help
from him/help.

  Sam
-- 
Samuel Tardieu -- sam@ada.eu.org




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

* Re: gnat and RedHat 5.1
  1998-10-28  0:00 gnat and RedHat 5.1 Dominique Jean-Prost
  1998-10-28  0:00 ` David C. Hoos, Sr.
  1998-10-28  0:00 ` Samuel Tardieu
@ 1998-10-29  0:00 ` Jerry van Dijk
  1998-11-12  0:00 ` Aidan Skinner
  3 siblings, 0 replies; 7+ messages in thread
From: Jerry van Dijk @ 1998-10-29  0:00 UTC (permalink / raw)


Dominique Jean-Prost (jeanpros@vegaserv.univ-fcomte.fr) wrote:

: how can I install this fuc*!@ gnat.

Using this kind of language does not help in getting
someone to help you. You are also degrading the very
university that is trying to educate you.

Jerry.
-- 
-- Jerry van Dijk  | email: jdijk@acm.org
-- Leiden, Holland | member Team-Ada
-- Ada & Win32: http://stad.dsl.nl/~jvandyk




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

* Re: gnat and RedHat 5.1
  1998-10-28  0:00 ` David C. Hoos, Sr.
@ 1998-11-03  0:00   ` Eugene Fokin
  0 siblings, 0 replies; 7+ messages in thread
From: Eugene Fokin @ 1998-11-03  0:00 UTC (permalink / raw)


David C. Hoos, Sr. wrote:

>>At the end, neither gnatmake neither gcc worked !!!
>>please help me

> [...skipped...]
> A number of people have found that this solution works for them.  The
> cause of the segmentation fault is the change of the size of sigset_t
> from 32 bits to 1024 bits.
> [...skipped...]

I can tell how I forced my gcc/gnat to work together.
I have redhat-like distribution, and I've got the egcs-1.0.3a source
(recommended). Also I've got the gnat-3.10p source.

1. Unpack egcs sources.
2. Unpack subdir. ".../src/ada" from gnat source into subdir. ".../gcc/"
   under egcs top dir. source.
3. Go into egcs top dir. source.
4. Apply next patch:

----- start of gnat-3.10p.glibc.patch -----
*** gcc/ada/5iosinte.ads.orig	Thu Aug 14 08:05:18 1997
--- gcc/ada/5iosinte.ads	Tue Oct 27 17:59:01 1998
***************
*** 588,594 ****
  
  private
  
!    type sigset_t is new unsigned_long;
  
     --  In Solaris 2.4 the component sa_handler turns out to
     --  be one a union type, and the selector is a macro:
--- 588,594 ----
  
  private
  
!    type sigset_t is array (1 .. 32) of unsigned_long;
  
     --  In Solaris 2.4 the component sa_handler turns out to
     --  be one a union type, and the selector is a macro:
*** gcc/ada/5losinte.ads.orig	Thu Aug 14 08:05:06 1997
--- gcc/ada/5losinte.ads	Tue Oct 27 17:59:02 1998
***************
*** 648,654 ****
  
  private
  
!    type sigset_t is new unsigned_long;
  
     --  In Solaris 2.4 the component sa_handler turns out to
     --  be one a union type, and the selector is a macro:
--- 648,654 ----
  
  private
  
!    type sigset_t is array (1 .. 32) of unsigned_long;
  
     --  In Solaris 2.4 the component sa_handler turns out to
     --  be one a union type, and the selector is a macro:
*** gcc/ada/a-init.c.orig	Thu Aug 14 08:03:40 1997
--- gcc/ada/a-init.c	Tue Oct 27 17:59:02 1998
***************
*** 79,84 ****
--- 79,86 ----
    __gl_adafinal_ptr = adafinal_ptr;
  }
  
+ #define NULL 0
+ 
  #if defined (MSDOS)
  #include <stdio.h>

----- end  of  gnat-3.10p.glibc.patch -----

5. Do egcs configure procedure.
6. Do make bootstrap
7. Go into ".../gcc" subdir. and perform all steps from
   README.BUILD file from gnat-3.10p source distribution, like:
   make gnattools, make gnatlib, etc.
8. Go back up to top dir. in egcs source.
9. Do make install.

Good luck!
-- 
-Eugene




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

* Re: gnat and RedHat 5.1
  1998-10-28  0:00 gnat and RedHat 5.1 Dominique Jean-Prost
                   ` (2 preceding siblings ...)
  1998-10-29  0:00 ` Jerry van Dijk
@ 1998-11-12  0:00 ` Aidan Skinner
  3 siblings, 0 replies; 7+ messages in thread
From: Aidan Skinner @ 1998-11-12  0:00 UTC (permalink / raw)


On Wed, 28 Oct 1998 13:03:27 +0000, Dominique Jean-Prost 
<jeanpros@vegaserv.univ-fcomte.fr> wrote:

Why I'm answering this a I don't know.

There's a rpm of GNAT 3.10p available, do a search for it.

- Aidan

-- 
HMFC - Scottish Cup Winners 1998
http://www.skinner.demon.co.uk/aidan
http://www.gla.ac.uk/Clubs/WebSoc/~974075s/
"I don't patronise bunny rabbits"




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

end of thread, other threads:[~1998-11-12  0:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-10-28  0:00 gnat and RedHat 5.1 Dominique Jean-Prost
1998-10-28  0:00 ` David C. Hoos, Sr.
1998-11-03  0:00   ` Eugene Fokin
1998-10-28  0:00 ` Samuel Tardieu
1998-10-28  0:00   ` Dale Pontius
1998-10-29  0:00 ` Jerry van Dijk
1998-11-12  0:00 ` Aidan Skinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox