[gambit-list] Troubleshooting build problem with shallow git clone
Lassi Kortela
lassi at lassi.io
Mon Apr 6 15:13:59 EDT 2020
Can anyone else replicate the build failure using a shallow clone?
When I do:
git clone https://github.com/gambit/gambit.git --depth 1
cd gambit
./configure --prefix=$HOME/tmp/gambit-shallow-clone
make
The build fails in about a minute with errors like the ones below. These
are from clang; configuring with CC=gcc-9 to ensure GNU GCC is being
used, gives the same errors with slightly different messages.
I wonder what the key difference between full and shallow clones is.
Could it be about git tags being absent from the shallow clone?
_kernel.c:23183:52: error: too few arguments to function call, expected
2, have 1
___CFUN_ASSIGN(___result,___os_network_info(___arg1))
~~~~~~~~~~~~~~~~~~ ^
../include/gambit.h:7894:34: note: expanded from macro '___CFUN_ASSIGN'
#define ___CFUN_ASSIGN(r,val)r = val;
^~~
./os_setup.h:221:1: note: '___os_network_info' declared here
extern ___SCMOBJ ___os_network_info
^
_kernel.c:23660:59: error: too few arguments to function call, expected
3, have 2
___CFUN_ASSIGN(___result,___os_rename_file(___arg1,___arg2))
~~~~~~~~~~~~~~~~~ ^
../include/gambit.h:7894:34: note: expanded from macro '___CFUN_ASSIGN'
#define ___CFUN_ASSIGN(r,val)r = val;
^~~
./os_files.h:321:1: note: '___os_rename_file' declared here
extern ___SCMOBJ ___os_rename_file
^
11 errors generated.
More information about the Gambit-list
mailing list