Repository: conan-io/conan-center-index

Issue:
[package] libiconv/1.16: build error with msvc
the package fails to build with msvc2019

### Package and Environment Details (include every applicable attribute)
  * Package Name/Version: **libiconv/1.16**
  * Operating System+version: **Windows10**
  * Compiler+version: **msvc**
  * Conan version: **conan 1.26.1**


### Conan profile (output of `conan profile show default` or `conan profile show <profile>` if custom profile is in use)
```
[settings]
arch=x86_64
arch_build=x86_64
build_type=RelWithDebInfo
compiler=Visual Studio
compiler.runtime=MD
compiler.version=16
os=Windows
os_build=Windows
[options]
[build_requires]
[env]
```


### Steps to reproduce (Include if Applicable)

build libiconv/1.16

### Logs (Include/Attach if Applicable)
<details><summary>Click to expand log</summary>

```
libiconv/1.16: Copying sources to build folder
libiconv/1.16: Building your package in C:\Users\tim\.conan\data\libiconv\1.16\_\_\build\75ed07303f056424be45ffb582032fe7ad980a95
libiconv/1.16: Generator txt created conanbuildinfo.txt
libiconv/1.16: Calling build()
Conan:vcvars already set 
libiconv/1.16: run_in_windows_bash: C:\Users\tim\AppData\Local\Programs\Git\usr\bin\bash.exe --login -c ^"cd \^"/c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder\^" ^&^& /c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/configure --help ^"
libiconv/1.16: `configure' configures libiconv 1.16 to adapt to many kinds of systems.
libiconv/1.16: 
libiconv/1.16: Usage: /c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/configure [OPTION]... [VAR=VALUE]...
libiconv/1.16: 
libiconv/1.16: To assign environment variables (e.g., CC, CFLAGS...), specify them as
libiconv/1.16: VAR=VALUE.  See below for descriptions of some of the useful variables.
libiconv/1.16: 
libiconv/1.16: Defaults for the options are specified in brackets.
libiconv/1.16: 
libiconv/1.16: Configuration:
libiconv/1.16:   -h, --help              display this help and exit
libiconv/1.16:       --help=short        display options specific to this package
libiconv/1.16:       --help=recursive    display the short help of all the included packages
libiconv/1.16:   -V, --version           display version information and exit
libiconv/1.16:   -q, --quiet, --silent   do not print `checking ...' messages
libiconv/1.16:       --cache-file=FILE   cache test results in FILE [disabled]
libiconv/1.16:   -C, --config-cache      alias for `--cache-file=config.cache'
libiconv/1.16:   -n, --no-create         do not create output files
libiconv/1.16:       --srcdir=DIR        find the sources in DIR [configure dir or `..']
libiconv/1.16: 
libiconv/1.16: Installation directories:
libiconv/1.16:   --prefix=PREFIX         install architecture-independent files in PREFIX
libiconv/1.16:                           [/usr/local]
libiconv/1.16:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
libiconv/1.16:                           [PREFIX]
libiconv/1.16: 
libiconv/1.16: By default, `make install' will install all the files in
libiconv/1.16: `/usr/local/bin', `/usr/local/lib' etc.  You can specify
libiconv/1.16: an installation prefix other than `/usr/local' using `--prefix',
libiconv/1.16: for instance `--prefix=$HOME'.
libiconv/1.16: 
libiconv/1.16: For better control, use the options below.
libiconv/1.16: 
libiconv/1.16: Fine tuning of the installation directories:
libiconv/1.16:   --bindir=DIR            user executables [EPREFIX/bin]
libiconv/1.16:   --sbindir=DIR           system admin executables [EPREFIX/sbin]
libiconv/1.16:   --libexecdir=DIR        program executables [EPREFIX/libexec]
libiconv/1.16:   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
libiconv/1.16:   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
libiconv/1.16:   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
libiconv/1.16:   --libdir=DIR            object code libraries [EPREFIX/lib]
libiconv/1.16:   --includedir=DIR        C header files [PREFIX/include]
libiconv/1.16:   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
libiconv/1.16:   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
libiconv/1.16:   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
libiconv/1.16:   --infodir=DIR           info documentation [DATAROOTDIR/info]
libiconv/1.16:   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
libiconv/1.16:   --mandir=DIR            man documentation [DATAROOTDIR/man]
libiconv/1.16:   --docdir=DIR            documentation root [DATAROOTDIR/doc/libiconv]
libiconv/1.16:   --htmldir=DIR           html documentation [DOCDIR]
libiconv/1.16:   --dvidir=DIR            dvi documentation [DOCDIR]
libiconv/1.16:   --pdfdir=DIR            pdf documentation [DOCDIR]
libiconv/1.16:   --psdir=DIR             ps documentation [DOCDIR]
libiconv/1.16: 
libiconv/1.16: Program names:
libiconv/1.16:   --program-prefix=PREFIX            prepend PREFIX to installed program names
libiconv/1.16:   --program-suffix=SUFFIX            append SUFFIX to installed program names
libiconv/1.16:   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
libiconv/1.16: 
libiconv/1.16: System types:
libiconv/1.16:   --build=BUILD     configure for building on BUILD [guessed]
libiconv/1.16:   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
libiconv/1.16: 
libiconv/1.16: Optional Features:
libiconv/1.16:   --disable-option-checking  ignore unrecognized --enable/--with options
libiconv/1.16:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
libiconv/1.16:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
libiconv/1.16:   --enable-silent-rules   less verbose build output (undo: "make V=1")
libiconv/1.16:   --disable-silent-rules  verbose build output (undo: "make V=0")
libiconv/1.16:   --enable-dependency-tracking
libiconv/1.16:                           do not reject slow dependency extractors
libiconv/1.16:   --disable-dependency-tracking
libiconv/1.16:                           speeds up one-time build
libiconv/1.16:   --disable-largefile     omit support for large files
libiconv/1.16:   --enable-static[=PKGS]  build static libraries [default=no]
libiconv/1.16:   --enable-shared[=PKGS]  build shared libraries [default=yes]
libiconv/1.16:   --enable-fast-install[=PKGS]
libiconv/1.16:                           optimize for fast installation [default=yes]
libiconv/1.16:   --disable-libtool-lock  avoid locking (might break parallel builds)
libiconv/1.16:   --enable-relocatable    install a package that can be moved in the file
libiconv/1.16:                           system
libiconv/1.16:   --enable-extra-encodings
libiconv/1.16:                           add support for a few rarely used encodings
libiconv/1.16:   --disable-rpath         do not hardcode runtime library paths
libiconv/1.16:   --disable-nls           do not use Native Language Support
libiconv/1.16: 
libiconv/1.16: Optional Packages:
libiconv/1.16:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
libiconv/1.16:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
libiconv/1.16:   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
libiconv/1.16:                           both]
libiconv/1.16:   --with-aix-soname=aix|svr4|both
libiconv/1.16:                           shared library versioning (aka "SONAME") variant to
libiconv/1.16:                           provide on AIX, [default=aix].
libiconv/1.16:   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
libiconv/1.16:   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
libiconv/1.16:                           compiler's sysroot if not specified).
libiconv/1.16:   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
libiconv/1.16:   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
libiconv/1.16:   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
libiconv/1.16:   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
libiconv/1.16:   --without-libintl-prefix     don't search for libintl in includedir and libdir
libiconv/1.16: 
libiconv/1.16: Some influential environment variables:
libiconv/1.16:   CC          C compiler command
libiconv/1.16:   CFLAGS      C compiler flags
libiconv/1.16:   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
libiconv/1.16:               nonstandard directory <lib dir>
libiconv/1.16:   LIBS        libraries to pass to the linker, e.g. -l<library>
libiconv/1.16:   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
libiconv/1.16:               you have headers in a nonstandard directory <include dir>
libiconv/1.16:   CPP         C preprocessor
libiconv/1.16:   LT_SYS_LIBRARY_PATH
libiconv/1.16:               User-defined run-time library search path.
libiconv/1.16: 
libiconv/1.16: Use these variables to override the choices made by `configure' or to help
libiconv/1.16: it to find libraries and programs with nonstandard names/locations.
libiconv/1.16: 
libiconv/1.16: Report bugs to the package provider.
libiconv/1.16: Calling:
 > /c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/configure --enable-static --disable-shared --prefix=C:/Users/tim/.conan/data/libiconv/1.16/_/_/package/75ed07303f056424be45ffb582032fe7ad980a95 --host=x86_64-w64-mingw32
libiconv/1.16: run_in_windows_bash: C:\Users\tim\AppData\Local\Programs\Git\usr\bin\bash.exe --login -c ^"cd \^"/c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder\^" ^&^& /c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/configure --enable-static --disable-shared --prefix=C:/Users/tim/.conan/data/libiconv/1.16/_/_/package/75ed07303f056424be45ffb582032fe7ad980a95 --host=x86_64-w64-mingw32 ^"
libiconv/1.16: checking for a BSD-compatible install... /usr/bin/install -c
libiconv/1.16: checking whether build environment is sane... yes
libiconv/1.16: checking for x86_64-w64-mingw32-strip... :
libiconv/1.16: checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
libiconv/1.16: checking for gawk... gawk
libiconv/1.16: checking whether make sets $(MAKE)... yes
libiconv/1.16: checking whether make supports nested variables... yes
libiconv/1.16: checking whether make sets $(MAKE)... (cached) yes
libiconv/1.16: checking for x86_64-w64-mingw32-gcc... /c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/build-aux/compile cl -nologo
libiconv/1.16: checking whether the C compiler works... yes
libiconv/1.16: checking for C compiler default output file name... conftest.exe
libiconv/1.16: checking for suffix of executables... .exe
libiconv/1.16: checking whether we are cross compiling... no
libiconv/1.16: checking for suffix of object files... obj
libiconv/1.16: checking whether we are using the GNU C compiler... no
libiconv/1.16: checking whether /c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/build-aux/compile cl -nologo accepts -g... no
libiconv/1.16: checking for /c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/build-aux/compile cl -nologo option to accept ISO C89... none needed
libiconv/1.16: checking whether /c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/build-aux/compile cl -nologo understands -c and -o together... yes
libiconv/1.16: checking whether make supports the include directive... yes (GNU style)
libiconv/1.16: checking dependency style of /c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/build-aux/compile cl -nologo... none
libiconv/1.16: checking how to run the C preprocessor... /c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/build-aux/compile cl -nologo -E
libiconv/1.16: checking for strip... :
libiconv/1.16: checking build system type... x86_64-pc-mingw64
libiconv/1.16: checking host system type... x86_64-w64-mingw32
libiconv/1.16: checking for grep that handles long lines and -e... /usr/bin/grep
libiconv/1.16: checking for egrep... /usr/bin/grep -E
libiconv/1.16: checking for ANSI C header files... yes
libiconv/1.16: checking for sys/types.h... yes
libiconv/1.16: checking for sys/stat.h... yes
libiconv/1.16: checking for stdlib.h... yes
libiconv/1.16: checking for string.h... yes
libiconv/1.16: checking for memory.h... yes
libiconv/1.16: checking for strings.h... no
libiconv/1.16: checking for inttypes.h... yes
libiconv/1.16: checking for stdint.h... yes
libiconv/1.16: checking for unistd.h... no
libiconv/1.16: checking minix/config.h usability... no
libiconv/1.16: checking minix/config.h presence... no
libiconv/1.16: checking for minix/config.h... no
libiconv/1.16: checking whether it is safe to define __EXTENSIONS__... yes
libiconv/1.16: checking whether _XOPEN_SOURCE should be defined... no
libiconv/1.16: checking for Minix Amsterdam compiler... no
libiconv/1.16: checking for x86_64-w64-mingw32-ar... /c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/build-aux/ar-lib lib
libiconv/1.16: checking for special C compiler options needed for large files... no
libiconv/1.16: checking for _FILE_OFFSET_BITS value needed for large files... unknown
libiconv/1.16: checking for _LARGE_FILES value needed for large files... unknown
libiconv/1.16: checking how to print strings... printf
libiconv/1.16: checking for a sed that does not truncate output... /usr/bin/sed
libiconv/1.16: checking for fgrep... /usr/bin/grep -F
libiconv/1.16: checking for non-GNU ld... link
libiconv/1.16: checking if the linker (link) is GNU ld... no
libiconv/1.16: checking for BSD- or MS-compatible name lister (nm)... dumpbin -symbols
libiconv/1.16: checking the name lister (dumpbin -symbols) interface... MS dumpbin
libiconv/1.16: checking whether ln -s works... no, using cp -pR
libiconv/1.16: checking the maximum length of command line arguments... 8192
libiconv/1.16: checking how to convert x86_64-pc-mingw64 file names to x86_64-w64-mingw32 format... func_convert_file_msys_to_w32
libiconv/1.16: checking how to convert x86_64-pc-mingw64 file names to toolchain format... func_convert_file_msys_to_w32
libiconv/1.16: checking for link option to reload object files... -r
libiconv/1.16: checking for x86_64-w64-mingw32-objdump... no
libiconv/1.16: checking for objdump... no
libiconv/1.16: checking how to recognize dependent libraries... file_magic ^x86 archive import|^x86 DLL
libiconv/1.16: checking for x86_64-w64-mingw32-dlltool... no
libiconv/1.16: checking for dlltool... no
libiconv/1.16: checking how to associate runtime and link libraries... func_cygming_dll_for_implib_fallback
libiconv/1.16: checking for x86_64-w64-mingw32-ar... (cached) /c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/build-aux/ar-lib lib
libiconv/1.16: checking for archiver @FILE support... @
libiconv/1.16: checking for x86_64-w64-mingw32-strip... (cached) :
libiconv/1.16: checking for x86_64-w64-mingw32-ranlib... :
libiconv/1.16: checking command to parse dumpbin -symbols output from /c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/build-aux/compile cl -nologo object... ok
libiconv/1.16: checking for sysroot... no
libiconv/1.16: checking for a working dd... /usr/bin/dd
libiconv/1.16: checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
libiconv/1.16: checking for x86_64-w64-mingw32-mt... no
libiconv/1.16: checking for mt... mt
libiconv/1.16: checking if mt is a manifest tool... yes
libiconv/1.16: checking for dlfcn.h... no
libiconv/1.16: checking for x86_64-w64-mingw32-as... no
libiconv/1.16: checking for as... no
libiconv/1.16: checking for x86_64-w64-mingw32-dlltool... false
libiconv/1.16: checking for x86_64-w64-mingw32-objdump... false
libiconv/1.16: checking for objdir... .libs
libiconv/1.16: checking for /c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/build-aux/compile cl -nologo option to produce PIC... -DDLL_EXPORT -DPIC
libiconv/1.16: checking if /c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/build-aux/compile cl -nologo PIC flag -DDLL_EXPORT -DPIC works... yes
libiconv/1.16: checking if /c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/build-aux/compile cl -nologo static flag  works... yes
libiconv/1.16: checking if /c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/build-aux/compile cl -nologo supports -c -o file.obj... yes
libiconv/1.16: checking if /c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/build-aux/compile cl -nologo supports -c -o file.obj... (cached) yes
libiconv/1.16: checking whether the /c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/build-aux/compile cl -nologo linker (link) supports shared libraries... yes
libiconv/1.16: checking dynamic linker characteristics... Win32 link.exe
libiconv/1.16: checking how to hardcode library paths into programs... immediate
libiconv/1.16: checking whether stripping libraries is possible... no
libiconv/1.16: checking if libtool supports shared libraries... yes
libiconv/1.16: checking whether to build shared libraries... no
libiconv/1.16: checking whether to build static libraries... yes
libiconv/1.16: checking for ld... link
libiconv/1.16: checking if the linker (link) is GNU ld... no
libiconv/1.16: checking for shared library path variable... PATH
libiconv/1.16: checking whether to activate relocatable installation... no
libiconv/1.16: checking how to copy files... cp -p
libiconv/1.16: checking how to make hard links... ln
libiconv/1.16: checking whether ln -s works... no, using cp -pR
libiconv/1.16: checking for x86_64-w64-mingw32-windres... windres --target=pe-x86-64
libiconv/1.16: checking for x86_64-w64-mingw32-windres... windres --target=pe-x86-64
libiconv/1.16: checking for shared library run path origin... done
libiconv/1.16: checking 32-bit host C ABI... no
libiconv/1.16: checking for the common suffixes of directories in the library search path... lib,lib
libiconv/1.16: checking for iconv... no, consider installing GNU libiconv
libiconv/1.16: checking whether NLS is requested... yes
libiconv/1.16: checking for msgfmt... /usr/bin/msgfmt
libiconv/1.16: checking for gmsgfmt... /usr/bin/msgfmt
libiconv/1.16: checking for xgettext... /usr/bin/xgettext
libiconv/1.16: checking for msgmerge... /usr/bin/msgmerge
libiconv/1.16: checking for CFPreferencesCopyAppValue... no
libiconv/1.16: checking for CFLocaleCopyCurrent... no
libiconv/1.16: checking for CFLocaleCopyPreferredLanguages... no
libiconv/1.16: checking for GNU gettext in libc... no
libiconv/1.16: checking for iconv... (cached) no, consider installing GNU libiconv
libiconv/1.16: checking for GNU gettext in libintl... no
libiconv/1.16: checking whether to use NLS... no
libiconv/1.16: checking for mbstate_t... yes
libiconv/1.16: checking for wchar_t... yes
libiconv/1.16: checking for getc_unlocked... no
libiconv/1.16: checking for mbrtowc... yes
libiconv/1.16: checking for wcrtomb... yes
libiconv/1.16: checking for mbsinit... no
libiconv/1.16: checking for setlocale... yes
libiconv/1.16: checking whether <wchar.h> is standalone... yes
libiconv/1.16: checking for memmove... no
libiconv/1.16: checking for nl_langinfo and CODESET... no
libiconv/1.16: checking for unistd.h... (cached) no
libiconv/1.16: checking for stdlib.h... (cached) yes
libiconv/1.16: checking for string.h... (cached) yes
libiconv/1.16: checking for sys/param.h... no
libiconv/1.16: checking for limits.h... yes
libiconv/1.16: checking for sys/stat.h... (cached) yes
libiconv/1.16: checking for sys/time.h... no
libiconv/1.16: checking for wchar.h... yes
libiconv/1.16: checking for stdint.h... (cached) yes
libiconv/1.16: checking for sys/socket.h... no
libiconv/1.16: checking for symlink... no
libiconv/1.16: checking for canonicalize_file_name... no
libiconv/1.16: checking for getcwd... yes
libiconv/1.16: checking for readlink... no
libiconv/1.16: checking for realpath... no
libiconv/1.16: checking for readlinkat... no
libiconv/1.16: checking for getprogname... no
libiconv/1.16: checking for getexecname... no
libiconv/1.16: checking for lstat... no
libiconv/1.16: checking for _set_invalid_parameter_handler... yes
libiconv/1.16: checking for setenv... no
libiconv/1.16: checking for working fcntl.h... no
libiconv/1.16: checking for wchar.h... (cached) yes
libiconv/1.16: checking for EILSEQ... yes
libiconv/1.16: checking byte ordering... little endian
libiconv/1.16: checking for size_t... yes
libiconv/1.16: checking for working alloca.h... no
libiconv/1.16: checking for alloca... yes
libiconv/1.16: checking whether // is distinct from /... yes
libiconv/1.16: checking whether realpath works... no
libiconv/1.16: checking if environ is properly declared... yes
libiconv/1.16: checking whether the preprocessor supports include_next... no
libiconv/1.16: checking whether system header files limit the line length... no
libiconv/1.16: checking for complete errno.h... no
libiconv/1.16: checking absolute name of <errno.h>... "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.18362.0\\ucrt\\errno.h"
libiconv/1.16: checking for EMULTIHOP value... no
libiconv/1.16: checking for ENOLINK value... yes
libiconv/1.16: checking for EOVERFLOW value... yes
libiconv/1.16: checking whether strerror_r is declared... no
libiconv/1.16: checking for strerror_r... no
libiconv/1.16: checking whether strerror_r returns char *... no
libiconv/1.16: checking for pid_t... no
libiconv/1.16: checking for mode_t... no
libiconv/1.16: checking for 64-bit off_t... no
libiconv/1.16: checking for 64-bit st_size... no
libiconv/1.16: checking absolute name of <limits.h>... "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.26.28801\\include\\limits.h"
libiconv/1.16: checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... no
libiconv/1.16: checking whether lstat correctly handles trailing slash... no
libiconv/1.16: checking whether malloc, realloc, calloc are POSIX compliant... no
libiconv/1.16: checking for stdlib.h... (cached) yes
libiconv/1.16: checking for GNU libc compatible malloc... yes
libiconv/1.16: checking for unsigned long long int... yes
libiconv/1.16: checking for long long int... yes
libiconv/1.16: checking for sigset_t... no
libiconv/1.16: checking for SIGPIPE... no
libiconv/1.16: checking whether setenv is declared... no
libiconv/1.16: checking for ssize_t... no
libiconv/1.16: checking for uid_t in sys/types.h... no
libiconv/1.16: checking whether C symbols are prefixed with underscore at the linker level... no
libiconv/1.16: checking whether stat file-mode macros are broken... no
libiconv/1.16: checking absolute name of <sys/stat.h>... "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.18362.0\\ucrt\\sys/stat.h"
libiconv/1.16: checking for nlink_t... no
libiconv/1.16: checking for stdbool.h that conforms to C99... yes
libiconv/1.16: checking for _Bool... yes
libiconv/1.16: checking for wint_t... yes
libiconv/1.16: checking whether wint_t is too small... yes
libiconv/1.16: checking absolute name of <stdint.h>... "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.26.28801\\include\\stdint.h"
libiconv/1.16: checking whether stdint.h conforms to C99... yes
libiconv/1.16: checking whether stdint.h predates C++11... no
libiconv/1.16: checking whether stdint.h has UINTMAX_WIDTH etc.... no
libiconv/1.16: checking whether strerror(0) succeeds... yes
libiconv/1.16: checking for C/C++ restrict keyword... no
libiconv/1.16: checking absolute name of <string.h>... "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.18362.0\\ucrt\\string.h"
libiconv/1.16: checking absolute name of <sys/types.h>... "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.18362.0\\ucrt\\sys/types.h"
libiconv/1.16: checking for struct timespec in <time.h>... yes
libiconv/1.16: checking absolute name of <time.h>... "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.18362.0\\ucrt\\time.h"
libiconv/1.16: checking whether clearerr_unlocked is declared... no
libiconv/1.16: checking whether feof_unlocked is declared... no
libiconv/1.16: checking whether ferror_unlocked is declared... no
libiconv/1.16: checking whether fflush_unlocked is declared... no
libiconv/1.16: checking whether fgets_unlocked is declared... no
libiconv/1.16: checking whether fputc_unlocked is declared... no
libiconv/1.16: checking whether fputs_unlocked is declared... no
libiconv/1.16: checking whether fread_unlocked is declared... no
libiconv/1.16: checking whether fwrite_unlocked is declared... no
libiconv/1.16: checking whether getc_unlocked is declared... no
libiconv/1.16: checking whether getchar_unlocked is declared... no
libiconv/1.16: checking whether putc_unlocked is declared... no
libiconv/1.16: checking whether putchar_unlocked is declared... no
libiconv/1.16: checking whether // is distinct from /... (cached) yes
libiconv/1.16: checking for error_at_line... no
libiconv/1.16: checking absolute name of <fcntl.h>... "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.18362.0\\ucrt\\fcntl.h"
libiconv/1.16: checking whether program_invocation_name is declared... no
libiconv/1.16: checking whether program_invocation_short_name is declared... no
libiconv/1.16: checking whether __argv is declared... yes
libiconv/1.16: checking for mbstate_t... (cached) yes
libiconv/1.16: checking whether program_invocation_name is declared... (cached) no
libiconv/1.16: checking whether program_invocation_short_name is declared... (cached) no
libiconv/1.16: checking for raise... yes
libiconv/1.16: checking search.h usability... yes
libiconv/1.16: checking search.h presence... yes
libiconv/1.16: checking for search.h... yes
libiconv/1.16: checking for tsearch... no
libiconv/1.16: checking absolute name of <signal.h>... "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.18362.0\\ucrt\\signal.h"
libiconv/1.16: checking for volatile sig_atomic_t... yes
libiconv/1.16: checking for sighandler_t... no
libiconv/1.16: checking for ssize_t... (cached) no
libiconv/1.16: checking for struct stat.st_atim.tv_nsec... no
libiconv/1.16: checking for struct stat.st_atimespec.tv_nsec... no
libiconv/1.16: checking for struct stat.st_atimensec... no
libiconv/1.16: checking for struct stat.st_atim.st__tim.tv_nsec... no
libiconv/1.16: checking for struct stat.st_birthtimespec.tv_nsec... no
libiconv/1.16: checking for struct stat.st_birthtimensec... no
libiconv/1.16: checking for struct stat.st_birthtim.tv_nsec... no
libiconv/1.16: checking for good max_align_t... no
libiconv/1.16: checking whether NULL can be used in arbitrary expressions... yes
libiconv/1.16: checking absolute name of <stddef.h>... "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.18362.0\\ucrt\\stddef.h"
libiconv/1.16: checking absolute name of <stdio.h>... "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.18362.0\\ucrt\\stdio.h"
libiconv/1.16: checking which flavor of printf attribute matches inttypes macros... system
libiconv/1.16: checking absolute name of <stdlib.h>... "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.18362.0\\ucrt\\stdlib.h"
libiconv/1.16: checking winsock2.h usability... yes
libiconv/1.16: checking winsock2.h presence... yes
libiconv/1.16: checking for winsock2.h... yes
libiconv/1.16: checking absolute name of <sys/stat.h>... (cached) "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.18362.0\\ucrt\\sys/stat.h"
libiconv/1.16: checking for nlink_t... (cached) no
libiconv/1.16: checking absolute name of <unistd.h>... <unistd.h>
libiconv/1.16: checking that generated files are newer than configure... done
libiconv/1.16: configure: creating ./config.status
libiconv/1.16: config.status: creating Makefile
libiconv/1.16: config.status: creating lib/Makefile
libiconv/1.16: config.status: creating srclib/Makefile
libiconv/1.16: config.status: creating src/Makefile
libiconv/1.16: config.status: creating po/Makefile.in
libiconv/1.16: config.status: creating man/Makefile
libiconv/1.16: config.status: creating tests/Makefile
libiconv/1.16: config.status: creating include/iconv.h
libiconv/1.16: config.status: creating include/iconv.h.inst
libiconv/1.16: config.status: creating config.h
libiconv/1.16: config.status: creating lib/config.h
libiconv/1.16: config.status: executing depfiles commands
libiconv/1.16: config.status: executing libtool commands
libiconv/1.16: config.status: executing po-directories commands
libiconv/1.16: config.status: creating po/POTFILES
libiconv/1.16: config.status: creating po/Makefile
libiconv/1.16: === configuring in libcharset (/c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/libcharset)
libiconv/1.16: configure: running /bin/sh ./configure --disable-option-checking '--prefix=C:/Users/tim/.conan/data/libiconv/1.16/_/_/package/75ed07303f056424be45ffb582032fe7ad980a95'  '--enable-static' '--disable-shared' '--host=x86_64-w64-mingw32' 'host_alias=x86_64-w64-mingw32' 'CC=/c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/build-aux/compile cl -nologo' 'CFLAGS=-Zi -O2 -Ob1 -MD' 'CPPFLAGS=-DNDEBUG' --cache-file=/dev/null --srcdir=.
libiconv/1.16: checking whether make sets $(MAKE)... yes
libiconv/1.16: checking for x86_64-w64-mingw32-gcc... /c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/build-aux/compile cl -nologo
libiconv/1.16: checking whether the C compiler works... yes
libiconv/1.16: checking for C compiler default output file name... conftest.exe
libiconv/1.16: checking for suffix of executables... .exe
libiconv/1.16: checking whether we are cross compiling... no
libiconv/1.16: checking for suffix of object files... obj
libiconv/1.16: checking whether we are using the GNU C compiler... no
libiconv/1.16: checking whether /c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/build-aux/compile cl -nologo accepts -g... no
libiconv/1.16: checking for /c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/build-aux/compile cl -nologo option to accept ISO C89... none needed
libiconv/1.16: checking how to run the C preprocessor... /c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/build-aux/compile cl -nologo -E
libiconv/1.16: checking for a BSD-compatible install... /usr/bin/install -c
libiconv/1.16: checking build system type... x86_64-pc-mingw64
libiconv/1.16: checking host system type... x86_64-w64-mingw32
libiconv/1.16: checking for grep that handles long lines and -e... /usr/bin/grep
libiconv/1.16: checking for egrep... /usr/bin/grep -E
libiconv/1.16: checking for ANSI C header files... yes
libiconv/1.16: checking for sys/types.h... yes
libiconv/1.16: checking for sys/stat.h... yes
libiconv/1.16: checking for stdlib.h... yes
libiconv/1.16: checking for string.h... yes
libiconv/1.16: checking for memory.h... yes
libiconv/1.16: checking for strings.h... no
libiconv/1.16: checking for inttypes.h... yes
libiconv/1.16: checking for stdint.h... yes
libiconv/1.16: checking for unistd.h... no
libiconv/1.16: checking minix/config.h usability... no
libiconv/1.16: checking minix/config.h presence... no
libiconv/1.16: checking for minix/config.h... no
libiconv/1.16: checking whether it is safe to define __EXTENSIONS__... yes
libiconv/1.16: checking how to print strings... printf
libiconv/1.16: checking for a sed that does not truncate output... /usr/bin/sed
libiconv/1.16: checking for fgrep... /usr/bin/grep -F
libiconv/1.16: checking for non-GNU ld... link
libiconv/1.16: checking if the linker (link) is GNU ld... no
libiconv/1.16: checking for BSD- or MS-compatible name lister (nm)... dumpbin -symbols
libiconv/1.16: checking the name lister (dumpbin -symbols) interface... MS dumpbin
libiconv/1.16: checking whether ln -s works... no, using cp -pR
libiconv/1.16: checking the maximum length of command line arguments... 8192
libiconv/1.16: checking how to convert x86_64-pc-mingw64 file names to x86_64-w64-mingw32 format... func_convert_file_msys_to_w32
libiconv/1.16: checking how to convert x86_64-pc-mingw64 file names to toolchain format... func_convert_file_msys_to_w32
libiconv/1.16: checking for link option to reload object files... -r
libiconv/1.16: checking for x86_64-w64-mingw32-objdump... no
libiconv/1.16: checking for objdump... no
libiconv/1.16: checking how to recognize dependent libraries... file_magic ^x86 archive import|^x86 DLL
libiconv/1.16: checking for x86_64-w64-mingw32-dlltool... no
libiconv/1.16: checking for dlltool... no
libiconv/1.16: checking how to associate runtime and link libraries... func_cygming_dll_for_implib_fallback
libiconv/1.16: checking for x86_64-w64-mingw32-ar... /c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/build-aux/ar-lib lib
libiconv/1.16: checking for archiver @FILE support... @
libiconv/1.16: checking for x86_64-w64-mingw32-strip... :
libiconv/1.16: checking for x86_64-w64-mingw32-ranlib... :
libiconv/1.16: checking for gawk... gawk
libiconv/1.16: checking command to parse dumpbin -symbols output from /c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/build-aux/compile cl -nologo object... ok
libiconv/1.16: checking for sysroot... no
libiconv/1.16: checking for a working dd... /usr/bin/dd
libiconv/1.16: checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
libiconv/1.16: checking for x86_64-w64-mingw32-mt... no
libiconv/1.16: checking for mt... mt
libiconv/1.16: checking if mt is a manifest tool... yes
libiconv/1.16: checking for dlfcn.h... no
libiconv/1.16: checking for x86_64-w64-mingw32-as... no
libiconv/1.16: checking for as... no
libiconv/1.16: checking for x86_64-w64-mingw32-dlltool... false
libiconv/1.16: checking for x86_64-w64-mingw32-objdump... false
libiconv/1.16: checking for objdir... .libs
libiconv/1.16: checking for /c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/build-aux/compile cl -nologo option to produce PIC... -DDLL_EXPORT -DPIC
libiconv/1.16: checking if /c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/build-aux/compile cl -nologo PIC flag -DDLL_EXPORT -DPIC works... yes
libiconv/1.16: checking if /c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/build-aux/compile cl -nologo static flag  works... yes
libiconv/1.16: checking if /c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/build-aux/compile cl -nologo supports -c -o file.obj... yes
libiconv/1.16: checking if /c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/build-aux/compile cl -nologo supports -c -o file.obj... (cached) yes
libiconv/1.16: checking whether the /c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/build-aux/compile cl -nologo linker (link) supports shared libraries... yes
libiconv/1.16: checking dynamic linker characteristics... Win32 link.exe
libiconv/1.16: checking how to hardcode library paths into programs... immediate
libiconv/1.16: checking whether stripping libraries is possible... no
libiconv/1.16: checking if libtool supports shared libraries... yes
libiconv/1.16: checking whether to build shared libraries... no
libiconv/1.16: checking whether to build static libraries... yes
libiconv/1.16: checking for ld... link
libiconv/1.16: checking if the linker (link) is GNU ld... no
libiconv/1.16: checking for shared library path variable... PATH
libiconv/1.16: checking whether to activate relocatable installation... no
libiconv/1.16: checking for nl_langinfo and CODESET... no
libiconv/1.16: checking for unistd.h... (cached) no
libiconv/1.16: checking for symlink... no
libiconv/1.16: checking for working fcntl.h... no
libiconv/1.16: checking whether we are using the GNU C Library >= 2.1 or uClibc... no
libiconv/1.16: checking for setlocale... yes
libiconv/1.16: configure: creating ./config.status
libiconv/1.16: config.status: creating Makefile
libiconv/1.16: config.status: creating lib/Makefile
libiconv/1.16: config.status: creating include/localcharset.h
libiconv/1.16: config.status: creating include/localcharset.h.inst
libiconv/1.16: config.status: creating config.h
libiconv/1.16: config.status: executing libtool commands
libiconv/1.16: run_in_windows_bash: C:\Users\tim\AppData\Local\Programs\Git\usr\bin\bash.exe --login -c ^"cd \^"/c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder\^" ^&^& make -j4 ^"
libiconv/1.16: builddir="`pwd`"; cd libcharset && C:/ProgramData/chocolatey/lib/make/tools/install/bin/make.exe all && C:/ProgramData/chocolatey/lib/make/tools/install/bin/make.exe install-lib libdir="$builddir/lib" includedir="$builddir/lib"
libiconv/1.16: make[1]: Entering directory 'C:/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/libcharset'
libiconv/1.16: if [ ! -d include ] ; then mkdir include ; fi
libiconv/1.16: cp ./include/libcharset.h.in include/libcharset.h
libiconv/1.16: cd lib && C:/ProgramData/chocolatey/lib/make/tools/install/bin/make.exe all
libiconv/1.16: make[2]: Entering directory 'C:/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/libcharset/lib'
libiconv/1.16: /bin/sh ../libtool --mode=compile /c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/build-aux/compile cl -nologo -I. -I. -I.. -I./.. -I../include -Zi -O2 -Ob1 -MD  -DNDEBUG -DBUILDING_LIBCHARSET -DHAVE_CONFIG_H -c ./localcharset.c
libiconv/1.16: /bin/sh ../libtool --mode=compile /c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/build-aux/compile cl -nologo -I. -I. -I.. -I./.. -I../include -Zi -O2 -Ob1 -MD  -DNDEBUG -DBUILDING_LIBCHARSET -DHAVE_CONFIG_H -c ./relocatable-stub.c
libiconv/1.16: libtool: compile:  /c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/build-aux/compile cl -nologo -I. -I. -I.. -I./.. -I../include -Zi -O2 -Ob1 -MD -DNDEBUG -DBUILDING_LIBCHARSET -DHAVE_CONFIG_H -c ./localcharset.c -o localcharset.obj
libiconv/1.16: libtool: compile:  /c/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/build-aux/compile cl -nologo -I. -I. -I.. -I./.. -I../include -Zi -O2 -Ob1 -MD -DNDEBUG -DBUILDING_LIBCHARSET -DHAVE_CONFIG_H -c ./relocatable-stub.c -o relocatable-stub.obj
libiconv/1.16: localcharset.c
libiconv/1.16: relocatable-stub.c
libiconv/1.16: ./relocatable-stub.c: fatal error C1041: cannot open program database 'C:\users\tim\.conan\data\libiconv\1.16\_\_\build\75ed07303f056424be45ffb582032fe7ad980a95\source_subfolder\libcharset\lib\vc140.pdb'; if multiple CL.EXE write to the same .PDB file, please use /FS
libiconv/1.16: make[2]: *** [Makefile:61: relocatable-stub.lo] Error 1
libiconv/1.16: make[2]: *** Waiting for unfinished jobs....
libiconv/1.16: make[2]: Leaving directory 'C:/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/libcharset/lib'
libiconv/1.16: make[1]: *** [Makefile:34: all] Error 2
libiconv/1.16: make[1]: Leaving directory 'C:/users/tim/.conan/data/libiconv/1.16/_/_/build/75ed07303f056424be45ffb582032fe7ad980a95/source_subfolder/libcharset'
libiconv/1.16: make: *** [Makefile:41: lib/localcharset.h] Error 2
libiconv/1.16: 
libiconv/1.16: WARN: Package is corrupted, removing folder: C:\Users\tim\.conan\data\libiconv\1.16\_\_\package\75ed07303f056424be45ffb582032fe7ad980a95
libiconv/1.16: WARN: Build folder is dirty, removing it: C:\Users\tim\.conan\data\libiconv\1.16\_\_\build\75ed07303f056424be45ffb582032fe7ad980a95
libiconv/1.16: ERROR: Package '75ed07303f056424be45ffb582032fe7ad980a95' build failed
libiconv/1.16: WARN: Build folder C:\Users\tim\.conan\data\libiconv\1.16\_\_\build\75ed07303f056424be45ffb582032fe7ad980a95
ERROR: libiconv/1.16: Error in build() method, line 125
	autotools.make()
	ConanException: Error 2 while executing make -j4
```

</details>



Discussion:

Resolving patch:
diff --git a/recipes/libiconv/all/conanfile.py b/recipes/libiconv/all/conanfile.py
--- a/recipes/libiconv/all/conanfile.py
+++ b/recipes/libiconv/all/conanfile.py
@@ -111,6 +111,9 @@ def _configure_autotools(self):
         else:
             configure_args.extend(["--enable-static", "--disable-shared"])
 
+        if self._is_msvc:
+            self._autotools.flags.append("-FS")
+
         self._autotools.configure(args=configure_args, host=host, build=build)
         return self._autotools
 


Test patch: