@ktrls: Hi, as the error says, the issue is caused by some of the dependencies being built with an older version of OCaml. Rebuilding ocaml-compiler-libs-repackaged
(and any other dependencies mentioned in the build log with the same error) should enable ppxlib to build, or if you don't want to hunt down the affected dependencies, uninstalling all OCaml packages and starting from a clean slate would also work.
Search Criteria
Package Details: ocaml-ppxlib 0.35.0-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/ocaml-ppxlib.git (read-only, click to copy) |
---|---|
Package Base: | ocaml-ppxlib |
Description: | Utilities for working with Jane Street AST constructs |
Upstream URL: | https://github.com/ocaml-ppx/ppxlib |
Keywords: | base compile compiler library ocaml ppx rewrite rewriter |
Licenses: | MIT |
Submitter: | J5lx |
Maintainer: | dpeukert |
Last Packager: | dpeukert |
Votes: | 2 |
Popularity: | 0.000000 |
First Submitted: | 2018-06-27 23:55 (UTC) |
Last Updated: | 2025-02-04 18:24 (UTC) |
Dependencies (9)
- ocaml
- ocaml-base (ocaml-base-gitAUR)
- ocaml-cmdliner
- ocaml-compiler-libs-repackagedAUR
- ocaml-ppx_derivers (ocaml-ppx_derivers-gitAUR)
- ocaml-sexplib0
- ocaml-yojsonAUR (ocaml-yojson-gitAUR)
- zstd (zstd-gitAUR, zstd-staticAUR)
- dune (make)
Required by (54)
- flow (make)
- flow-git (make)
- ocaml-base_quickcheck
- ocaml-core_bench
- ocaml-core_extended
- ocaml-js_of_ocaml
- ocaml-lwt
- ocaml-ppxlib_jane
- ocaml-ppx_assert
- ocaml-ppx_base
- ocaml-ppx_bench
- ocaml-ppx_bin_prot
- ocaml-ppx_cold
- ocaml-ppx_compare
- ocaml-ppx_custom_printf
- ocaml-ppx_deriving
- ocaml-ppx_deriving_yojson-git (make)
- ocaml-ppx_diff
- ocaml-ppx_disable_unused_warnings
- ocaml-ppx_enumerate
- Show 34 more...
Sources (2)
dpeukert commented on 2025-02-23 11:45 (UTC)
ktrls commented on 2025-02-23 11:35 (UTC) (edited on 2025-02-23 11:38 (UTC) by ktrls)
Hi, when I try to install ocaml-ppxlib the process stop with a lot of errors.
This is the tail of the error stack
Command [260] exited with code 2: $ (cd _build/default && /usr/bin/ocamlopt.opt -w -9 -g -I astlib/.astlib.objs/byte -I astlib/.astlib.objs/native -I /usr/lib/ocaml/compiler-libs -I /usr/lib/ocaml/ocaml-compiler-libs/common -intf-suffix .ml -no-alias-deps -open Astlib__ -o astlib/.astlib.objs/native/astlib__Ast_metadata.cmx -c -impl astlib/ast_metadata.pp.ml) File "astlib/ast_metadata.pp.ml", line 1: Error: /usr/lib/ocaml/ocaml-compiler-libs/common/ocaml_common.cmi is not a compiled interface for this version of OCaml. It seems to be for an older version of OCaml. ==> ERRORE: Si è verificato un errore in build(). L'operazione sta per essere interrotta... Finished with result: exit-code Main processes terminated with: code=exited, status=4/NOPERMISSION
but the OCalm version is the latest one.
Can you help me to resolve?
MarsSeed commented on 2022-06-14 16:59 (UTC)
Build was successful, but then the packaging phase failed for me. What could be the issue? (Similar problem just happened with another Ocaml-based AUR package.)
==> Starting package()...
dune install: option `--libdir': the path must be absolute to avoid ambiguity
Usage: dune install [OPTION]... [PACKAGE]...
Try `dune install --help' or `dune --help' for more information.
==> ERROR: A failure occurred in package().
Aborting...
error: failed to build 'ocaml-ppxlib-0.26.0-1'
presidentwolf commented on 2022-03-11 19:20 (UTC) (edited on 2022-03-13 18:35 (UTC) by presidentwolf)
Edit - Disregard. My PATH var got prepended by opam causing this issue. Removing its entry resolved it.
Failing to build. Tried reinstalling stdlib-shims and sexplib0. No improvement.
Running[233]: (cd _build/default && /usr/bin/ocamldep.opt -modules -impl ast/versions.pp.ml) > _build/default/ast/.ppxlib_ast.objs/versions.pp.ml.d
File "ast/dune", line 8, characters 19-31:
8 | (libraries astlib stdlib-shims)
^^^^^^^^^^^^
Error: Library "stdlib-shims" not found.
Hint: try:
dune external-lib-deps --missing --no-config --root . --ignore-promoted-rules --default-target @install --always-show-command-line --promote-install-files --release --profile release --verbose @install
File "astlib/dune", line 4, characters 12-38:
4 | (libraries ocaml-compiler-libs.common compiler-libs.common)
^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: Library "ocaml-compiler-libs.common" not found.
Hint: try:
dune external-lib-deps --missing --no-config --root . --ignore-promoted-rules --default-target @install --always-show-command-line --promote-install-files --release --profile release --verbose @install
File "metaquot_lifters/dune", line 6, characters 51-63:
6 | (libraries ppxlib ppxlib_traverse_builtins stdppx stdlib-shims))
^^^^^^^^^^^^
Error: Library "stdlib-shims" not found.
Hint: try:
dune external-lib-deps --missing --no-config --root . --ignore-promoted-rules --default-target @install --always-show-command-line --promote-install-files --release --profile release --verbose @install
File "src/dune", line 13, characters 2-10:
13 | sexplib0)
^^^^^^^^
Error: Library "sexplib0" not found.
Hint: try:
dune external-lib-deps --missing --no-config --root . --ignore-promoted-rules --default-target @install --always-show-command-line --promote-install-files --release --profile release --verbose @install
File "src/gen/dune", line 5, characters 62-74:
5 | (libraries ppxlib_ast astlib ppxlib_traverse_builtins stdppx stdlib-shims))
^^^^^^^^^^^^
Error: Library "stdlib-shims" not found.
Hint: try:
dune external-lib-deps --missing --no-config --root . --ignore-promoted-rules --default-target @install --always-show-command-line --promote-install-files --release --profile release --verbose @install
File "stdppx/dune", line 4, characters 21-33:
4 | (libraries sexplib0 stdlib-shims)
^^^^^^^^^^^^
Error: Library "stdlib-shims" not found.
Hint: try:
dune external-lib-deps --missing --no-config --root . --ignore-promoted-rules --default-target @install --always-show-command-line --promote-install-files --release --profile release --verbose @install
==> ERROR: A failure occurred in build().
Aborting...
simona commented on 2021-02-18 22:27 (UTC)
thx :-)
dpeukert commented on 2021-02-18 22:18 (UTC)
@simona Fixed, sorry about the delay.
dpeukert commented on 2021-02-06 16:12 (UTC)
@simona Sorry about that, I forgot to update the patch. Will try to fix it this evening.
simona commented on 2021-02-06 16:05 (UTC)
patching file ast/ast_helper_lite.ml
Hunk #1 FAILED at 20.
1 out of 1 hunk FAILED -- saving rejects to file ast/ast_helper_lite.ml.rej
patching file ast/ast_helper_lite.mli
Hunk #1 FAILED at 16.
1 out of 1 hunk FAILED -- saving rejects to file ast/ast_helper_lite.mli.rej
patching file ast/dune
Hunk #1 FAILED at 9.
1 out of 1 hunk FAILED -- saving rejects to file ast/dune.rej
patching file ast/versions.ml
Hunk #3 succeeded at 506 (offset 17 lines).
patching file ast/versions.mli
==> ERRORE: Si è verificato un errore in prepare().
dpeukert commented on 2020-06-01 14:48 (UTC)
@TheGoliath No worries, glad it's working now.
Pinned Comments
dpeukert commented on 2020-04-09 22:14 (UTC) (edited on 2020-09-26 18:12 (UTC) by dpeukert)
The PKGBUILD for this package is hosted here (contributions are welcome!): https://gitlab.com/dpeukert/pkgbuilds/tree/main/ocaml-ppxlib