From: drees@oto.dyn.ml.org
Subject: Re: Native rts not working on linux (glibc)
Date: 1998/11/12
Date: 1998-11-12T00:00:00+00:00 [thread overview]
Message-ID: <72e20a$8h5$1@nnrp1.dejanews.com> (raw)
In-Reply-To: 717sfl$ple$1@nyheter.chalmers.se
In article <717sfl$ple$1@nyheter.chalmers.se>,
d96andgi@dtek.chalmers.se (Anders Gidenstam) wrote:
> Hello!
Hi!
> When I compile programs that uses the native rts instead of the fsu rts,
> they fail when I try to run them.
>
> [d96andgi@aragorn Test]$ ./greet2
> Failed Runtime Assertion : GNULLI failure---Set_Priority
I get the same thing with the native package.
> I think it's some problem with the LinuxThread library but I'm not sure.
> I use the gnat-3.10p-1 rpm package and I have glibc version 2.0.7-19.
> (The system is more or less RedHat 5.1 and ... well.. it's a PC)
>
> Has someone managed to use the native rts with a similar setup?
I haven't gotten it to work using the rts-native, but I got my programs to
run with rts-fsu, apparently just fine. Here's how to do it. You need to
patch the s-osinte.ads file and rebuild the files just like you did to the
rts-native files. Apply this patch. (I installed gnat in /opt/gnat)
**************************** ---
/opt/gnat/lib/gcc-lib/i386-linux/2.7.2.1/rts-fsu/adainclude/s-osinte.ads.orig
Wed Nov 11 22:25:57 1998 +++
/opt/gnat/lib/gcc-lib/i386-linux/2.7.2.1/rts-fsu/adainclude/s-osinte.ads Wed
Nov 11 22:36:11 1998 @@ -648,7 +648,9 @@
private
- 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;
-- In Solaris 2.4 the component sa_handler turns out to
-- be one a union type, and the selector is a macro:
*******************************
Then rebuild all the libs in rts-fsu/adalib with the following script:
********************************
#!/bin/tcsh -f
foreach f (../adainclude/*.ad[bs])
gcc -c -O2 -gnatpga -I- $f
end
********************************
And remember to point your adainclude and adalib to rts-fsu/adainclude and
lib.
> Btw is there any way to link the program with the rts dynamically?
> (My binaries are even bigger than those on Solaris/Sparc...
Sorry, no help here.
-Dave
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
next prev parent reply other threads:[~1998-11-12 0:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-10-28 0:00 Native rts not working on linux (glibc) Anders Gidenstam
1998-10-29 0:00 ` Sune Falck
1998-10-29 0:00 ` Anders Gidenstam
1998-10-29 0:00 ` Anders Gidenstam
1998-11-12 0:00 ` drees [this message]
1998-11-12 0:00 ` Anders Gidenstam
1998-11-12 0:00 ` dewarr
1998-11-13 0:00 ` Anders Gidenstam
1998-11-15 0:00 ` Simon Wright
1998-11-16 0:00 ` Anders Gidenstam
1998-11-16 0:00 ` Anders Gidenstam
1998-11-17 0:00 ` Simon Wright
1998-11-18 0:00 ` Anders Gidenstam
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox