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

llvmPackages_{15,16,git}.clang.cc: Fix canExecute == true cross #250612

Closed
wants to merge 2 commits into from
Closed

llvmPackages_{15,16,git}.clang.cc: Fix canExecute == true cross #250612

wants to merge 2 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Aug 21, 2023

Description of changes

Reported here:

#226551 (comment)

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.11 Release Notes (or backporting 23.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@ofborg ofborg bot added 6.topic: cross-compilation Building packages on a different platform than they will be used on 10.rebuild-darwin: 0 10.rebuild-linux: 0 labels Aug 21, 2023
@Artturin Artturin changed the title clang_15: fix cross to musl64 llvmPackages_{15,16,git}: Fix canExecute == true cross Aug 21, 2023
@Artturin Artturin changed the title llvmPackages_{15,16,git}: Fix canExecute == true cross llvmPackages_{15,16,git}.clang.cc: Fix canExecute == true cross Aug 21, 2023
Fixes `pkgsCross.musl64.llvmPackages_16.clang.cc`.

buildLlvmTools shouldn't be needed at all when build canExecute host,
but i'll need more work to fix.

`build/build.ninja`

has lines like

```
build include/clang/AST/TypeNodes.inc | ${cmake_ninja_workdir}include/clang/AST/TypeNodes.inc: CUSTOM_COMMAND bin/clang-tblgen bin/clang-tblgen /build/clang-src-16.0.6/clang/include/clang/Basic/TypeNodes.td || bin/clang-tblgen lib/Support/obj.clangSupport
  COMMAND = cd /build/clang-src-16.0.6/clang/build && clang-tblgen -gen-clang-type-nodes ...
```

`&& clang-tblgen` should be `&& bin/clang-tblgen`

Maybe `"-DCLANG_TABLEGEN=bin/clang-tblgen"` would work

Reported here:

  #226551 (comment)

Co-authored-by: Artturin <Artturin@artturin.com>
@Artturin
Copy link
Member

Better fix in #251853

@Artturin Artturin closed this Aug 27, 2023
@ghost ghost deleted the pr/clang/fix-fix-cross branch October 22, 2023 11:38
@rrbutani rrbutani added the 6.topic: llvm/clang Issues related to llvmPackages, clangStdenv and related label May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: cross-compilation Building packages on a different platform than they will be used on 6.topic: llvm/clang Issues related to llvmPackages, clangStdenv and related 10.rebuild-darwin: 0 10.rebuild-linux: 0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants