[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Trying to build chicken on windows (11) in the msys2 environment
From: |
tomasn |
Subject: |
Trying to build chicken on windows (11) in the msys2 environment |
Date: |
Fri, 30 Aug 2024 09:07:50 +0000 |
Hello list
At work on a windows computer I installed the MSYS2 package,
as described at https://www.msys2.org/
Installed the tool chain according to the description at
http://wiki.call-cc.org/msys2 (copy paste the pacman command).
Downloaded the chicken tar ball
https://code.call-cc.org/releases/5.4.0/chicken-5.4.0.tar.gz
Unpack and cd into the chicken directory.
During compilation I get errors. Here is the make call and the output
$ make PLATFORM=mingw-msys PREFIX=C:/msys64/usr/local/
echo '#define C_CHICKEN_PROGRAM "chicken.exe"' >> chicken-defaults.h
echo '#ifndef C_INSTALL_CC' >> chicken-defaults.h
echo '# define C_INSTALL_CC "gcc"' >> chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_INSTALL_CXX' >> chicken-defaults.h
echo '# define C_INSTALL_CXX "g++"' >> chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_INSTALL_POSTINSTALL_PROGRAM' >> chicken-defaults.h
echo '# define C_INSTALL_POSTINSTALL_PROGRAM "true"' >>
chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_INSTALL_RC_COMPILER' >> chicken-defaults.h
echo '# define C_INSTALL_RC_COMPILER "windres"' >> chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_INSTALL_CFLAGS' >> chicken-defaults.h
echo '# define C_INSTALL_CFLAGS "-fno-strict-aliasing -fwrapv
-DHAVE_CHICKEN_CONFIG_H -DC_ENABLE_PTABLES -Os"' >> chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_INSTALL_LDFLAGS' >> chicken-defaults.h
echo '# define C_INSTALL_LDFLAGS "-Wl,--enable-auto-import "' >>
chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_INSTALL_PREFIX' >> chicken-defaults.h
echo '# define C_INSTALL_PREFIX "C:/msys64/usr/local/"' >>
chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_INSTALL_SHARE_HOME' >> chicken-defaults.h
echo '# define C_INSTALL_SHARE_HOME
"C:/msys64/usr/local//share/chicken"' >> chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_INSTALL_BIN_HOME' >> chicken-defaults.h
echo '# define C_INSTALL_BIN_HOME "C:/msys64/usr/local//bin"' >>
chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_INSTALL_EGG_HOME' >> chicken-defaults.h
echo '# define C_INSTALL_EGG_HOME "C:/msys64/usr/local//lib/chicken/11"'
>> chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_INSTALL_LIB_HOME' >> chicken-defaults.h
echo '# define C_INSTALL_LIB_HOME "C:/msys64/usr/local//lib"' >>
chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_INSTALL_LIB_NAME' >> chicken-defaults.h
echo '# define C_INSTALL_LIB_NAME "chicken"' >> chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_INSTALL_STATIC_LIB_HOME' >> chicken-defaults.h
echo '# define C_INSTALL_STATIC_LIB_HOME "C:/msys64/usr/local//lib"' >>
chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_INSTALL_INCLUDE_HOME' >> chicken-defaults.h
echo '# define C_INSTALL_INCLUDE_HOME
"C:/msys64/usr/local//include/chicken"' >> chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_INSTALL_MORE_LIBS' >> chicken-defaults.h
echo '# define C_INSTALL_MORE_LIBS "-lm -lws2_32"' >> chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_INSTALL_MORE_STATIC_LIBS' >> chicken-defaults.h
echo '# define C_INSTALL_MORE_STATIC_LIBS "-lm -lws2_32"' >>
chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_STACK_GROWS_DOWNWARD' >> chicken-defaults.h
echo '# define C_STACK_GROWS_DOWNWARD 1' >> chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_TARGET_MORE_LIBS' >> chicken-defaults.h
echo '# define C_TARGET_MORE_LIBS "-lm -lws2_32"' >> chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_TARGET_MORE_STATIC_LIBS' >> chicken-defaults.h
echo '# define C_TARGET_MORE_STATIC_LIBS "-lm -lws2_32"' >>
chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_TARGET_CC' >> chicken-defaults.h
echo '# define C_TARGET_CC "gcc"' >> chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_TARGET_CXX' >> chicken-defaults.h
echo '# define C_TARGET_CXX "g++"' >> chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_TARGET_RC_COMPILER' >> chicken-defaults.h
echo '# define C_TARGET_RC_COMPILER "windres"' >> chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_TARGET_LIBRARIAN' >> chicken-defaults.h
echo '# define C_TARGET_LIBRARIAN "ar"' >> chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_TARGET_INSTALL_PROGRAM' >> chicken-defaults.h
echo '# define C_TARGET_INSTALL_PROGRAM "cp"' >> chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_TARGET_CFLAGS' >> chicken-defaults.h
echo '# define C_TARGET_CFLAGS "-fno-strict-aliasing -fwrapv
-DHAVE_CHICKEN_CONFIG_H -DC_ENABLE_PTABLES -Os"' >> chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_TARGET_LIBRARIAN_FLAGS' >> chicken-defaults.h
echo '# define C_TARGET_LIBRARIAN_FLAGS "cru"' >> chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_TARGET_LDFLAGS' >> chicken-defaults.h
echo '# define C_TARGET_LDFLAGS "-Wl,--enable-auto-import "' >>
chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_TARGET_INSTALL_PROGRAM_EXECUTABLE_OPTIONS' >>
chicken-defaults.h
echo '# define C_TARGET_INSTALL_PROGRAM_EXECUTABLE_OPTIONS "-r"' >>
chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_TARGET_INSTALL_PROGRAM_FILE_OPTIONS' >>
chicken-defaults.h
echo '# define C_TARGET_INSTALL_PROGRAM_FILE_OPTIONS "-r"' >>
chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_TARGET_FEATURES' >> chicken-defaults.h
echo '# define C_TARGET_FEATURES ""' >> chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_CROSS_CHICKEN' >> chicken-defaults.h
echo '# define C_CROSS_CHICKEN 0' >> chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_TARGET_PREFIX' >> chicken-defaults.h
echo '# define C_TARGET_PREFIX "C:/msys64/usr/local/"' >>
chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_TARGET_BIN_HOME' >> chicken-defaults.h
echo '# define C_TARGET_BIN_HOME "C:/msys64/usr/local//bin"' >>
chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_TARGET_LIB_HOME' >> chicken-defaults.h
echo '# define C_TARGET_LIB_HOME "C:/msys64/usr/local//lib"' >>
chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_TARGET_LIB_NAME' >> chicken-defaults.h
echo '# define C_TARGET_LIB_NAME "chicken"' >> chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_TARGET_RUN_LIB_HOME' >> chicken-defaults.h
echo '# define C_TARGET_RUN_LIB_HOME "C:/msys64/usr/local//bin"' >>
chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_TARGET_SHARE_HOME' >> chicken-defaults.h
echo '# define C_TARGET_SHARE_HOME "C:/msys64/usr/local//share/chicken"'
>> chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_TARGET_INCLUDE_HOME' >> chicken-defaults.h
echo '# define C_TARGET_INCLUDE_HOME
"C:/msys64/usr/local//include/chicken"' >> chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_TARGET_STATIC_LIB_HOME' >> chicken-defaults.h
echo '# define C_TARGET_STATIC_LIB_HOME "C:/msys64/usr/local//lib"' >>
chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_CHICKEN_PROGRAM' >> chicken-defaults.h
echo '# define C_CHICKEN_PROGRAM "chicken"' >> chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_CSC_PROGRAM' >> chicken-defaults.h
echo '# define C_CSC_PROGRAM "csc"' >> chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_CSI_PROGRAM' >> chicken-defaults.h
echo '# define C_CSI_PROGRAM "csi"' >> chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_CHICKEN_DO_PROGRAM' >> chicken-defaults.h
echo '# define C_CHICKEN_DO_PROGRAM "chicken-do"' >> chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_CHICKEN_INSTALL_PROGRAM' >> chicken-defaults.h
echo '# define C_CHICKEN_INSTALL_PROGRAM "chicken-install"' >>
chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_CHICKEN_UNINSTALL_PROGRAM' >> chicken-defaults.h
echo '# define C_CHICKEN_UNINSTALL_PROGRAM "chicken-uninstall"' >>
chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_CHICKEN_STATUS_PROGRAM' >> chicken-defaults.h
echo '# define C_CHICKEN_STATUS_PROGRAM "chicken-status"' >>
chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_WINDOWS_SHELL' >> chicken-defaults.h
echo '# define C_WINDOWS_SHELL 0' >> chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_BINARY_VERSION' >> chicken-defaults.h
echo '# define C_BINARY_VERSION 11' >> chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '#ifndef C_USES_SONAME' >> chicken-defaults.h
echo '# define C_USES_SONAME 0' >> chicken-defaults.h
echo '#endif' >> chicken-defaults.h
echo '/* END OF FILE */' >> chicken-defaults.h
echo "/* GENERATED */" >chicken-config.h
echo "#define HAVE_DIRENT_H 1" >>chicken-config.h
echo "#define HAVE_INTTYPES_H 1" >>chicken-config.h
echo "#define HAVE_LIMITS_H 1" >>chicken-config.h
echo "#define HAVE_LONG_LONG 1" >>chicken-config.h
echo "#define HAVE_MEMMOVE 1" >>chicken-config.h
echo "#define HAVE_MEMORY_H 1" >>chicken-config.h
echo "#define NO_POSIX_POLL 1" >>chicken-config.h
echo "#define HAVE_STDINT_H 1" >>chicken-config.h
echo "#define HAVE_STDLIB_H 1" >>chicken-config.h
echo "#define HAVE_STRERROR 1" >>chicken-config.h
echo "#define HAVE_STRINGS_H 1" >>chicken-config.h
echo "#define HAVE_STRING_H 1" >>chicken-config.h
echo "#define HAVE_STRTOLL 1" >>chicken-config.h
echo "#define HAVE_SYS_STAT_H 1" >>chicken-config.h
echo "#define HAVE_SYS_TYPES_H 1" >>chicken-config.h
echo "#define HAVE_UNISTD_H 1" >>chicken-config.h
echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>chicken-config.h
echo "#define STDC_HEADERS 1" >>chicken-config.h
echo "#define HAVE_DIRECT_H 1" >>chicken-config.h
echo "#define HAVE_ERRNO_H 1" >>chicken-config.h
echo "#define HAVE_LOADLIBRARY 1" >>chicken-config.h
echo "#define HAVE_GETPROCADDRESS 1" >>chicken-config.h
echo "#define C_WINDOWS_SHELL 1" >>chicken-config.h
echo "#define C_STACK_GROWS_DOWNWARD 1" >>chicken-config.h
echo "#define C_USE_STD_FEATURE_MACROS" >>chicken-config.h
cat chicken-defaults.h >>chicken-config.h
gcc -fno-strict-aliasing -fwrapv -DHAVE_CHICKEN_CONFIG_H
-DC_ENABLE_PTABLES -c -Os -DC_BUILDING_LIBCHICKEN library.c -o
library-static.o -I. -I./
In file included from chicken.h:131,
from library.c:9:
library.c:157:15: warning: '__p__environ' redeclared without dllimport
attribute: previous dllimport ignored [-Wattributes]
157 | extern char **environ;
| ^~~~~~~
gcc -fno-strict-aliasing -fwrapv -DHAVE_CHICKEN_CONFIG_H
-DC_ENABLE_PTABLES -c -Os -DC_BUILDING_LIBCHICKEN eval.c -o
eval-static.o -I. -I./
gcc -fno-strict-aliasing -fwrapv -DHAVE_CHICKEN_CONFIG_H
-DC_ENABLE_PTABLES -c -Os -DC_BUILDING_LIBCHICKEN read-syntax.c -o
read-syntax-static.o -I. -I./
gcc -fno-strict-aliasing -fwrapv -DHAVE_CHICKEN_CONFIG_H
-DC_ENABLE_PTABLES -c -Os -DC_BUILDING_LIBCHICKEN repl.c -o
repl-static.o -I. -I./
gcc -fno-strict-aliasing -fwrapv -DHAVE_CHICKEN_CONFIG_H
-DC_ENABLE_PTABLES -c -Os -DC_BUILDING_LIBCHICKEN data-structures.c -o
data-structures-static.o -I. -I./
gcc -fno-strict-aliasing -fwrapv -DHAVE_CHICKEN_CONFIG_H
-DC_ENABLE_PTABLES -c -Os -DC_BUILDING_LIBCHICKEN pathname.c -o
pathname-static.o -I. -I./
gcc -fno-strict-aliasing -fwrapv -DHAVE_CHICKEN_CONFIG_H
-DC_ENABLE_PTABLES -c -Os -DC_BUILDING_LIBCHICKEN port.c -o
port-static.o -I. -I./
gcc -fno-strict-aliasing -fwrapv -DHAVE_CHICKEN_CONFIG_H
-DC_ENABLE_PTABLES -c -Os -DC_BUILDING_LIBCHICKEN file.c -o
file-static.o -I. -I./
gcc -fno-strict-aliasing -fwrapv -DHAVE_CHICKEN_CONFIG_H
-DC_ENABLE_PTABLES -c -Os -DC_BUILDING_LIBCHICKEN extras.c -o
extras-static.o -I. -I./
gcc -fno-strict-aliasing -fwrapv -DHAVE_CHICKEN_CONFIG_H
-DC_ENABLE_PTABLES -c -Os -DC_BUILDING_LIBCHICKEN lolevel.c -o
lolevel-static.o -I. -I./
gcc -fno-strict-aliasing -fwrapv -DHAVE_CHICKEN_CONFIG_H
-DC_ENABLE_PTABLES -c -Os -DC_BUILDING_LIBCHICKEN tcp.c -o tcp-static.o
-I. -I./
gcc -fno-strict-aliasing -fwrapv -DHAVE_CHICKEN_CONFIG_H
-DC_ENABLE_PTABLES -c -Os -DC_BUILDING_LIBCHICKEN srfi-4.c -o
srfi-4-static.o -I. -I./
gcc -fno-strict-aliasing -fwrapv -DHAVE_CHICKEN_CONFIG_H
-DC_ENABLE_PTABLES -c -Os -DC_BUILDING_LIBCHICKEN continuation.c -o
continuation-static.o -I. -I./
gcc -fno-strict-aliasing -fwrapv -DHAVE_CHICKEN_CONFIG_H
-DC_ENABLE_PTABLES -c -Os -DC_BUILDING_LIBCHICKEN posixwin.c -o
posixwin-static.o -I. -I./
In file included from posixwin.c:9:
posixwin.c: In function 'f_4799':
posixwin.c:185:57: error: passing argument 2 of 'execve' from
incompatible pointer type [-Wincompatible-pointer-types]
185 | #define C_u_i_execve(f,a,e) C_fix(execve(C_c_string(f), (const
char *const *)C_c_pointer_vector_or_null(a), (const char *const
*)C_c_pointer_vector_or_null(e)))
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| const
char * const*
chicken.h:1046:56: note: in definition of macro 'C_fix'
1046 | #define C_fix(n) ((C_word)((C_uword)(n) <<
C_FIXNUM_SHIFT) | C_FIXNUM_BIT)
| ^
posixwin.c:9646:17: note: in expansion of macro 'C_u_i_execve'
9646 | t6=(C_truep(t4)?C_u_i_execve(t2,t3,t4):C_u_i_execvp(t2,t3));
| ^~~~~~~~~~~~
In file included from C:/msys64/mingw64/include/unistd.h:11,
from chicken.h:134:
C:/msys64/mingw64/include/process.h:187:64: note: expected 'char *
const*' but argument is of type 'const char * const*'
187 | _CRTIMP int __cdecl execve(const char *_Filename,char *const
_ArgList[],char *const _Env[]) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
~~~~~~~~~~~~^~~~~~~~~~
posixwin.c:185:109: error: passing argument 3 of 'execve' from
incompatible pointer type [-Wincompatible-pointer-types]
185 | #define C_u_i_execve(f,a,e) C_fix(execve(C_c_string(f), (const
char *const *)C_c_pointer_vector_or_null(a), (const char *const
*)C_c_pointer_vector_or_null(e)))
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
const char * const*
chicken.h:1046:56: note: in definition of macro 'C_fix'
1046 | #define C_fix(n) ((C_word)((C_uword)(n) <<
C_FIXNUM_SHIFT) | C_FIXNUM_BIT)
| ^
posixwin.c:9646:17: note: in expansion of macro 'C_u_i_execve'
9646 | t6=(C_truep(t4)?C_u_i_execve(t2,t3,t4):C_u_i_execvp(t2,t3));
| ^~~~~~~~~~~~
C:/msys64/mingw64/include/process.h:187:87: note: expected 'char *
const*' but argument is of type 'const char * const*'
187 | _CRTIMP int __cdecl execve(const char *_Filename,char *const
_ArgList[],char *const _Env[]) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
~~~~~~~~~~~~^~~~~~
posixwin.c:184:57: error: passing argument 2 of 'execvp' from
incompatible pointer type [-Wincompatible-pointer-types]
184 | #define C_u_i_execvp(f,a) C_fix(execvp(C_c_string(f), (const
char *const *)C_c_pointer_vector_or_null(a)))
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| const
char * const*
chicken.h:1046:56: note: in definition of macro 'C_fix'
1046 | #define C_fix(n) ((C_word)((C_uword)(n) <<
C_FIXNUM_SHIFT) | C_FIXNUM_BIT)
| ^
posixwin.c:9646:40: note: in expansion of macro 'C_u_i_execvp'
9646 | t6=(C_truep(t4)?C_u_i_execve(t2,t3,t4):C_u_i_execvp(t2,t3));
| ^~~~~~~~~~~~
C:/msys64/mingw64/include/process.h:188:64: note: expected 'char *
const*' but argument is of type 'const char * const*'
188 | _CRTIMP int __cdecl execvp(const char *_Filename,char *const
_ArgList[]) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
~~~~~~~~~~~~^~~~~~~~~~
posixwin.c: In function 'f_4882':
posixwin.c:189:75: error: passing argument 3 of 'spawnvpe' from
incompatible pointer type [-Wincompatible-pointer-types]
189 | #define C_u_i_spawnvpe(m,f,a,e) C_fix(spawnvpe(C_unfix(m),
C_c_string(f), (const char *const *)C_c_pointer_vector_or_null(a),
(const char *const *)C_c_pointer_vector_or_null(e)))
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
const char * const*
chicken.h:1046:56: note: in definition of macro 'C_fix'
1046 | #define C_fix(n) ((C_word)((C_uword)(n) <<
C_FIXNUM_SHIFT) | C_FIXNUM_BIT)
| ^
posixwin.c:9768:17: note: in expansion of macro 'C_u_i_spawnvpe'
9768 |
t6=(C_truep(t4)?C_u_i_spawnvpe(((C_word*)t0)[2],t2,t3,t4):C_u_i_spawnvp(((C_word*)t0)[2],t2,t3));
| ^~~~~~~~~~~~~~
C:/msys64/mingw64/include/process.h:199:75: note: expected 'char *
const*' but argument is of type 'const char * const*'
199 | _CRTIMP intptr_t __cdecl spawnvpe(int,const char
*_Filename,char *const _ArgList[],char *const _Env[])
__MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
~~~~~~~~~~~~^~~~~~~~~~
posixwin.c:189:127: error: passing argument 4 of 'spawnvpe' from
incompatible pointer type [-Wincompatible-pointer-types]
189 | #define C_u_i_spawnvpe(m,f,a,e) C_fix(spawnvpe(C_unfix(m),
C_c_string(f), (const char *const *)C_c_pointer_vector_or_null(a),
(const char *const *)C_c_pointer_vector_or_null(e)))
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
const char
* const*
chicken.h:1046:56: note: in definition of macro 'C_fix'
1046 | #define C_fix(n) ((C_word)((C_uword)(n) <<
C_FIXNUM_SHIFT) | C_FIXNUM_BIT)
| ^
posixwin.c:9768:17: note: in expansion of macro 'C_u_i_spawnvpe'
9768 |
t6=(C_truep(t4)?C_u_i_spawnvpe(((C_word*)t0)[2],t2,t3,t4):C_u_i_spawnvp(((C_word*)t0)[2],t2,t3));
| ^~~~~~~~~~~~~~
C:/msys64/mingw64/include/process.h:199:98: note: expected 'char *
const*' but argument is of type 'const char * const*'
199 | _CRTIMP intptr_t __cdecl spawnvpe(int,const char
*_Filename,char *const _ArgList[],char *const _Env[])
__MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
~~~~~~~~~~~~^~~~~~
posixwin.c:188:74: error: passing argument 3 of 'spawnvp' from
incompatible pointer type [-Wincompatible-pointer-types]
188 | #define C_u_i_spawnvp(m,f,a) C_fix(spawnvp(C_unfix(m),
C_c_string(f), (const char *const *)C_c_pointer_vector_or_null(a)))
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
const char * const*
chicken.h:1046:56: note: in definition of macro 'C_fix'
1046 | #define C_fix(n) ((C_word)((C_uword)(n) <<
C_FIXNUM_SHIFT) | C_FIXNUM_BIT)
| ^
posixwin.c:9768:59: note: in expansion of macro 'C_u_i_spawnvp'
9768 |
t6=(C_truep(t4)?C_u_i_spawnvpe(((C_word*)t0)[2],t2,t3,t4):C_u_i_spawnvp(((C_word*)t0)[2],t2,t3));
|
^~~~~~~~~~~~~
C:/msys64/mingw64/include/process.h:198:74: note: expected 'char *
const*' but argument is of type 'const char * const*'
198 | _CRTIMP intptr_t __cdecl spawnvp(int,const char
*_Filename,char *const _ArgList[]) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
|
~~~~~~~~~~~~^~~~~~~~~~
make: *** [rules.make:121: posixwin-static.o] Error 1
Any ideas on why it fails?
uname -a shows this:
MINGW64_NT-10.0-22631 <nodename> 3.5.3-d8b21b8c.x86_64 2024-07-09 18:03
UTC x86_64 Msys
Best regards
--
Tomas
- Trying to build chicken on windows (11) in the msys2 environment,
tomasn <=