[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Example compile and link failed (gm2-10)
From: |
Gaius Mulley |
Subject: |
Re: Example compile and link failed (gm2-10) |
Date: |
Tue, 20 Dec 2022 10:19:09 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Jack Dawkins via GNU Modula-2 development and user list <gm2@nongnu.org>
writes:
> Hi,
>
> I'm using a distro based on Debian stable and having installed gm2-10 using
> apt I get the following error messages referencing the pim library when
> compiling the "hello world" example :
>
> $ gm2 -g hello.mod
> /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/m2/m2pim/libm2pim.so: undefined
> reference to `RTco_select'
> /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/m2/m2pim/libm2pim.so: undefined
> reference to `RTco_initSemaphore'
> /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/m2/m2pim/libm2pim.so: undefined
> reference to `RTco_wait'
> /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/m2/m2pim/libm2pim.so: undefined
> reference to `RTco_signal'
> collect2: error: ld returned 1 exit status
>
> Three files are generated : hello.o, hello_m2.cpp, and hello_m2.o.
>
> Also, not having much luck so far obtaining gm2 from git. Have tried several
> times downloading from:
>
> git clone http://floppsie.comp.glam.ac.uk/gm2 gm2-floppsie
>
> but I just get a timeout error.
>
> Thanks for any help.
> Jack
Hi Jack,
if you want to build gm2 from source (and are willing to risk a
development version) you could try:
git clone git://gcc.gnu.org/git/gcc.git
(Sadly floppsie.comp.glam.ac.uk is no more)
regards,
Gaius