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

MacOS,Arm: conf-mpfr-paths does not install #25333

Open
xrival opened this issue Feb 23, 2024 · 4 comments
Open

MacOS,Arm: conf-mpfr-paths does not install #25333

xrival opened this issue Feb 23, 2024 · 4 comments

Comments

@xrival
Copy link

xrival commented Feb 23, 2024

The installation of conf-mpfr-paths fails on my MacOS, Arm machine with:

# exit-code 1
# env-file ~/.opam/log/conf-mpfr-paths-9871-1b00ec.env
# output-file ~/.opam/log/conf-mpfr-paths-9871-1b00ec.out
### output ###
# checking compilation with cc -O2 -fno-strict-aliasing -fwrapv -pthread -D_FILE_OFFSET_BITS=64 -I/opt/homebrew/opt/llvm/include: working
# looking for mpfr without prefix
# include mpfr.h: found in /opt/homebrew/include
# library mpfr: found in
# error: unable to locate mpfr library

MPFR is installed with brew and present at the path:

/opt/homebrew/Cellar/mpfr/4.2.1/

The above message says (rightfully) that mpfr.h is installed, but the mpfr seems either not found or the directory found for it seems to be the empty string.

@mseri
Copy link
Member

mseri commented Feb 26, 2024

Ping @nberth, is this solved by your recent PR?

@nberth
Copy link
Contributor

nberth commented Feb 26, 2024

Ping @nberth, is this solved by your recent PR?

Hum… probably not. There's currently a known issue with locales other than "English" I did not fix yet. @xrival could you try with the workaround suggested at nberth/ez-conf-lib#2 ?

@xrival
Copy link
Author

xrival commented Feb 26, 2024

The result is the same.

Below is my locale information:

$ locale
LANG=""
LC_COLLATE="C"
LC_CTYPE="UTF-8"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=

and:
$ defaults read -g AppleLocale
en_FR

Also, I would like to add, in case it helps, that it used to work a couple of weeks ago and broke during an upgrade.

@xrival
Copy link
Author

xrival commented Feb 28, 2024

I looked a bit into the script ez-conf-lib, and found that the $libdir is not properly computed in function checklib apparently due to lookup_lib returning an empty string (the sed in the latter seems rather fragile, so that could explain). I do not have time to search more at this point (but give a hard coded $libdir as a work around).

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

3 participants