built just fine on 14.10, built just fine today - 20.0.0_r515197.37ad65ffb6b8-1
Search Criteria
Package Details: clang-minimal-git 20.0.0_r510973.d6d60707ec2b-3
Package Actions
Git Clone URL: | https://aur.archlinux.org/llvm-minimal-git.git (read-only, click to copy) |
---|---|
Package Base: | llvm-minimal-git |
Description: | C language family frontend for LLVM (trimmed down git version) |
Upstream URL: | https://llvm.org/ |
Licenses: | Apache-2.0 WITH LLVM-exception |
Conflicts: | clang, compiler-rt |
Provides: | clang, clang-analyzer, clang-tools-extra, compiler-rt |
Submitter: | Lone_Wolf |
Maintainer: | Lone_Wolf |
Last Packager: | Lone_Wolf |
Votes: | 5 |
Popularity: | 0.009597 |
First Submitted: | 2019-05-14 19:32 (UTC) |
Last Updated: | 2024-09-07 14:04 (UTC) |
Dependencies (17)
- clang-libs-minimal-gitAUR
- gcc-libs (gcc-libs-gitAUR, gccrs-libs-gitAUR, gcc11-libsAUR, gcc-libs-snapshotAUR)
- glibc (glibc-gitAUR, glibc-linux4AUR, glibc-eacAUR, glibc-eac-binAUR, glibc-eac-rocoAUR)
- llvm-libs-minimal-gitAUR
- cmake (cmake-gitAUR) (make)
- git (git-gitAUR, git-glAUR) (make)
- libedit (make)
- libffi (libffi-gitAUR) (make)
- libxcrypt (libxcrypt-gitAUR) (make)
- libxml2 (libxml2-gitAUR, libxml2-2.9AUR) (make)
- ncurses (ncurses-gitAUR) (make)
- python (python37AUR, python311AUR, python310AUR) (make)
- python-setuptools (make)
- zstd (zstd-gitAUR, zstd-staticAUR) (make)
- llvm-minimal-gitAUR (optional) – referenced by some clang headers
- openmp (optional) – OpenMP support in clang with -fopenmp
- python (python37AUR, python311AUR, python310AUR) (optional) – for scan-view, scan-build, git-clang-format, clang-rename and python bindings
Required by (1327)
- aax-bruteforce (requires clang) (make)
- across (requires clang) (make)
- actionfps-client (requires clang) (make)
- actionfps-common (requires clang) (make)
- actionfps-server (requires clang) (make)
- activate-linux (requires clang) (make)
- activate-linux-wayland-git (requires clang) (make)
- adaptivecpp-common-git (requires clang) (make)
- adaptivecpp-cpu-git (requires clang) (make)
- adaptivecpp-opencl-git (requires clang) (make)
- adaptivecpp-rocm-git (requires clang) (make)
- adscript (requires clang) (make)
- aero2solver (requires clang) (make)
- aewm++ (requires clang) (make)
- air-git (requires clang) (make)
- aircrack-ng-clang-git (requires clang) (make)
- alvr (requires clang) (make)
- alvr-git (requires clang) (make)
- alvr-nvidia (requires clang) (make)
- ambuild-git (requires clang)
- Show 1307 more...
Sources (1)
d3vilguard commented on 2024-10-16 07:27 (UTC)
Lone_Wolf commented on 2024-10-14 22:23 (UTC) (edited on 2024-10-14 22:25 (UTC) by Lone_Wolf)
Sounds like you are using customised makepkg.conf/pacman.conf as lld is the llvm linker and clean chroot builds are meant to use gcc & ld .
Also LLVM_ENABLED_SHARED_LIBS=ON is only meant for use by llvm developers in special cases.
Try re-creating the chroot from scratch with $ mkarchroot $CHROOT/root base-devel
and only edit the mirrorlist.
mdupont commented on 2024-10-14 15:37 (UTC) (edited on 2024-10-14 15:38 (UTC) by mdupont)
thank you for your response. I just tested this build using regular makepkg -si
and it works so long as I set:
-D LLVM_PARALLEL_LINK_JOBS=1
-D LLVM_ENABLED_SHARED_LIBS=ON
-D LLVM_ENABLE_LLD=ON
in the PKGBUILD
, but for some reason when trying with makechrootpkg -c -r $CHROOT
it gives
CMake Error at cmake/modules/HandleLLVMOptions.cmake:412 (message):
Host compiler does not support '-fuse-ld=lld'. Please make sure that 'lld'
is installed and that your host compiler can compile a simple program when
given the option '-fuse-ld=lld'.
Call Stack (most recent call first):
CMakeLists.txt:1019 (include)
I'm very new to clean chroot building and recently moved away from using AUR helpers, so I'm struggling with researching how to fix this. I set up the chroot according to the wiki, but maybe there was something non-trivial I'm meant to do for the compiler to work correctly.
Lone_Wolf commented on 2024-10-14 10:55 (UTC)
No build issues with rev 20.0.0_r514923.bec839d8eed9 .
Could be an upstream issue, try again. If it still fails look in the aur/llvm-minimal-git folder for files ending with .log .
mdupont commented on 2024-10-13 23:07 (UTC) (edited on 2024-10-13 23:07 (UTC) by mdupont)
building in a clean chroot fails, but error is not descriptive. Steps to reproduce
[base] [mdupont@arch-g14 ~] :) cd aur
[base] [mdupont@arch-g14 aur] :) cd llvm-minimal-git
[base] [mdupont@arch-g14 llvm-minimal-git] (master) :) makechrootpkg -c -r $CHROOT
...
[ 43%] Built target obj.clangBasic
make: *** [Makefile:156: all] Error 2
make: Leaving directory '/build/llvm-minimal-git/src/_build'
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Build failed, check /home/mdupont/chroot/mdupont/build
this error is not descriptive enough for me to diagnose the problem on my own. Any hints?
d3vilguard commented on 2024-04-01 19:56 (UTC) (edited on 2024-04-01 19:57 (UTC) by d3vilguard)
@wustdsh I'm so caught up in my things that I didn't bother to look and just reported.
Original line:
rm "$pkgdir"/usr/lib/clang/19/lib/{i386-pc-linux-gnu,x86_64-pc-linux-gnu}/*.a
Only removed i386-pc-linux-gnu
Left:
rm "$pkgdir"/usr/lib/clang/19/lib/x86_64-pc-linux-gnu/*.a
Builds just fine. @Lone_Wolf
d3vilguard commented on 2024-03-31 06:35 (UTC) (edited on 2024-03-31 08:16 (UTC) by d3vilguard)
Failing:
warning: no files found matching 'TODO'
warning: no previously-included files matching '*pyc' found anywhere in distribution
warning: no previously-included files matching '*~' found anywhere in distribution
no previously-included directories found matching 'tests/Output'
no previously-included directories found matching 'tests/*/Output'
no previously-included directories found matching 'tests/*/*/Output'
no previously-included directories found matching 'tests/*/*/*/Output'
adding license file 'LICENSE.TXT'
writing manifest file 'lit.egg-info/SOURCES.txt'
Copying lit.egg-info to /build/llvm-minimal-git/pkg/llvm-minimal-git/usr/lib/python3.11/site-packages/lit-19.0.0.dev0-py3.11.egg-info
running install_scripts
Installing lit script to /build/llvm-minimal-git/pkg/llvm-minimal-git/usr/bin
~/llvm-minimal-git/src
rm: cannot remove '/build/llvm-minimal-git/pkg/llvm-minimal-git/usr/lib/clang/19/lib/i386-pc-linux-gnu/*.a': No such file or directory
==> ERROR: A failure occurred in package_llvm-minimal-git().
Aborting...
==> ERROR: Build failed, check /home/georgi/Documents/chroot/georgi/build
ps,
curl is currently broken (curl-8.7.1-3) and git+https will fail downloading the source. Downgrading curl (8.6.0-4) works.
Lone_Wolf commented on 2024-03-25 21:42 (UTC)
Did you include base-devel when creating the chroot ?
You're not supposed to add makedepends through arch-nspawn but should let makechrootpkg determine makedepends & depends at build time. However if you do want to add makedeps that way why did you leave out libffi, ncurses, libxml2 and libxcrypt ?
Which revision are you trying to build ?
jansalleine commented on 2024-03-25 09:12 (UTC)
I get a CMake error when trying to build this in a clean chroot:
CMake Error: The inter-target dependency graph contains the following strongly connected component (cycle):
[... a ton of targets ...]
At least one of these targets is not a STATIC_LIBRARY. Cyclic dependencies are allowed only among static libraries.
CMake Generate step failed. Build files cannot be regenerated correctly.
Steps to reproduce:
- Set up clean chroot as described in the wiki
- install dependencies:
arch-nspawn $CHROOT/root pacman -S git cmake libedit python python-setuptools
git clone https://aur.archlinux.org/llvm-minimal-git.git
cd llvm-minimal-git
and thenmakechrootpkg -c -r $CHROOT
Pinned Comments
Lone_Wolf commented on 2022-11-02 11:39 (UTC)
During building you may encounter lots of coredumps, slowing build down or even dramatically reducing the responsiveness of your system.
See https://wiki.archlinux.org/title/Core_dump for solutions/workarounds .
Lone_Wolf commented on 2020-08-22 12:30 (UTC) (edited on 2020-08-22 12:31 (UTC) by Lone_Wolf)
Archlinux currently has 3 llvm git implementations
this package
llvm-git
packages created & maintained by Lordheavy, an arch developer
Lone_Wolf commented on 2019-08-25 12:39 (UTC) (edited on 2021-01-30 21:15 (UTC) by Lone_Wolf)
Why does this package exist ?
Llvm & aur llvm-git are intended to provide a full development environment of llvm/clang suite that can replace eachother completely (aur llvm-git adds some xtra functionality)
llvm-minimal-git is a stripped-down llvm trunk build with these goals :
Some of the things that are stripped out :
Maintainers (and users) should only depend on llvm-miminal-git after verifying it satisfies what they need.
Lone_Wolf commented on 2019-08-21 13:51 (UTC) (edited on 2024-02-24 20:50 (UTC) by Lone_Wolf)
When building this you are likely to see test failures in terminal output / logs.
The command used for the tests has been changed to continue regardless of failures. Incase you don't want to run the tests you can use --nocheck option of makepkg.