Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[conf-libpcre] Installing conf-libpcre on Asahi Linux Fedora fails #26200

Closed
MisterDA opened this issue Jul 5, 2024 · 1 comment
Closed

[conf-libpcre] Installing conf-libpcre on Asahi Linux Fedora fails #26200

MisterDA opened this issue Jul 5, 2024 · 1 comment

Comments

@MisterDA
Copy link
Contributor

MisterDA commented Jul 5, 2024

$ opam install conf-libpcre -vvv
+ /usr/bin/sh "-c" "ocamlc -config 2>/dev/null | tr -d '\\r' | sed -n -e 's/^os_type: Win32/msvc/p;s/^os_type: .*/libc/p'"
+ /usr/bin/sh "-c" "ocamlc -config 2>/dev/null | tr -d '\\r' | sed -n -e 's/i386/i686/;s/amd64/x86_64/;s/^architecture: //p'"
+ /usr/bin/sh "-c" "ocamlc -config 2>/dev/null | tr -d '\\r' | sed -n -e 's/^ccomp_type: //p'"
The following actions will be performed:
=== install 1 package
  ∗ conf-libpcre 1

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+ /usr/bin/getconf "_NPROCESSORS_ONLN"
- 8
+ /home/antonin/.opam/opam-init/hooks/sandbox.sh "build" "pkg-config" "libpcre" (CWD=/home/antonin/.opam/4.14/.opam-switch/build/conf-libpcre.1)
[ERROR] The compilation of conf-libpcre.1 failed at "pkg-config libpcre".

#=== ERROR while compiling conf-libpcre.1 =====================================#
# context     2.2.0 | linux/arm64 | ocaml.4.14.2 | https://opam.ocaml.org#8c74913f
# path        ~/.opam/4.14/.opam-switch/build/conf-libpcre.1
# command     ~/.opam/opam-init/hooks/sandbox.sh build pkg-config libpcre
# exit-code   1
# env-file    ~/.opam/log/conf-libpcre-14388-fc3096.env
# output-file ~/.opam/log/conf-libpcre-14388-fc3096.out



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
┌─ The following actions failed
│ λ build conf-libpcre 1
└─ 
╶─ No changes have been performed
'opam install conf-libpcre -vvv' failed.

Possible values for pkg-config are libpcre2-16, libpcre2-32, libpcre2-8, libpcre2-posix.
Fedora provides libpcre and libpcre2, it's possible that the conf-libpcre package should switch to pcre2 for Fedora.
The dev-repo for conf-libpcre is listed as https://github.com/mmottl/pcre-ocaml, which can be a bit confusing as this repo defines the pcre.opam package but now conf-libpcre.opam.

@MisterDA
Copy link
Contributor Author

MisterDA commented Jul 5, 2024

My bad, I mixed libpcre and libpcre2. The solution here for my problem was to install pcre-devel. Maybe I forgot to specify to install opam depexts?

@MisterDA MisterDA closed this as completed Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant