gm2
[Top][All Lists]
Advanced

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

Re: simple compiling/running problem


From: Gaius Mulley
Subject: Re: simple compiling/running problem
Date: Wed, 11 Oct 2023 20:37:58 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Eric Streit <eric@yojik.eu> writes:

> Hi again,
>
> I search on the mailing list archives, found some references:
>
> I tried them all ... nothing works.
>
> My system is Debian/Bookworm up to date.
>
> the main gm2 is based on gcc12 and is the one shipped with Debian
>
> the second is from the last gcc release (13)
>
> With a very simple helloworlds program, with all the suggestions in
> the mailing list, I got either:
>
> 1) Debian gm2:
>
>
> $/usr/bin/gm2 -g Test1.mod
>
> /usr/bin/ld : /tmp/ccwOR7hD.a(a-Test1_m2.o) : dans la fonction
> « init(int, char**) » :
> /home/eric/Devs/Compilation/Test-Modula2/a-Test1_m2.cpp:69 : référence
> indéfinie vers « _M2_hello_init »
> /usr/bin/ld : /tmp/ccwOR7hD.a(a-Test1_m2.o) : dans la fonction
> « finish() » :
> /home/eric/Devs/Compilation/Test-Modula2/a-Test1_m2.cpp:80 : référence
> indéfinie vers « _M2_hello_finish »
> /usr/bin/ld : /usr/lib/gcc/x86_64-linux-gnu/12/m2/m2pim/libm2pim.so :
> référence indéfinie vers « RTco_select »
> /usr/bin/ld : /usr/lib/gcc/x86_64-linux-gnu/12/m2/m2pim/libm2pim.so :
> référence indéfinie vers « RTco_initSemaphore »
> /usr/bin/ld : /usr/lib/gcc/x86_64-linux-gnu/12/m2/m2pim/libm2pim.so :
> référence indéfinie vers « RTco_wait »
> /usr/bin/ld : /usr/lib/gcc/x86_64-linux-gnu/12/m2/m2pim/libm2pim.so :
> référence indéfinie vers « RTco_signal »
> collect2: error: ld returned 1 exit status

Hi,

if I recall correctly with gm2-12 the work around is:

$ gm2 -flibs=pim,iso,cor -fpim Test1.mod

or

$ gm2 -flibs=iso,pim,cor -fiso Test1.mod

(this bug was fixed during the gcc-13 cycle)

regards,
Gaius



reply via email to

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