[Top][All Lists]

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

[Gm2] Building gm2-9.1.0 under Arch Linux

From: Geert Theloosen
Subject: [Gm2] Building gm2-9.1.0 under Arch Linux
Date: Fri, 10 May 2019 13:34:20 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1


In the recent past I succeeded in building gm2 (8.2.0) under Arch Linux, but for me this building was always on a somewhat mysterious way. So I tried building a new gm2-9.1.0-branch, and at the end I succeeded, but on the same somewhat inexplicable way.

Maybe some Arch Linux users can take advantage of the at the end successful build, but for me it's about the hurdles.

After downloading gcc-9.1.0+gm2-git-latest.tar.gz and unpacking it,
I changed the shebang of


because Arch Linux uses Python-3 as the default and the script assumes Python-2, to:


Then I used the Debian gcc-8.2.0 build script and changed the version numbering and changed [--enable-languages=c,c++,m2] to [...=c,c++,gm2].
So these are my used commands:

$ mkdir build-9.1.0
$ cd build-9.1.0
  ../gcc-9.1.0+gm2-git-latest/gm2/gcc-versionno/configure \
  --prefix=$HOME/opt \
  --libexecdir=$HOME/opt/lib \
  --enable-threads=posix \
  --enable-clocale=gnu --enable-languages=c,c++,gm2 \
  --disable-multilib --disable-bootstrap --enable-checking

After doing

$ make

I got the following error message:

python ../../gcc-9.1.0+gm2-git-latest/gm2/gcc-versionno/gcc/gm2/tools-src/ -uLibraries -s../../gcc-9.1.0+gm2-git-latest/gm2/gcc-versionno/gcc/gm2 -b/home/geert/Downloads/modula-2/build-9.1.0/gcc/gm2 > /home/geert/Downloads/modula-2/build-9.1.0/gcc/gm2/gm2-libs.texi   File "../../gcc-9.1.0+gm2-git-latest/gm2/gcc-versionno/gcc/gm2/tools-src/", line 62
    print "@node " + l[1] + ", " + next + ", " + previous+ ", " + up
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("@node " + l[1] + ", " + next + ", " + previous + ", " + up)? make[2]: *** [../../gcc-9.1.0+gm2-git-latest/gm2/gcc-versionno/gcc/gm2/ gm2/gm2-libs.texi] Fout 1
make[2]: Map '/home/geert/Downloads/modula-2/build-9.1.0/gcc' wordt verlaten
make[1]: *** [Makefile:4354: all-gcc] Fout 2
make[1]: Map '/home/geert/Downloads/modula-2/build-9.1.0' wordt verlaten
make: *** [Makefile:970: all] Fout 2

('Fout' (Dutch) means 'error')

But in a previous step I changed the shebang of So I can't explain the error message. Or, perhaps because python (under Arch Linux this is python3) is calling python2?

However, just doing a [make] again without changing anything builds everything correctly. How is that possible?

Then, doing a [make install] gives a $HOME/opt directory with the binaries, libraries, etc.

Incidentally, I have once before added to my .bashrc: export GM2_ROOT=/home/geert/opt

Compiling a simple helloworld.mod with a not recognised Modula command ('WritString') with [gm2 -Wall -fmakeall] gives colourized error messages, Correcting the error and again compiling the file gives the expected a.out.

My question: why does the building succeeds after doing [make] twice without correcting anything between the two calls?

Geert Theloosen

reply via email to

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