bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compile Bug on Windows servercore:ltsc2019 with Msys2/MinGW


From: Chase Whitener
Subject: Compile Bug on Windows servercore:ltsc2019 with Msys2/MinGW
Date: Sat, 8 Oct 2022 13:23:44 -0400

Any guidance you could provide would be great. In building readline on
MSYS2, we run into this error:

ContainerAdministrator@95fd81efafc8 MINGW64 /z/extlib
# ./build.sh 5034-small __
###### [12:40:00] BUILD STARTED param1='5034-small' param2='__'
###### gcc: Target: x86_64-w64-mingw32
###### is64bit: 1
###### out: /z/extlib/_5034-small__
#### Unpacking sources
### termcap-1.3.1
2022-10-08 12:40:02
URL:https://ftp.gnu.org/gnu/termcap/termcap-1.3.1.tar.gz
[439416/439416] -> "termcap-1.3.1.tar.gz" [
1]
### readline-8.2
2022-10-08 12:40:06
URL:https://ftp.gnu.org/gnu/readline/readline-8.2.tar.gz
[3043952/3043952] -> "readline-8.2.tar.gz"
[1]
nop
#### Building packages
### BUILDING termcap-1.3.1
######## gonna launch: ./configure --host=x86_64-w64-mingw32
--build=x86_64-w64-mingw32 --prefix=/z/extlib/_5034-small__
 --enable-static=no --enable-shared=yes
creating cache ./config.cache
checking for gcc... gcc
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking for a BSD compatible install... /bin/install -c
checking how to run the C preprocessor... gcc -E
checking for string.h... yes
checking for unistd.h... yes
checking whether cross-compiling... no
checking for ANSI C header files... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
######## retval=success
######## gonna launch: make
gcc -c  -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1
-DTERMCAP_FILE=\"/etc/termcap\" -I. -I. -g termcap.c
gcc -c  -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1
-DTERMCAP_FILE=\"/etc/termcap\" -I. -I. -g tparam.c
tparam.c: In function 'memory_out':
tparam.c:51:3: warning: implicit declaration of function 'write'
[-Wimplicit-function-declaration]
   51 |   write (2, "virtual memory exhausted\n", 25);
      |   ^~~~~
gcc -c  -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1
-DTERMCAP_FILE=\"/etc/termcap\" -I. -I. -g version.c
ar rc libtermcap.a termcap.o tparam.o version.o
ranlib libtermcap.a
######## retval=success
######## gonna launch: gcc -shared -Wl,--out-implib,libtermcap.dll.a
-o libtermcap-0__.dll termcap.o tparam.o version.o
######## retval=success
######## gonna launch: make install prefix=/z/extlib/_5034-small__
exec_prefix=/z/extlib/_5034-small__ oldincludedir=
/bin/sh ./mkinstalldirs  /z/extlib/_5034-small__/lib \
/z/extlib/_5034-small__/include /z/extlib/_5034-small__/info
mkdir /z/extlib/_5034-small__/lib
mkdir /z/extlib/_5034-small__/include
mkdir /z/extlib/_5034-small__/info
/bin/install -c -m 644 libtermcap.a /z/extlib/_5034-small__/lib/libtermcap.a
ranlib /z/extlib/_5034-small__/lib/libtermcap.a
cd .; /bin/install -c -m 644 termcap.h /z/extlib/_5034-small__/include/termcap.h
cd .; test -z "" || \
  /bin/install -c -m 644 termcap.h /termcap.h
cd .; for f in termcap.info*; \
do /bin/install -c -m 644 $f /z/extlib/_5034-small__/info/$f; done
######## retval=success
######## gonna launch: mkdir -p /z/extlib/_5034-small__/bin
/z/extlib/_5034-small__/lib
######## retval=success
######## gonna launch: install -m 0755 libtermcap-0__.dll
/z/extlib/_5034-small__/bin
######## retval=success
######## gonna launch: install -m 0644 libtermcap.dll.a
/z/extlib/_5034-small__/lib
######## retval=success
### BUILDING readline-8.2
######## gonna launch: ./configure --host=x86_64-w64-mingw32
--build=x86_64-w64-mingw32 --prefix=/z/extlib/_5034-small__
 --enable-static=no --enable-shared=yes --without-curses CFLAGS=-O2
-fcommon -I/z/extlib/_5034-small__/include -mms-bitf
ields LDFLAGS=-L/z/extlib/_5034-small__/lib
checking build system type... x86_64-w64-mingw32
checking host system type... x86_64-w64-mingw32

