-
Notifications
You must be signed in to change notification settings - Fork 993
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
[bug] Detecting profile crashes #15712
Comments
Thanks for reporting this @jputcu It seems there is a gap for FreeBSD if it cannot detect the clang compiler: if platform.system() in ["Darwin", "FreeBSD"]:
clang, clang_version, compiler_exe = _clang_compiler() # prioritize clang
if clang:
return clang, clang_version, compiler_exe
return That last return is the offending one, lets fix it for next release. |
Apparently on GhostBSD, I need to install the following: Then
|
Yes, if the compiler is installed, then |
Fixed in #15832 for next Conan 2.2, thanks again for reporting! |
Environment details
Steps to reproduce
conan profile detect
Logs
ERROR: Traceback (most recent call last):
File "/home/jorisp/.local/lib/python3.9/site-packages/conan/cli/cli.py", line 281, in main
cli.run(args)
File "/home/jorisp/.local/lib/python3.9/site-packages/conan/cli/cli.py", line 191, in run
command.run(self._conan_api, args[0][1:])
File "/home/jorisp/.local/lib/python3.9/site-packages/conan/cli/command.py", line 158, in run
sub.run(conan_api, parser, *args)
File "/home/jorisp/.local/lib/python3.9/site-packages/conan/cli/command.py", line 172, in run
info = self._method(conan_api, parent_parser, self._parser, *args)
File "/home/jorisp/.local/lib/python3.9/site-packages/conan/cli/commands/profile.py", line 68, in profile_detect
detected_profile = conan_api.profiles.detect()
File "/home/jorisp/.local/lib/python3.9/site-packages/conan/api/subapi/profiles.py", line 142, in detect
settings = detect_defaults_settings()
File "/home/jorisp/.local/lib/python3.9/site-packages/conans/client/conf/detect.py", line 17, in detect_defaults_settings
compiler, version, compiler_exe = detect_default_compiler()
TypeError: cannot unpack non-iterable NoneType object
ERROR: cannot unpack non-iterable NoneType object
The text was updated successfully, but these errors were encountered: