Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libiconv] Build error on x64-windows #41541

Open
Yancey2023 opened this issue Oct 13, 2024 · 2 comments
Open

[libiconv] Build error on x64-windows #41541

Yancey2023 opened this issue Oct 13, 2024 · 2 comments
Assignees
Labels
requires:repro The issue is not currently repro-able

Comments

@Yancey2023
Copy link

Package: libiconv:[email protected]#4

Host Environment

  • Host: x64-windows
  • Compiler: MSVC 19.39.33523.0
  • vcpkg-tool version: 2024-09-30-ab8988503c7cffabfd440b243a383c0a352a023d
    vcpkg-scripts version: 9558037 2024-10-11 (35 hours ago)

To Reproduce

vcpkg install

Failure logs

-- Using cached libiconv-1.17.tar.gz.
-- Cleaning sources at D:/Visual Studio/vcpkg/buildtrees/libiconv/src/v1.17-84a471678e.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source D:/Visual Studio/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 D:/Visual Studio/vcpkg/buildtrees/libiconv/src/v1.17-84a471678e.clean
-- Found external ninja('1.11.0').
-- Getting CMake variables for x64-windows
-- Warning: Paths with embedded space may be handled incorrectly by configure:
   D:/Visual Studio/vcpkg/packages/libiconv_x64-windows
   Please move the path to one without whitespaces!
-- Using cached msys2-autoconf-wrapper-20221207-1-any.pkg.tar.zst.
-- Using cached msys2-automake-wrapper-20221207-2-any.pkg.tar.zst.
-- Using cached msys2-binutils-2.42-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libtool-2.4.7-3-x86_64.pkg.tar.zst.
-- Using cached msys2-make-4.4.1-2-x86_64.pkg.tar.zst.
-- Using cached msys2-pkgconf-2.1.1-1-x86_64.pkg.tar.zst.
-- Using cached msys2-which-2.21-4-x86_64.pkg.tar.zst.
-- Using cached msys2-bash-5.2.026-1-x86_64.pkg.tar.zst.
-- Using cached msys2-coreutils-8.32-5-x86_64.pkg.tar.zst.
-- Using cached msys2-file-5.45-1-x86_64.pkg.tar.zst.
-- Using cached msys2-gawk-5.3.0-1-x86_64.pkg.tar.zst.
-- Using cached msys2-grep-1~3.0-6-x86_64.pkg.tar.zst.
-- Using cached msys2-gzip-1.13-1-x86_64.pkg.tar.zst.
-- Using cached msys2-diffutils-3.10-1-x86_64.pkg.tar.zst.
-- Using cached msys2-sed-4.9-1-x86_64.pkg.tar.zst.
-- Using cached msys2-msys2-runtime-3.5.3-3-x86_64.pkg.tar.zst.
-- Using cached msys2-autoconf2.71-2.71-3-any.pkg.tar.zst.
-- Using cached msys2-automake1.16-1.16.5-1-any.pkg.tar.zst.
-- Using cached msys2-libiconv-1.17-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libintl-0.22.4-1-x86_64.pkg.tar.zst.
-- Using cached msys2-zlib-1.3.1-1-x86_64.pkg.tar.zst.
-- Using cached msys2-tar-1.35-2-x86_64.pkg.tar.zst.
-- Using cached msys2-findutils-4.10.0-2-x86_64.pkg.tar.zst.
-- Using cached msys2-gmp-6.3.0-1-x86_64.pkg.tar.zst.
-- Using cached msys2-gcc-libs-13.3.0-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libbz2-1.0.8-4-x86_64.pkg.tar.zst.
-- Using cached msys2-liblzma-5.6.2-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libzstd-1.5.6-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libreadline-8.2.010-1-x86_64.pkg.tar.zst.
-- Using cached msys2-mpfr-4.2.1-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libpcre-8.45-4-x86_64.pkg.tar.zst.
-- Using cached msys2-m4-1.4.19-2-x86_64.pkg.tar.zst.
-- Using cached msys2-perl-5.38.2-2-x86_64.pkg.tar.zst.
-- Using cached msys2-ncurses-6.5-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libxcrypt-4.4.36-1-x86_64.pkg.tar.zst.
-- Using msys root at D:/Visual Studio/vcpkg/downloads/tools/msys2/212eb2bc95cd8a82
-- Using cached msys2-mingw-w64-x86_64-pkgconf-1~2.2.0-1-any.pkg.tar.zst.
-- Using cached msys2-msys2-runtime-3.5.3-3-x86_64.pkg.tar.zst.
-- Using msys root at D:/Visual Studio/vcpkg/downloads/tools/msys2/1e74ca60daa10104
-- Configuring x64-windows-dbg
-- Configuring x64-windows-rel
-- Building x64-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: "D:/Visual Studio/vcpkg/downloads/tools/msys2/212eb2bc95cd8a82/usr/bin/make.exe" -j 17 --trace -f Makefile all
    Working Directory: D:/Visual Studio/vcpkg/buildtrees/libiconv/x64-windows-dbg/
    See logs for more information:
      D:\Visual Studio\vcpkg\buildtrees\libiconv\build-x64-windows-dbg-out.log
      D:\Visual Studio\vcpkg\buildtrees\libiconv\build-x64-windows-dbg-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_build_make.cmake:136 (vcpkg_execute_build_process)
  scripts/cmake/vcpkg_install_make.cmake:2 (vcpkg_build_make)
  C:/Users/Yancey666/AppData/Local/vcpkg/registries/git-trees/6549f7452c383df31d471692b339f985d0000a88/portfile.cmake:39 (vcpkg_install_make)
  scripts/ports.cmake:192 (include)



D:\Visual Studio\vcpkg\buildtrees\libiconv\build-x64-windows-dbg-err.log
libtool:   error: 'Studio/vcpkg/buildtrees/libiconv/x64-windows-dbg/lib/libcharset.la' is not a directory
make[2]: *** [Makefile:67: install-lib] Error 1
make[1]: *** [Makefile:39: install-lib] Error 2
make: *** [Makefile:41: lib/localcharset.h] Error 2
D:\Visual Studio\vcpkg\buildtrees\libiconv\build-x64-windows-dbg-out.log
Makefile:41: update target 'lib/localcharset.h' due to: target does not exist
builddir="`pwd`"; cd libcharset && /usr/bin/make all && /usr/bin/make install-lib libdir="$builddir/lib" includedir="$builddir/lib"
make[1]: Entering directory '/d/Visual Studio/vcpkg/buildtrees/libiconv/x64-windows-dbg/libcharset'
Makefile:34: update target 'all' due to: target does not exist
cd lib && /usr/bin/make all
make[2]: Entering directory '/d/Visual Studio/vcpkg/buildtrees/libiconv/x64-windows-dbg/libcharset/lib'
Makefile:58: update target 'localcharset.lo' due to: target does not exist
/bin/sh ../libtool --mode=compile compile cl.exe -I. -I../.././../src/v1.17-84a471678e.clean/libcharset/lib -I.. -I../.././../src/v1.17-84a471678e.clean/libcharset/lib/.. -I../include -Xcompiler -nologo -Xcompiler -utf-8 -Xcompiler -MP -Xcompiler -MDd -Xcompiler -Z7 -Xcompiler -Ob0 -Xcompiler -Od -Xcompiler -RTC1  -DWIN32 -D_WINDOWS -D_DEBUG -DBUILDING_LIBCHARSET -DHAVE_CONFIG_H -c ../.././../src/v1.17-84a471678e.clean/libcharset/lib/localcharset.c
Makefile:61: update target 'relocatable-stub.lo' due to: target does not exist
/bin/sh ../libtool --mode=compile compile cl.exe -I. -I../.././../src/v1.17-84a471678e.clean/libcharset/lib -I.. -I../.././../src/v1.17-84a471678e.clean/libcharset/lib/.. -I../include -Xcompiler -nologo -Xcompiler -utf-8 -Xcompiler -MP -Xcompiler -MDd -Xcompiler -Z7 -Xcompiler -Ob0 -Xcompiler -Od -Xcompiler -RTC1  -DWIN32 -D_WINDOWS -D_DEBUG -DBUILDING_LIBCHARSET -DHAVE_CONFIG_H -c ../.././../src/v1.17-84a471678e.clean/libcharset/lib/relocatable-stub.c
libtool: compile:  compile cl.exe -I. -I../.././../src/v1.17-84a471678e.clean/libcharset/lib -I.. -I../.././../src/v1.17-84a471678e.clean/libcharset/lib/.. -nologo -utf-8 -MP -MDd -Z7 -Ob0 -Od -RTC1 -I../include -DWIN32 -D_WINDOWS -D_DEBUG -DBUILDING_LIBCHARSET -DHAVE_CONFIG_H -c ../.././../src/v1.17-84a471678e.clean/libcharset/lib/localcharset.c  -DDLL_EXPORT -DPIC -o .libs/localcharset.obj
libtool: compile:  compile cl.exe -I. -I../.././../src/v1.17-84a471678e.clean/libcharset/lib -I.. -I../.././../src/v1.17-84a471678e.clean/libcharset/lib/.. -nologo -utf-8 -MP -MDd -Z7 -Ob0 -Od -RTC1 -I../include -DWIN32 -D_WINDOWS -D_DEBUG -DBUILDING_LIBCHARSET -DHAVE_CONFIG_H -c ../.././../src/v1.17-84a471678e.clean/libcharset/lib/relocatable-stub.c  -DDLL_EXPORT -DPIC -o .libs/relocatable-stub.obj
localcharset.c
relocatable-stub.c
Makefile:55: update target 'libcharset.la' due to: target does not exist
/bin/sh ../libtool --mode=link compile cl.exe -Xlinker -Xlinker -Xlinker -LIBPATH:D:/CLion/project/RM-Sentry-Nav/vcpkg_installed/x64-windows/debug/lib -Xlinker -Xlinker -Xlinker -machine:x64 -Xlinker -Xlinker -Xlinker -nologo -Xlinker -Xlinker -Xlinker -debug -Xlinker -Xlinker -Xlinker -INCREMENTAL -Xcompiler -nologo -Xcompiler -utf-8 -Xcompiler -MP -Xcompiler -MDd -Xcompiler -Z7 -Xcompiler -Ob0 -Xcompiler -Od -Xcompiler -RTC1  -o libcharset.la -rpath /D/CLion/project/RM-Sentry-Nav/vcpkg_installed/x64-windows/debug/lib -version-info 1:0:0 -no-undefined localcharset.lo relocatable-stub.lo
libtool: link: dumpbin.exe -symbols -headers  .libs/localcharset.obj .libs/relocatable-stub.obj   | gawk '     {last_section=section; section=$ 3};     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};     /^ *Symbol name *: /{split($ 0,sn,":"); si=substr(sn[2],2)};     /^ *Type *: code/{print "T",si,substr(si,length(prfx))};     /^ *Type *: data/{print "I",si,substr(si,length(prfx))};     $ 0!~/External *\|/{next};     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};     {if(hide[section]) next};     {f="D"}; $ 0~/\(\).*\|/{f="T"};     {split($ 0,a,/\||\r/); split(a[2],s)};     s[1]~/^[@?]/{print f,s[1],s[1]; next};     s[1]~prfx {split(s[1],t,"@"); print f,t[1],substr(t[1],length(prfx))}     ' prfx=^ | /usr/bin/sed '/ __gnu_lto/d' | /usr/bin/sed -e '/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/' | /usr/bin/sed -e '/^[AITW][ ]/s/.*[ ]//' | sort | uniq > .libs/charset.exp
libtool: link: if test DEF = "`/usr/bin/sed -n -e 's/^[	 ]*//' -e '/^\(;.*\)*$/d' -e 's/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p' -e q .libs/charset.exp`" ; then cp ".libs/charset.exp" ".libs/charset-1.dll.def"; echo ".libs\\charset-1.dll.def" > ".libs/charset-1.dll.exp"; else /usr/bin/sed -e 's/^/-link -EXPORT:/' < .libs/charset.exp > .libs/charset-1.dll.exp; fi
libtool: link:  compile cl.exe -o .libs\\charset-1.dll  .libs/localcharset.obj .libs/relocatable-stub.obj   -Xlinker -LIBPATH:D:/CLion/project/RM-Sentry-Nav/vcpkg_installed/x64-windows/debug/lib -Xlinker -machine:x64 -Xlinker -nologo -Xlinker -debug -Xlinker -INCREMENTAL -nologo -utf-8 -MP -MDd -Z7 -Ob0 -Od -RTC1    "@.libs\\charset-1.dll.exp" -Wl,-DLL,-IMPLIB:".libs\\charset.lib"
  正在创建库 .libs\charset.lib 和对象 .libs\charset.exp
