Open nvoronetskiy opened 10 months ago
i meet this error too, any solution?
How did you finally solve it?
I am also encountering this on macOS ./vcpkg install libiconv:arm64-ios
Undefined symbols for architecture arm64:
"_stat_time_normalize", referenced from:
_rpl_stat in stat-65f137.o
ld: symbol(s) not found for architecture arm64
cc: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [install] Error 1
make: *** [install] Error 2
This was fixed by https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=2d1edb0bd8035200d09ba4bd6d0161f37e0ee1f4
This commit needs to get to the vcpkg build.
Package: libiconv:arm64-ios -> 1.17#2
Host Environment
To Reproduce
vcpkg install
Failure logs/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 ```