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

[package] <fmt>/<8.1.1>: Invalid setting 'baremetal' is not a valid 'settings.os' value. #9058

Closed
Ambrase opened this issue Jan 24, 2022 · 6 comments · Fixed by #9098
Closed
Labels
bug Something isn't working

Comments

@Ambrase
Copy link

Ambrase commented Jan 24, 2022

Package and Environment Details (include every applicable attribute)

  • Package Name/Version: fmt/8.1.1
  • Operating System+version: Linux Centos 8.4.2105
  • Compiler+version: GCC 9
  • Conan version: conan 1.44.1
  • Python version: Python 3.8

Conan profile (output of conan profile show default or conan profile show <profile> if custom profile is in use)

[settings]
os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=9
compiler.libcxx=libstdc++11
build_type=Release
[options]
[conf]
[build_requires]
[env]

Steps to reproduce (Include if Applicable)

Try to install fmt/8.1.1

Fmt can't be installed for me anymore. It seems this recipe is incorrect to the current Conan version
https://conan.io/center/fmt?tab=recipe

        elif self.settings.os == "baremetal":

Conan raises the following error:
ERROR: fmt/8.1.1: Error in config_options() method, line 52
elif self.settings.os == "baremetal":
ConanException: Invalid setting 'baremetal' is not a valid 'settings.os' value.
Possible values are ['AIX', 'Android', 'Arduino', 'Emscripten', 'FreeBSD', 'Linux', 'Macos', 'Neutrino', 'SunOS', 'Windows', 'WindowsCE', 'WindowsStore', 'iOS', 'tvOS', 'watchOS']
Read "http://docs.conan.io/en/latest/faq/troubleshooting.html#error-invalid-setting"

@Ambrase Ambrase added the bug Something isn't working label Jan 24, 2022
@ivabrajer
Copy link
Contributor

Same thing happening for fmt/8.0.1

Package and Environment Details (include every applicable attribute)

  • Package Name/Version: fmt/8.0.1
  • Operating System+version: Ubuntu 20.04.2 LTS
  • Compiler+version: Clang v11.1.0
  • Conan version: conan 1.44.1
  • Python version: Python 3.8.10

Conan profile

[settings]
arch=x86_64
arch_build=x86_64
build_type=Debug
compiler=clang
compiler.cppstd=17
compiler.libcxx=libstdc++11
compiler.sanitizer=None
compiler.version=11
os=Linux
os_build=Linux
[options]
[build_requires]
[env]
CFLAGS=
CXXFLAGS=

@SpaceIm
Copy link
Contributor

SpaceIm commented Jan 24, 2022

Your settings.yml is outdated. baremetal is a valid os identifier in conan 1.43.0

This issue is similar to #8550

/cc @memsharded @lasote, because it refers to how conan handles missing os or compiler identifier in settings.yml

@ivabrajer
Copy link
Contributor

I don't think that's it. I've cleaned entire local Conan cache just in case and the issue is still happening. But I'll check it out once more tomorrow.

@SpaceIm
Copy link
Contributor

SpaceIm commented Jan 24, 2022

At least it's in the release note of conan 1.43.0: https://github.com/conan-io/conan/releases/tag/1.43.0

@JorgenPo
Copy link
Contributor

I had the similar issue and the solution that worked for me was:
In conan directory you should have settings.yml.new file with the new conan configuration, you need to merge or replace the settings.yml with settings.yml.new to solve the issue

@ivabrajer
Copy link
Contributor

@JorgenPo Thanks, I confirm that updating settings.yml file helped and resolved the issue for me.

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
4 participants