gm2
[Top][All Lists]
Advanced

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

Re: Compilation error on Debian


From: Gaius Mulley
Subject: Re: Compilation error on Debian
Date: Tue, 04 May 2021 13:05:41 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Holger Peters <holger.peters@posteo.de> writes:

> CAUTION: This email originated from outside of the organisation. Do not click 
> links or open attachments unless you recognise the sender and know the 
> content is safe.
>
> RHYBUDD: Mae'r e-bost hwn yn tarddu o'r tu allan i'r sefydliad. Peidiwch รข 
> chlicio dolenni nac agor atodiadau oni bai eich bod yn adnabod yr anfonwr ac 
> yn gwybod bod y cynnwys yn ddiogel.
>
> Hi,
>
> I am having trouble compiling a simple program, I guess it fails in the 
> linking step
>
>
>         % cat hello.mod
>         MODULE hello;
>         FROM StrIO IMPORT WriteString, WriteLn;
>         BEGIN
>                 WriteString('hello world');
>                 WriteLn
>         END hello.
>
>
> Here is how I try to compile and link it
>
>         % gm2 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
>
>
> I guess you are also interested in the gm2 version
>
>         % gm2 --version
>         gm2 (Debian 10.2.1-6) 10.2.1 20210110
>
>
>
> Any ideas? Pointers?
>
>
> Holger

Hi Holger,

thanks for the report - I'm unsure why this has happened with the
tarball above - but I've created a new tarball:

  http://floppsie.comp.glam.ac.uk/download/c/gcc-10.2.0+gm2-20210503.tar.gz

which I've been build and install on Debian Buster amd64.  The compile
and link also worked:

$ gm2 --version
gm2 (GCC) 10.3.1 20210429
Copyright (C) 2020 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.

$ cat hello.mod
MODULE hello ;

FROM libc IMPORT printf ;

BEGIN
   printf ("hello world\n")
END hello.
$ gm2 -g hello.mod
$ ./a.out
hello world
$ cat hello2.mod
MODULE hello2 ;

FROM StrIO IMPORT WriteString, WriteLn ;

BEGIN
   WriteString ("hello world") ; WriteLn
END hello2.
$ gm2 -g hello.mod
$ ./a.out
hello world

it would be interesting to see if this worked on your system?


regards,
Gaius



reply via email to

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