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.54
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. commented on 2012-02-12 07:27

For me, it was failing to find iostream. Eg, the following would fail:
#include <iostream>

int main()
std::cout << "Hello, world!\n";

$ clang++ test.cpp
test.cpp:1:10: fatal error: 'iostream' file not found
#include <iostream>
1 diagnostic generated.

Svenstaro commented on 2012-02-11 17:54

Can you give me a minimal example that fails? A Hello world works for me. commented on 2012-02-04 09:25

On my system, include paths were not working, so I have updated the PKGBUILD in this paste:
It uses the gcc executable to get the C++ include search paths, and passes them into cmake via -DC_INCLUDE_DIRS.
I hope others find this useful!

Note: A Clang change made in November 2011 stopped the older method of patching the InitHeaderSearch.cpp file from working on Linux and Windows systems, moving the responsibility to the Driver.

Svenstaro commented on 2011-11-07 19:29


EdwardXXIV commented on 2011-11-07 10:54

I had to add

-DPYTHON_EXECUTABLE=/usr/bin/python2 \

to the cmake line to make it compile.

Svenstaro commented on 2011-10-18 00:25

Quite right. Old package here:

jonnor commented on 2011-10-17 23:53

The package is quite hard to read/review quickly with all the things that are commented out. No-one has complained about issues for several months, perhaps it can all be removed? You could toss the old PKGBUILD up somewhere on the net as a backup if you think some of it might become useful again.

jonnor commented on 2011-10-17 23:17

Why flagged out of date?

Svenstaro commented on 2011-07-29 18:22

Package updated and simplified a lot. Please report any errors you run into. For now I'm leaving the old package commented in this one as well as all the patches of which none is actually used right now.

WFCody commented on 2011-05-03 15:29


Another alternative is the self-hosting lll-git package (sorry for blowing my own horn)
I am currently considering the possibility of including compiler-rt in the build to completely avoid libgcc dependency.
Feedback on the package is welcome :)