Beginning configuration for readline-8.2 for x86_64-w64-mingw32

checking whether make sets $(MAKE)... yes
checking for x86_64-w64-mingw32-gcc... x86_64-w64-mingw32-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether x86_64-w64-mingw32-gcc accepts -g... yes
checking for x86_64-w64-mingw32-gcc option to enable C11 features... none needed
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for wchar.h... yes
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking how to run the C preprocessor... x86_64-w64-mingw32-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking whether x86_64-w64-mingw32-gcc needs -traditional... no
checking for a BSD-compatible install... /bin/install -c
checking for x86_64-w64-mingw32-ar... no
checking for ar... ar
checking for x86_64-w64-mingw32-ranlib... no
checking for ranlib... ranlib
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether char is unsigned... no
checking for working volatile... yes
checking for size_t... yes
checking for ssize_t... yes
checking whether stat file-mode macros are broken... no
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for fcntl... no
checking for gettimeofday... yes
checking for kill... no
checking for lstat... no
checking for pselect... no
checking for readlink... no
checking for select... no
checking for setitimer... no
checking for fnmatch... no
checking for memmove... yes
checking for putenv... yes
checking for setenv... no
checking for setlocale... yes
checking for strcasecmp... yes
checking for strpbrk... yes
checking for sysconf... no
checking for tcgetattr... no
checking for vsnprintf... yes
checking for isascii... yes
checking for isxdigit... yes
checking for getpwent... no
checking for getpwnam... no
checking for getpwuid... no
checking for uid_t in sys/types.h... no
checking for working chown... no
checking for working strcoll... yes
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for varargs.h... no
checking for stdarg.h... yes
checking for stdbool.h... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for limits.h... yes
checking for locale.h... yes
checking for pwd.h... no
checking for memory.h... yes
checking for termcap.h... yes
checking for termios.h... no
checking for termio.h... no
checking for sys/ioctl.h... no
checking for sys/pte.h... no
checking for sys/stream.h... no
checking for sys/select.h... no
checking for sys/time.h... yes
checking for sys/file.h... yes
checking for sys/ptem.h... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for type of signal functions... v7
checking if signal handlers must be reinstalled when invoked... yes
checking for presence of POSIX-style sigsetjmp/siglongjmp... missing
checking for lstat... no
checking whether or not strcoll and strcmp differ... yes
checking whether getpw functions are declared in pwd.h... no
checking whether termios.h defines TIOCGWINSZ... no
checking whether sys/ioctl.h defines TIOCGWINSZ... no
checking for inttypes.h... (cached) yes
checking for sig_atomic_t in signal.h... yes
checking for TIOCSTAT in sys/ioctl.h... no
checking for FIONREAD in sys/ioctl.h... no
checking for speed_t in sys/types.h... no
checking for struct winsize in sys/ioctl.h and termios.h... not found
checking for struct dirent.d_ino... checking for struct dirent.d_ino... yes
yes
checking for struct dirent.d_fileno... checking for struct dirent.d_fileno... no
no
checking for struct timeval in sys/time.h and time.h... yes
checking for libaudit.h... no
checking for x86_64-w64-mingw32-gcc options needed to detect all
undeclared functions... none needed
checking whether AUDIT_USER_TTY is declared... no
checking for tgetent... no
checking for tgetent in -ltermcap... yes
checking which library has the termcap functions... using libtermcap
checking for nl_langinfo and CODESET... no
checking for wctype.h... yes
checking for wchar.h... (cached) yes
checking for langinfo.h... no
checking for mbstr.h... no
checking for mbrlen... yes
checking for mbscasecmp... no
checking for mbscmp... no
checking for mbsnrtowcs... no
checking for mbsrtowcs... yes
checking for mbschr... no
checking for wcrtomb... yes
checking for wcscoll... yes
checking for wcsdup... yes
checking for wcwidth... no
checking for wctype... yes
checking for wcswidth... no
checking whether mbrtowc and mbstate_t are properly declared... yes
checking for iswlower... yes
checking for iswupper... yes
checking for towlower... yes
checking for towupper... yes
checking for iswctype... yes
checking for wchar_t in wchar.h... yes
checking for wctype_t in wctype.h... yes
checking for wint_t in wctype.h... yes
checking for wcwidth broken with unicode combining characters... no
checking size of wchar_t... 2
checking configuration for building shared libraries... supported
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating examples/Makefile
config.status: creating shlib/Makefile
config.status: creating readline.pc
config.status: creating history.pc
config.status: creating config.h
config.status: executing stamp-h commands
######## retval=success
######## gonna launch: make
test -d shlib || mkdir shlib
( cd shlib ; make  all )
make[1]: Entering directory
'/c/spbuild/extlib/_5034-small__.src/readline-8.2/shlib'
rm -f readline.so
x86_64-w64-mingw32-gcc -c -DHAVE_CONFIG_H   -I. -I.. -I..
-DRL_LIBRARY_VERSION='"8.2"' -DBRACKETED_PASTE_DEFAULT=1 -O2
-fcommon -I/z/extlib/_5034-small__/include -mms-bitfields   -o
readline.o ../readline.c
mv readline.o readline.so
rm -f vi_mode.so
x86_64-w64-mingw32-gcc -c -DHAVE_CONFIG_H   -I. -I.. -I..
-DRL_LIBRARY_VERSION='"8.2"' -DBRACKETED_PASTE_DEFAULT=1 -O2
-fcommon -I/z/extlib/_5034-small__/include -mms-bitfields   -o
vi_mode.o ../vi_mode.c
mv vi_mode.o vi_mode.so
rm -f funmap.so
x86_64-w64-mingw32-gcc -c -DHAVE_CONFIG_H   -I. -I.. -I..
-DRL_LIBRARY_VERSION='"8.2"' -DBRACKETED_PASTE_DEFAULT=1 -O2
-fcommon -I/z/extlib/_5034-small__/include -mms-bitfields   -o
funmap.o ../funmap.c
mv funmap.o funmap.so
rm -f keymaps.so
x86_64-w64-mingw32-gcc -c -DHAVE_CONFIG_H   -I. -I.. -I..
-DRL_LIBRARY_VERSION='"8.2"' -DBRACKETED_PASTE_DEFAULT=1 -O2
-fcommon -I/z/extlib/_5034-small__/include -mms-bitfields   -o
keymaps.o ../keymaps.c
mv keymaps.o keymaps.so
rm -f parens.so
x86_64-w64-mingw32-gcc -c -DHAVE_CONFIG_H   -I. -I.. -I..
-DRL_LIBRARY_VERSION='"8.2"' -DBRACKETED_PASTE_DEFAULT=1 -O2
-fcommon -I/z/extlib/_5034-small__/include -mms-bitfields   -o
parens.o ../parens.c
In file included from ../parens.c:54:
../rlprivate.h:308:37: error: unknown type name 'fd_set'
  308 | extern int _rl_timeout_select (int, fd_set *, fd_set *, fd_set
*, const struct timeval *, const sigset_t *);
      |                                     ^~~~~~
