You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ CPPFLAGS="-march=core2" \
../../configure --prefix=/usr/x86_64-w64-mingw32 --disable-shared \
--enable-silent-rules --host=x86_64-w64-mingw32 && \
make -j$(nproc)
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... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gawk... (cached) gawk
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 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 how to run the C preprocessor... x86_64-w64-mingw32-gcc -E
checking build system type... x86_64-pc-linux-gnu
checking for x86_64-pc-linux-gnu-gcc... no
checking for gcc... gcc
checking whether the compiler supports GNU C... (cached) yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... (cached) none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking how to run the C preprocessor... gcc -E
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 for sys/time.h... yes
checking for vfork.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking for library containing strerror... none required
checking host system type... x86_64-w64-mingw32
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by x86_64-w64-mingw32-gcc... /usr/x86_64-w64-mingw32/bin/ld
checking if the linker (/usr/x86_64-w64-mingw32/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/x86_64-w64-mingw32-nm -B
checking the name lister (/usr/bin/x86_64-w64-mingw32-nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-w64-mingw32 format... func_convert_file_nix_to_w32
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/x86_64-w64-mingw32/bin/ld option to reload object files... -r
checking for x86_64-w64-mingw32-file... no
checking for file... file
checking for x86_64-w64-mingw32-objdump... x86_64-w64-mingw32-objdump
checking how to recognize dependent libraries... file_magic ^x86 archive import|^x86 DLL
checking for x86_64-w64-mingw32-dlltool... x86_64-w64-mingw32-dlltool
checking how to associate runtime and link libraries... func_cygming_dll_for_implib
checking for x86_64-w64-mingw32-ar... x86_64-w64-mingw32-ar
checking for archiver @FILE support... @
checking for x86_64-w64-mingw32-strip... (cached) x86_64-w64-mingw32-strip
checking for x86_64-w64-mingw32-ranlib... x86_64-w64-mingw32-ranlib
checking command to parse /usr/bin/x86_64-w64-mingw32-nm -B output from x86_64-w64-mingw32-gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for x86_64-w64-mingw32-mt... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... no
checking for objdir... .libs
checking if x86_64-w64-mingw32-gcc supports -fno-rtti -fno-exceptions... no
checking for x86_64-w64-mingw32-gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if x86_64-w64-mingw32-gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if x86_64-w64-mingw32-gcc static flag -static works... yes
checking if x86_64-w64-mingw32-gcc supports -c -o file.o... yes
checking if x86_64-w64-mingw32-gcc supports -c -o file.o... (cached) yes
checking whether the x86_64-w64-mingw32-gcc linker (/usr/x86_64-w64-mingw32/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for x86_64-w64-mingw32-gcc... (cached) x86_64-w64-mingw32-gcc
checking whether the compiler supports GNU C... (cached) yes
checking whether x86_64-w64-mingw32-gcc accepts -g... (cached) yes
checking for x86_64-w64-mingw32-gcc option to enable C11 features... (cached) none needed
checking whether x86_64-w64-mingw32-gcc understands -c and -o together... (cached) yes
checking dependency style of x86_64-w64-mingw32-gcc... (cached) gcc3
checking whether ln -s works... yes
checking for mktemp... /usr/bin/mktemp
checking for cstocs... no
checking for recode... no
checking for umap... no
checking for piconv... /usr/bin/piconv
checking for map... no
checking for gcov... /usr/bin/gcov
checking for gtkdoc-mkdb... true
checking gtk-doc version (1.34.0) >= 1.0... no
checking for sqrt in -lm... yes
checking for egrep... (cached) /usr/bin/grep -E
checking for sys/wait.h that is POSIX.1 compatible... no
checking whether stat file-mode macros are broken... no
checking for _Bool... yes
checking for stdbool.h that conforms to C99... yes
checking for errno.h... yes
checking for fcntl.h... yes
checking for getopt.h... yes
checking for langinfo.h... no
checking for limits.h... yes
checking for locale.h... yes
checking for memory.h... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/wait.h... (cached) no
checking for sys/time.h... (cached) yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking for wordexp.h... no
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for mode_t... yes
checking for off_t... yes
checking for pid_t... yes
checking for uid_t in sys/types.h... no
checking for ssize_t... yes
checking for x86_64-w64-mingw32-gcc options needed to detect all undeclared functions... none needed
checking whether LC_MESSAGES is declared... no
checking for program_invocation_short_name... no
checking for fork... no
checking for vfork... no
checking for ftruncate... yes
checking for gettimeofday... yes
checking for isatty... yes
checking for nl_langinfo... no
checking for random... no
checking for realpath... no
checking for strstr... yes
checking for stpcpy... no
checking for setlocale... yes
checking for ttyname... no
checking for wordexp... no
checking for getopt_long... yes
checking for ld... /usr/x86_64-w64-mingw32/bin/ld
checking if the linker (/usr/x86_64-w64-mingw32/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking 32-bit host C ABI... no
checking for ELF binary format... no
checking for the common suffixes of directories in the library search path... lib,lib,lib64
checking for iconv... yes
checking for working iconv... yes
checking how to link with libiconv... -liconv
checking for iconv declaration...
extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking whether iconv implementation is usable... no
checking for recode_new_outer in librecode... no
checking for locale.alias... /usr/share/locale/locale.alias
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating enca.spec
config.status: creating enca.pc
config.status: creating devel-docs/Makefile
config.status: creating data/Makefile
config.status: creating lib/Makefile
config.status: creating script/Makefile
config.status: creating script/b-cstocs
config.status: creating script/b-map
config.status: creating script/b-piconv
config.status: creating script/b-umap
config.status: creating src/Makefile
config.status: creating src/HELP
config.status: creating test/Makefile
config.status: creating tools/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
=================================================================
Features:
libenca will be built as: static
GNU recode library interface: no
UNIX98 iconv interface: no
(consider installing at least one of GNU libiconv and GNU librecode)
External converters: no
Language preferences from locale: yes
Language aliases decryption: /usr/share/locale/locale.alias
Target charset from locale: no
ENCAOPT environment variable: built-in parser (naive)
=================================================================
configure: WARNING: expect build to fail since we depend on "ISO C headers"
Configure complete, now type `make' to compile enca.
If it compiles, don't forget to run `make check'.
make all-recursive
make[1]: Entering directory '/home/qyot27/mpv-build-deps/enca/enca-build/amd64'
Making all in tools
make[2]: Entering directory '/home/qyot27/mpv-build-deps/enca/enca-build/amd64/tools'
sed -e 's/^#define \([A-Z0-9_]*\) \(.*\)/@\1@ \2/' -e 's/"//g' -e 's/NULL$//' -e 's/ /\//' -e 's/^\(.*\)$/s\/\1\//' ../iconvenc.h >encodings.sed
gcc -g -O2 -o make_hash ../../../tools/make_hash.c
sed -f encodings.sed ../../../tools/encodings.dat | ./make_hash >encodings.h
Keeping equvialent `ascii' and `ASCII'
Keeping equvialent `BIG5' and `BIG-5'
Keeping equvialent `Big5' and `BIG5'
Keeping equvialent `BIGFIVE' and `BIG-FIVE'
Keeping equvialent `Cork' and `CORK'
Keeping equvialent `ecma-cyrillic' and `ECMA-cyrillic'
Keeping equvialent `ISO8859-13' and `ISO-8859-13'
Keeping equvialent `ISO_8859-13' and `ISO8859-13'
Keeping equvialent `ISO_8859-16' and `ISO-8859-16'
Keeping equvialent `iso-ir-179' and `ISO-IR-179'
Keeping equvialent `KOI-8_CS_2' and `KOI-8_CS2'
Keeping equvialent `KOI8-CS2' and `KOI-8_CS_2'
Keeping equvialent `latex' and `LaTeX'
Keeping equvialent `maccyrillic' and `mac_cyrillic'
Keeping equvialent `macintoshce' and `macintosh_ce'
Keeping equvialent `tex' and `TeX'
Keeping equvialent `utf8' and `UTF-8'
Keeping equvialent `windows-1125' and `Windows-1125'
Keeping equvialent `windows-1250' and `Windows-1250'
Keeping equvialent `windows-1251' and `Windows-1251'
Keeping equvialent `windows-1257' and `Windows-1257'
make all-am
make[3]: Entering directory '/home/qyot27/mpv-build-deps/enca/enca-build/amd64/tools'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/qyot27/mpv-build-deps/enca/enca-build/amd64/tools'
make[2]: Leaving directory '/home/qyot27/mpv-build-deps/enca/enca-build/amd64/tools'
Making all in script
make[2]: Entering directory '/home/qyot27/mpv-build-deps/enca/enca-build/amd64/script'
cat b-cstocs >cstocs
cat b-map >map
cat b-piconv >piconv
cat ../../../script/b-recode >recode
cat b-umap >umap
make[2]: Leaving directory '/home/qyot27/mpv-build-deps/enca/enca-build/amd64/script'
Making all in lib
make[2]: Entering directory '/home/qyot27/mpv-build-deps/enca/enca-build/amd64/lib'
CC common.lo
CC ctype.lo
CC enca.lo
CC encnames.lo
CC filters.lo
CC guess.lo
CC lang.lo
CC lang_be.lo
CC lang_bg.lo
CC lang_cs.lo
CC lang_et.lo
CC lang_hr.lo
CC lang_hu.lo
CC lang_lt.lo
CC lang_lv.lo
CC lang_pl.lo
CC lang_ru.lo
CC lang_sk.lo
CC lang_sl.lo
CC lang_uk.lo
CC lang_zh.lo
CC multibyte.lo
CC pair.lo
CC unicodemap.lo
CC utf8_double.lo
CCLD libenca.la
libtool: warning: undefined symbols not allowed in x86_64-w64-mingw32 shared libraries; building static only
make[2]: Leaving directory '/home/qyot27/mpv-build-deps/enca/enca-build/amd64/lib'
Making all in src
make[2]: Entering directory '/home/qyot27/mpv-build-deps/enca/enca-build/amd64/src'
../../../src/text2c.sh ../../../COPYING >COPYING.c
../../../src/text2c.sh HELP >HELP.c
make all-am
make[3]: Entering directory '/home/qyot27/mpv-build-deps/enca/enca-build/amd64/src'
CC enca-COPYING.o
CC enca-HELP.o
CC enca-convert.o
CC enca-convert_extern.o
CC enca-convert_recode.o
CC enca-convert_iconv.o
CC enca-enca.o
CC enca-filebuf.o
CC enca-locale_detect.o
CC enca-options.o
../../../src/locale_detect.c: In function 'detect_target_charset':
../../../src/locale_detect.c:101:35: warning: unused parameter 'locname' [-Wunused-parameter]
101 | detect_target_charset(const char *locname)
| ~~~~~~~~~~~~^~~~~~~
../../../src/options.c: In function 'interpret_opt':
../../../src/options.c:247:27: error: passing argument 1 of 'getopt_long' makes pointer from integer without a cast [-Wint-conversion]
247 | while ((c = getopt_long(argc, argv, short_options,
| ^~~~
| |
| int
In file included from /usr/x86_64-w64-mingw32/include/_mingw.h:10,
from /usr/x86_64-w64-mingw32/include/corecrt.h:10,
from /usr/x86_64-w64-mingw32/include/crtdefs.h:10,
from /usr/x86_64-w64-mingw32/include/ctype.h:9,
from ../../../src/common.h:16,
from ../../../src/options.c:19:
../../../src/getopt.h:151:29: note: expected 'int *' but argument is of type 'int'
151 | extern int getopt_long (int __argc, char *const *__argv, const char *__shortopts,
| ^
../../../src/options.c:247:33: error: passing argument 2 of 'getopt_long' from incompatible pointer type [-Wincompatible-pointer-types]
247 | while ((c = getopt_long(argc, argv, short_options,
| ^~~~
| |
| char **
In file included from ../../../src/common.h:17:
../../../src/getopt.h:151:50: note: expected 'char * const** (*)()' but argument is of type 'char **'
151 | extern int getopt_long (int __argc, char *const *__argv, const char *__shortopts,
| ^
../../../src/options.c:389:19: error: implicit declaration of function 'get_lang_codeset' [-Wimplicit-function-declaration]
389 | charset = get_lang_codeset();
| ^~~~~~~~~~~~~~~~
../../../src/options.c:389:17: error: assignment to 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
389 | charset = get_lang_codeset();
| ^
../../../src/options.c: In function 'prepend_env':
../../../src/options.c:559:17: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long long unsigned int'} and 'int' [-Wsign-compare]
559 | for (i = 1; i < argc; i++)
| ^
make[3]: *** [Makefile:655: enca-options.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/home/qyot27/mpv-build-deps/enca/enca-build/amd64/src'
make[2]: *** [Makefile:378: all] Error 2
make[2]: Leaving directory '/home/qyot27/mpv-build-deps/enca/enca-build/amd64/src'
make[1]: *** [Makefile:568: all-recursive] Error 1
make[1]: Leaving directory '/home/qyot27/mpv-build-deps/enca/enca-build/amd64'
make: *** [Makefile:432: all] Error 2
I had also previously encountered this issue with LLVM when targetting aarch64-w64-mingw32 via llvm-mingw. I'm not sure of the version number when I initially saw it, but this is the readout with 18.1.6:
CC enca-enca.o
CC enca-filebuf.o
CC enca-locale_detect.o
CC enca-options.o
../../../src/locale_detect.c:101:35: warning: unused parameter 'locname' [-Wunused-parameter]
101 | detect_target_charset(const char *locname)
| ^
../../../src/options.c:247:27: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'int (*(*)())' [-Wint-conversion]
247 | while ((c = getopt_long(argc, argv, short_options,
| ^~~~
../../../src/getopt.h:151:29: note: passing argument to parameter '__p___argc' here
151 | extern int getopt_long (int __argc, char *const *__argv, const char *__shortopts,
| ^
/usr/llvm-mingw/aarch64-w64-mingw32/include/stdlib.h:252:19: note: expanded from macro '__argc'
252 | #define __argc (* __p___argc())
| ^
../../../src/options.c:247:33: warning: incompatible pointer types passing 'char **' to parameter of type 'char *const *(*(*)())' [-Wincompatible-pointer-types]
247 | while ((c = getopt_long(argc, argv, short_options,
| ^~~~
../../../src/getopt.h:151:50: note: passing argument to parameter '__p___argv' here
151 | extern int getopt_long (int __argc, char *const *__argv, const char *__shortopts,
| ^
/usr/llvm-mingw/aarch64-w64-mingw32/include/stdlib.h:255:19: note: expanded from macro '__argv'
255 | #define __argv (* __p___argv())
| ^
../../../src/options.c:389:19: error: call to undeclared function 'get_lang_codeset'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
389 | charset = get_lang_codeset();
| ^
../../../src/options.c:389:17: error: incompatible integer to pointer conversion assigning to 'const char *' from 'int' [-Wint-conversion]
389 | charset = get_lang_codeset();
| ^ ~~~~~~~~~~~~~~~~~~
../../../src/options.c:559:17: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long long') and 'int' [-Wsign-compare]
559 | for (i = 1; i < argc; i++)
| ~ ^ ~~~~
2 warnings and 3 errors generated.
make[3]: *** [Makefile:655: enca-options.o] Error 1
make[3]: *** Waiting for unfinished jobs....
1 warning generated.
make[3]: Leaving directory '/home/qyot27/mpv-build-deps/enca/enca-build/aarch64/src'
make[2]: *** [Makefile:378: all] Error 2
make[2]: Leaving directory '/home/qyot27/mpv-build-deps/enca/enca-build/aarch64/src'
make[1]: *** [Makefile:568: all-recursive] Error 1
make[1]: Leaving directory '/home/qyot27/mpv-build-deps/enca/enca-build/aarch64'
make: *** [Makefile:432: all] Error 2
While passing -Wno-error=int-conversion -Wno-error=incompatible-pointer-types -Wno-error=implicit-function-declaration to CPPFLAGS is certainly an option to bypass this for the moment, I doubt that's the optimal one.
The text was updated successfully, but these errors were encountered:
When using GCC 14, some language usage that were previously warnings are now errors, and this causes a build failure in
src/options.c
:https://gcc.gnu.org/gcc-14/porting_to.html#warnings-as-errors
I had also previously encountered this issue with LLVM when targetting aarch64-w64-mingw32 via llvm-mingw. I'm not sure of the version number when I initially saw it, but this is the readout with 18.1.6:
While passing
-Wno-error=int-conversion -Wno-error=incompatible-pointer-types -Wno-error=implicit-function-declaration
to CPPFLAGS is certainly an option to bypass this for the moment, I doubt that's the optimal one.The text was updated successfully, but these errors were encountered: