Allow for non-git-tagged LLVM versioning with the catalyst-llvm-dev package
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 57/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- cmake
- Domain
- build-system
Research direction
Read mlir/cmake/LLVMDevCPackConfig.cmake, especially the guard at lines 42–47 linked in the issue, and trace how the LLVM version tag is formed for catalyst-llvm-dev. Check how the guard behaves for commit-tagged and release LLVM versions; done means release versions can be packaged without weakening protection against naming clashes between builds from different commits.
Written by the indexing model from the issue text.
Description
#3332 added CMake & CPack configs to create the catalyst-llvm-dev package, which contains headers and libs from LLVM/MLIR so that downstream projects can build against Catalyst without building it from source (the catalyst-dev and catalyst-runtime-dev packages are also required).
At the time of writing, Catalyst pins its LLVM dependency to a specific git commit, identified by its commit hash, rather than an LLVM release. Therefore, in order to uniquely identify the catalyst-llvm-dev version, we append the (truncated) commit hash to the LLVM version tag. For example:
catalyst-llvm-dev-Linux-x86_64-22.0.0git-8f264586.tar.gz
Before creating the package, a guard was put in place to ensure that the commit hash is present in the LLVM version tag to avoid naming clashes from two LLVM builds from the same version but different commit:
However, this will break in the future if Catalyst ever pins to a release of LLVM, rather than a specific commit. Should Catalyst make this change to its LLVM dependency, we will need to update this guard accordingly.
- Dominant language
- Python
- Stars
- 234
- Forks
- 84
- Avg merge
- 3d 11h
- Merged PRs (30d)
- 78
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from PennyLaneAI/catalyst
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
PennyLaneAI/catalyst#3489 ·
Maintainers usually reply within 1 day
-
Fix platform tag for macOS wheelsMay be free again @sarehaskari17 claimed this 107 days ago, and no pull request is open. OpenCI/Build enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
PennyLaneAI/catalyst#2907 · 2 comments ·
Maintainers usually reply within 1 day
-
The docs page for `CompileOptions` is missing a description for the `target` attributePossibly taken @daxsh2803 claimed this 68 days ago. Opendocumentation
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
PennyLaneAI/catalyst#2653 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 68/100
PennyLaneAI/catalyst#3550 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 57/100
PennyLaneAI/catalyst#3497 ·
Maintainers usually reply within 1 day
All issues in PennyLaneAI/catalyst
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
521xueweihan/HelloGitHub#4729 ·
-
auto-reported bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
needs-triage type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
pollen-robotics/reachy_mini_conversation_app#631 ·
Maintainers usually reply within 7 days
-
stix-atlas.json: the same relationship id is used for several different mitigates relationshipsOpen
Difficulty 2/5 1-3 hours Newbie friendliness 76/100