Build failure on Windows 10 with current version from Git

Robert Dodier <[email protected]> Thu, 17 Mar 2022 09:18:14 -0700
Newsgroups gmane.lisp.clisp.devel
Message-ID <CAAsY_sTZavdnpbUvXL5HWNWQ=57OGqDyDwgTgaH9Ayen8Jk=RA@mail.gmail.com>
Hi, I'm trying to compile the current version (commit de01f0) on
Windows 10 and I'm running into compiler errors.

I don't expect detailed instructions but if someone has some hints
about how to solve the problems mentioned below, that would be very
helpful.

Here is the configure invocation:

MAKE=/c/msys64/mingw64/bin/mingw32-make.exe
CC=/c/msys64/mingw64/bin/gcc.exe ./configure --with-debug
--ignore-absence-of-libsigsegv --host=x86_64-w64-mingw32

gcc.exe --version reports:

gcc.exe (Rev5, Built by MSYS2 project) 10.3.0

Incidentally I'm working in a Git bash terminal.

Executing ming32-make.exe runs into some errors from gcc, namely that
token_type eof is an already-declared symbol of a different type; I
worked around that by changing token_type eof to token_type token_eof.
I can post a patch if anybody cares.

Beyond that, I run into two kinds of errors from gcc. (1) Apparently a
pointer won't fit into a long. I looked for a gcc flag to ensure long
is 64 bits but didn't find anything.

intparam.h:32:2: error: #error "Type char * does not fit into a long!!"
intparam.h:33:2: error: #error "Type long * does not fit into a long!!"
intparam.h:34:2: error: #error "Type function * does not fit into a long!!"

(2) Two other compiler errors.

spvw_mmap.d:306:11: error: conflicting types for 'mmap_prepare'
lispbibl.d:13723:28: error: initializer element is not constant

I feel like I could figure out how to work around (2), but (1) seems
like a show stopper. Does anyone know how to tell gcc that a long
should be 64 bits? (or whatever is needed to store a pointer) If
anyone knows how to fix (2) that would be great too.

Thanks a lot for any advice, I appreciate your help.

Robert Dodier


_______________________________________________
clisp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-devel