-
Notifications
You must be signed in to change notification settings - Fork 49
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
Coq Platform does not work with make
#224
Comments
The issue seems to be that |
@gares : do you have time to look into this? |
No, $ snap aliases coq-prover
Command Alias Notes
coq-prover.coq-makefile coq_makefile -
coq-prover.coqc coqc -
coq-prover.coqide coqide -
coq-prover.coqidetop coqidetop.opt -
coq-prover.coqtop coqtop - but if you use the COQBIN = /snap/coq-prover/28/coq-platform/2022-01-0/bin/ and # Coq binaries
COQC ?= "$(COQBIN)coqc"
COQTOP ?= "$(COQBIN)coqtop"
COQCHK ?= "$(COQBIN)coqchk"
COQNATIVE ?= "$(COQBIN)coqnative"
COQDEP ?= "$(COQBIN)coqdep"
COQDOC ?= "$(COQBIN)coqdoc"
COQPP ?= "$(COQBIN)coqpp"
COQMKFILE ?= "$(COQBIN)coq_makefile"
OCAMLLIBDEP ?= "$(COQBIN)ocamllibdep" @Zimmi48 if you want to also ask an alias for the other binaries not in this list, I'm OK with it but I don't have time right now. |
@jwnhy can you confirm you did not run the |
(also, ftr, if you install the snap by hand, eg |
Actually, I tried both the original Different error but both related to |
You've missed my point, the link that I've provided contains:
So the alias was already requested and granted, although maybe it was never correctly set up... |
OK, so we have 2 problems:
For the second problem, @jwnhy, could you please start afresh, generate the makefile with coq_makefile from the snap and type |
Something is very fishy, for example this does not exist:
While your screenshot suggests that
does. Which Linux distro are you on? It is probably a bug of the snap package which assumes snap is installed in /snap/ but it is not the case. |
@Zimmi48 the problem with aliases is probably that we don't declare a corresponding app, see platform/linux/snap/snapcraft.yaml.in Line 43 in 88d69fc
|
I am using Gentoo...LOL |
It seems that we are missing both coqdep and coqidetop.opt. |
|
Are the paths configured in a standard way? I don't get why coq_makefile spits path containing |
Yes, here is my /home/john/.cargo/bin:/home/john/.elan/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/13/bin:/var/lib/snapd/snap/bin:/opt/x86_64-linux-musl-cross/bin/:/home/john/Android/Sdk/platform-tools/:/home/john/tools/xfel/:/home/john/tools/bsc/bin:/opt/toolbox:/opt/arm64/bin/:/opt/riscv/bin:/home/john/tools/Xilinx/Vivado/2020.3/bin/:/home/john/.local/bin:/opt/JLink_Linux_V760b_x86_64:/opt/FreedomStudio-4.18.0.2021-04-1-x86_64-linux-ubuntu14/
|
My |
@gares : is there something I can do for 2022.03 to improve things? |
Hum, no, I'm out of ideas. |
OK, I postponed this and put it on my agenda to become less snap agnostic. Maybe as snap newbe I can more easily reproduce such issues than as a snap pro like you. |
In thos specific case it seems a snapd with a weird path layout on a niche distribution... not exactly where I would start. |
Ah OK, I didn't read the Gentoo thing. Well I would say that Gentoo doesn't really support snap and we should simply document this and recommend that users on Gentoo should use the from sources scripts. |
Just for the record, while we might wish to close the "Gentoo" part of this issue as "won't fix" / unsupported, there remains the fact that some of the commands that we decided to export (at some point) are not exported because they are not listed under: platform/linux/snap/snapcraft.yaml.in Line 43 in 88d69fc
I think this latter part should still be fixed (for Proof General users) or documented (e.g., in the case of |
@gares : isn't it so that one also needs some sort of approval from the snap team to export apps without prefix? |
Yes, but Theo already did. They don't show up since there is no entry in the app: stanza, I believe. |
I installed Coq Platform with
snapd
. It seems incompatible with the system-levelmake
.If using
coqide
's make, everything is fine.I am guessing it is due to some
$PATH
issue between host system and snap image.Any ideas on how to fix this?
The text was updated successfully, but these errors were encountered: