gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gm2] GM2 - circular dependancies ?


From: Iztok Kobal
Subject: Re: [Gm2] GM2 - circular dependancies ?
Date: Fri, 03 Jan 2003 08:38:39 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020903

Manhart Matthias wrote:

Hello,

i would like to port a rather large Modula-Project (Logitech Modula-2
Release 4.0) to GM2. I started with some basic modules
and detected the following problem:

--------------- test.def ---------------
DEFINITION MODULE test;
TYPE
 test_type   = CARDINAL;
 Error_Proc  = PROCEDURE(ARRAY OF CHAR, ARRAY OF CHAR);


As I have understood our latest correspondence, Mr. Gaius just works on faulty gm2 behaviour regarding procedure types.

I would use GM2 myself, especially becouse of the latest crosscompile support, but I have ISO M2 code strongly relying on large bitsets (which have only recently being implemented) and procedure types (which is unstable so far, as you experience yourself). I also need shared objects support which is not implemented into the GM2 comp/lang extensions (AFAIK, but may be wrong). So, I advise you to check thoroughly the status of the GM2 before you use it, especially since it relies on the PIM2 instead of the ISO (which I think Logitech M2 4.0 already is in some extent). And I advise you to check your demands directly with Gaius.

You can also strongly contribute by trying to recompile your code and find some more errors for Gaius and other guys working on the GM2.

I.

END test.

--------------- test.mod ---------------
IMPLEMENTATION MODULE test;
VAR
 xError_Procedure : Error_Proc;
BEGIN
 (* empty *)
END test.

--------------- hello.mod ---------------
MODULE hello;
FROM StrIO IMPORT WriteString, WriteLn ;
FROM test IMPORT test_type;
BEGIN
 WriteString('hello world') ; WriteLn;
END hello.

--------------- makefile ----------------
all: force
gm2 -o hello -Wbounds -Wreturn -g -I. -Wmake-I=. -Wmakeall hello.mod

clean:
$(RM) *.o a.out

force:

-----------------------------------------

When i run the makefile, i get the following error:

gm2 -o hello -Wbounds -Wreturn -g -I. -Wmake-I=. -Wmakeall hello.mod
make[1]: Entering directory `/home/hello'
gm2 -c -Wmakeall0 -g -Wbounds -Wreturn -Wmake-I=. -Wmakeall
-I.:/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2/gm2 hello.mod
internal error: circular type dependancy on symbol Error_Proc
(82)../../gm2-20021105+gcc-3.2/gcc/gm2/gm2-compiler/M2GCCDeclare.mod:336
:*** internal error *** circular dependancies within
above types
make[1]: Leaving directory `/home/hello'

The code is correct. Can someone help me ?

Thanks

Matthias Manhart
Switzerland

_______________________________________________
gm2 mailing list
address@hidden
http://floppsie.comp.glam.ac.uk/mailman/listinfo/gm2

.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]