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
Unable to install conf-gmp on Arch Linux with Homebrew #25257
Comments
I tried doing some experiments but did not find the reason yet. It may not be totally useless so let me share it here. I don't know a good way to set custom homebrew prefix for experimenting, given I just use the default prefix (and it costs too much to totally re-install it). I have a brew installed /usr/local/Cellar/gmp/6.3.0$ mv include include-hack The header file in the prefix path is just a soft link Now both Then after I cannot reproduce your problem but would you like to check if the custom prefix in your machine does soft-links to the correct You can also add |
Thanks for spending time with me on this. I checked the soft-link and it appears to be correct.
(Yes, I'm going through the trouble because I want to build OCaml programs on Steam Deck, whose SteamOS is Arch-based.) I can also see the content of the header file with Also tried adding the following as the first line in the build section of the local opam file:
but it didn't change the result. Plus, I think the compilation command (the line immediately before the failure on
|
Maybe the reason is opam ( If you add the debug commands in it
the log ( + /home/me/.opam/opam-init/hooks/sandbox.sh "build" "sh" "-exc" "export FOO=/home/linuxbrew/.linuxbrew/include" (CWD=/home/me/.opam/5.1.1/.opam-switch/build/conf-gmp.4)
- + export FOO=/home/linuxbrew/.linuxbrew/include
+ /home/me/.opam/opam-init/hooks/sandbox.sh "build" "sh" "-exc" "echo $FOO" (CWD=/home/me/.opam/5.1.1/.opam-switch/build/conf-gmp.4)
- + echo This can also explain why your experiment works because a child process ( $ export CFLAGS="-I$(brew --prefix)/include"
sh -exc "cc -c $CFLAGS -I/usr/local/include test.c" |
Hello. I have Homebrew installed on a custom location at
/home/linuxbrew/.linuxbrew
. When trying to installconf-gmp
using gmp provided by Homebrew, I encoutered the folowing errors:This looks suspiciously like #6958, except that I've already set the
CFLAGS
to where the header file should be and indeed was:What's more baffling for me is that if I run the build command manually, it works. If I do:
then this works:
$ sh -exc "cc -c $CFLAGS -I/usr/local/include test.c" + cc -c -I/home/linuxbrew/.linuxbrew/include -I/usr/local/include test.c
but this doesn't:
This there anything I missed or I can try?
The text was updated successfully, but these errors were encountered: