Package Details: compiler-rt15 15.0.7-2

Git Clone URL: https://aur.archlinux.org/compiler-rt15.git (read-only, click to copy)
Package Base: compiler-rt15
Description: Compiler runtime libraries for clang 15
Upstream URL: https://compiler-rt.llvm.org/
Licenses: custom:Apache 2.0 with LLVM Exception
Submitter: foutrelis
Maintainer: greyltc
Last Packager: greyltc
Votes: 10
Popularity: 0.57
First Submitted: 2024-03-09 10:51 (UTC)
Last Updated: 2025-05-06 16:18 (UTC)

Latest Comments

5ila5 commented on 2025-09-27 14:26 (UTC) (edited on 2025-09-28 18:50 (UTC) by 5ila5)

@La_MouettE

There is actually an upstream patch you can apply https://github.com/llvm/llvm-project/pull/137403

diff --git a/PKGBUILD b/PKGBUILD
index 0f837d0..106df0c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,18 +12,22 @@ makedepends_x86_64=('lib32-gcc-libs')
 options=('staticlibs')
 _source_base=https://github.com/llvm/llvm-project/releases/download/llvmorg-$pkgver
 source=($_source_base/compiler-rt-$pkgver.src.tar.xz{,.sig}
-        $_source_base/cmake-$pkgver.src.tar.xz{,.sig})
+        $_source_base/cmake-$pkgver.src.tar.xz{,.sig}
+        https://github.com/llvm/llvm-project/commit/59978b21ad9c65276ee8e14f26759691b8a65763.patch
+)
 sha256sums=('353832c66cce60931ea0413b3c071faad59eefa70d02c97daa8978b15e4b25b7'
             'SKIP'
             '8986f29b634fdaa9862eedda78513969fe9788301c9f2d938f4c10a3e7a3e7ea'
-            'SKIP')
+            'SKIP'
+            'ccb40c999aecdf32875b8800e5a87db2e899aede2eeec13228fcb6a76db83274'
+)
 validpgpkeys=('474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard <tstellar@redhat.com>

 prepare() {
   cd "${srcdir}"
   sed 's,^#include <string>,#include <string>\n#include <cstdint>,' --in-place compiler-rt-${pkgver}.src/lib/orc/error.h
   cd -
-
+  patch -d compiler-rt-${pkgver}.src -Np2 -i "${srcdir}/59978b21ad9c65276ee8e14f26759691b8a65763.patch"
   mv cmake{-$pkgver.src,}
   cd compiler-rt-$pkgver.src
   mkdir build

La_MouettE commented on 2025-09-22 20:46 (UTC)

The build currently fails due to removed features from glibc 2.42 (see https://github.com/llvm/llvm-project/issues/137321). I have written a patch for this aur repository to fix this, feel free to include it in your package if you can. Best !

AndrewRadev commented on 2024-07-06 18:14 (UTC)

The cmake error with load_llvm_config seems to be fixable by adding the line -DLLVM_CONFIG_PATH=/usr/bin/llvm-config-15 to the cmake_args list in the build step:

build() {
  cd compiler-rt-$pkgver.src/build

  local cmake_args=(
    -G Ninja
    -DLLVM_CONFIG_PATH=/usr/bin/llvm-config-15
    -DCMAKE_BUILD_TYPE=Release
    -DCMAKE_INSTALL_PREFIX=/usr/lib/llvm15
    -DCMAKE_SKIP_RPATH=ON
    -DCOMPILER_RT_INSTALL_PATH=/usr/lib/llvm15/lib/clang/$pkgver
  )
  cmake .. "${cmake_args[@]}"
  ninja
}

fboerman commented on 2024-06-23 15:25 (UTC)

I get the same error :( package doesnt work and I need this for postgresql14

LukeLabrie commented on 2024-05-04 13:51 (UTC)

I am getting this error:

CMake Error at cmake/Modules/CompilerRTUtils.cmake:300 (message):
  llvm-config failed with status 1
Call Stack (most recent call first):
  CMakeLists.txt:71 (load_llvm_config)