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

building libiconv:x64-windows failed with: BUILD_FAILED #42793

Open
DSP-ENP opened this issue Dec 19, 2024 · 2 comments
Open

building libiconv:x64-windows failed with: BUILD_FAILED #42793

DSP-ENP opened this issue Dec 19, 2024 · 2 comments
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@DSP-ENP
Copy link

DSP-ENP commented Dec 19, 2024

Operating system

Windows 10

Compiler

No response

Steps to reproduce the behavior

.\vcpkg.exe install libiconv

Failure logs

Computing installation plan...
The following packages will be built and installed:
libiconv:[email protected]#5
Detecting compiler hash for triplet x64-windows...
Compiler found: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe
Restored 0 package(s) from C:\Users\TestUser\AppData\Local\vcpkg\archives in 326 us. Use --debug to see more details.
Installing 1/1 libiconv:[email protected]#5...
Building libiconv:[email protected]#5...
-- Using cached libiconv-1.17.tar.gz.
-- Cleaning sources at D:/vcpkgMgr_Libxml/vcpkg-master/buildtrees/libiconv/src/v1.17-ae896f7b49.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source D:/vcpkgMgr_Libxml/vcpkg-master/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
-- Applying patch 0005-iOS-missing-symbol-fix.patch
-- Using source at D:/vcpkgMgr_Libxml/vcpkg-master/buildtrees/libiconv/src/v1.17-ae896f7b49.clean
-- Found external ninja('1.10.2').
-- Getting CMake variables for x64-windows
-- Using cached msys2-autoconf-wrapper-20240607-1-any.pkg.tar.zst.
-- Using cached msys2-automake-wrapper-20240607-1-any.pkg.tar.zst.
-- Using cached msys2-binutils-2.43.1-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libtool-2.4.7-4-x86_64.pkg.tar.zst.
-- Using cached msys2-make-4.4.1-2-x86_64.pkg.tar.zst.
-- Using cached msys2-pkgconf-2.3.0-1-x86_64.pkg.tar.zst.
-- Using cached msys2-which-2.21-4-x86_64.pkg.tar.zst.
-- Using cached msys2-bash-5.2.037-1-x86_64.pkg.tar.zst.
-- Using cached msys2-coreutils-8.32-5-x86_64.pkg.tar.zst.
-- Using cached msys2-file-5.45-3-x86_64.pkg.tar.zst.
-- Using cached msys2-gawk-5.3.1-1-x86_64.pkg.tar.zst.
-- Using cached msys2-grep-13.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.4-2-x86_64.pkg.tar.zst.
-- Using cached msys2-autoconf2.72-2.72-1-any.pkg.tar.zst.
-- Using cached msys2-automake1.16-1.16.5-1-any.pkg.tar.zst.
-- Using cached msys2-automake1.17-1.17-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.3-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.013-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.20240831-2-x86_64.pkg.tar.zst.
-- Using cached msys2-libxcrypt-4.4.36-1-x86_64.pkg.tar.zst.
-- Using msys root at D:/vcpkgMgr_Libxml/vcpkg-master/downloads/tools/msys2/2db36fb050d01f45
-- Using cached msys2-mingw-w64-x86_64-pkgconf-1
2.3.0-1-any.pkg.tar.zst.
-- Using cached msys2-msys2-runtime-3.5.4-2-x86_64.pkg.tar.zst.
-- Using msys root at D:/vcpkgMgr_Libxml/vcpkg-master/downloads/tools/msys2/21caed2f81ec917b
-- Configuring x64-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
Command failed: D:/vcpkgMgr_Libxml/vcpkg-master/downloads/tools/msys2/2db36fb050d01f45/usr/bin/bash.exe --noprofile --norc --debug -c "V=1 CPP='compile cl.exe -E' CC='compile cl.exe' CC_FOR_BUILD='compile cl.exe' CPP_FOR_BUILD='compile cl.exe -E' CXX_FOR_BUILD='compile cl.exe' CXX='compile cl.exe' RC='windres-rc rc.exe' WINDRES='windres-rc rc.exe' AR='ar-lib lib.exe' LD='link.exe -verbose' RANLIB=':' STRIP=':' NM='dumpbin.exe -symbols -headers' DLLTOOL='link.exe -verbose -dll' CCAS=':' AS=':' ./../src/v1.17-ae896f7b49.clean/configure --build=x86_64-pc-mingw32 "--enable-extra-encodings" "--without-libiconv-prefix" "--without-libintl-prefix" "--enable-relocatable" "ac_cv_prog_ac_ct_STRIP=:" "gl_cv_double_slash_root=yes" "ac_cv_func_memmove=yes" "--disable-silent-rules" "--verbose" "--enable-shared" "--disable-static" "--prefix=/D/vcpkgMgr_Libxml/vcpkg-master/installed/x64-windows/debug" "--bindir=\${prefix}/../tools/libiconv/debug/bin" "--sbindir=\${prefix}/../tools/libiconv/debug/sbin" "--libdir=\${prefix}/lib" "--includedir=\${prefix}/../include" "--datarootdir=\${prefix}/share/libiconv""
Working Directory: D:/vcpkgMgr_Libxml/vcpkg-master/buildtrees/libiconv/x64-windows-dbg
Error code: 127
See logs for more information:

Call Stack (most recent call first):
scripts/cmake/vcpkg_configure_make.cmake:866 (vcpkg_execute_required_process)
ports/libiconv/portfile.cmake:30 (vcpkg_configure_make)
scripts/ports.cmake:196 (include)

error: building libiconv:x64-windows failed with: BUILD_FAILED
See https://learn.microsoft.com/vcpkg/troubleshoot/build-failures?WT.mc_id=vcpkg_inproduct_cli for more information.
Elapsed time to handle libiconv:x64-windows: 10 s
Please ensure you're using the latest port files with git pull and vcpkg update.
Then check for known issues at:
https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+libiconv
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?title=[libiconv]+Build+error+on+x64-windows&body=Copy+issue+body+from+D%3A%2FvcpkgMgr_Libxml%2Fvcpkg-master%2Finstalled%2Fvcpkg%2Fissue_body.md

Additional context

No response

@DSP-ENP DSP-ENP added the category:port-bug The issue is with a library, which is something the port should already support label Dec 19, 2024
@StarGate-One
Copy link
Contributor

Working Directory: D:/vcpkgMgr_Libxml/vcpkg-master/buildtrees/libiconv/x64-windows-dbg

Might be the underscore character in the path?

I know the utilities used by vcpkg do not like spaces and special characters in the path, although a dash is OK.

@dg0yt
Copy link
Contributor

dg0yt commented Dec 19, 2024

Underscore is no problem.
bash failing with 127 is probably due to the incompatibility with mandatory ASLR. Cf. #35966.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
Development

No branches or pull requests

4 participants