../rlprivate.h:308:47: error: unknown type name 'fd_set'
  308 | extern int _rl_timeout_select (int, fd_set *, fd_set *, fd_set
*, const struct timeval *, const sigset_t *);
      |                                               ^~~~~~
../rlprivate.h:308:57: error: unknown type name 'fd_set'
  308 | extern int _rl_timeout_select (int, fd_set *, fd_set *, fd_set
*, const struct timeval *, const sigset_t *);
      |                                                         ^~~~~~
../rlprivate.h:308:97: error: unknown type name 'sigset_t'
  308 | extern int _rl_timeout_select (int, fd_set *, fd_set *, fd_set
*, const struct timeval *, const sigset_t *);
      |
                                 ^~~~~~~~
make[1]: *** [Makefile:116: parens.so] Error 1
make[1]: Leaving directory
'/c/spbuild/extlib/_5034-small__.src/readline-8.2/shlib'
make: *** [Makefile:219: shared] Error 2
######## retval=FAILURE
######## gonna launch: make install
/bin/sh ./support/mkinstalldirs /z/extlib/_5034-small__/include \
        /z/extlib/_5034-small__/include/readline /z/extlib/_5034-small__/lib \
        /z/extlib/_5034-small__/share/info
/z/extlib/_5034-small__/share/man/man3
/z/extlib/_5034-small__/share/doc/read
line \
        /z/extlib/_5034-small__/lib/pkgconfig
