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

boost/<all versions>: error: Cannot configure toolset clang-win: no 'clang-cl.exe' command found or given #18764

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stepanzorin
Copy link

@stepanzorin stepanzorin commented Jul 20, 2023

about the problem: #18302 (my issue)

Not only me came across with the problem. Today, an unfamiliar person contacted me inquiring about how I resolved a particular issue. As a result, I have decided to proceed with creating a pull request that addresses the problem. Please pay special attention to it.

The message in telegram:
изображение

Specify library name and version: lib/1.0


…Windows. I added a couple of things for clang desc
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@github-actions
Copy link
Contributor

🤖 Beep Boop! This pull request is making changes to 'recipes/boost//'.

👋 @grafikrobot @Hopobcn @jwillikers you might be interested. 😉

@conan-center-bot

This comment has been minimized.

@ghost
Copy link

ghost commented Jul 20, 2023

@conan-center-bot

This comment has been minimized.

@stale
Copy link

stale bot commented Oct 15, 2023

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Copy link
Contributor

This pull request has been automatically closed because it has not had recent activity. Thank you for your contributions.

@github-actions github-actions bot closed this May 28, 2024
@Todiq
Copy link

Todiq commented Aug 1, 2024

Still an issue to this day. Using boost/1.85.0#939ac8280c3683bfacd3bb6d89803d9b%1722339052.397

Could you please have a look @jcar87?

@jcar87
Copy link
Contributor

jcar87 commented Aug 1, 2024

Assigning this to

Still an issue to this day. Using boost/1.85.0#939ac8280c3683bfacd3bb6d89803d9b%1722339052.397

Could you please have a look @jcar87?

Hi @Todiq ! Thanks for reaching out.
Could you provide details regarding your Conan profile and your setup? Or just simply confirm if your environment is the same as the one reported here #18302

I will try to reproduce and issue a fix (looking at the changes in this PR it's unclear why they would fix the issue).

@stepanzorin
Copy link
Author

Hi @jcar87 !

Good to see you here. My PR fixes the issue for the environment: Windows + llvm clang. Linux users have not that problem. And my PR fixing the issue for version 1.85.0 is the same. Nothing breaks.

If my idea to solve the problem works, I will glad participate in a merge. Tag me in any moment.

@Todiq
Copy link

Todiq commented Aug 2, 2024

Hi @Todiq ! Thanks for reaching out. Could you provide details regarding your Conan profile and your setup? Or just simply confirm if your environment is the same as the one reported here #18302

@jcar87

Here is my setup:

version: 2.6.0
conan_path: D:\venv\Scripts\conan
python
  version: 3.9.13
  sys_version: 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:36:42) [MSC v.1929 64 bit (AMD64)]
  sys_executable: D:\venv\Scripts\python.exe
  is_frozen: False
  architecture: AMD64
system
  version: 10.0.22631
  platform: Windows-10-10.0.22631-SP0
  system: Windows
  release: 10
  cpu: Intel64 Family 6 Model 186 Stepping 3, GenuineIntel

I installed LLVM 17.0.6 through https://github.com/llvm/llvm-project/releases/tag/llvmorg-17.0.6 and added it to the user's path

My profile is the following:

{% set compiler, version, compiler_exe = detect_api.detect_clang_compiler(compiler_exe="clang") %}
{% set version = detect_api.default_compiler_version(compiler, version) %}
{% set os = detect_api.detect_os() %}

[settings]
arch={{detect_api.detect_arch()}}
build_type=Release
compiler={{compiler}}
compiler.cppstd=17
compiler.version={{version}}
os={{os}}

[conf]
tools.cmake.cmaketoolchain:generator=Ninja
tools.cmake.cmake_layout:build_folder_vars = ["settings.os", "settings.compiler", "settings.compiler.version", "settings.arch"]
tools.build:compiler_executables = {"c": "clang-cl", "cpp": "clang-cl", "rc": "llvm-rc"}
tools.build:cxxflags=["-fansi-escape-codes -fcolor-diagnostics"]
tools.build:exelinkflags=["-fuse-ld=lld"]
tools.build:sharedlinkflags=["-fuse-ld=lld"]

{% if os == "Windows" %}
	mypkg*/*:tools.env.virtualenv:powershell=True
	tools.cmake.cmaketoolchain:generator=Ninja Multi-Config
{% endif %}

conanfile:

[requires]
boost/1.85.0

[options]
boost*:bzip2=False
boost*:shared=True
boost*:zlib=False
boost*:without_atomic=False
boost*:without_charconv=True
boost*:without_chrono=False
boost*:without_cobalt=True
boost*:without_container=False
boost*:without_context=True
boost*:without_contract=True
boost*:without_coroutine=True
boost*:without_date_time=False
boost*:without_exception=False
boost*:without_fiber=True
boost*:without_filesystem=False
boost*:without_graph=True
boost*:without_graph_parallel=True
boost*:without_iostreams=False
boost*:without_json=True
boost*:without_locale=False
boost*:without_log=False
boost*:without_math=True
boost*:without_mpi=True
boost*:without_nowide=True
boost*:without_program_options=False
boost*:without_python=True
boost*:without_random=False
boost*:without_regex=False
boost*:without_serialization=True
boost*:without_stacktrace=True
boost*:without_system=False
boost*:without_test=True
boost*:without_thread=False
boost*:without_timer=True
boost*:without_type_erasure=True
boost*:without_url=True
boost*:without_wave=True

And the command:

conan install --profile:all clang --build=missing --remote conancenter .

@Todiq
Copy link

Todiq commented Aug 7, 2024

Hello @jcar87

Any news?

@Todiq
Copy link

Todiq commented Sep 3, 2024

@jcar87 @perseoGI Can any of you please check this PR when you have a moment?

It would be very useful to be able to build using clang-cl, especially in CI in cross-building scenarios, when jobs run on Linux

@perseoGI perseoGI reopened this Sep 4, 2024
@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ❌

Sorry, the build is only launched for Access Request users. You can request access writing in this issue.

Conan v2 pipeline ❌

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

The v2 pipeline failed. Please, review the errors and note this is required for pull requests to be merged. In case this recipe is still not ported to Conan 2.x, please, ping @conan-io/barbarians on the PR and we will help you.

Sorry, the build is only launched for Access Request users. You can request access writing in this issue.

@Todiq
Copy link

Todiq commented Sep 4, 2024

Thanks to have opened it back. @stepanzorin, would you mind having a look? Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants