question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug] ConanException: compiler.version setting required for vcvars not defined

See original GitHub issue

Environment 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:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
memshardedcommented, Jun 19, 2022

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.

0reactions
Hydermancommented, Jun 19, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found