microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.16k stars 6.39k forks source link

[libiconv] Build error #36182

Open nvoronetskiy opened 9 months ago

nvoronetskiy commented 9 months ago

Package: libiconv:arm64-ios -> 1.17#2

Host Environment

To Reproduce

vcpkg install Failure logs

-- Downloading https://ftp.gnu.org/gnu/libiconv/libiconv-1.17.tar.gz;https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/libiconv/libiconv-1.17.tar.gz -> libiconv-1.17.tar.gz...
-- Extracting source /Users/user/sandbox/toolchain/vcpkg/downloads/libiconv-1.17.tar.gz
-- Applying patch 0002-Config-for-MSVC.patch
-- Applying patch 0003-Add-export.patch
-- Applying patch 0004-ModuleFileName.patch
-- Applying patch clang-fortify.patch
-- Using source at /Users/user/sandbox/toolchain/vcpkg/buildtrees/libiconv/src/v1.17-84a471678e.clean
-- Getting CMake variables for arm64-ios-dbg
-- Getting CMake variables for arm64-ios-rel
-- Configuring arm64-ios-dbg
-- Configuring arm64-ios-rel
-- Building arm64-ios-dbg
-- Installing arm64-ios-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: /usr/bin/make -j 9 -f Makefile install DESTDIR=/Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios
    Working Directory: /Users/user/sandbox/toolchain/vcpkg/buildtrees/libiconv/arm64-ios-dbg/
    See logs for more information:
      /Users/user/sandbox/toolchain/vcpkg/buildtrees/libiconv/install-arm64-ios-dbg-out.log
      /Users/user/sandbox/toolchain/vcpkg/buildtrees/libiconv/install-arm64-ios-dbg-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_build_make.cmake:168 (vcpkg_execute_build_process)
  scripts/cmake/vcpkg_install_make.cmake:2 (vcpkg_build_make)
  ports/libiconv/portfile.cmake:39 (vcpkg_install_make)
  scripts/ports.cmake:170 (include)
/Users/user/sandbox/toolchain/vcpkg/buildtrees/libiconv/install-arm64-ios-dbg-out.log ``` cd libcharset && /Applications/Xcode.app/Contents/Developer/usr/bin/make install prefix='/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug' exec_prefix='/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug' libdir='/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/lib' cd lib && /Applications/Xcode.app/Contents/Developer/usr/bin/make all make[2]: Nothing to be done for `all'. cd lib && /Applications/Xcode.app/Contents/Developer/usr/bin/make install prefix='/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug' exec_prefix='/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug' libdir='/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/lib' /bin/sh ../.././../src/v1.17-84a471678e.clean/libcharset/build-aux/mkinstalldirs /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/lib ; \ /bin/sh ../libtool --mode=install /usr/bin/install -c libcharset.la /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/lib/libcharset.la mkdir /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users mkdir /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user mkdir /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox mkdir /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios mkdir /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed mkdir /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios mkdir /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug mkdir /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/lib libtool: install: /usr/bin/install -c .libs/libcharset.lai /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/lib/libcharset.la libtool: install: /usr/bin/install -c .libs/libcharset.a /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/lib/libcharset.a libtool: install: chmod 644 /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/lib/libcharset.a libtool: install: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/lib/libcharset.a /bin/sh .././../src/v1.17-84a471678e.clean/libcharset/build-aux/mkinstalldirs /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/../include mkdir /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/../include /usr/bin/install -c -m 644 include/libcharset.h.inst /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/../include/libcharset.h /usr/bin/install -c -m 644 include/localcharset.h.inst /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/../include/localcharset.h cd lib && /Applications/Xcode.app/Contents/Developer/usr/bin/make install prefix='/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug' exec_prefix='/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug' libdir='/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/lib' if [ ! -d /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/lib ] ; then /bin/sh .././../src/v1.17-84a471678e.clean/build-aux/mkinstalldirs /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/lib ; fi /bin/sh ../libtool --mode=install /usr/bin/install -c libiconv.la /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/lib/libiconv.la libtool: install: /usr/bin/install -c .libs/libiconv.lai /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/lib/libiconv.la libtool: install: /usr/bin/install -c .libs/libiconv.a /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/lib/libiconv.a libtool: install: chmod 644 /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/lib/libiconv.a libtool: install: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/lib/libiconv.a case "darwin" in \ aix*) (cd /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/lib && \ objects=`/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar t libiconv.a`" "`/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar t /lib/libiconv.a` && \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar x libiconv.a && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar x /lib/libiconv.a && \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar q libiconv.new.a $objects && \ rm -f $objects && \ mv -f libiconv.new.a libiconv.a) ;; \ esac cd srclib && /Applications/Xcode.app/Contents/Developer/usr/bin/make install prefix='/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug' exec_prefix='/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug' libdir='/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/lib' /Applications/Xcode.app/Contents/Developer/usr/bin/make install-am make[3]: Nothing to be done for `install-exec-am'. make[3]: Nothing to be done for `install-data-am'. cd src && /Applications/Xcode.app/Contents/Developer/usr/bin/make install prefix='/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug' exec_prefix='/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug' libdir='/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/lib' test `ls -ld . | sed -e 's/^d\(.........\).*/\1/'` = rwxrwxrwx || chmod 777 . if [ ! -d /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/../tools/libiconv/debug/bin ] ; then /bin/sh .././../src/v1.17-84a471678e.clean/build-aux/mkinstalldirs /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/../tools/libiconv/debug/bin ; fi mkdir /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/../tools mkdir /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/../tools/libiconv mkdir /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/../tools/libiconv/debug mkdir /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/../tools/libiconv/debug/bin case "darwin" in \ hpux*) /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.0.sdk -fPIC -g -L/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/lib -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.0.sdk -fPIC -g `if test -n ''; then /Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/../tools/libiconv/debug/bin; fi` iconv.o ../srclib/libicrt.a -L/Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/lib -liconv `if test -n '/Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios'; then echo " -Wl,+b -Wl,/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/lib"; fi` -o iconv;; \ *) /bin/sh ../libtool --mode=link /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.0.sdk -fPIC -g -L/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/lib -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.0.sdk -fPIC -g `if test -n ''; then /Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/../tools/libiconv/debug/bin; fi` iconv.o ../srclib/libicrt.a /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/lib/libiconv.la -o iconv;; \ esac libtool: link: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.0.sdk -fPIC -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.0.sdk -fPIC -g iconv.o -o iconv -L/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/lib ../srclib/libicrt.a /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/lib/libiconv.a RELOC_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" RELOC_LIBRARY_PATH_VALUE="/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/lib" RELOC_PREFIX="/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug" RELOC_DESTDIR="/Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios" RELOC_COMPILE_COMMAND="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.0.sdk -fPIC -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.0.sdk -fPIC -g -L/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/lib -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.0.sdk" RELOC_SRCDIR=".././../src/v1.17-84a471678e.clean/srclib" RELOC_BUILDDIR="../srclib" RELOC_CONFIG_H_DIR=".." RELOC_EXEEXT="" RELOC_STRIP_PROG=":" RELOC_INSTALL_PROG="/usr/bin/install -c" /bin/sh ../libtool --mode=install .././../src/v1.17-84a471678e.clean/build-aux//install-reloc iconv /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/../tools/libiconv/debug/bin/iconv libtool: install: .././../src/v1.17-84a471678e.clean/build-aux//install-reloc iconv /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/../tools/libiconv/debug/bin/iconv /usr/bin/install -c iconv /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/../tools/libiconv/debug/bin/iconv /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.0.sdk -fPIC -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.0.sdk -fPIC -g -L/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/lib -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.0.sdk -I../srclib -I.././../src/v1.17-84a471678e.clean/srclib -I.. -DHAVE_CONFIG_H -DIN_RELOCWRAPPER -DNO_XMALLOC -DINSTALLPREFIX=\"/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug\" -DINSTALLDIR=\"/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/../tools/libiconv/debug/bin\" -DLIBPATHVAR=\"DYLD_LIBRARY_PATH\" -DLIBDIRS=\"/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/lib\", -DEXEEXT=\"\" .././../src/v1.17-84a471678e.clean/srclib/relocwrapper.c .././../src/v1.17-84a471678e.clean/srclib/progname.c .././../src/v1.17-84a471678e.clean/srclib/progreloc.c .././../src/v1.17-84a471678e.clean/srclib/areadlink.c .././../src/v1.17-84a471678e.clean/srclib/careadlinkat.c .././../src/v1.17-84a471678e.clean/srclib/allocator.c .././../src/v1.17-84a471678e.clean/srclib/readlink.c .././../src/v1.17-84a471678e.clean/srclib/stat.c .././../src/v1.17-84a471678e.clean/srclib/canonicalize-lgpl.c .././../src/v1.17-84a471678e.clean/srclib/malloc/scratch_buffer_dupfree.c .././../src/v1.17-84a471678e.clean/srclib/malloc/scratch_buffer_grow.c .././../src/v1.17-84a471678e.clean/srclib/malloc/scratch_buffer_grow_preserve.c .././../src/v1.17-84a471678e.clean/srclib/malloc/scratch_buffer_set_array_size.c .././../src/v1.17-84a471678e.clean/srclib/malloc.c .././../src/v1.17-84a471678e.clean/srclib/realloc.c .././../src/v1.17-84a471678e.clean/srclib/free.c .././../src/v1.17-84a471678e.clean/srclib/mempcpy.c .././../src/v1.17-84a471678e.clean/srclib/rawmemchr.c .././../src/v1.17-84a471678e.clean/srclib/malloca.c .././../src/v1.17-84a471678e.clean/srclib/relocatable.c .././../src/v1.17-84a471678e.clean/srclib/setenv.c .././../src/v1.17-84a471678e.clean/srclib/c-ctype.c -o /Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/../tools/libiconv/debug/bin/iconv.wrapper ```
/Users/user/sandbox/toolchain/vcpkg/buildtrees/libiconv/install-arm64-ios-dbg-err.log ``` libtool: warning: remember to run 'libtool --finish /Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/lib' libtool: warning: remember to run 'libtool --finish /Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/lib' libtool: warning: library '/Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/lib/libiconv.la' was moved. libtool: warning: library '/Users/user/sandbox/toolchain/vcpkg/packages/libiconv_arm64-ios/Users/user/sandbox/_obj-lib-etc-ios/vcpkg_installed/arm64-ios/debug/lib/libiconv.la' was moved. Undefined symbols for architecture arm64: "_stat_time_normalize", referenced from: _rpl_stat in stat-c05660.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: *** [install] Error 1 make: *** [install] Error 2 ```
**Additional context**
Sevael commented 4 months ago

i meet this error too, any solution?