Package Details: llvm-ocaml-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: OCaml bindings for LLVM
Upstream URL: https://llvm.org/
Keywords: clang git lld lldb llvm polly
Licenses: custom:Apache 2.0 with LLVM Exception
Conflicts: llvm-ocaml
Provides: llvm-ocaml
Submitter: yurikoles
Maintainer: rjahanbakhshi
Last Packager: rjahanbakhshi
Votes: 118
Popularity: 0.005568
First Submitted: 2018-12-05 13:56 (UTC)
Last Updated: 2024-04-17 08:17 (UTC)

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 »

rjahanbakhshi commented on 2022-01-31 14:04 (UTC)

@Sinistar,

Thanks for reporting the problem and the suggestion. I added a temporary workaround for the issue which I'll revert after it's resolved. As for the --ignore-fail suggestion, since these tests are failing quite often, I've been wanting to disable them by default. I updated the PKGBUILD with your suggested flags. This way the package build won't fail, meanwhile, the tests will run and those who are interested can see the results in the logs at least.

Sinistar commented on 2022-01-30 22:00 (UTC) (edited on 2022-01-30 22:03 (UTC) by Sinistar)

I am sure this will get fixed but currently ocaml docs are ending up in /usr/share/doc/LLVM/llvm/ocaml-html and breaks the package build.

also, you might want to add

-D LLVM_LIT_ARGS="-sv --ignore-fail"

to the config, -sv is default and the --ignore-fail will allow the check to complete successfully, you will still see the failures.

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