I am building the latest version of ffmpeg with the Debug, /MTd, and windows x86 options in a Windows x64 environment.
And I'm using msys2, referring to #12229.
And it fails with the message below.
$ md out
$ cd out
$ conan install .. --build=missing
Logs
Click to expand log
```
PS C:\Users\hhd20\project\ffmpeg_test\out> conan install .. --build=missing
Configuration:
[settings]
arch=x86
arch_build=x86_64
build_type=Debug
compiler=gcc
compiler.exception=seh
compiler.libcxx=libstdc++11
compiler.threads=posix
compiler.version=12.2
os=Windows
os_build=Windows
[options]
[build_requires]
[env]
[conf]
tools.microsoft.bash:path=c:\Program Files\Git\bin\bash.exe
tools.microsoft.bash:subsystem=msys2
libiconv/1.17: WARN: Package binary is corrupted, removing: 6ef94d2fb1cc6c16623e95f02cfb359df6953ee3
conanfile.txt: Installing package
Requirements
brotli/1.0.9 from 'conancenter' - Cache
bzip2/1.0.8 from 'conancenter' - Cache
ffmpeg/5.0 from 'conancenter' - Cache
freetype/2.12.1 from 'conancenter' - Cache
libfdk_aac/2.0.2 from 'conancenter' - Cache
libiconv/1.17 from 'conancenter' - Cache
libmp3lame/3.100 from 'conancenter' - Cache
libpng/1.6.38 from 'conancenter' - Cache
libvpx/1.11.0 from 'conancenter' - Cache
libwebp/1.2.4 from 'conancenter' - Cache
libx264/cci.20220602 from 'conancenter' - Cache
libx265/3.4 from 'conancenter' - Cache
ogg/1.3.5 from 'conancenter' - Cache
openh264/2.1.1 from 'conancenter' - Cache
openjpeg/2.5.0 from 'conancenter' - Cache
openssl/1.1.1s from 'conancenter' - Cache
opus/1.3.1 from 'conancenter' - Cache
vorbis/1.3.7 from 'conancenter' - Cache
xz_utils/5.2.5 from 'conancenter' - Cache
zlib/1.2.13 from 'conancenter' - Cache
Packages
brotli/1.0.9:4f996554f6b0f24c7614722f790d5fc9aeabe2da - Cache
bzip2/1.0.8:0aa7840f64b39e1816568e470d33795f325a1984 - Cache
ffmpeg/5.0:d9327ae441a369d97be39aad0ca5efda03e5ee08 - Build
freetype/2.12.1:81bbc04346c93152a5b66c057e079aac731456d2 - Build
libfdk_aac/2.0.2:7616fcd613eb507bb36173cc8356abb9cb822747 - Cache
libiconv/1.17:6ef94d2fb1cc6c16623e95f02cfb359df6953ee3 - Build
libmp3lame/3.100:6ef94d2fb1cc6c16623e95f02cfb359df6953ee3 - Build
libpng/1.6.38:0d7614b30351ab094ca864d61b0005379eba09f0 - Build
libvpx/1.11.0:1012dcf151a3e02737b63d8ebf85914834135276 - Build
libwebp/1.2.4:1ddf9201643537eb0247068fa6d816a098394c9c - Build
libx264/cci.20220602:71e1b033b53304361c67cf10daaf69de272864f9 - Build
libx265/3.4:bb12b6a3d9c67b1a2439f431644ca1ffabbddaf5 - Build
ogg/1.3.5:6ef94d2fb1cc6c16623e95f02cfb359df6953ee3 - Build
openh264/2.1.1:7616fcd613eb507bb36173cc8356abb9cb822747 - Build
openjpeg/2.5.0:6ef94d2fb1cc6c16623e95f02cfb359df6953ee3 - Build
openssl/1.1.1s:6ef94d2fb1cc6c16623e95f02cfb359df6953ee3 - Build
opus/1.3.1:6ef94d2fb1cc6c16623e95f02cfb359df6953ee3 - Build
vorbis/1.3.7:3847bd966a80b6c843e1aa911d689b3cf1a7eb65 - Build
xz_utils/5.2.5:6ef94d2fb1cc6c16623e95f02cfb359df6953ee3 - Build
zlib/1.2.13:6ef94d2fb1cc6c16623e95f02cfb359df6953ee3 - Build
Build requirements
gnu-config/cci.20210814 from 'conancenter' - Cache
meson/0.62.1 from 'conancenter' - Cache
nasm/2.15.05 from 'conancenter' - Cache
ninja/1.11.1 from 'conancenter' - Cache
pkgconf/1.9.3 from 'conancenter' - Cache
strawberryperl/5.32.1.1 from 'conancenter' - Cache
yasm/1.3.0 from 'conancenter' - Cache
Build requirements packages
gnu-config/cci.20210814:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
meson/0.62.1:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
nasm/2.15.05:45b43bcd991ec89baf1eb618b595ca3227a3cf0b - Build
ninja/1.11.1:45b43bcd991ec89baf1eb618b595ca3227a3cf0b - Cache
pkgconf/1.9.3:45b43bcd991ec89baf1eb618b595ca3227a3cf0b - Build
strawberryperl/5.32.1.1:11e6a84a7894f41df553e7c92534c3bf26896802 - Cache
yasm/1.3.0:45b43bcd991ec89baf1eb618b595ca3227a3cf0b - Build
Cross-build from 'Windows:x86_64' to 'Windows:x86'
Installing (downloading, building) binaries...
brotli/1.0.9: Already installed!
bzip2/1.0.8: Already installed!
gnu-config/cci.20210814: Already installed!
libfdk_aac/2.0.2: Already installed!
libiconv/1.17: WARN: Build folder is dirty, removing it: C:\Users\hhd20\.conan\data\libiconv\1.17\_\_\build\6ef94d2fb1cc6c16623e95f02cfb359df6953ee3
libiconv/1.17: Copying sources to build folder
libiconv/1.17: Building your package in C:\Users\hhd20\.conan\data\libiconv\1.17\_\_\build\6ef94d2fb1cc6c16623e95f02cfb359df6953ee3
libiconv/1.17: Generator txt created conanbuildinfo.txt
libiconv/1.17: Calling generate()
libiconv/1.17: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
libiconv/1.17: Aggregating env generators
libiconv/1.17: Calling build()
libiconv/1.17: apply_conandata_patches(): No patches defined in conandata
libiconv/1.17: Calling:
> "/c/users/hhd20/.conan/data/libiconv/1.17/_/_/build/6ef94d2fb1cc6c16623e95f02cfb359df6953ee3/src/configure" --disable-shared --enable-static --prefix=/ --bindir=${prefix}/bin --sbindir=${prefix}/bin --libdir=${prefix}/lib --includedir=${prefix}/include --oldincludedir=${prefix}/include
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking whether make supports nested variables... no
checking whether make sets $(MAKE)... (cached) no
checking for gcc... 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 gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking whether the compiler is clang... no
checking for compiler option needed when checking for declarations... none
checking whether make supports the include directive... no
checking dependency style of gcc... none
checking how to run the C preprocessor... gcc -E
checking for strip... /c/tools/msys64/mingw32/bin/strip
checking build system type... x86_64-pc-mingw64
checking host system type... x86_64-pc-mingw64
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/param.h... yes
checking for sys/socket.h... no
checking for limits.h... yes
checking for sys/time.h... yes
checking for features.h... no
checking for crtdefs.h... yes
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for Minix Amsterdam compiler... no
checking for ar... ar
checking for ranlib... ranlib
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for time_t past the year 2038... no
checking for 64-bit time_t with _TIME_BITS=64... no
configure: WARNING: The 'time_t' type stops working after January 2038,
and this package needs a wider 'time_t' type
if there is any way to access timestamps after that.
Configure with 'CC="gcc -m64"' perhaps?
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... C:/tools/msys64/mingw32/i686-w64-mingw32/bin/ld.exe
checking if the linker (C:/tools/msys64/mingw32/i686-w64-mingw32/bin/ld.exe) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /c/tools/msys64/mingw32/bin/nm -B
checking the name lister (/c/tools/msys64/mingw32/bin/nm -B) interface... BSD nm
checking whether ln -s works... no, using cp -pR
checking the maximum length of command line arguments... 8192
checking how to convert x86_64-pc-mingw64 file names to x86_64-pc-mingw64 format... func_convert_file_msys_to_w32
checking how to convert x86_64-pc-mingw64 file names to toolchain format... func_convert_file_msys_to_w32
checking for C:/tools/msys64/mingw32/i686-w64-mingw32/bin/ld.exe option to reload object files... -r
checking for file... file
checking for objdump... objdump
checking how to recognize dependent libraries... file_magic ^x86 archive import|^x86 DLL
checking for dlltool... dlltool
checking how to associate runtime and link libraries... func_cygming_dll_for_implib
checking for archiver @FILE support... @
checking for strip... /c/tools/msys64/mingw32/bin/strip
checking for ranlib... (cached) ranlib
checking command to parse /c/tools/msys64/mingw32/bin/nm -B output from 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 mt... mt
checking if mt is a manifest tool... yes
checking for dlfcn.h... no
checking for as... as
checking for dlltool... (cached) dlltool
checking for objdump... (cached) objdump
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (C:/tools/msys64/mingw32/i686-w64-mingw32/bin/ld.exe) 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 ld... C:/tools/msys64/mingw32/i686-w64-mingw32/bin/ld.exe
checking if the linker (C:/tools/msys64/mingw32/i686-w64-mingw32/bin/ld.exe) is GNU ld... yes
checking for shared library path variable... PATH
checking whether to activate relocatable installation... no
checking how to copy files... cp -p
checking how to make hard links... ln
checking whether ln -s works... no, using cp -pR
checking for windres... windres
checking for windres... windres
checking whether the -Werror option is usable... yes
checking for simple visibility declarations... no
checking for shared library run path origin... done
checking 32-bit host C ABI... yes
checking for ELF binary format... no
checking for the common suffixes of directories in the library search path... lib,lib,lib
checking for iconv... yes
checking for working iconv... yes
checking how to link with libiconv... -liconv
checking whether iconv is compatible with its POSIX signature... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyPreferredLanguages... no
checking for GNU gettext in libc... no
checking for iconv... (cached) yes
checking for working iconv... (cached) yes
checking how to link with libiconv... -liconv
checking for GNU gettext in libintl... yes
checking whether to use NLS... yes
checking where the gettext function comes from... external libintl
checking how to link with libintl... -lintl
checking for mbstate_t... yes
checking for wchar_t... yes
checking for getc_unlocked... no
checking for mbrtowc... yes
checking for wcrtomb... yes
checking for mbsinit... yes
checking for setlocale... yes
checking whether is standalone... yes
checking for memmove... yes
checking for nl_langinfo and CODESET... no
checking for symlink... no
checking for canonicalize_file_name... no
checking for faccessat... no
checking for realpath... no
checking for lstat... no
checking for readlinkat... no
checking for _set_invalid_parameter_handler... yes
checking for fcntl... no
checking for getdtablesize... no
checking for getprogname... no
checking for getexecname... no
checking for readlink... no
checking for setenv... no
checking for working fcntl.h... no
checking for wchar.h... (cached) yes
checking for EILSEQ... yes
checking whether byte ordering is bigendian... no
checking for size_t... yes
checking for working alloca.h... no
checking for alloca... yes
checking whether lstat correctly handles trailing slash... no
checking whether // is distinct from /... yes
checking whether realpath works... no
checking for C/C++ restrict keyword... __restrict__
checking if environ is properly declared... yes
checking whether the preprocessor supports include_next... yes
checking whether source code line length is unlimited... yes
checking for complete errno.h... no
checking for EMULTIHOP value... no
checking for ENOLINK value... yes
checking for EOVERFLOW value... yes
checking for gcc options needed to detect all undeclared functions... none needed
checking whether strerror_r is declared... no
checking whether strerror_r returns char *... no
checking whether ctype.h defines __header_inline... no
checking for pid_t... yes
checking for mode_t... yes
checking whether stat file-mode macros are broken... no
checking for 64-bit off_t... yes
checking for 64-bit st_size... no
checking for nlink_t... no
checking for sdkddkver.h... yes
checking whether getdtablesize is declared... no
checking whether limits.h has WORD_BIT, BOOL_WIDTH etc.... no
checking for wint_t... yes
checking whether wint_t is large enough... no
checking whether the compiler produces multi-arch binaries... no
checking whether stdint.h conforms to C99... yes
checking whether stdint.h works without ISO C predefines... yes
checking whether stdint.h has UINTMAX_WIDTH etc.... no
checking whether malloc is ptrdiff_t safe... no
checking whether malloc, realloc, calloc set errno on failure... no
checking whether malloc (0) returns nonnull... yes
checking whether defines MIN and MAX... no
checking whether defines MIN and MAX... no
checking for O_CLOEXEC... no
checking for promoted mode_t type... int
checking for sigset_t... no
checking for SIGPIPE... no
checking whether setenv is declared... no
checking for ssize_t... yes
checking for uid_t in sys/types.h... no
checking for volatile sig_atomic_t... yes
checking for sighandler_t... no
checking whether C symbols are prefixed with underscore at the linker level... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for good max_align_t... yes
checking whether NULL can be used in arbitrary expressions... yes
checking whether fcloseall is declared... yes
checking which flavor of printf attribute matches inttypes macros... gnu
checking whether ecvt is declared... yes
checking whether fcvt is declared... yes
checking whether gcvt is declared... yes
checking whether strerror(0) succeeds... yes
checking for struct timespec in ... yes
checking for TIME_UTC in ... no
checking whether execvpe is declared... yes
checking whether clearerr_unlocked is declared... no
checking whether feof_unlocked is declared... no
checking whether ferror_unlocked is declared... no
checking whether fflush_unlocked is declared... no
checking whether fgets_unlocked is declared... no
checking whether fputc_unlocked is declared... no
checking whether fputs_unlocked is declared... no
checking whether fread_unlocked is declared... no
checking whether fwrite_unlocked is declared... no
checking whether getc_unlocked is declared... no
checking whether getchar_unlocked is declared... no
checking whether putc_unlocked is declared... no
checking whether putchar_unlocked is declared... no
checking whether uses 'inline' correctly... yes
checking whether wcsdup is declared... yes
checking for C compiler option to allow warnings... -Wno-error
checking for __builtin_expect... yes
checking for winsock2.h... yes
checking whether // is distinct from /... (cached) yes
checking whether dup2 works... no
checking for setdtablesize... no
checking for error_at_line... no
checking whether free is known to preserve errno... no
checking whether program_invocation_name is declared... no
checking whether program_invocation_short_name is declared... no
checking whether __argv is declared... yes
checking whether the -Werror option is usable... (cached) yes
checking for simple visibility declarations... (cached) no
checking whether the compiler supports the __inline keyword... yes
checking for mbstate_t... (cached) yes
checking for mempcpy... yes
checking whether program_invocation_name is declared... (cached) no
checking whether program_invocation_short_name is declared... (cached) no
checking for raise... yes
checking for rawmemchr... no
checking whether free is known to preserve errno... (cached) no
checking for mempcpy... (cached) yes
checking for rawmemchr... (cached) no
checking for search.h... yes
checking for tsearch... yes
checking for ssize_t... (cached) yes
checking for struct stat.st_atim.tv_nsec... no
checking for struct stat.st_atimespec.tv_nsec... no
checking for struct stat.st_atimensec... no
checking for struct stat.st_atim.st__tim.tv_nsec... no
checking for struct stat.st_birthtimespec.tv_nsec... no
checking for struct stat.st_birthtimensec... no
checking for struct stat.st_birthtim.tv_nsec... no
checking for working stdalign.h... yes
checking for winsock2.h... (cached) yes
checking for variable-length arrays... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating srclib/Makefile
config.status: creating src/Makefile
config.status: creating po/Makefile.in
config.status: creating man/Makefile
config.status: creating tests/Makefile
config.status: creating include/iconv.h
config.status: creating include/iconv.h.inst
config.status: creating config.h
config.status: creating lib/config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
=== configuring in libcharset (/c/Users/hhd20/.conan/data/libiconv/1.17/_/_/build/6ef94d2fb1cc6c16623e95f02cfb359df6953ee3/build-debug/libcharset)
configure: running /bin/sh /c/users/hhd20/.conan/data/libiconv/1.17/_/_/build/6ef94d2fb1cc6c16623e95f02cfb359df6953ee3/src/libcharset/configure --disable-option-checking '--prefix=/' '--disable-shared' '--enable-static' '--bindir=/bin' '--sbindir=/bin' '--libdir=/lib' '--includedir=/include' '--oldincludedir=/include' 'CFLAGS= -m32 -g' 'LDFLAGS= -m32' 'CPPFLAGS=' --cache-file=/dev/null --srcdir=/c/users/hhd20/.conan/data/libiconv/1.17/_/_/build/6ef94d2fb1cc6c16623e95f02cfb359df6953ee3/src/libcharset
checking whether make sets $(MAKE)... no
checking for gcc... 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 gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... x86_64-pc-mingw64
checking host system type... x86_64-pc-mingw64
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 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 gcc... C:/tools/msys64/mingw32/i686-w64-mingw32/bin/ld.exe
checking if the linker (C:/tools/msys64/mingw32/i686-w64-mingw32/bin/ld.exe) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /c/tools/msys64/mingw32/bin/nm -B
checking the name lister (/c/tools/msys64/mingw32/bin/nm -B) interface... BSD nm
checking whether ln -s works... no, using cp -pR
checking the maximum length of command line arguments... 8192
checking how to convert x86_64-pc-mingw64 file names to x86_64-pc-mingw64 format... func_convert_file_msys_to_w32
checking how to convert x86_64-pc-mingw64 file names to toolchain format... func_convert_file_msys_to_w32
checking for C:/tools/msys64/mingw32/i686-w64-mingw32/bin/ld.exe option to reload object files... -r
checking for file... file
checking for objdump... objdump
checking how to recognize dependent libraries... file_magic ^x86 archive import|^x86 DLL
checking for dlltool... dlltool
checking how to associate runtime and link libraries... func_cygming_dll_for_implib
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... gawk
checking command to parse /c/tools/msys64/mingw32/bin/nm -B output from 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 mt... mt
checking if mt is a manifest tool... yes
checking for dlfcn.h... no
checking for as... as
checking for dlltool... (cached) dlltool
checking for objdump... (cached) objdump
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (C:/tools/msys64/mingw32/i686-w64-mingw32/bin/ld.exe) 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 ld... C:/tools/msys64/mingw32/i686-w64-mingw32/bin/ld.exe
checking if the linker (C:/tools/msys64/mingw32/i686-w64-mingw32/bin/ld.exe) is GNU ld... yes
checking for shared library path variable... PATH
checking whether to activate relocatable installation... no
checking whether the -Werror option is usable... yes
checking for simple visibility declarations... no
checking for nl_langinfo and CODESET... no
checking for symlink... no
checking for working fcntl.h... no
checking for setlocale... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating include/libcharset.h
config.status: creating include/libcharset.h.inst
config.status: creating include/localcharset.h
config.status: creating include/localcharset.h.inst
config.status: creating config.h
config.status: executing libtool commands
/usr/bin/bash: line 1: make: command not found
libiconv/1.17:
libiconv/1.17: ERROR: Package '6ef94d2fb1cc6c16623e95f02cfb359df6953ee3' build failed
libiconv/1.17: WARN: Build folder C:\Users\hhd20\.conan\data\libiconv\1.17\_\_\build\6ef94d2fb1cc6c16623e95f02cfb359df6953ee3\build-debug
ERROR: libiconv/1.17: Error in build() method, line 124
autotools.make()
ConanException: Error 127 while executing make -j8
```
Description
I am building the latest version of ffmpeg with the Debug, /MTd, and windows x86 options in a Windows x64 environment. And I'm using msys2, referring to #12229. And it fails with the message below.
Package and Environment Details
Conan profile
[settings] arch=x86 arch_build=x86_64 build_type=Debug compiler=gcc compiler.exception=seh compiler.libcxx=libstdc++11 compiler.threads=posix compiler.version=12.2 os=Windows os_build=Windows [options] [build_requires] [env] [conf] tools.microsoft.bash:path=c:\Program Files\Git\bin\bash.exe tools.microsoft.bash:subsystem=msys2
Steps to reproduce
$ cat .\conanfile.txt [requires] ffmpeg/5.0
[generators] cmake
[options] ffmpeg:shared=False
$ md out $ cd out $ conan install .. --build=missing
Logs
Click to expand log
``` PS C:\Users\hhd20\project\ffmpeg_test\out> conan install .. --build=missing Configuration: [settings] arch=x86 arch_build=x86_64 build_type=Debug compiler=gcc compiler.exception=seh compiler.libcxx=libstdc++11 compiler.threads=posix compiler.version=12.2 os=Windows os_build=Windows [options] [build_requires] [env] [conf] tools.microsoft.bash:path=c:\Program Files\Git\bin\bash.exe tools.microsoft.bash:subsystem=msys2 libiconv/1.17: WARN: Package binary is corrupted, removing: 6ef94d2fb1cc6c16623e95f02cfb359df6953ee3 conanfile.txt: Installing package Requirements brotli/1.0.9 from 'conancenter' - Cache bzip2/1.0.8 from 'conancenter' - Cache ffmpeg/5.0 from 'conancenter' - Cache freetype/2.12.1 from 'conancenter' - Cache libfdk_aac/2.0.2 from 'conancenter' - Cache libiconv/1.17 from 'conancenter' - Cache libmp3lame/3.100 from 'conancenter' - Cache libpng/1.6.38 from 'conancenter' - Cache libvpx/1.11.0 from 'conancenter' - Cache libwebp/1.2.4 from 'conancenter' - Cache libx264/cci.20220602 from 'conancenter' - Cache libx265/3.4 from 'conancenter' - Cache ogg/1.3.5 from 'conancenter' - Cache openh264/2.1.1 from 'conancenter' - Cache openjpeg/2.5.0 from 'conancenter' - Cache openssl/1.1.1s from 'conancenter' - Cache opus/1.3.1 from 'conancenter' - Cache vorbis/1.3.7 from 'conancenter' - Cache xz_utils/5.2.5 from 'conancenter' - Cache zlib/1.2.13 from 'conancenter' - Cache Packages brotli/1.0.9:4f996554f6b0f24c7614722f790d5fc9aeabe2da - Cache bzip2/1.0.8:0aa7840f64b39e1816568e470d33795f325a1984 - Cache ffmpeg/5.0:d9327ae441a369d97be39aad0ca5efda03e5ee08 - Build freetype/2.12.1:81bbc04346c93152a5b66c057e079aac731456d2 - Build libfdk_aac/2.0.2:7616fcd613eb507bb36173cc8356abb9cb822747 - Cache libiconv/1.17:6ef94d2fb1cc6c16623e95f02cfb359df6953ee3 - Build libmp3lame/3.100:6ef94d2fb1cc6c16623e95f02cfb359df6953ee3 - Build libpng/1.6.38:0d7614b30351ab094ca864d61b0005379eba09f0 - Build libvpx/1.11.0:1012dcf151a3e02737b63d8ebf85914834135276 - Build libwebp/1.2.4:1ddf9201643537eb0247068fa6d816a098394c9c - Build libx264/cci.20220602:71e1b033b53304361c67cf10daaf69de272864f9 - Build libx265/3.4:bb12b6a3d9c67b1a2439f431644ca1ffabbddaf5 - Build ogg/1.3.5:6ef94d2fb1cc6c16623e95f02cfb359df6953ee3 - Build openh264/2.1.1:7616fcd613eb507bb36173cc8356abb9cb822747 - Build openjpeg/2.5.0:6ef94d2fb1cc6c16623e95f02cfb359df6953ee3 - Build openssl/1.1.1s:6ef94d2fb1cc6c16623e95f02cfb359df6953ee3 - Build opus/1.3.1:6ef94d2fb1cc6c16623e95f02cfb359df6953ee3 - Build vorbis/1.3.7:3847bd966a80b6c843e1aa911d689b3cf1a7eb65 - Build xz_utils/5.2.5:6ef94d2fb1cc6c16623e95f02cfb359df6953ee3 - Build zlib/1.2.13:6ef94d2fb1cc6c16623e95f02cfb359df6953ee3 - Build Build requirements gnu-config/cci.20210814 from 'conancenter' - Cache meson/0.62.1 from 'conancenter' - Cache nasm/2.15.05 from 'conancenter' - Cache ninja/1.11.1 from 'conancenter' - Cache pkgconf/1.9.3 from 'conancenter' - Cache strawberryperl/5.32.1.1 from 'conancenter' - Cache yasm/1.3.0 from 'conancenter' - Cache Build requirements packages gnu-config/cci.20210814:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache meson/0.62.1:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache nasm/2.15.05:45b43bcd991ec89baf1eb618b595ca3227a3cf0b - Build ninja/1.11.1:45b43bcd991ec89baf1eb618b595ca3227a3cf0b - Cache pkgconf/1.9.3:45b43bcd991ec89baf1eb618b595ca3227a3cf0b - Build strawberryperl/5.32.1.1:11e6a84a7894f41df553e7c92534c3bf26896802 - Cache yasm/1.3.0:45b43bcd991ec89baf1eb618b595ca3227a3cf0b - Build Cross-build from 'Windows:x86_64' to 'Windows:x86' Installing (downloading, building) binaries... brotli/1.0.9: Already installed! bzip2/1.0.8: Already installed! gnu-config/cci.20210814: Already installed! libfdk_aac/2.0.2: Already installed! libiconv/1.17: WARN: Build folder is dirty, removing it: C:\Users\hhd20\.conan\data\libiconv\1.17\_\_\build\6ef94d2fb1cc6c16623e95f02cfb359df6953ee3 libiconv/1.17: Copying sources to build folder libiconv/1.17: Building your package in C:\Users\hhd20\.conan\data\libiconv\1.17\_\_\build\6ef94d2fb1cc6c16623e95f02cfb359df6953ee3 libiconv/1.17: Generator txt created conanbuildinfo.txt libiconv/1.17: Calling generate() libiconv/1.17: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior libiconv/1.17: Aggregating env generators libiconv/1.17: Calling build() libiconv/1.17: apply_conandata_patches(): No patches defined in conandata libiconv/1.17: Calling: > "/c/users/hhd20/.conan/data/libiconv/1.17/_/_/build/6ef94d2fb1cc6c16623e95f02cfb359df6953ee3/src/configure" --disable-shared --enable-static --prefix=/ --bindir=${prefix}/bin --sbindir=${prefix}/bin --libdir=${prefix}/lib --includedir=${prefix}/include --oldincludedir=${prefix}/include checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... no checking whether make supports nested variables... no checking whether make sets $(MAKE)... (cached) no checking for gcc... 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 gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking whether the compiler is clang... no checking for compiler option needed when checking for declarations... none checking whether make supports the include directive... no checking dependency style of gcc... none checking how to run the C preprocessor... gcc -E checking for strip... /c/tools/msys64/mingw32/bin/strip checking build system type... x86_64-pc-mingw64 checking host system type... x86_64-pc-mingw64 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/param.h... yes checking for sys/socket.h... no checking for limits.h... yes checking for sys/time.h... yes checking for features.h... no checking for crtdefs.h... yes checking whether it is safe to define __EXTENSIONS__... yes checking whether _XOPEN_SOURCE should be defined... no checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for Minix Amsterdam compiler... no checking for ar... ar checking for ranlib... ranlib checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... 64 checking for time_t past the year 2038... no checking for 64-bit time_t with _TIME_BITS=64... no configure: WARNING: The 'time_t' type stops working after January 2038, and this package needs a wider 'time_t' type if there is any way to access timestamps after that. Configure with 'CC="gcc -m64"' perhaps? checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... C:/tools/msys64/mingw32/i686-w64-mingw32/bin/ld.exe checking if the linker (C:/tools/msys64/mingw32/i686-w64-mingw32/bin/ld.exe) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /c/tools/msys64/mingw32/bin/nm -B checking the name lister (/c/tools/msys64/mingw32/bin/nm -B) interface... BSD nm checking whether ln -s works... no, using cp -pR checking the maximum length of command line arguments... 8192 checking how to convert x86_64-pc-mingw64 file names to x86_64-pc-mingw64 format... func_convert_file_msys_to_w32 checking how to convert x86_64-pc-mingw64 file names to toolchain format... func_convert_file_msys_to_w32 checking for C:/tools/msys64/mingw32/i686-w64-mingw32/bin/ld.exe option to reload object files... -r checking for file... file checking for objdump... objdump checking how to recognize dependent libraries... file_magic ^x86 archive import|^x86 DLL checking for dlltool... dlltool checking how to associate runtime and link libraries... func_cygming_dll_for_implib checking for archiver @FILE support... @ checking for strip... /c/tools/msys64/mingw32/bin/strip checking for ranlib... (cached) ranlib checking command to parse /c/tools/msys64/mingw32/bin/nm -B output from 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 mt... mt checking if mt is a manifest tool... yes checking for dlfcn.h... no checking for as... as checking for dlltool... (cached) dlltool checking for objdump... (cached) objdump checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (C:/tools/msys64/mingw32/i686-w64-mingw32/bin/ld.exe) 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 ld... C:/tools/msys64/mingw32/i686-w64-mingw32/bin/ld.exe checking if the linker (C:/tools/msys64/mingw32/i686-w64-mingw32/bin/ld.exe) is GNU ld... yes checking for shared library path variable... PATH checking whether to activate relocatable installation... no checking how to copy files... cp -p checking how to make hard links... ln checking whether ln -s works... no, using cp -pR checking for windres... windres checking for windres... windres checking whether the -Werror option is usable... yes checking for simple visibility declarations... no checking for shared library run path origin... done checking 32-bit host C ABI... yes checking for ELF binary format... no checking for the common suffixes of directories in the library search path... lib,lib,lib checking for iconv... yes checking for working iconv... yes checking how to link with libiconv... -liconv checking whether iconv is compatible with its POSIX signature... yes checking whether NLS is requested... yes checking for msgfmt... /usr/bin/msgfmt checking for gmsgfmt... /usr/bin/msgfmt checking for xgettext... /usr/bin/xgettext checking for msgmerge... /usr/bin/msgmerge checking for CFPreferencesCopyAppValue... no checking for CFLocaleCopyPreferredLanguages... no checking for GNU gettext in libc... no checking for iconv... (cached) yes checking for working iconv... (cached) yes checking how to link with libiconv... -liconv checking for GNU gettext in libintl... yes checking whether to use NLS... yes checking where the gettext function comes from... external libintl checking how to link with libintl... -lintl checking for mbstate_t... yes checking for wchar_t... yes checking for getc_unlocked... no checking for mbrtowc... yes checking for wcrtomb... yes checking for mbsinit... yes checking for setlocale... yes checking whether