gm2
[Top][All Lists]
Advanced

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

Re: Fwd: Import procedure NEWPROCESS


From: Alexey Ulasevich
Subject: Re: Fwd: Import procedure NEWPROCESS
Date: Fri, 4 Oct 2024 09:53:53 +0300
User-agent: Mozilla Thunderbird


03.10.2024 23:09, Gaius Mulley пишет:
Alexey Ulasevich <alexey.ulasevich@gmail.com> writes:

03.10.2024 21:27, Benjamin Kowarsch пишет:

  forgot to use the "reply to all" option.

  ---------- Forwarded message ---------
  From: Benjamin Kowarsch
  Date: Fri, 4 Oct 2024 at 03:25
  Subject: Re: Import procedure NEWPROCESS
  To: Alexey Ulasevich

  On Thu, 3 Oct 2024 at 23:36, Alexey Ulasevich wrote:

  03.10.2024 08:46, Jack Perry пишет:

  ...and judging from the modula-2 reference at

     https://www.modula2.org/reference/isomodules/isomodule.php?m=SYSTEM.DEF

  ....there is indeed no NEWPROCESS procedure in SYSTEM.

  Correct. In PIM, coroutines were provided by pseudo-module SYSTEM, and in ISO 
this was changed.
Ok.Thanks. But when I use '-fpim' for compiling I get also get errors:

alex@aurum:~/m2propbe/probes$ gm2 -g -fsoft-check-all -Wall process_probe1.mod 
-o process_probe1
/usr/lib/gcc/x86_64-linux-gnu/12/m2/m2pim/SYSTEM.def:212:11: error: In 
definition module ‘SYSTEM’: the symbols are unknown at the end of module
‘process_probe1’ when requested by another modules import (symbols have not 
been exported by the appropriate definition module)
   212 | END SYSTEM.
       |           ^
/usr/lib/gcc/x86_64-linux-gnu/12/m2/m2pim/SYSTEM.def:212:11: error: the 
following unknown symbols in module ‘SYSTEM’ were unresolved: PROCESS,
TRANSFER and NEWPROCESS
process_probe1.mod:4:20: error: unknown symbol ‘NEWPROCESS’
     4 | FROM SYSTEM IMPORT NEWPROCESS, TRANSFER, PROCESS;
       |                    ^~~~~~~~~~
process_probe1.mod:4:20: error: unknown symbol 'NEWPROCESS' found
process_probe1.mod:4:32: error: unknown symbol ‘TRANSFER’
     4 | FROM SYSTEM IMPORT NEWPROCESS, TRANSFER, PROCESS;
       |                                ^~~~~~~~
process_probe1.mod:4:32: error: unknown symbol 'TRANSFER' found
process_probe1.mod:4:42: error: unknown symbol ‘PROCESS’
     4 | FROM SYSTEM IMPORT NEWPROCESS, TRANSFER, PROCESS;
       |                                          ^~~~~~~
process_probe1.mod:4:42: error: unknown symbol 'PROCESS' found

Module SYSTEM with NEWPROCESS and TRANSFER still in gm2, it's placed in 
'/usr/lib/gcc/x86_64-linux-gnu/12/m2/m2cor'. So, how to use it?

Best regards,

Aleksey Ulasevich
Hi Aleksey,

with gm2-12 you need to supply the library order:

$ gm2 -flibs=cor,pim,iso -g foo.mod

It might be worth considering upgrading gm2 to (13, or 14) if possible
as the linking has completely changed (and many bug fixes have been
applied),

regards,
Gaius


Ok. Thanks. It's look like I should build gm2 from sources on my Debian 12. :-)

Best regards,
Aleksey Ulasevich




reply via email to

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