libtool: link:  linknames=
libtool: link: ( cd ".libs" && rm -f "libcharset.la" && cp -pR "../libcharset.la" "libcharset.la" )
make[2]: Leaving directory '/d/Visual Studio/vcpkg/buildtrees/libiconv/x64-windows-dbg/libcharset/lib'
make[1]: Leaving directory '/d/Visual Studio/vcpkg/buildtrees/libiconv/x64-windows-dbg/libcharset'
make[1]: Entering directory '/d/Visual Studio/vcpkg/buildtrees/libiconv/x64-windows-dbg/libcharset'
Makefile:34: update target 'all' due to: target does not exist
cd lib && /usr/bin/make all
make[2]: Entering directory '/d/Visual Studio/vcpkg/buildtrees/libiconv/x64-windows-dbg/libcharset/lib'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/d/Visual Studio/vcpkg/buildtrees/libiconv/x64-windows-dbg/libcharset/lib'
Makefile:39: update target 'install-lib' due to: target does not exist
cd lib && /usr/bin/make install-lib libdir='/d/Visual Studio/vcpkg/buildtrees/libiconv/x64-windows-dbg/lib' includedir='/d/Visual Studio/vcpkg/buildtrees/libiconv/x64-windows-dbg/lib'
make[2]: Entering directory '/d/Visual Studio/vcpkg/buildtrees/libiconv/x64-windows-dbg/libcharset/lib'
Makefile:66: update target 'install-lib' due to: target does not exist
/bin/sh ../.././../src/v1.17-84a471678e.clean/libcharset/build-aux/mkinstalldirs /d/Visual Studio/vcpkg/buildtrees/libiconv/x64-windows-dbg/lib
mkdir -p -- Studio/vcpkg/buildtrees/libiconv/x64-windows-dbg/lib
/bin/sh ../libtool --mode=install /usr/bin/install -c libcharset.la /d/Visual Studio/vcpkg/buildtrees/libiconv/x64-windows-dbg/lib/libcharset.la
Usage: /d/Visual Studio/vcpkg/buildtrees/libiconv/x64-windows-dbg/libcharset/libtool [OPTION]... [MODE-ARG]...
Try 'libtool --help' for more information.
make[2]: Leaving directory '/d/Visual Studio/vcpkg/buildtrees/libiconv/x64-windows-dbg/libcharset/lib'
make[1]: Leaving directory '/d/Visual Studio/vcpkg/buildtrees/libiconv/x64-windows-dbg/libcharset'

Additional context

vcpkg.json
{
  "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
  "dependencies": [
    "fmt",
    "pcl",
    {
      "name": "opencv",
      "features": [
        "contrib"
      ]
    }
  ]
}

@dg0yt
Copy link
Contributor

dg0yt commented Oct 13, 2024

D:\Visual Studio\vcpkg...

These tools don't handle space in filepaths.

@Yancey2023
Copy link
Author

Thanks for your reply. I will try it in another path.

@LilyWangLL LilyWangLL added the requires:repro The issue is not currently repro-able label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires:repro The issue is not currently repro-able
Projects
None yet
Development

No branches or pull requests

3 participants