Using this configuration compiles:
$ ./configure --prefix=/usr/local/gambit --enable-multiple-versions --enable-shared --enable-single-host --enable-openssl --enable-dynamic-clib --enable-march=native

On Tue, Jun 20, 2023 at 6:36 PM Dimitris Vyzovitis <vyzo@hackzen.org> wrote:
$ ./configure --prefix=/usr/local/gambit --enable-multiple-versions --enable-shared --enable-single-host --enable-openssl --enable-poll --enable-high-res-timing --enable-multiple-vms --enable-dynamic-clib --enable-march=native
$ make -j4
....
gcc -O3 -pthread   -Wno-unused -Wno-write-strings -Wdisabled-optimization -fwrapv -fno-strict-aliasing -fno-trapping-math -fno-math-errno -fschedule-insns2 -foptimize-sibling-calls -fomit-frame-pointer -march=native -fPIC -fno-common -mpc64  -pthread  -I"../include" -c -o setup.o -I. -DHAVE_CONFIG_H -D___GAMBITDIR="\"/usr/local/gambit/v4.9.4\"" -D___GAMBITDIR_USERLIB="\"~/.gambit_userlib\"" -D___GAMBITDIR_INSTLIB="\"~~userlib\"" -D___SYS_TYPE_CPU="\"x86_64\"" -D___SYS_TYPE_VENDOR="\"pc\"" -D___SYS_TYPE_OS="\"linux-gnu\"" -D___CONFIGURE_COMMAND="\"./configure '--prefix=/usr/local/gambit' '--enable-multiple-versions' '--enable-shared' '--enable-single-host' '--enable-openssl' '--enable-poll' '--enable-high-res-timing' '--enable-multiple-vms' '--enable-dynamic-clib' '--enable-march=native'"\" -D___OBJ_EXTENSION="\".o\"" -D___EXE_EXTENSION="\"\"" -D___BAT_EXTENSION="\"\"" -D___PRIMAL setup.c -D___LIBRARY
In file included from setup.c:12:0:
setup.c: In function ‘make_global’:
../include/gambit.h:5010:62: error: ‘___ps’ undeclared (first use in this function); did you mean ‘__cos’?
 #define ___GLOCELL(x)___GLOCELL_IN_VM(___VMSTATE_FROM_PSTATE(___ps),x)
                                                              ^
../include/gambit.h:5009:31: note: in definition of macro ‘___GLOCELL_IN_VM’
 #define ___GLOCELL_IN_VM(vm,x)vm->glos[x]
                               ^~
../include/gambit.h:6975:1: note: in expansion of macro ‘___CAST’
 ___CAST(___virtual_machine_state,ps)
 ^~~~~~~
../include/gambit.h:5010:39: note: in expansion of macro ‘___VMSTATE_FROM_PSTATE’
 #define ___GLOCELL(x)___GLOCELL_IN_VM(___VMSTATE_FROM_PSTATE(___ps),x)
                                       ^~~~~~~~~~~~~~~~~~~~~~
setup.c:1301:21: note: in expansion of macro ‘___GLOCELL’
       if (supply && ___GLOCELL(g->val) == ___UNB1)
                     ^~~~~~~~~~
../include/gambit.h:5010:62: note: each undeclared identifier is reported only once for each function it appears in
 #define ___GLOCELL(x)___GLOCELL_IN_VM(___VMSTATE_FROM_PSTATE(___ps),x)
                                                              ^
../include/gambit.h:5009:31: note: in definition of macro ‘___GLOCELL_IN_VM’
 #define ___GLOCELL_IN_VM(vm,x)vm->glos[x]
                               ^~
../include/gambit.h:6975:1: note: in expansion of macro ‘___CAST’
 ___CAST(___virtual_machine_state,ps)
 ^~~~~~~
../include/gambit.h:5010:39: note: in expansion of macro ‘___VMSTATE_FROM_PSTATE’
 #define ___GLOCELL(x)___GLOCELL_IN_VM(___VMSTATE_FROM_PSTATE(___ps),x)
                                       ^~~~~~~~~~~~~~~~~~~~~~
setup.c:1301:21: note: in expansion of macro ‘___GLOCELL’
       if (supply && ___GLOCELL(g->val) == ___UNB1)
                     ^~~~~~~~~~
make[1]: *** [makefile:326: setup.o] Error 1