The package is broken as of last week. Commit 2980029 removed /llvm/bindings/python.
the
cp -a llvm/bindings/python/llvm "$pkgdir"/usr/lib/python$_py/site-packages/
line must be removed.
Git Clone URL: | https://aur.archlinux.org/llvm-git.git (read-only, click to copy) |
---|---|
Package Base: | llvm-git |
Description: | runtime libraries for llvm-git |
Upstream URL: | https://llvm.org/ |
Keywords: | clang git lld lldb llvm polly |
Licenses: | custom:Apache 2.0 with LLVM Exception |
Conflicts: | llvm-libs |
Provides: | aur-llvm-libs-git, llvm-libs |
Submitter: | yurikoles |
Maintainer: | rjahanbakhshi |
Last Packager: | rjahanbakhshi |
Votes: | 116 |
Popularity: | 0.001359 |
First Submitted: | 2018-12-05 13:56 (UTC) |
Last Updated: | 2023-05-05 12:51 (UTC) |
The package is broken as of last week. Commit 2980029 removed /llvm/bindings/python.
the
cp -a llvm/bindings/python/llvm "$pkgdir"/usr/lib/python$_py/site-packages/
line must be removed.
Please add
-D LLVM_ENABLE_DUMP=ON
to the cmake command as rusticl needs llvm build with that option .
@Lone_Wolf,
Thanks. Do we need bindings here? I see it's turned off in the [Extra] and your llvm-minimal. If not, I'll turn it off.
Edit: Never mind the above. I'll be updating the version number as there are no Python binding providers for llvm-git.
It's in package_llvm-git()
_py="3.10"
cd llvm-project
# Install Python bindings and optimize them
cp -a llvm/bindings/python/llvm "$pkgdir"/usr/lib/python$_py/site-packages/
cp -a clang/bindings/python/clang "$pkgdir"/usr/lib/python$_py/site-packages/
_python_optimize "$pkgdir"/usr/lib/python$_py/site-packages
@AtticFinder65536,
Can you point out where in the PKGBUILD python version is hard-coded? Thanks,
python 3.10 reference is hardcoded in PKGBUILD, it needs to be updated to 3.11 now
New package: https://aur.archlinux.org/packages/llvm-opt-git
llvm-opt-git can be installed alongside llvm-git/llvm. It installs to /opt. It builds with make rather than ninja.
The diff is quite long: https://aur.archlinux.org/cgit/aur.git/commit/PKGBUILD?h=llvm-opt-git&id=f39b1c131624d76cb111cc7c6c2db26387cd3166
we now have flags for the repo cloning which saves quite some bandwith:
GITFLAGS="--filter=tree:0" makepkg
GITFLAGS="--depth=1" makepkg
GITFLAGS="--depth=1" paru -S linux-mainline
--depth works with all repositories, --filter in case the repo supports partial clones. it even updates the repo correctly as soon as this is merged: https://gitlab.archlinux.org/pacman/pacman/-/merge_requests/53
if you give it a try and make a comment into the pull request if something does not work i'd be glad.
@rjahanbakhshi, thanks, I was able to build it in a clean chroot like you said.
I don't know if it is still necessary, but I am using an up-to-date arch linux, with mesa-git
AUR package, and somehow only noticed now the recommendation to use llvm from AUR. I also have opencl-amd
installed, and that seems to have files related to hsa.
@ivanmlerner,
I don't see any errors in building this package in a clean chroot environment. Can you share some details about your environment and the commands you're using to build this?
Pinned Comments
Lone_Wolf commented on 2021-08-16 11:26 (UTC)
When you have this package installed applications that are built against repo-llvm/clang WILL fail unless they are rebuild against this package.
This includes QTCreator, kdevelop , mesa, intel-compute-runtime, gnome-builder to name a few.
Lone_Wolf commented on 2020-08-22 12:18 (UTC) (edited on 2021-02-06 12:51 (UTC) by Lone_Wolf)
Archlinux currently has 3 llvm git implementations
This package
llvm-minimal-git
packages created & maintained by Lordheavy, an arch developer
Lone_Wolf commented on 2019-04-12 20:41 (UTC) (edited on 2019-12-16 22:45 (UTC) by Lone_Wolf)
I've looked good at clang-trunk , llvm-svn, repo llvm/clang packages and think this package is now on route to become a worthy successor to llvm-svn .
llvm-libs-git holds the runtime libraries.
llvm-git
The Package now uses a new environment variable to make ninja behave, NINJAFLAGS. If you want to use it adjust the snippet below to your desired values and add it to makepkg.conf.
Incase you are satisfied with ninja defaults you don't need to do anything.
The check() function fails rather often, but I do suggest to build with them. If build fails due to test failure you can add --nocheck to skip the tests.