On bookworm (testing) I get: $ gm2 --version gm2 (Debian 12.2.0-10) 12.2.0 Copyright (C) 2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ gm2 hello.mod hello.mod:1:2: error: expecting one of: ‘IMPLEMENTATION’ ‘MODULE’ ‘DEFINITION’ 1 | FROM StrIO IMPORT WriteString, WriteLn; | ^~~~ hello.mod:1:2: error: compilation failed
Adding a first line, "MODULE hello;" makes the program legal but then I get the same symptoms as in the original bug report. Adding -fpim2 or -fpim3 to the compiler command line has no effect. Adding -fiso silences the compiler even though StrIO is not an ISO module. Therefore a complete workaround is: $ cat hello.mod MODULE hello; FROM StrIO IMPORT WriteString, WriteLn; BEGIN WriteString('hello world'); WriteLn END hello. $ gm2 -fiso hello.mod -o hello $ ./hello hello world It seems that libm2pim.so lacks some necessary functions which libm2iso.so has. -- Ludovic Brenta.