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

Issues with Version 1.0.0 #301

Closed
helly25 opened this issue Mar 26, 2024 · 7 comments
Closed

Issues with Version 1.0.0 #301

helly25 opened this issue Mar 26, 2024 · 7 comments

Comments

@helly25
Copy link
Contributor

helly25 commented Mar 26, 2024

When updating to version 1.0.0 for github.com/helly25/mbo #23, then I get issues on Ubuntu.

Details:

    external/llvm_toolchain_llvm/bin/../include/c++/v1/__config:426:14: fatal error: module 'crosstool' is needed but has not been provided, and implicit use of module files is disabled
      426 | #    include <features.h>

So #292 Fails on MacOS if lld is used but passes on Ubuntu and on MacOS with default linker.

Since #294 however on Ubuntu the C++20 modules appear to be active incorrectly. This can also not be disabled by passing necessary compiler flags.

@helly25 helly25 changed the title Issues with Version 1.0 Issues with Version 1.0.0 Mar 26, 2024
@ahojnnes
Copy link

I am facing the same issue. @helly25 Any workaround that you discovered?

@helly25
Copy link
Contributor Author

helly25 commented Apr 23, 2024

I could not find an easy solution. So for the time being I have pinned my repos to a commit hash just before version 1.0.0.

@hcoona
Copy link
Contributor

hcoona commented Jun 26, 2024

--cxxopt=-Xclang --cxxopt=-fno-cxx-modules can mitigate it but we need a fundamental solution.

@jsharpe
Copy link
Member

jsharpe commented Jun 26, 2024

--cxxopt=-Xclang --cxxopt=-fno-cxx-modules can mitigate it but we need a fundamental solution.

@fmeum's fix in #337 should have resolved that issue - are you seeing it even with that patch applied? Appreciate it hasn't made it into a release yet, we're probably overdue cutting a new version.

@helly25
Copy link
Contributor Author

helly25 commented Jul 13, 2024

I tried successfully #337 with https://github.com/helly25/mbo/releases/tag/0.2.27 but I have a private repository where it causes issues. I'll investigate that further.

@helly25
Copy link
Contributor Author

helly25 commented Jul 15, 2024

The issue I now have with the private repo is that _system_module_map now uses ctx.actions.template_dict().join_all() with arg allow_closure = True. That requires Bazel version 7+ which I cannot use yet in that repo.

@helly25
Copy link
Contributor Author

helly25 commented Aug 2, 2024

After applying the fix from #337 the mentioned private repository works fine after upgrading to Bazel 7.2.1.

It also works in v1.1.2 without patching.

@ahojnnes Feel free to reopen the bug if this still fails for you with an actual supported Bazel version.

@helly25 helly25 closed this as completed Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants