comp.lang.ada
 help / color / mirror / Atom feed
* [gnat-3.11p] gnat1 hangs on compiling (long)
@ 1999-11-26  0:00 Lutz Donnerhacke
  1999-11-26  0:00 ` Lutz Donnerhacke
  1999-11-26  0:00 ` Robert Dewar
  0 siblings, 2 replies; 6+ messages in thread
From: Lutz Donnerhacke @ 1999-11-26  0:00 UTC (permalink / raw)


In ftp.iks-jena.de:/pub/mitarb/lutz/ada/types/ there is a set of mixin libs.

After a change in the (generic) source of double_linked_list_mixin.adb
gnatmake did not return. (Recompiling the Ada Compiler is problematic.)

$ uname -a
Linux taranis 2.2.12 #75 Fri Aug 27 14:39:33 MEST 1999 i586 unknown

$ strace -o /tmp/gnat.log \
    .../gnat1 -dumpbase test_double_linked_list.adb \
              -gnatg -gnatf -gnatn test_double_linked_list.adb \
 	      -o /tmp/cco4dE1Q.s
^C
$ tail -40 /tmp/gnat.log
stat("ADALIB/gnat/gnat-3.11p/s-imgint.ads", 0xbfffe984) = -1 ENOENT
stat("ADAINCLUDE/s-imgint.ads", {...}) = 0
stat("ADAINCLUDE/s-imgint.ads", {...}) = 0
stat("ADAINCLUDE/s-imgint.ads", {...}) = 0
open("ADAINCLUDE/s-imgint.ads", O_RDONLY) = 6
fstat(6, {st_mode=0, st_size=0, ...})   = 0
brk(0x8677000)                          = 0x8677000
read(6, "--------------------------------"..., 3630) = 3630
close(6)                                = 0
stat("s-sopco3.ads", 0xbfffecd0)        = -1 ENOENT
stat("ADALIB/gnat/adainclude/s-sopco3.ads", 0xbfffec78) = -1 ENOENT
stat("ADALIB/gnat/gnat-3.11p/s-sopco3.ads", 0xbfffec78) = -1 ENOENT
stat("ADAINCLUDE/s-sopco3.ads", {st_mode=0, st_size=0, ...}) = 0
stat("ADAINCLUDE/s-sopco3.ads", {st_mode=0, st_size=0, ...}) = 0
stat("ADAINCLUDE/s-sopco3.ads", {st_mode=0, st_size=0, ...}) = 0
open("ADAINCLUDE/s-sopco3.ads", O_RDONLY) = 6
fstat(6, {st_mode=0, st_size=0, ...})   = 0
brk(0x8678000)                          = 0x8678000
read(6, "--------------------------------"..., 2995) = 2995
close(6)                                = 0
brk(0x867c000)                          = 0x867c000
brk(0x867e000)                          = 0x867e000
stat("double_linked_list_mixin.adb", {st_mode=0, st_size=0, ...}) = 0
stat("double_linked_list_mixin.adb", {st_mode=0, st_size=0, ...}) = 0
stat("double_linked_list_mixin.adb", {st_mode=0, st_size=0, ...}) = 0
open("double_linked_list_mixin.adb", O_RDONLY) = 6
fstat(6, {st_mode=0, st_size=0, ...})   = 0
brk(0x8681000)                          = 0x8681000
read(6, "with Generic_List_Implementation"..., 9402) = 9402
close(6)                                = 0
mmap(0, 147456, P_READ|P_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40325000
stat("generic_list_implementation.ads", {st_mode=0, st_size=0, ...}) = 0
stat("generic_list_implementation.ads", {st_mode=0, st_size=0, ...}) = 0
stat("generic_list_implementation.ads", {st_mode=0, st_size=0, ...}) = 0
open("generic_list_implementation.ads", O_RDONLY) = 6
fstat(6, {st_mode=0, st_size=0, ...})   = 0
read(6, "\nwith Matchs;\n\ngeneric\n   ty"..., 3154) = 3154
close(6)                                = 0
--- SIGINT (Interrupt) ---
+++ killed by SIGINT +++

(slightly shortend to squeeze it into 80 columns)

It's running in user space not in kernel space. (checked)

-gnats (Syntax check only) works.
-gnatt (Output parse tree) hangs.

Any hints?




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

* Re: [gnat-3.11p] gnat1 hangs on compiling (long)
  1999-11-26  0:00 [gnat-3.11p] gnat1 hangs on compiling (long) Lutz Donnerhacke
  1999-11-26  0:00 ` Lutz Donnerhacke
@ 1999-11-26  0:00 ` Robert Dewar
  1999-11-26  0:00   ` Lutz Donnerhacke
  1 sibling, 1 reply; 6+ messages in thread
From: Robert Dewar @ 1999-11-26  0:00 UTC (permalink / raw)


In article <slrn83su4i.im.lutz@taranis.iks-jena.de>,
  lutz@iks-jena.de (Lutz Donnerhacke) wrote:
> In ftp.iks-jena.de:/pub/mitarb/lutz/ada/types/ there is a set
of mixin libs.
>
> After a change in the (generic) source of
double_linked_list_mixin.adb
> gnatmake did not return. (Recompiling the Ada Compiler is
problematic.)


I suggest chat@gnat.com for this kind of query. There are
more knowledgable users of GNAT over there than in CLA.

A quick comment is that you should almost never be using -gnatt.
Instead use the ASIS interface. Certainly if you are trying to
use the internal trees directly, you MUST figure out how to
recompile the compiler!


Sent via Deja.com http://www.deja.com/
Before you buy.




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

* Re: [gnat-3.11p] gnat1 hangs on compiling (long)
  1999-11-26  0:00 [gnat-3.11p] gnat1 hangs on compiling (long) Lutz Donnerhacke
@ 1999-11-26  0:00 ` Lutz Donnerhacke
  1999-11-27  0:00   ` Robert Dewar
  1999-11-26  0:00 ` Robert Dewar
  1 sibling, 1 reply; 6+ messages in thread
From: Lutz Donnerhacke @ 1999-11-26  0:00 UTC (permalink / raw)


* Lutz Donnerhacke wrote:
>In ftp.iks-jena.de:/pub/mitarb/lutz/ada/types/ there is a set of mixin libs.
>
>After a change in the (generic) source of double_linked_list_mixin.adb
>gnatmake did not return. (Recompiling the Ada Compiler is problematic.)

Making the generic procedures and functions from
   with procedure Advance (Iter : in out Iterator) is <>;
to
   with procedure Advance (Iter : in out Iterator);
and changing all the instantations, it works.

Sorry for bothering. It's nevertheless a bug. May this help to fix it.
ftp is cvs controlled and might change anytime. (crontjob: cvs up).




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

* Re: [gnat-3.11p] gnat1 hangs on compiling (long)
  1999-11-26  0:00 ` Robert Dewar
@ 1999-11-26  0:00   ` Lutz Donnerhacke
  0 siblings, 0 replies; 6+ messages in thread
From: Lutz Donnerhacke @ 1999-11-26  0:00 UTC (permalink / raw)


* Robert Dewar wrote:
>I suggest chat@gnat.com for this kind of query. There are
>more knowledgable users of GNAT over there than in CLA.

Sorry.

>A quick comment is that you should almost never be using -gnatt.
>Instead use the ASIS interface. Certainly if you are trying to
>use the internal trees directly, you MUST figure out how to
>recompile the compiler!

'-gantt' was only used to check the state where gnat1 hangs.




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

* Re: [gnat-3.11p] gnat1 hangs on compiling (long)
  1999-11-26  0:00 ` Lutz Donnerhacke
@ 1999-11-27  0:00   ` Robert Dewar
  1999-11-28  0:00     ` Lutz Donnerhacke
  0 siblings, 1 reply; 6+ messages in thread
From: Robert Dewar @ 1999-11-27  0:00 UTC (permalink / raw)


In article <slrn83sv1e.im.lutz@taranis.iks-jena.de>,
  lutz@iks-jena.de (Lutz Donnerhacke) wrote:
> Sorry for bothering. It's nevertheless a bug. May this help to
> fix it. ftp is cvs controlled and might change anytime.
> (crontjob: cvs up).

You might want to be using the current version of GNAT, rather
than an obsolete version!


Sent via Deja.com http://www.deja.com/
Before you buy.




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

* Re: [gnat-3.11p] gnat1 hangs on compiling (long)
  1999-11-27  0:00   ` Robert Dewar
@ 1999-11-28  0:00     ` Lutz Donnerhacke
  0 siblings, 0 replies; 6+ messages in thread
From: Lutz Donnerhacke @ 1999-11-28  0:00 UTC (permalink / raw)


* Robert Dewar wrote:
>  lutz@iks-jena.de (Lutz Donnerhacke) wrote:
>> Sorry for bothering. It's nevertheless a bug. May this help to
>> fix it. ftp is cvs controlled and might change anytime.
>> (crontjob: cvs up).
>
>You might want to be using the current version of GNAT, rather
>than an obsolete version!

The required enviroment for recompiling or installing an compiler in system
directories can not be provided.
ADAHOME=~/work/ada/




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

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

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-26  0:00 [gnat-3.11p] gnat1 hangs on compiling (long) Lutz Donnerhacke
1999-11-26  0:00 ` Lutz Donnerhacke
1999-11-27  0:00   ` Robert Dewar
1999-11-28  0:00     ` Lutz Donnerhacke
1999-11-26  0:00 ` Robert Dewar
1999-11-26  0:00   ` Lutz Donnerhacke

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