-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[python3:x64-mingw-dynamic] build failure #21186
Comments
I hava this question, too |
I am also having this issue.
Here is the error (truncated)
And here is the relevant part from the log file build-x64-mingw-static-rel-out.log:
Stacktrace leads to ports/python3/portfile.cmake:140, which is a call to vcpkg_install_msbuild
Thank you for taking your time to fixing this issue! |
looking in VCPKG_ROOT\buildtrees\python3\build-x64-windows-rel-out.log` everything is building fine and then this:
|
Same problem, trying to use PCL, python3 block, trying to install Host Environment :
To ReproduceSteps to reproduce the behavior: Failure logs :
And in the specified log :
|
if(NOT _VCPKG_MINGW_TOOLCHAIN)
set(_VCPKG_MINGW_TOOLCHAIN 1)
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
set(CMAKE_CROSSCOMPILING OFF CACHE BOOL "")
endif()
# Need to override MinGW from VCPKG_CMAKE_SYSTEM_NAME
set(CMAKE_SYSTEM_NAME Windows CACHE STRING "" FORCE)
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
set(CMAKE_SYSTEM_PROCESSOR i686 CACHE STRING "")
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
set(CMAKE_SYSTEM_PROCESSOR x86_64 CACHE STRING "")
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm")
set(CMAKE_SYSTEM_PROCESSOR armv7 CACHE STRING "")
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
set(CMAKE_SYSTEM_PROCESSOR aarch64 CACHE STRING "")
endif()
foreach(lang C CXX)
set(CMAKE_${lang}_COMPILER_TARGET "${CMAKE_SYSTEM_PROCESSOR}-windows-gnu" CACHE STRING "")
endforeach()
find_program(CMAKE_C_COMPILER "${CMAKE_SYSTEM_PROCESSOR}-w64-mingw32-gcc")
find_program(CMAKE_CXX_COMPILER "${CMAKE_SYSTEM_PROCESSOR}-w64-mingw32-g++")
find_program(CMAKE_RC_COMPILER "${CMAKE_SYSTEM_PROCESSOR}-w64-mingw32-windres")
if(NOT CMAKE_RC_COMPILER)
find_program(CMAKE_RC_COMPILER "windres")
endif()
get_property( _CMAKE_IN_TRY_COMPILE GLOBAL PROPERTY IN_TRY_COMPILE )
if(NOT _CMAKE_IN_TRY_COMPILE)
string(APPEND CMAKE_C_FLAGS_INIT " ${VCPKG_C_FLAGS} ")
string(APPEND CMAKE_CXX_FLAGS_INIT " ${VCPKG_CXX_FLAGS} ")
string(APPEND CMAKE_C_FLAGS_DEBUG_INIT " ${VCPKG_C_FLAGS_DEBUG} ")
string(APPEND CMAKE_CXX_FLAGS_DEBUG_INIT " ${VCPKG_CXX_FLAGS_DEBUG} ")
string(APPEND CMAKE_C_FLAGS_RELEASE_INIT " ${VCPKG_C_FLAGS_RELEASE} ")
string(APPEND CMAKE_CXX_FLAGS_RELEASE_INIT " ${VCPKG_CXX_FLAGS_RELEASE} ")
string(APPEND CMAKE_SHARED_LINKER_FLAGS_INIT " ${VCPKG_LINKER_FLAGS} ")
string(APPEND CMAKE_EXE_LINKER_FLAGS_INIT " ${VCPKG_LINKER_FLAGS} ")
if(VCPKG_CRT_LINKAGE STREQUAL "static")
string(APPEND CMAKE_SHARED_LINKER_FLAGS_INIT "-static ")
string(APPEND CMAKE_EXE_LINKER_FLAGS_INIT "-static ")
endif()
string(APPEND CMAKE_SHARED_LINKER_FLAGS_DEBUG_INIT " ${VCPKG_LINKER_FLAGS_DEBUG} ")
string(APPEND CMAKE_EXE_LINKER_FLAGS_DEBUG_INIT " ${VCPKG_LINKER_FLAGS_DEBUG} ")
string(APPEND CMAKE_SHARED_LINKER_FLAGS_RELEASE_INIT " ${VCPKG_LINKER_FLAGS_RELEASE} ")
string(APPEND CMAKE_EXE_LINKER_FLAGS_RELEASE_INIT " ${VCPKG_LINKER_FLAGS_RELEASE} ")
endif()
endif() |
how to solve?why not anyone can solve? |
Please modify vcpkg/ports/python3/portfile.cmake Line 70 in 0d7603c
to if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW) Then try again. Thanks. |
thank you,but it can't resolve my problem,please give me another soulution
python3:x64-mingw-static,
…-- Building x64-mingw-static-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:158 (message):
Command failed: D:/Programming/vcpkg/downloads/tools/msys2/7e05e7aa09f1709f/usr/bin/make.exe -j 5 --trace -f Makefile all
Working Directory: D:/Programming/vcpkg/buildtrees/python3/x64-mingw-static-dbg/
See logs for more information:
D:\Programming\vcpkg\buildtrees\python3\build-x64-mingw-static-dbg-out.log
D:\Programming\vcpkg\buildtrees\python3\build-x64-mingw-static-dbg-err.log
Call Stack (most recent call first):
scripts/cmake/vcpkg_build_make.cmake:202 (vcpkg_execute_build_process)
scripts/cmake/vcpkg_install_make.cmake:26 (vcpkg_build_make)
ports/python3/portfile.cmake:233 (vcpkg_install_make)
scripts/ports.cmake:145 (include)
------------------ 原始邮件 ------------------
发件人: "microsoft/vcpkg" ***@***.***>;
发送时间: 2022年5月10日(星期二) 上午10:54
***@***.***>;
***@***.******@***.***>;
主题: Re: [microsoft/vcpkg] [python3:x64-mingw-dynamic] build failure (Issue #21186)
Please modify
https://github.com/microsoft/vcpkg/blob/0d7603c4efc351da97b43c1952ba943e76f9b35f/ports/python3/portfile.cmake#L70
to
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
Then try again.
Thanks.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
|
this is the err.log
|
cc @dg0yt |
I think we must either say
|
I don‘t know what you mean |
It is easy: You cannot expect port python3 to build for MinGW soon. It is not a vcpkg problem. |
Close this issue as not supported by the upstream. |
There is no code to build with MinGW for Python, only MSBuild for MSVC. I'm adding it but there're some issues at last steps. Please send it to Python maintainers that you know: python/cpython#98211 |
Host Environment
To Reproduce
Steps to reproduce the behavior:
./vcpkg install python3:x64-mingw-dynamic
Failure logs
-Cut and past the appropriate build messages from the console output.
-Please attach any additional failure logs mentioned in the console output.
Additional context
Add any other context about the problem here, such as what you have already tried to resolve the issue.
build-x64-mingw-dynamic-rel-out.log
The text was updated successfully, but these errors were encountered: