Building CLISP on Solaris 11.4 on a Sparc (sparcv9) 64-bit processor using GCC 9.2.0 fails with:
gcc -I/opt/pkg-hrz/20200817/include -I/opt/pkg-hrz/20200817/include/ncurses -I/opt/pkg-hrz/20200817/include/glib-2.0 -I/opt/pkg-hrz/20200817/include/gio-unix-2.0 -I/opt/pkg-hrz/20200817/lib/glib-2.0/include -I/usr/include -I/opt/pkgsrc/pkg-hrz/pkgsrc/lang/clisp/work.pkgsrc-sol11sparc/clisp-2.49/src/gllib -O2 -D_FORTIFY_SOURCE=2 -I/opt/pkg-hrz/20200817/include -I/opt/pkg-hrz/20200817/include/ncurses -I/opt/pkg-hrz/20200817/include/glib-2.0 -I/opt/pkg-hrz/20200817/include/gio-unix-2.0 -I/opt/pkg-hrz/20200817/lib/glib-2.0/include -I/usr/include -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -O2 -DUNIX_BINARY_DISTRIB -DENABLE_UNICODE -DDYNAMIC_FFI -DDYNAMIC_MODULES -I. -c lisparit.c In file included from lisparit.d:28: arilev1.d:251:18: fatal error: arisparc64.c: No such file or directory 251 | #include "arisparc64.c" | ^~~~~~~~~~~~~~ compilation terminated.
Fixing makemake to check for "sparcv9" instead of "sparc64", arisparc64.c is generated and compilation succeeds, but lisp.run is not useable:
$ lisp.run Cannot map memory to address 0x17000000000000 . [spvw_mmap.d:347] errno = ENOMEM: Not enough memory. Trying to make room through a GC... Cannot map memory to address 0x17000000000000 . [spvw_mmap.d:347] errno = ENOMEM: Not enough memory. Trying to make room through a GC... Cannot map memory to address 0xb000000000000 . [spvw_mmap.d:347] errno = ENOMEM: Not enough memory. Trying to make room through a GC... ...
Until someone has reproduced, investigated, and fixed the two issues, your best bet is
1. to use the HEAD of either the master branch or the clisp-2.50 branch at https://gitlab.com/gnu-clisp/clisp ,
2. use "make -f Makefile.devel build-porting64-gcc-portability". This is the least optimized variant. You can try out multiple variants through "build-porting64-gcc-portability multibuild-porting64-gcc".