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.

Wrong setting for 'settings.compiler.libcxx' detected for gtest/1.8.1@bincrafters/stable

See original GitHub issue

When trying to add dependency to gtest:


on call of

cmake .. -DCMAKE_BUILD_TYPE=Debug

I get:

-- Conan: Adjusting output directories
-- Conan: Using cmake global configuration
-- Conan: Adjusting default RPATHs Conan policies
-- Conan: Adjusting language standard
-- Current conanbuildinfo.cmake directory: /home/.../build-test-Debug
-- Conan: Compiler GCC>=5, checking major version 5
-- Conan: Checking correct version: 5
-- Conan: C++ stdlib: libstdc++
-- Conan: Automatic detection of conan settings from cmake
c++: error: $<$<CONFIG:Debug>:>: No such file or directory
c++: error: $<$<CONFIG:Release>:>: No such file or directory
c++: error: $<$<CONFIG:RelWithDebInfo>:>: No such file or directory
c++: error: $<$<CONFIG:MinSizeRel>:>: No such file or directory
-- Conan: Settings= -s;build_type=Debug;-s;compiler=gcc;-s;compiler.version=5;-s;compiler.libcxx=libc++
-- Conan executing: conan install . -s build_type=Debug -s compiler=gcc -s compiler.version=5 -s compiler.libcxx=libc++ -g=cmake
-- ERROR: Invalid setting 'libc++' is not a valid 'settings.compiler.libcxx' value.
Possible values are ['libstdc++', 'libstdc++11']
Read ""

CMake Error at /home/.../cmake/conan.cmake:385 (message):
  Conan install failed='1'
Call Stack (most recent call first):
  /home/.../cmake/conan.cmake:465 (conan_cmake_install)
  /home/.../CMakeLists.txt:12 (conan_cmake_run)

Working on Ubuntu 16.04 LTS with default GCC (5.4.0).

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:14 (1 by maintainers)

github_iconTop GitHub Comments

Yuri6037commented, Apr 30, 2020

Any advancement on this issue? This prevents the build of cross platform projects and v0.14 minimum is required to support MSVC 2019.

verbatomcommented, Mar 14, 2020

@Malacath-92: All observations and findings are listed in this issue including links to a duplicate and a pull request from October 2019 scheduled for milestone 0.16 to which is still open.

As mentioned in the answers of this issue, your current possibilities for dealing with the problem are the following:

  1. revert to v0.13 until a fixed release version is available
  2. locally patch your version of the file

[…] My bad, this issue refers to gtest […]

At least @theovin and I also referred to different projects in our bug reports instead of opening a new issue as the trigger for the problem might be different but the origin seemd to be the same.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting — conan 1.7.4 documentation
You can try to build the package for your settings from sources, ... ERROR: Invalid setting '4.19' is not a valid 'settings.compiler.version' value....
Read more >
troubleshooting · master · RD51 Software and Firmware for ...
You might get a conan-related error, which states that the compiler and the compiler version are not stated. To solve this, go to...
Read more >
Issues by creating a Video Analytics Plugin - Network Optix
I managed to fix the issue. Taking into account the principal error message. ERROR: compiler not defined for compiler.libcxx. Since you have ...
Read more >
Error when using conan to install dependencies - Stack Overflow
The getting started section at step 5 says: If you are using GCC compiler >= 5.1, Conan will set the compiler.libcxx to the...
Read more >
Using conan, how should I decide to use libc++ or libc++11?
Conan detected a GCC version > 5 but has adjusted the 'compiler.libcxx' setting to ... conan profile update settings.compiler.libcxx=libstdc++11 default.
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 Post

No results found

github_iconTop Related Hashnode Post

No results found