From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b180fbb5257e142f X-Google-Attributes: gid103376,public From: drees@oto.dyn.ml.org Subject: Re: Native rts not working on linux (glibc) Date: 1998/11/12 Message-ID: <72e20a$8h5$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 411006080 References: <717sfl$ple$1@nyheter.chalmers.se> X-Http-Proxy: 1.0 x6.dejanews.com:80 (Squid/1.1.22) for client 204.210.35.31 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Thu Nov 12 07:16:25 1998 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.5 [en] (X11; U; Linux 2.1.127 i586) Date: 1998-11-12T00:00:00+00:00 List-Id: 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