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] zlib/1.2.11: can't compile with clang (not MSVC-clang) #6414

Closed
AndreyMlashkin opened this issue Jul 19, 2021 · 3 comments
Closed
Labels
bug Something isn't working

Comments

@AndreyMlashkin
Copy link
Contributor

AndreyMlashkin commented Jul 19, 2021

Package and Environment Details (include every applicable attribute)

Conan profile (output of conan profile show default or conan profile show <profile> if custom profile is in use)

[settings]
arch=x86_64
arch_build=x86_64
build_type=Debug
compiler=clang
compiler.version=12.0
os=Windows
os_build=Windows
[options]
[build_requires]
[env]
CC=clang-cl
CONAN_CMAKE_GENERATOR=Ninja
CXX=clang-cl

Steps to reproduce (Include if Applicable)

docker build .

Logs (Include/Attach if Applicable)

Click to expand log
conan install zlib/1.2.11@ --build missing
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Debug
compiler=clang
compiler.version=12.0
os=Windows
os_build=Windows
[options]
[build_requires]
[env]
CC=clang-cl
CONAN_CMAKE_GENERATOR=Ninja
CXX=clang-cl
zlib/1.2.11: Not found in local cache, looking in remotes...
zlib/1.2.11: Trying with 'conancenter'...
Downloading conanmanifest.txt completed [0.35k]
Downloading conanfile.py completed [5.94k]
Downloading conan_export.tgz completed [0.34k]
Decompressing conan_export.tgz completed [0.00k]
zlib/1.2.11: Downloaded recipe revision 0
Installing package: zlib/1.2.11
Requirements
    zlib/1.2.11 from 'conancenter' - Downloaded
Packages
    zlib/1.2.11:5448130be8147b3657e4a9b67d4df5c9629137b7 - Build

Installing (downloading, building) binaries...
Downloading conan_sources.tgz completed [1.14k]
Decompressing conan_sources.tgz completed [0.00k]
zlib/1.2.11: Configuring sources in C:\Users\ContainerAdministrator\.conan\data\zlib\1.2.11\_\_\source
Downloading zlib-1.2.11.tar.gz completed [593.46k]

zlib/1.2.11: Copying sources to build folder
zlib/1.2.11: Building your package in C:\Users\ContainerAdministrator\.conan\data\zlib\1.2.11\_\_\build\5448130be8147b3657e4a9b67d4df5c9629137b7
zlib/1.2.11: Generator cmake created conanbuildinfo.cmake
zlib/1.2.11: Calling build()
zlib/1.2.11:
zlib/1.2.11: ERROR: Package '5448130be8147b3657e4a9b67d4df5c9629137b7' build failed
zlib/1.2.11: WARN: Build folder C:\Users\ContainerAdministrator\.conan\data\zlib\1.2.11\_\_\build\5448130be8147b3657e4a9b67d4df5c9629137b7
ERROR: zlib/1.2.11: Error in build() method, line 75
        cmake.configure(build_folder=self._build_subfolder)
        ConanException: compiler.version setting required for vcvars not defined
@AndreyMlashkin AndreyMlashkin added the bug Something isn't working label Jul 19, 2021
@madebr
Copy link
Contributor

madebr commented Jul 19, 2021

I think you will have to bring this issue to the conan developers.

#6416 is releated.

It seems conan has 2 problems:

@ruilvo
Copy link
Contributor

ruilvo commented Jul 20, 2021

Raise this issue in the actual conan "program" repo.

@AndreyMlashkin
Copy link
Contributor Author

Fixed

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

No branches or pull requests

3 participants