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: 110
Popularity: 0.012694
First Submitted: 2018-12-05 13:56
Last Updated: 2020-01-26 13:32

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

1 2 3 4 5 6 ... Next › Last »

Lone_Wolf commented on 2019-12-16 22:39

Lots of failures in check() function (check-clang-tools) , but none in build() function.

Try adding ---cleanbuild to the makepkg command (or remove $srcdir yourself before building).

evernow commented on 2019-12-16 14:52

Cannot build, get this c++: error: git: No such file or directory c++: error: working: No such file or directory c++: error: on: No such file or directory c++: error: it/llvm-git/src/_build/./lib: No such file or directory [278/7794] Building CXX object lib/MC/MCParser/CMakeFiles/LLVMMCParser.dir/AsmParser.cpp.o ninja: build stopped: subcommand failed. ==> ERROR: A failure occurred in build(). Aborting...

Lone_Wolf commented on 2019-11-18 14:14

Confirmed and corrected. There were also other corrections needed because of python 3.8.

Sinistar commented on 2019-11-17 16:47

llvm-ocaml-git needs to be added to pkgname

Lone_Wolf commented on 2019-11-13 15:10

Ocaml support is now (back) in its own sub-package.

akin2silver commented on 2019-11-03 06:32

That looks to have solved my issue, thank you very much :)

Lone_Wolf commented on 2019-11-02 00:37

  • Patch updated to latest version, unfortunately llvm tests now fail due to upstream changes.

  • Cebtenzzre, upon checking I found other files missing.

I added options=('staticlibs ') .

Lone_Wolf commented on 2019-11-01 10:35

That specific fail is due to the enable-SSP-and-PIE-by-default patch . It comes from the extra/clang package and has given that error since the patch was added.

I'll check if it has been changed in extra llvm 9 package.

akin2silver commented on 2019-11-01 07:22

Unsure how to track this one down as the size of this build is way beyond me, any idea's what went on here? I am on Manjaro and just used pacman to do a standard update. This is the only update I am missing.


Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 

Testing Time: 111.95s
Failing Tests (1):
    Clang :: Driver/riscv64-toolchain.c

  Expected Passes    : 16104
  Expected Failures  : 22
  Unsupported Tests  : 95
  Unexpected Failures: 1
FAILED: tools/clang/test/CMakeFiles/check-clang 
cd /var/tmp/pamac-build-lucas/llvm-git/src/_build/tools/clang/test && /usr/bin/python /var/tmp/pamac-build-lucas/llvm-git/src/_build/./bin/llvm-lit -sv --param clang_site_config=/var/tmp/pamac-build-lucas/llvm-git/src/_build/tools/clang/test/ --param USE_Z3_SOLVER=0 /var/tmp/pamac-build-lucas/llvm-git/src/_build/tools/clang/test
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in check().

Cebtenzzre commented on 2019-10-30 21:53

One library that is missing if staticlibs is not enabled is "/usr/lib/clang/10.0.0/lib/linux/libclang_rt.ubsan_standalone-x86_64.a". I needed that library in order to use -fsanitize=undefined with clang.