comp.lang.ada
 help / color / mirror / Atom feed
* Gnat (3.10p) on RedHat Linux := Success :-)
@ 1998-05-21  0:00 Andreas Jungmaier
  1998-05-24  0:00 ` Clayton Weaver
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Jungmaier @ 1998-05-21  0:00 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: TEXT/PLAIN; charset=US-ASCII, Size: 2480 bytes --]


Hello all !

Thanks to the contribution of David Hoos, I have _finally_ managed
to get a working copy on my RedHat-5.0 based Linux system.
Since this is not exactly a straight installation, I would like
to repost the essence of the installation procedure, as there seem
to be some more people out there, that use this setup :
- First of you install the gnat-binary distribution for linux
	(gnat-3.10p-i386....bin.tar.gz) in standard places.
  Note that this will replace the gcc-2.7.2.3 that comes with the
  RedHat-5.0 distribution. However, you keep, of course, the 
  /usr/lib/gcc-lib/i386-linux/2.7.2.3/..  directory.
- Then you need to change a line in the file(s) s-osinte.ads, which
  are located in /usr/lib/gcc-lib/i386-linux/2.7.2.1/adainclude
  Note that this is a link to either  rts-fsu/adainclude, or to 
  rts-native/adainclude. You may change either, or both.
  Below you find the diff :
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;

  This is to fix a change in the sigset_t type, as used in the 
  RedHat-5.0 distribution (don´t ask me where).
- go into the corresponding adalib-directory and execute the 
  following script, in order to recompile the libraries in the
  adainclude directory.
--------------------------------
#!/bin/tcsh -f
foreach f (../adainclude/*.ad[bs])
gcc -c -O2 -gnatpga -I- $f
end
--------------------------------
  There were some errors in the compilation, but I ignored these ;-)

- Then the execution of 
	ar ru libgnat.a *.o
  will create a new version of the libgnat.a library, that is supposed
  to work with RedHat-5.0.
- Finally you need to set up symbolic links for some files from the directory
  /usr/lib/gcc-lib/i386-linux/2.7.2.1/
  to the corresponding files of the directory
  /usr/lib/gcc-lib/i386-linux/2.7.2.3/
  thereby effectively removing the original files in ..../i386-linux/2.7.2.1/
  The files for which that is done are :
	SYSCALLS.c.X
	cc1
	cc1plus
	cpp
	crt*
	specs
   and the directory 
	include/

- Then go ahead and test your setup by compiling some code !

Thanks to all that helped,

Andreas

-------------------------------------------------------------------------
Andreas Jungmaier  		ajung@teisa.unican.es
-------------------------------------------------------------------------





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

* Re: Gnat (3.10p) on RedHat Linux := Success :-)
  1998-05-21  0:00 Gnat (3.10p) on RedHat Linux := Success :-) Andreas Jungmaier
@ 1998-05-24  0:00 ` Clayton Weaver
  0 siblings, 0 replies; 2+ messages in thread
From: Clayton Weaver @ 1998-05-24  0:00 UTC (permalink / raw)



Gee, that's messy, I just can't bring myself to install glibc and libc5 on
the same system. What happens when the compiler sees "-lc" in a link
command line? What was libc.so linked to the last time I compiled
something?

Why not dual boot? You must have some disk space to be running gcc and
gnat compiles. Make a few empty partitions, one for /, one for /usr/src,
another for /usr/lib or /usr. You can share the swap partition and /tmp
partition (ext2fs 1.06 runs on both libc5 and glibc systems, and up
through its most current version uses the same filesystem format with both
libc versions).

ftp rh 4.2 or slackware 3.4 or a libc5 debian (or get the S.u.S.E. cd
that's now $1.95 at http://linuxcentral.com), with kernel 2.0.3-something
and libc5), make boot disks, install it on the new partitions. If you want
to use gnat-3.10p with gcc-2.7.2.1 (compiled against libc5), put it on the
(minimal) all-libc5 system. I'd guess you could easily do it with 300mb of
free space, and that's probably generous, when you consider what all a
standard linux system has that you don't need to develop ada code with
gnat, gcc, and libc5. 

When a more-or-less validated gnat is released with tested glibc support,
install it and lose the system on the old libc 5 partitions (or keep it
for comparison compiling code that seems to find a compiler bug).

Regards, Clayton Weaver  cgweav@eskimo.com  (Seattle)

-- 

Regards, Clayton Weaver  cgweav@eskimo.com  (Seattle)

"Since this is a technical newsgroup and has mostly done a pretty good job




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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-05-21  0:00 Gnat (3.10p) on RedHat Linux := Success :-) Andreas Jungmaier
1998-05-24  0:00 ` Clayton Weaver

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