-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[question] Is there any way to get Conan to work with gcc 10? #6538
Comments
Actually it looks like I can just add version 10 in my "~/.conan/settings.yml" file, but even after doing that I'm getting errors with the conan install. It seems like there may still be a bug in here making it think that it should look for "1" instead of "10" during the install.
|
Hi, @tjwrona1992 You did it right, adding it to your settings.yml should be enough (note.- if you are using build-helpers that translate settings to compiler flags, or tools, you may need to modify them in order to take into account new default, interface changes,... until we add official support for it) From the log "Automatic detection of conan settings from cmake" I infer you are using Conan through the Can you run a Thanks |
@jgsogo, the error saying "Invalid setting '1'" occurs when I run |
I'm trying to reproduce the error, but it works in my machine:
Create a very simple conanfile:
And run a create command:
Are you running anything different? Thanks! |
@jgsogo I was trying to compile one of my personal projects that uses Conan to grab a dependency on "GTest" https://github.com/tnt-coders/cpp-dsp This can compile with any C++17 compatible compiler, but I'm trying to use gcc10 to have the ability to use some C++20 features. In addition to Conan this project has a dependency on CMake v14.0 or higher (Although if you don't run the "cmake" commands and just do the The process I went through was:
|
@jgsogo it's also worth mentioning that after I added "1" as a valid compiler it did work, and then I removed the "1" and it continued to work. So it likely requires a full reinstall of Conan (or clearing of all local data) in order to reproduce the issue. |
What Conan version are you using ( |
Can you copy/paste here the full log you get? It will help me to know in which step you are getting the failure. Thanks! |
I will have to see if I can get the same behavior when I get home. I will try uninstalling Conan and reinstalling it then building the project again to see if it triggers the same error. I am using the latest stable version (whatever |
After uninstalling and reinstalling Conan I was able to reproduce the error. The full error message is:
Unfortunately it doesn't provide much more info than you had before :( |
Hi, what do you have in your default profile ( |
The failure is in re.search("([0-9](\.[0-9])?)", out).group() with This is a bug, should be easy to fix, lets try for 1.23 |
I'm trying to upgrade a library I'm working on to use gcc 10 (which is technically not released yet) because I need some of the new C++20 features that aren't available in older versions of gcc. When I try to use Conan to get the dependencies I get an error saying that the compiler is not recognized. Is there any way to get Conan to work with gcc 10 besides waiting until it is officially supported?
This is the error I get if I try:
The text was updated successfully, but these errors were encountered: