Building Algol 68 Genie Version 2.8 for Mac OS X

Today is 2014 Sept 23. I am using Mac OS X 10.9.4 and Apple’s clang LLVM version 6.0 (clang-600.0.51) which comes with Xcode 6.0.1 . Here I describe how I built a68g28.gz which should run on 64 bit Intel Macs.

From this page I found the link (with text “Latest source code”) to algol68g-2.8.tar.gz which I placed in a new directory where the command “openssl md5 algol68g-2.8.tar.gz” yields fdb0ecfe7ddc79c7ff20b7245d7ac0a4. Then I do:

gunzip algol68g-2.8.tar.gz
tar -xzf algol68g-2.8.tar
rm algol68g-2.8.tar
cd algol68g-2.8
This produces a sub directory algol68g-2.8 which becomes our working directory. Proceeding apace:
This makes note of what facilities are available on my machine. Now:

Just now clang (which masquerades as gcc) complains when the deprecated function “finite” from the math library is called. That is a warning but not an error. I ignore it for now.

The make command produces the executable file a68g which I compress with command “gzip a68g” and rename the result a68g28.gz. If your browser does not expand that file the shell command “gunzip a68g28.gz” will do so. Just now Safari decompresses the file when you click on it but does not delete the “.gz” suffix. The compressed file is about 536kB and the uncompressed is about 1.6 MB. My server sends the compressed file! You explain to the kernel that the new uncompressed file is executable with the shell command “chmod 755 a68g28 ” whereupon “./a68g28 -v” yields:

Algol 68 Genie 2.8
Copyright (c) 2013 Marcel van der Veer .

This is free software covered by the GNU General Public License.
There is ABSOLUTELY NO WARRANTY for Algol 68 Genie;
See the GNU General Public License for more details.

Please report bugs to Marcel van der Veer .

Usage: a68g28 [options | filename]
For help: a68g28 --apropos [keyword]
This version is for 64 bit pointers. It will not work on Intel 32 bit systems. openssl sha1 a68g28.gz. yields 02715149d9aca9daf03ff7cd4e859d8de4b891d5. I moved the file a68g into the directory ~/bin whereupon the command a68g invokes the new compiler. I hope that this is a 32 bit version that will run on earlier Macs.
See this for version 2.4.1 of Marcel’s compiler (and even earlier versions).
the manual.