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

CI builds on MacOS using compiler.cppstd=gnu98 and failing #1032

Closed
cqc-alec opened this issue Sep 18, 2023 · 1 comment · Fixed by #1033
Closed

CI builds on MacOS using compiler.cppstd=gnu98 and failing #1032

cqc-alec opened this issue Sep 18, 2023 · 1 comment · Fixed by #1033
Labels
bug Something isn't working

Comments

@cqc-alec
Copy link
Collaborator

It looks like this must be due to a change in conan 2.0.11.

Build logs before conan 2.0.11:

Found apple-clang 14.0
apple-clang>=13, using the major as version
WARN: This profile is a guess of your environment, please check it.
WARN: Defaulted to cppstd='gnu17' for apple-clang.
WARN: The output of this command is not guaranteed to be stable and can change in future Conan versions.
WARN: Use your own profile files for stability.
Saving detected profile to /Users/runner/.conan2/profiles/default
Detected profile:
[settings]
arch=x86_64
build_type=Release
compiler=apple-clang
compiler.cppstd=gnu17
compiler.libcxx=libc++
compiler.version=14
os=Macos

Build logs with conan 2.0.11:

detect_api: Found apple-clang 14.0
detect_api: apple-clang>=13, using the major as version

Detected profile:
WARN: This profile is a guess of your environment, please check it.
WARN: Defaulted to cppstd='gnu17' for apple-clang.
WARN: The output of this command is not guaranteed to be stable and can change in future Conan versions.
WARN: Use your own profile files for stability.
Saving detected profile to /Users/runner/.conan2/profiles/default
[settings]
arch=x86_64
build_type=Release
compiler=apple-clang
compiler.cppstd=gnu98
compiler.libcxx=libc++
compiler.version=14
os=Macos

The error is:

 ERROR: There are invalid packages:
nlohmann_json/3.11.2: Invalid: Current cppstd (gnu98) is lower than the required C++ standard (11).
@cqc-alec cqc-alec added the bug Something isn't working label Sep 18, 2023
@cqc-alec
Copy link
Collaborator Author

Possibly due to conan-io/conan#14578 .

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

Successfully merging a pull request may close this issue.

1 participant