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.52
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 8 9 ... Next › Last »

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.

Lone_Wolf commented on 2019-10-30 21:26

  • ConfuZzled

I never tested it, but doubt it is a good idea. building mesa-git is fast (typically 1-5 minutes on my system).

  • Cebtenzzre

/usr/lib/clang/10.0.0/lib/linux/ folder from llvm-git package holds compiler-rt runtime files. Could you provide a testcase to show what you're missing ?

Cebtenzzre commented on 2019-10-29 22:51

I needed to add options=('staticlibs') to the PKGBUILD to get the static libraries that are part of compiler-rt. The Arch repo package for compiler-rt sets this option.

ConfuZzled commented on 2019-10-11 11:55

Does this package contain everything that llvm-libs-minimal-git does? While the AUR package for mesa-git I can obviously configure to use llvm-libs-git, the package in PedroHLC's still depends on it, which causes a file conflict. Would there be any issues in making this also provide llvm-libs-minimal-git?

Sinistar commented on 2019-09-25 21:44

Yes I add the version to the dependency. I also split out the packages as they are in the extra repo, but do not build lld or lldb.

Lone_Wolf commented on 2019-09-25 08:03

Sinistar, did you also add a hard dependency on that version as a runtime dependency for llvm-git ?

If not, then you have no guarantee the ocaml version at runtime will be the same as the one the package is build against.

I guess the clean way to do this would be to go back to the method used in llvm-svn (and extra/llvm ) and split off the ocaml support into a package_llvm-ocaml-git() function that gets a hard dependency on the specific ocaml version it's build against.