Package Base Details: llvm-git

Git Clone URL: (read-only, click to copy)
Keywords: clang git lld lldb llvm polly
Submitter: yurikoles
Maintainer: Lone_Wolf
Last Packager: Lone_Wolf
Votes: 111
Popularity: 0.56
First Submitted: 2018-12-05 13:56
Last Updated: 2020-04-01 10:51

Pinned Comments

Lone_Wolf commented on 2019-04-12 20:41

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.

    It conflicts with the repo llvm-libs package. This is the only way to make sure the llvm linker from git is used, and that's needed for a full dev environment.

  • llvm-git

    has llvm , clang, compiler-rt, ocaml & python bindings, polly , lld , lldb .

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.

# Add to makepkg.conf
# limit ninja to 20 jobs
# requires special code in PKGBUILD
# see ninja --help for additonal options

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.

Latest Comments

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

gardotd426 commented on 2020-03-06 15:17

@nstgc Actually I just tried it with removing python-yaml first and it still failed with two tests:

Failing Tests (2):
    LLVM :: tools/gold/X86/thinlto_weak_library.ll
    LLVM :: tools/gold/X86/v1.16/wrap-2.ll

nstgc commented on 2020-03-06 14:16

@gardotd426 This is just my two cents as a two bit user, but I don't see why it's worth taking chances when you can easily run pacman -Rdd python-yaml and then reinstall it after compiling is down. You could even make it a one liner:

sudo pacman -Rdd python-yaml && makepkg -sir && sudo pacman -S --noconfirm python-yaml 

Assuming you didn't delete the package archive, that shouldn't take long.

gardotd426 commented on 2020-03-06 14:08

So does python-yaml need to be removed before this will properly work, or is it enough to just use --nocheck?

nstgc commented on 2020-03-05 14:54

@Lone_Wolf Thanks for that! python-yaml is required by lutris, but I can uninstall that long enough to build this. And I will take your advise and build llvm-minimum-git instead. It has this same issue by the way.

Lone_Wolf commented on 2020-03-05 14:39

I've confirmed the test failure occurs only with python-yaml present and reported the bug.

Lone_Wolf commented on 2020-03-05 00:53

Yup, those are the log files I needed.

File "/home/nstgc5/Installers/llvm-git.aur/src/llvm-project/llvm/tools/opt-viewer/", line 200, in render_entry
    escaped_name = cgi.escape(r.DemangledFunctionName)
AttributeError: module 'cgi' has no attribute 'escape'

cgi.escape was removed in python 3.8, so the error itself is correct. Not sure why llvm tools want to use deprecated functionality.

The log also mentions you have python module yaml , and yaml is not present in my build environment .

  • llvm git/svn versions are tricky to build
  • When problems occur, I verify they're not due to my build machine by building in a clean chroot. check
  • mesa-git supports all videocards supported by stock mesa, no need to wait.
  • Incase you only need llvm trunk for mesa-git, llvm-minimal-git is probably a better choice.

nstgc commented on 2020-03-04 16:09

@Lone_Worlf These are the logs I think you are looking for:

nstgc commented on 2020-03-04 14:49

@Lone_Wolf A question (sorry). I was reading through the stickies for llvm-minimal-git and it mentioned errors for non-amdgpu (and to ignore them). I'm building llvm (and mesa) ahead of installing a new video. Should I wait until I have the AMD card in my computer before compiling this stuff? I've never compiled drivers or kernels before so I'm not really sure of best practices.

nstgc commented on 2020-03-04 14:18

@Lone_Wolf This is embarrassing, but I've never really gone to this extent to get something in the AUR installed so I don't know what you mean by "log files". Reading through man makepkg I'm guessing you mean for me to use the -L switch like, LOGDEST=$PWD/logs makepkg -sirL? This?

Lone_Wolf commented on 2020-03-04 13:59

lldb tests re-enabled.

While looking at lldb cmakelists.txt for options to solve the test failure, I noticed an option to use system-provided python-six . Using that option allowed to remove a workaround from the package_llvm-git() function.

nstgc : post log files of the build somewhere. I'll run a clean chroot build to verify dependencies.