gm2
[Top][All Lists]
Advanced

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

[Gm2] [GM2] gm2m fails to generate Makefile when -fmakeall is used on a


From: Roberto Aragón
Subject: [Gm2] [GM2] gm2m fails to generate Makefile when -fmakeall is used on a module with reference
Date: Wed, 7 Mar 2018 03:42:07 +0100

Hi, everybody.

I would like to report an strage issue with gm2 1.6.4_0.4 down
to 1.2.0_0.1. Only tested Debian (ubuntu 16.06).

When a module is referencing another local module and compilation is
done via:

$ gm2 -fmakeall test.mod

gm2m fails with this error:

test.mod:6:expecting one of: IMPLEMENTATION MODULE DEFINITION
test.mod:6:expecting one of: IMPLEMENTATION MODULE DEFINITION
test.mod:6:expecting one of: IMPLEMENTATION MODULE DEFINITION

The modules contents are:

MODULE test;
  FROM test1 IMPORT print;
BEGIN
  print("Hello world");
END test.

Referenced module definition:

DEFINITION MODULE test1;
  EXPORT UNQUALIFIED print;
  PROCEDURE print(msg: ARRAY OF CHAR);
END test1.

And implementation:

IMPLEMENTATION MODULE test1;
  FROM StrIO IMPORT WriteString, WriteLn;
  PROCEDURE print(msg: ARRAY OF CHAR);
  BEGIN
    WriteString(msg);
    WriteLn();
  END print;
END test1.

I've tested 1.6.4, 1.5.4 and 1.2.0 version with the same results. 1.1.6
is not affected. The makefile is not generated.

Maybe the command line for compilation is wrong? Adding "-I." doesn't
help either.

Regards,
Roberto.



reply via email to

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