Package Details: llvm-git 18.0.0_r484887.953ae94149f0-1

Git Clone URL: https://aur.archlinux.org/llvm-git.git (read-only, click to copy)
Package Base: llvm-git
Description: LLVM development version. includes clang and many other tools
Upstream URL: https://llvm.org/
Keywords: clang git lld lldb llvm polly
Licenses: custom:Apache 2.0 with LLVM Exception
Conflicts: clang, compiler-rt, lld, lldb, llvm, polly
Provides: aur-llvm-git, clang, clang-git, compiler-rt, compiler-rt-git, lld, lld-git, lldb, lldb-git, llvm, polly, polly-git
Submitter: yurikoles
Maintainer: rjahanbakhshi
Last Packager: rjahanbakhshi
Votes: 118
Popularity: 0.75
First Submitted: 2018-12-05 13:56 (UTC)
Last Updated: 2024-04-17 08:17 (UTC)

Required by (2051)

Sources (2)

Pinned Comments

Lone_Wolf commented on 2021-08-16 11:26 (UTC)

When you have this package installed applications that are built against repo-llvm/clang WILL fail unless they are rebuild against this package.

This includes QTCreator, kdevelop , mesa, intel-compute-runtime, gnome-builder to name a few.

Lone_Wolf commented on 2020-08-22 12:18 (UTC) (edited on 2021-02-06 12:51 (UTC) by Lone_Wolf)

Archlinux currently has 3 llvm git implementations

  1. This package

    • 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
    • Currently there's no repo with binary versions
  2. llvm-minimal-git

    • focuses on providing stuff needed for AUR mesa-git. Doesn't support cross-compiling or any bindings for external stuff like ocaml & python.
    • intended to be used with archlinux core,extra & community repos
    • compatible with extra llvm/clang packages
    • no repo with binary versions
  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-04-12 20:41 (UTC) (edited on 2019-12-16 22:45 (UTC) by Lone_Wolf)

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
NINJAFLAGS="-j20"

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 10 11 .. 70 Next › Last »

weltio commented on 2022-01-23 18:41 (UTC)

from llvm IRC: make lua opt-in since the lua support has been rather experimental in LLDB

Alesander commented on 2021-12-26 07:43 (UTC) (edited on 2021-12-26 07:44 (UTC) by Alesander)

@weltio you can use -DLLVM_INCLUDE_GO_TESTS=off to get rid of that test failure.

rjahanbakhshi commented on 2021-12-14 10:35 (UTC)

@nanotwerp,
Thanks for the report. _py version bumped to 3.10 in the PKGBUILD.

nanotwerp commented on 2021-12-14 05:36 (UTC)

The Python version in the PKGBUILD should be 3.10 now. It will cause an error if compiled on a system with the latest python unless the _py value is set to 3.10.

rjahanbakhshi commented on 2021-12-08 20:30 (UTC)

@weltio,

Take a look at the last pinned comment by @Lone_Wolf

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.

weltio commented on 2021-12-08 12:49 (UTC)

pikaur -Syu --devel
...
[556/557] Running the LLVM regression tests
FAIL: LLVM :: Bindings/Go/go.test (1655 of 46400)
******************** TEST 'LLVM :: Bindings/Go/go.test' FAILED ********************
Script:
--
: 'RUN: at line 1';   /tmp/build/llvm-git/src/_build/bin/llvm-go go=/usr/bin/go test llvm.org/llvm/bindings/go/llvm
--
Exit Code: 1

Command Output (stderr):
--
no required module provides package llvm.org/llvm/bindings/go/llvm: go.mod file not found in current directory or any parent directory; see 'go help modules'

--

********************
********************
Failed Tests (1):
LLVM :: Bindings/Go/go.test


Testing Time: 312.03s
Unsupported      :  1199
Passed           : 45052
Expectedly Failed:   148
Failed           :     1
FAILED: test/CMakeFiles/check-llvm /tmp/build/llvm-git/src/_build/test/CMakeFiles/check-llvm 
cd /tmp/build/llvm-git/src/_build/test && /usr/bin/python3.9 /tmp/build/llvm-git/src/_build/./bin/llvm-lit -sv /tmp/build/llvm-git/src/_build/test
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in check().
    Aborting...

Command 'makepkg --force' failed to execute.

Lone_Wolf commented on 2021-10-26 11:11 (UTC)

The time has come for me to transfer ownership of this package to Reza and step down as maintainer.

Lone_Wolf

weltio commented on 2021-10-22 16:47 (UTC)

@Lone_Wolf yeah thanks, that made it build successfully

Lone_Wolf commented on 2021-10-22 11:09 (UTC) (edited on 2021-10-22 11:13 (UTC) by Lone_Wolf)

==> Starting build()...
-- clang project is enabled
-- clang-tools-extra project is enabled

Normally the first few lines after starting build deal with detectibng which compiler is used

-- The C compiler identification is GNU 11.1.0
-- The CXX compiler identification is GNU 11.1.0
-- The ASM compiler identification is GNU

Also :: Downloading the latest sources for devel packages llvm-git, llvm-libs-git, llvm-ocaml-git... indicates you are using some aur helper.

That suggest some potential causes :

  • your aur helper

  • cmake using stale cached date

  • something in your makepkg.conf

Try building with makepkg --syncdeps --rmdeps . If that gives simlar results , try makepkg --cleanbuild --syncdeps --rmdeps .

weltio commented on 2021-10-22 10:16 (UTC)

@rjahanbakhshi unfortunately not, it is probably a thing on my side I just tried it