mkdir -p -- /z/extlib/_5034-small__/include/readline
/z/extlib/_5034-small__/lib /z/extlib/_5034-small__/share/info /z/e
xtlib/_5034-small__/share/man/man3
/z/extlib/_5034-small__/share/doc/readline
/z/extlib/_5034-small__/lib/pkgconfig
for f in readline.h chardefs.h keymaps.h history.h tilde.h rlstdc.h
rlconf.h rltypedefs.h; do \
        /bin/install -c -m 644 ./$f /z/extlib/_5034-small__/include/readline ; \
done
test -d shlib || mkdir shlib
( cd shlib ; make  all )
make[1]: Entering directory
'/c/spbuild/extlib/_5034-small__.src/readline-8.2/shlib'
rm -f parens.so
x86_64-w64-mingw32-gcc -c -DHAVE_CONFIG_H   -I. -I.. -I..
-DRL_LIBRARY_VERSION='"8.2"' -DBRACKETED_PASTE_DEFAULT=1 -O2
-fcommon -I/z/extlib/_5034-small__/include -mms-bitfields   -o
parens.o ../parens.c
In file included from ../parens.c:54:
../rlprivate.h:308:37: error: unknown type name 'fd_set'
  308 | extern int _rl_timeout_select (int, fd_set *, fd_set *, fd_set
*, const struct timeval *, const sigset_t *);
      |                                     ^~~~~~
../rlprivate.h:308:47: error: unknown type name 'fd_set'
  308 | extern int _rl_timeout_select (int, fd_set *, fd_set *, fd_set
*, const struct timeval *, const sigset_t *);
      |                                               ^~~~~~
../rlprivate.h:308:57: error: unknown type name 'fd_set'
  308 | extern int _rl_timeout_select (int, fd_set *, fd_set *, fd_set
*, const struct timeval *, const sigset_t *);
      |                                                         ^~~~~~
../rlprivate.h:308:97: error: unknown type name 'sigset_t'
  308 | extern int _rl_timeout_select (int, fd_set *, fd_set *, fd_set
*, const struct timeval *, const sigset_t *);
      |
                                 ^~~~~~~~
make[1]: *** [Makefile:116: parens.so] Error 1
make[1]: Leaving directory
'/c/spbuild/extlib/_5034-small__.src/readline-8.2/shlib'
make: *** [Makefile:219: shared] Error 2
######## retval=FAILURE
mv: cannot stat '/z/extlib/_5034-small__/lib/libhistory*.dll.a': No
such file or directory
mv: cannot stat '/z/extlib/_5034-small__/lib/libreadline*.dll.a': No
such file or directory
nop
#### Packing results
### creating a copy for patching
## compressing termcap-1.3.1
## compressing readline-8.2
###### [12:40:40] BUILD FINISHED
ARGS: 0=/z/extlib/_5034-small__.src
ARGS: 1=/z/extlib/_5034-small__.patched

Processing '/z/extlib/_5034-small__.patched/out_readline-8.2.zip'
GONNA PACK: readline-8.2
url=https://ftp.gnu.org/gnu/readline/readline-8.2.tar.gz
FINISHED

Processing '/z/extlib/_5034-small__.patched/out_termcap-1.3.1.zip'
GONNA PACK: termcap-1.3.1
url=https://ftp.gnu.org/gnu/termcap/termcap-1.3.1.tar.gz
###warning### REPLACING 'tmptermcap-1.3.1_out_bPWr/lib/libtermcap.a'
with 'tmptermcap-1.3.1_out_bPWr/lib/libtermcap.dll.
a' !!!
FINISHED
###### [12:40:40] PACKING FINISHED

ContainerAdministrator@95fd81efafc8 MINGW64 /z/extlib
# grep -E 'retval=' _5034-small__/*.build.log
_5034-small__/readline-8.2.build.log:######## retval=success
_5034-small__/readline-8.2.build.log:######## retval=FAILURE
_5034-small__/readline-8.2.build.log:######## retval=FAILURE
_5034-small__/termcap-1.3.1.build.log:######## retval=success
_5034-small__/termcap-1.3.1.build.log:######## retval=success
_5034-small__/termcap-1.3.1.build.log:######## retval=success
_5034-small__/termcap-1.3.1.build.log:######## retval=success
_5034-small__/termcap-1.3.1.build.log:######## retval=success
_5034-small__/termcap-1.3.1.build.log:######## retval=success
_5034-small__/termcap-1.3.1.build.log:######## retval=success



reply via email to

[Prev in Thread] Current Thread [Next in Thread]