[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fwd: Import procedure NEWPROCESS
From: |
Gaius Mulley |
Subject: |
Re: Fwd: Import procedure NEWPROCESS |
Date: |
Thu, 03 Oct 2024 21:09:19 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
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
- Import procedure NEWPROCESS, Alexey Ulasevich, 2024/10/02
- Re: Import procedure NEWPROCESS, Alexey Ulasevich, 2024/10/03
- Re: Import procedure NEWPROCESS, Alexey Ulasevich, 2024/10/03
- Re: Fwd: Import procedure NEWPROCESS, Alexey Ulasevich, 2024/10/03
- Re: Fwd: Import procedure NEWPROCESS,
Gaius Mulley <=
- Re: Fwd: Import procedure NEWPROCESS, Alexey Ulasevich, 2024/10/04
- Re: Fwd: Import procedure NEWPROCESS, Gaius Mulley, 2024/10/04
- Re: Fwd: Import procedure NEWPROCESS, Benjamin Kowarsch, 2024/10/03