Package Details: llvm-bolt 19.1.1-1

Git Clone URL: https://aur.archlinux.org/llvm-bolt.git (read-only, click to copy)
Package Base: llvm-bolt
Description: a post-link optimizer developed to speed up large applications
Upstream URL: https://github.com/llvm/llvm-project/tree/main/bolt
Licenses: Apache-2.0 WITH LLVM-exception
Submitter: ptr1337
Maintainer: ptr1337
Last Packager: ptr1337
Votes: 1
Popularity: 0.002226
First Submitted: 2024-01-09 20:25 (UTC)
Last Updated: 2024-10-01 18:14 (UTC)

Latest Comments

1ohm commented on 2024-04-05 03:51 (UTC) (edited on 2024-04-05 03:51 (UTC) by 1ohm)

The latest llvm-bolt builds will fail with check-bolt. Reason is that check-bolt depends on clang being compiled as well.

Workaround is to remove check-bolt.

I just fixed the PKGBUILD like this:

# Maintainer: Peter Jung ptr1337 <admin@ptr1337.dev>

pkgname=llvm-bolt
pkgver=18.1.3
pkgrel=1
pkgdesc='a post-link optimizer developed to speed up large applications'
url="https://github.com/llvm/llvm-project/tree/main/bolt"
license=('custom:Apache 2.0 with LLVM Exception')
arch=('x86_64')
makedepends=('clang' 'cmake' 'ninja' 'llvm' 'llvm-libs' 'python')
options=(!lto)
source=("https://github.com/llvm/llvm-project/releases/download/llvmorg-$pkgver/llvm-project-$pkgver.src.tar.xz"{,.sig})
sha512sums=('b8b8a00c560bc7d4c4b5d533b92dbd52f2c0254f0acf687e787e8b7fa780cd5d96f6e9709356d2c406c0b36b186dee4de6b1bc1928a97de0bda863fa873e0783'
            'SKIP')
validpgpkeys=('474E22316ABF4785A88C6E8EA2C794A986419D8A'  # Tom Stellard <tstellar@redhat.com>
              'D574BD5D1D0E98895E3BF90044F2485E45D59042') # Tobias Hieta <tobias@hieta.se>

prepare() {
  mkdir -p build
}

build() {
  cd build

  cmake \
    -G Ninja \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_C_COMPILER=clang \
    -DCMAKE_CXX_COMPILER=clang++ \
    -DLLVM_INSTALL_UTILS=ON \
    -DBUILD_SHARED_LIBS:BOOL=OFF \
    -DLLVM_LINK_LLVM_DYLIB:BOOL=OFF \
    -DLLVM_EXTERNAL_LIT=/usr/bin/lit \
    -DLLVM_ENABLE_PROJECTS="bolt" \
    -DLLVM_TARGETS_TO_BUILD="X86;AArch64" \
    ../llvm-project-$pkgver.src/llvm
  ninja bolt
}

check() {
  cd build
  echo "No Check"
}

package () {
  DESTDIR="$pkgdir" ninja -C build install-bolt
}

VorpalWay commented on 2024-03-10 21:54 (UTC)

==> Starting check()...
ninja: error: unknown target 'check-bolt', did you mean 'check-all'?
==> ERROR: A failure occurred in check().
    Aborting...
==> ERROR: Build failed, check /var/lib/aurbuild/x86_64/arvid/build
FAILED: llvm-bolt.stamp 
env -C /home/arvid/.cache/aurutils/sync/llvm-bolt -- aur build --clean --syncdeps -d custom --root /home/custompkgs/custom --chroot --makepkg-conf /etc/makepkg.conf --remove && date --rfc-3339=ns > llvm-bolt.stamp
ninja: build stopped: cannot make progress due to previous errors.
Build failed

@ptr1337 seems like the problem @dansecob was seeing is still there.

ptr1337 commented on 2024-02-01 20:35 (UTC)

Hi!

Thank you, I have committed it.

dansecob commented on 2024-01-30 18:41 (UTC)

Check fails to find ninja.build on my machine. Replacing

check() {
    ninja check-bolt
}

with

check() {
    cd build
    ninja check-bolt
}

properly runs in the build directory. check-bolt still isn't recognized as a target, but check-all works. I checked the targets generated by CMake and didn't see check-bolt, don't know why it is missing.

dansecob commented on 2024-01-22 01:40 (UTC) (edited on 2024-01-22 01:43 (UTC) by dansecob)

As of LLVM 17.0.0-rc1, the signer appears to have switched from Tom Stellard to Tobias Hieta (with key D574BD5D1D0E98895E3BF90044F2485E45D59042). The LLVM package has both PGP keys (https://gitlab.archlinux.org/archlinux/packaging/packages/llvm/-/blob/main/PKGBUILD?ref_type=heads).

Here is the patch to update that signature.

diff --git a/PKGBUILD b/PKGBUILD
index 8d6868a..592eb98 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,7 +12,8 @@ options=(!lto)
 source=("https://github.com/llvm/llvm-project/releases/download/llvmorg-$pkgver/llvm-project-$pkgver.src.tar.xz"{,.sig})
 sha512sums=('6d85bf749e0d77553cc215cbfa61cec4ac4f4f652847f56f946b6a892a99a5ea40b6ab8b39a9708a035001f007986941ccf17e4635260a8b0c1fa59e78d41e30'
             'SKIP')
-validpgpkeys=('474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard <tstellar@redhat.com>
+validpgpkeys=('474E22316ABF4785A88C6E8EA2C794A986419D8A'  # Tom Stellard <tstellar@redhat.com>
+              'D574BD5D1D0E98895E3BF90044F2485E45D59042') # Tobias Hieta <tobias@hieta.se>

 prepare() {
   mkdir -p build