microsoft / vcpkg

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

[azure-core-cpp] Build error on x64-mingw-dynamic #39554

Open PrabhaharanC opened 1 week ago

PrabhaharanC commented 1 week ago

Package: azure-core-cpp[core,curl,http,winhttp]:x64-mingw-dynamic@1.12.0

Host Environment

To Reproduce

vcpkg install azure-identity-cpp:x64-mingw-dynamic azure-storage-blobs-cpp:x64-mingw-dynamic

Failure logs


-- Using cached Azure-azure-sdk-for-cpp-azure-core_1.12.0.tar.gz.
-- Cleaning sources at C:/Users/Prabhaharan.C/vcpkg/buildtrees/azure-core-cpp/src/ore_1.12.0-55c344a160.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Users/Prabhaharan.C/vcpkg/downloads/Azure-azure-sdk-for-cpp-azure-core_1.12.0.tar.gz
-- Using source at C:/Users/Prabhaharan.C/vcpkg/buildtrees/azure-core-cpp/src/ore_1.12.0-55c344a160.clean
CMake Error at ports/azure-core-cpp/portfile.cmake:29 (vcpkg_cmake_configure):
  Unknown CMake command "vcpkg_cmake_configure".
Call Stack (most recent call first):
  scripts/ports.cmake:191 (include)
Cheney-W commented 1 week ago

What you really need to run is: .\vcpkg upgrade and when you are happy with it: .\vcpkg upgrade --no-dry-run Alternatively, you can try: .\vcpkg remove --recurse vcpkg-cmake

PrabhaharanC commented 1 week ago

Thanks for your prompt response. I tried your commands, but i got the same issue again and it says abut curl's port file problem like above. Thanks for helping me in this.

jimwang118 commented 1 week ago

You can run the following command in the vcpkg folder:

1. git pull
2. .\bootstrap-vcpkg.bat
3. .\vcpkg install azure-identity-cpp:x64-mingw-dynamic azure-storage-blobs-cpp:x64-mingw-dynamic --binarysource=clear
PrabhaharanC commented 1 week ago

Thanks for reply. Still i got the same issue. Seems port files not correct, i guess. Any chance to install the same in your end? If yes then you can help me with your port files. Because i tried multiple times but i got the same issue. Thanks for helping in this vcpkg issue.

PrabhaharanC commented 1 week ago

Thanks for reply. Still i got the same issue. Seems port files not correct, i guess. Any chance to install the same in your end? If yes then you can help me with your port files. Because i tried multiple times but i got the same issue. Thanks for helping in this vcpkg issue.

Package: azure-core-cpp[core,curl,http,winhttp]:x64-mingw-dynamic@1.12.0

Host Environment

To Reproduce

vcpkg install azure-identity-cpp:x64-mingw-dynamic azure-storage-blobs-cpp:x64-mingw-dynamic

Failure logs

-- Downloading https://github.com/Azure/azure-sdk-for-cpp/archive/azure-core_1.12.0.tar.gz -> Azure-azure-sdk-for-cpp-azure-core_1.12.0.tar.gz...
-- Extracting source C:/Users/Prabhaharan.C/vcpkg/downloads/Azure-azure-sdk-for-cpp-azure-core_1.12.0.tar.gz
-- Using source at C:/Users/Prabhaharan.C/vcpkg/buildtrees/azure-core-cpp/src/ore_1.12.0-55c344a160.clean
-- Found external ninja('1.12.1').
-- Configuring x64-mingw-dynamic
-- Building x64-mingw-dynamic-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: "C:/Program Files/CMake/bin/cmake.exe" --build . --config Debug --target install -- -v -j9
    Working Directory: C:/Users/Prabhaharan.C/vcpkg/buildtrees/azure-core-cpp/x64-mingw-dynamic-dbg
    See logs for more information:
      C:\Users\Prabhaharan.C\vcpkg\buildtrees\azure-core-cpp\install-x64-mingw-dynamic-dbg-out.log

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  ports/azure-core-cpp/portfile.cmake:38 (vcpkg_cmake_install)
  scripts/ports.cmake:191 (include) 

I got these errors after i reinstalled vcpkg from the scratch. Thank you.

dg0yt commented 14 hours ago

https://github.com/Azure/azure-sdk-for-cpp/issues/5745