[bug] ConanException: compiler.version setting required for vcvars not defined
See original GitHub issueEnvironment Details (include every applicable attribute)
- Operating System+version: windows 11
- Compiler+version: clang 14
- Conan version:
- Python version: 3.10
Steps to reproduce (Include if Applicable)
Conanfile.txt :
[requires]
poco/1.11.2
[generators]
cmake
command :
conan install .. -pr=clang --build=missing
profile :
[settings]
os=Windows
os_build=Windows
arch=x86_64
arch_build=x86_64
compiler=clang
compiler.version=14
compiler.libcxx=libstdc++
build_type=Release
[options]
[build_requires]
[env]
CC=C:\Tools\msys64\mingw64\bin\clang
CXX=C:\Tools\msys64\mingw64\bin\clang++
Error :
openssl/1.1.1o: Applying build-requirement: strawberryperl/5.30.0.1
openssl/1.1.1o: Applying build-requirement: nasm/2.15.05
openssl/1.1.1o: WARN: Build folder is dirty, removing it: C:\Users\logan\.conan\data\openssl\1.1.1o\_\_\build\740ddc0b690a0b53f67532814015d0310d7d742a
openssl/1.1.1o: Copying sources to build folder
openssl/1.1.1o: Building your package in C:\Users\logan\.conan\data\openssl\1.1.1o\_\_\build\740ddc0b690a0b53f67532814015d0310d7d742a
openssl/1.1.1o: Generator txt created conanbuildinfo.txt
openssl/1.1.1o: Aggregating env generators
openssl/1.1.1o: Calling build()
openssl/1.1.1o:
openssl/1.1.1o: ERROR: Package '740ddc0b690a0b53f67532814015d0310d7d742a' build failed
openssl/1.1.1o: WARN: Build folder C:\Users\logan\.conan\data\openssl\1.1.1o\_\_\build\740ddc0b690a0b53f67532814015d0310d7d742a
ERROR: openssl/1.1.1o: Error in build() method, line 742
with tools.vcvars(self.settings) if self._use_nmake else tools.no_op():
ConanException: compiler.version setting required for vcvars not defined
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
[bug] ERROR: compiler.version setting required for vcvars not ...
In settings.yml, I set visual studio version to None. Here is my profile: Configuration for profile win32_profile: [settings] os=Windows
Read more >Conan on windows claims setting isn't set, it is set
The program is built with conan. Currently I run: conan install . -if build -s build_type=Debug. I get this error:
Read more >Troubleshooting — conan 1.55.0 documentation
ERROR : Invalid setting '4.19' is not a valid 'settings.compiler.version' value. ... Indeed, for building a C library, it is not necessary to...
Read more >Conan - OpenGeoSys
ERROR : Invalid setting 'X' is not a valid 'settings.compiler.version' value. In ~/.conan/settings.yml it is defined which compiler versions ...
Read more >conan Changelog - pyup.io
Fix: Raise a clear error if ``settings.compiler`` is not defined for ... and with a meaningful error if the specified required version is...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Great to know.
If later you still want to use mingw, and some recipe in ConanCenter is not building correctly, the best way is to report it to the
conan-center-index
repo. The community of contributors is doing a fantastic job there.Hi @memsharded
I have the same error than you, I tried with wsl and it works perfectly. I will try with docker and msvc later. Thanks.