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

[package] cpython/3.10.0: can't build with MSVC #19374

Closed
AndreyMlashkin opened this issue Aug 23, 2023 · 0 comments · Fixed by #21387
Closed

[package] cpython/3.10.0: can't build with MSVC #19374

AndreyMlashkin opened this issue Aug 23, 2023 · 0 comments · Fixed by #21387
Labels
bug Something isn't working

Comments

@AndreyMlashkin
Copy link
Contributor

Description

Can't build cpython/3.10.0 with MSVC

Package and Environment Details

  • Package Name/Version: cpython/3.10.0
  • Operating System+version: Windows 11
  • Compiler+version: MSVC 19
  • Conan version: conan 1.60.2

Conan profile

[settings]
os=Windows
os_build=Windows
arch=x86_64
arch_build=x86_64
compiler=Visual Studio
compiler.version=17
build_type=Release
[options]
cpython:shared=True
[build_requires]
[env]

Steps to reproduce

conan install cpython/3.10.0@ --build missing -u -r conan-center

Logs

Click to expand log
conan install cpython/3.10.0@ --build missing -u -r conan-center
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=Visual Studio
compiler.runtime=MD
compiler.version=17
os=Windows
os_build=Windows
[options]
cpython:shared=True
[build_requires]
[env]

WARN: tcl/8.6.10: requirement zlib/1.2.13 overridden by tk/8.6.10 to zlib/1.2.11
bzip2/1.0.8: WARN: Can't update, no package in remote
expat/2.4.1: WARN: Can't update, no package in remote
libffi/3.2.1: WARN: Can't update, no package in remote
mpdecimal/2.5.0: WARN: Can't update, no package in remote
openssl/1.1.1l: WARN: Can't update, no package in remote
sqlite3/3.36.0: WARN: Can't update, no package in remote
xz_utils/5.2.5: WARN: Can't update, no package in remote
zlib/1.2.11: WARN: Can't update, no package in remote
tcl/8.6.10: WARN: Can't update, no package in remote
tk/8.6.10: WARN: Can't update, no package in remote
cpython/3.10.0: WARN: Package binary is corrupted, removing: 393bb3b4e72af5ae35fc5b9a0d21443d6354a8ac
Installing package: cpython/3.10.0
Requirements
    bzip2/1.0.8 from 'conan-center' - Cache
    cpython/3.10.0 from 'conan-center' - Cache
    expat/2.4.1 from 'conan-center' - Cache
    libffi/3.2.1 from 'conan-center' - Cache
    mpdecimal/2.5.0 from 'conan-center' - Cache
    openssl/1.1.1l from 'conan-center' - Cache
    sqlite3/3.36.0 from 'conan-center' - Cache
    tcl/8.6.10 from 'conan-center' - Cache
    tk/8.6.10 from 'conan-center' - Cache
    xz_utils/5.2.5 from 'conan-center' - Cache
    zlib/1.2.11 from 'conan-center' - Cache
Packages
    bzip2/1.0.8:53b5fd22ba061620078deefdae9a437c5f693201 - Cache
    cpython/3.10.0:393bb3b4e72af5ae35fc5b9a0d21443d6354a8ac - Build
    expat/2.4.1:8e589e066a19f700666be77ed94ff8e8bc88ee10 - Cache
    libffi/3.2.1:5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b - Cache
    mpdecimal/2.5.0:b6ef7ff46329f456578b921db2fb4e5be83b969a - Cache
    openssl/1.1.1l:5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b - Cache
    sqlite3/3.36.0:d4c90a44e87a0129d6c89e58d1337c25a5bec2b4 - Cache
    tcl/8.6.10:cdb6fd543ab5677fd09e2c988f468d700c5445bc - Cache
    tk/8.6.10:4838d0e32833939824f026a47f73cf1573a39d7f - Cache
    xz_utils/5.2.5:5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b - Cache
    zlib/1.2.11:5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b - Cache

Installing (downloading, building) binaries...
bzip2/1.0.8: Already installed!
expat/2.4.1: Already installed!
libffi/3.2.1: Already installed!
mpdecimal/2.5.0: Already installed!
openssl/1.1.1l: Already installed!
sqlite3/3.36.0: Already installed!
xz_utils/5.2.5: Already installed!
zlib/1.2.11: Already installed!
tcl/8.6.10: Already installed!
tcl/8.6.10: Setting TCL_LIBRARY environment variable to C:\Users\andrei\.conan\data\tcl\8.6.10\_\_\package\cdb6fd543ab5677fd09e2c988f468d700c5445bc\lib\tcl8.6
tcl/8.6.10: Setting TCL_ROOT environment variable to C:\Users\andrei\.conan\data\tcl\8.6.10\_\_\package\cdb6fd543ab5677fd09e2c988f468d700c5445bc
tcl/8.6.10: Setting TCLSH environment variable to C:\Users\andrei\.conan\data\tcl\8.6.10\_\_\package\cdb6fd543ab5677fd09e2c988f468d700c5445bc\bin\tclsh86tsx.exe
tcl/8.6.10: Adding PATH environment variable: C:\Users\andrei\.conan\data\tcl\8.6.10\_\_\package\cdb6fd543ab5677fd09e2c988f468d700c5445bc\bin
tk/8.6.10: Already installed!
tk/8.6.10: Setting TK_LIBRARY environment variable: C:/Users/andrei/.conan/data/tk/8.6.10/_/_/package/4838d0e32833939824f026a47f73cf1573a39d7f/lib/tk8.6
tk/8.6.10: Setting TCL_ROOT environment variable: C:/Users/andrei/.conan/data/tk/8.6.10/_/_/package/4838d0e32833939824f026a47f73cf1573a39d7f
cpython/3.10.0: WARN: Build folder is dirty, removing it: C:\Users\andrei\.conan\data\cpython\3.10.0\_\_\build\393bb3b4e72af5ae35fc5b9a0d21443d6354a8ac
cpython/3.10.0: Copying sources to build folder
cpython/3.10.0: Building your package in C:\Users\andrei\.conan\data\cpython\3.10.0\_\_\build\393bb3b4e72af5ae35fc5b9a0d21443d6354a8ac
cpython/3.10.0: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
cpython/3.10.0: Generator 'MSBuildDeps' calling 'generate()'
cpython/3.10.0: Generator txt created conanbuildinfo.txt
cpython/3.10.0: Aggregating env generators
cpython/3.10.0: Calling build()
cpython/3.10.0: Patching runtime
cpython/3.10.0:
cpython/3.10.0: ERROR: Package '393bb3b4e72af5ae35fc5b9a0d21443d6354a8ac' build failed
cpython/3.10.0: WARN: Build folder C:\Users\andrei\.conan\data\cpython\3.10.0\_\_\build\393bb3b4e72af5ae35fc5b9a0d21443d6354a8ac
ERROR: cpython/3.10.0: Error in build() method, line 425
        self._msvc_build()
while calling '_msvc_build', line 394
        msbuild = MSBuild(self)
        ConanException: Using the wrong 'MSBuild' helper. To use MSBuildDeps, MSBuildToolchain you should use 'from conan.tools.microsoft import MSBuild'. Set environment variable CONAN_DISABLE_STRICT_MODE=1 to override this check (should only be used to build old packages).
@AndreyMlashkin AndreyMlashkin added the bug Something isn't working label Aug 23, 2023
@Ahajha Ahajha mentioned this issue Feb 4, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant