[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GNU Modula 2 in non Debian based Linux
From: |
Gaius Mulley |
Subject: |
Re: GNU Modula 2 in non Debian based Linux |
Date: |
Fri, 30 Aug 2024 11:11:35 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
GeOdys <geodysp@gmail.com> writes:
> Hello to all!
> I am new to Modula2. Essentially, I am trying to become new.
>
> My problem:
> My distro is Void Linux and there is part of the gnu collection
> (13.2.0_2: ada, go, fortran, objective-c) but unfortunately gm2 is
> missing.
> So my problem is twofold
> a) I have to find my way on (compiling/installing) the corresponding
> version of gm2 (for, as far as I know, it is not wise to have to
> separate gcc collections with different versions)
> b) in the official site, some links like e.g.,
>
> git clone http://floppsie.comp.glam.ac.uk/gm2 gm2-floppsie
>
> simply do not work!
> So, is there somewhere, the needed steps and working links to find my
> way to GM2?
>
> Thank you in advance!
> Regards
Hi Georgios,
Welcome to the gm2 mailing list! Regarding building gm2 from source,
I'd choose either gcc-14 or the bleeding edge gcc-15 (depending upon the
level of risk you are willing to take):
[you need to install flex (and optionally dejagnu for the make check-m2
below).]
So for the official gcc-14 version of gm2:
Building gm2
============
$ git clone git://gcc.gnu.org/git/gcc.git gcc-git
$ cd gcc-git
$ git checkout releases/gcc-14
$ ./contrib/download_prerequisites
$ mkdir build
$ cd build
$ ../configure --enable-languages=m2 --prefix=$HOME/opt \
--disable-bootstrap
$ make -j `nproc`
$ make install
$ make check-m2 # not necessary but it gives a degree of confidence
Using gm2
=========
$ cd "your own project area"
$ export PATH=$HOME/opt/bin:$PATH
$ export LD_LIBRARY_PATH=$HOME/opt/lib64
$ gm2 -g hello.mod
$ ./a.out
[If you are more risk tolerant you could omit the git checkout
releases/gcc-14 and try the bleeding edge gm2. In practice I find the
bleeding edge pretty stable, but your milage might vary]
hope this helps
regards,
Gaius