Description
I was trying to install CGAL using vcpkg based on the documentation of CGAL, during the install of cgal I got some errors....
-- Using msys root at C:/Program Files/vcpkg/vcpkg/downloads/tools/msys2/21caed2f81ec917b
-- Configuring x64-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
Command failed: "C:/Program Files/vcpkg/vcpkg/downloads/tools/msys2/a34690d042a6e3bf/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/v6.3.0-27b6a2315b.clean/configure --build=x86_64-pc-mingw32 "ac_cv_func_memset=yes" "gmp_cv_asm_w32=.word" "gmp_cv_check_libm_for_build=no" "CCAS=clang.exe" "ASMFLAGS=-c --target=x86_64-pc-windows-msvc" "--enable-cxx" "--with-pic" "--with-readline=no" "gmp_cv_prog_exeext_for_build=.exe" "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=/C/Program Files/vcpkg/vcpkg/installed/x64-windows/debug" "--bindir=\${prefix}/../tools/gmp/debug/bin" "--sbindir=\${prefix}/../tools/gmp/debug/sbin" "--libdir=\${prefix}/lib" "--includedir=\${prefix}/../include" "--datarootdir=\${prefix}/share/gmp""
Working Directory: C:/Program Files/vcpkg/vcpkg/buildtrees/gmp/x64-windows-dbg
Error code: 77
See logs for more information:
C:\Program Files\vcpkg\vcpkg\buildtrees\gmp\config-x64-windows-dbg-config.log
C:\Program Files\vcpkg\vcpkg\buildtrees\gmp\config-x64-windows-dbg-out.log
C:\Program Files\vcpkg\vcpkg\buildtrees\gmp\config-x64-windows-dbg-err.log
Call Stack (most recent call first):
scripts/cmake/vcpkg_configure_make.cmake:866 (vcpkg_execute_required_process)
ports/gmp/portfile.cmake:87 (vcpkg_configure_make)
scripts/ports.cmake:196 (include)
error: building gmp: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 gmp:x64-windows: 34 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+gmp
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?title=[gmp]+Build+error+on+x64-windows&body=Copy+issue+body+from+C%3A%2FProgram%20Files%2Fvcpkg%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md
How to solve this problem