Package Base Details: llvm-minimal-git

Git Clone URL: https://aur.archlinux.org/llvm-minimal-git.git (read-only, click to copy)
Submitter: Lone_Wolf
Maintainer: Lone_Wolf
Last Packager: Lone_Wolf
Votes: 5
Popularity: 0.71
First Submitted: 2019-05-14 19:32 (UTC)
Last Updated: 2024-04-18 22:06 (UTC)

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

  1. this package

    • see other pinned comments for details
  2. llvm-git

    • It aims to provide a full llvm/clang compiler environment for development purposes.
    • Supports cross-compiling , bindings for external stuff (python, ocaml etc) , and some things not in extra-llvm.
    • intended to be used with archlinux core,extra & community repos
    • CONFLICTS with extra llvm/clang packages
    • binary versions in chaotic aur unofficial repository
  3. packages created & maintained by Lordheavy, an arch developer

    • intended to be used with archlinux testing repos
    • sometimes has problems on systems where testing repos are disabled
    • uses same package structure as llvm/clang in official repos
    • source
    • binary versions in LordHeavys unoffical repo

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 :

  • llvm-libs-minimal-git must coexist with stable llvm-libs
  • provide what's needed for mesa trunk (it's a hard dependency for mesa-minimal-git and a possible dependeny for mesa-git)
  • provide basic llvm/clang compiler functionality on x86-64 architecture

Some of the things that are stripped out :

  • cross-compiling support
  • bindings for ocaml
  • bindings for go
  • lld , lldb and polly
  • documentation
  • examples
  • benchmarks

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.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 Next › Last »

archdevlab commented on 2023-03-10 07:15 (UTC) (edited on 2023-03-10 16:51 (UTC) by archdevlab)

Hi you should also revert this commit : https://github.com/llvm/llvm-project/commit/15977742d3ebba05a33a8eac3201ebba9c9f10e3

This allow mesa-git package to build with gallium-opencl=icd

Because mesa use this function : https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/src/gallium/frontends/clover/llvm/invocation.cpp#L461 that have been removed by upstream llvm

I tested the revert patch in my own llvm-minimal git repo and just compiled llvm and mesa with no problem. https://github.com/blacksky3/llvm-minimal-git.git

I just added : patch --directory="llvm-project" --reverse --fuzz=50 --strip=1 --input="${srcdir}/0001-Reland-LegacyPM-Remove-some-legacy-passes.patch" in the prepare function to let the path fully apply with no problem

This revert patch can also be applied in lib32-llvm-minimal-git for the same reasons

Reported the issue to mesa repo : https://gitlab.freedesktop.org/mesa/mesa/-/issues/8591

Lone_Wolf commented on 2023-03-02 22:07 (UTC) (edited on 2023-03-02 22:09 (UTC) by Lone_Wolf)

Thanks, will look into adding those 2 patches (and verify if that's enough for some time) this weekend.

Arkse commented on 2023-03-02 20:26 (UTC) (edited on 2023-03-02 20:31 (UTC) by Arkse)

Just tried to build llvm-minimal-git tonight and it failed when trying to apply the patches.

Reverted those 2 commits and building works again :

[llvm-c] Remove bindings for creating legacy passes

[IPO] Remove various legacy passes

Lone_Wolf commented on 2022-11-16 21:30 (UTC)

Added new split package spirv-llvm-translator-minimal-git as it is needed for mesa rusticl

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 2021-10-20 08:49 (UTC)

libffi was updated, all who use llvm-mimimasl-git need to rebuild it.

Lone_Wolf commented on 2021-10-11 08:33 (UTC)

confirmed, see https://gitlab.freedesktop.org/mesa/mesa/-/issues/5471

Mesa-git will need to be pacthed.

xDShot commented on 2021-10-11 01:08 (UTC) (edited on 2021-10-11 01:09 (UTC) by xDShot)

mesa-git currently fails to build with this installed:

../mesa/src/gallium/frontends/clover/llvm/codegen/native.cpp:31:10: fatal error: llvm/Support/TargetRegistry.h: No such file or directory
   31 | #include <llvm/Support/TargetRegistry.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Lone_Wolf commented on 2021-01-30 20:16 (UTC)

With llvm 13 upstream decided to remove the master branch and work in the main branch instead.

The HEAD file in your local git will need to be changed to point to main .