mnm-sys / tezdhar

A fast and unbeatable chess engine written in C
GNU General Public License v3.0
3 stars 1 forks source link

Build fails when cross-compiling for Windows host with error: langinfo.h: No such file or directory #46

Open mnm-sys opened 1 year ago

mnm-sys commented 1 year ago

% make ui.c:9:10: fatal error: langinfo.h: No such file or directory 9 | #include // for nl_langinfo | ^~~~ compilation terminated. make[2]: [tezdhar-ui.o] Error 1 make[1]: [all-recursive] Error 1 make: *** [all] Error 2

% ./configure --build='x86_64-apple-darwin21.6.0' --host='x86_64-w64-mingw32' CC='x86_64-w64-mingw32-gcc' CFLAGS='-g3 -DDEBUG' checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for x86_64-w64-mingw32-strip... x86_64-w64-mingw32-strip checking for a race-free mkdir -p... ./build-aux/install-sh -c -d checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... 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... yes 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 whether x86_64-w64-mingw32-gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of x86_64-w64-mingw32-gcc... gcc3 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 for x86_64-w64-mingw32-ar... x86_64-w64-mingw32-ar checking the archiver (x86_64-w64-mingw32-ar) interface... ar checking for x86_64-w64-mingw32-ranlib... x86_64-w64-mingw32-ranlib checking for gawk... (cached) gawk checking whether ln -s works... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for printf in -lc... no ./configure: line 5562: #include: command not found checking for _Bool... yes checking for stdbool.h that conforms to C99... yes checking whether to enable assertions... yes checking for _Bool... (cached) yes checking for stdbool.h that conforms to C99... (cached) yes checking for stdio.h... (cached) yes checking for stdlib.h... (cached) yes checking for stdint.h... (cached) yes checking for stdbool.h... (cached) yes checking for string.h... (cached) yes checking for ctype.h... yes checking for inttypes.h... (cached) yes checking for langinfo.h... no checking for locale.h... yes checking for wchar.h... (cached) yes checking for errno.h... yes checking for time.h... yes checking for sys/time.h... yes checking for unistd.h... (cached) yes checking for fcntl.h... yes checking for libintl.h... no checking size of size_t... 8 checking size of time_t... 8 checking for int8_t... yes checking for uint8_t... yes checking for int16_t... yes checking for uint16_t... yes checking for int32_t... yes checking for uint32_t... yes checking for int64_t... yes checking for uint64_t... yes checking for unsigned long long int... yes checking for long long int... yes checking for intmax_t... yes checking for uintmax_t... yes checking for intptr_t... yes checking for uintptr_t... yes checking for long long int... (cached) yes checking for unsigned long long int... (cached) yes checking for long double... yes checking for long double with more range or precision than double... yes checking for mbstate_t... yes checking for mode_t... yes checking for off_t... yes checking for pid_t... yes checking for size_t... yes checking for ssize_t... yes checking how to run the C preprocessor... x86_64-w64-mingw32-gcc -E checking for grep that handles long lines and -e... /usr/local/bin/ggrep checking for egrep... /usr/local/bin/ggrep -E checking for uid_t in sys/types.h... no checking whether struct tm is in sys/time.h or time.h... (cached) time.h checking for x86_64-w64-mingw32-gcc options needed to detect all undeclared functions... none needed checking for struct tm.tm_zone... no checking whether tzname is declared... yes checking for tzname... yes checking size of int *... 8 checking whether byte ordering is bigendian... no checking for an ANSI C-conforming const... yes checking for C/C++ restrict keyword... restrict checking for working volatile... yes checking for inline... inline checking whether char is unsigned... no checking for preprocessor stringizing operator... yes checking for flexible array members... yes checking for variable-length arrays... yes checking for typeof syntax and keyword spelling... typeof checking whether x86_64-w64-mingw32-gcc needs -traditional... no checking for working alloca.h... no checking for alloca... yes _checking build system type... x86_64-apple-darwin21.6.0 checking host system type... x8664-w64-mingw32 checking for GNU libc compatible malloc... yes _checking for working memcmp... no checking for nllanginfo... no checking for setlocale... yes checking for ffsll... no checking for srandomdev... no checking for random... no checking for strdup... yes checking for strndup... no checking for strpbrk... yes checking for strchr... yes checking for strrchr... yes checking for strspn... yes checking for strcspn... yes checking for gettimeofday... yes checking for memmove... yes checking for memset... yes checking for strstr... yes checking for strerror... yes checking for strtol... yes checking for X... no checking whether #! works in shell scripts... yes checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... 64 checking for long file names... yes checking POSIX termios... no checking for builtin_expect... yes checking for __builtin_expect_with_probability... no checking for builtin_trap... yes checking for builtin_unreachable... yes checking for __builtin_prefetch... yes checking for builtin_object_size... yes checking for builtin_ffs... yes checking for __builtin_ffsl... yes checking for builtin_ffsll... yes checking for builtin_clz... yes checking for __builtin_clzl... yes checking for builtin_ctzll... yes checking for builtin_ctz... yes checking for __builtin_ctzl... yes checking for builtin_ctzll... (cached) yes checking for builtin_clrsb... yes checking for __builtin_clrsbl... yes checking for builtin_clrsbll... yes checking for builtin_popcount... yes checking for __builtin_popcountl... yes checking for builtin_popcountll... yes checking for builtin_parity... yes checking for __builtin_parityl... yes checking for builtin_parityll... yes checking for builtin_powi... yes checking for __builtin_powif... yes checking for builtin_powil... yes checking for builtin_bswap16... yes checking for __builtin_bswap32... yes checking for builtin_bswap64... yes checking for __builtin_bswap128... no checking for __builtin_extend_pointer... no checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating config.h config.status: executing depfiles commands