-
Notifications
You must be signed in to change notification settings - Fork 47
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
"Argument list too long" error when installing coq-unimath #354
Comments
This is fixed in main with the 8.17 beta pick - it requires a patch to coq-makefile (to redirect the file list to a file). Which version of Coq did you use? One could back merge the fix to older versions of Coq. |
The issue appeared btw. with the new version of UniMath, which added a few files. With this the command line length for install exceeded 128k - which is a limit hard compiled into the Linux kernel (for whatever reason - neither macOS nor Windows have this). |
I am using Coq 8.16, the latest release offered by the installer. What should I do to backmerge it? (or is it something you should do?) Or would using an older version of package pick work? |
No - if you want coq-unimath 20230321 you need a patched coq-makefile. If you want to use Coq 8.16 it might work to copy the above patch file to a subfolder "files" of https://github.com/coq/platform/tree/main/opam/opam-repository/packages/coq/coq.8.16.1 and register it in the opam file https://github.com/coq/platform/blob/main/opam/opam-repository/packages/coq/coq.8.16.1/opam like here
It might be that you have to adjust the patch file from 8.17 to 8.16 - nut sure if the coq-makefile template changed. You do these changes in your local copy of Coq Platform. If you build again it should work. |
Do I need to re-run the |
You should run the script, because you need to update the opam repos - the script does this automatically. The script doesn't redo things it already finished before. If you know how to do this, you can also update the opam repos manually and reinstall coq with opam. |
I've decided to go the path of least resistance and install |
OK. I will anyway see that I back port the fix to 8.16. |
I've made a minimal installation of coq platform (option
i
in the installer). After this, an attempt to install UniMath withopam install 'coq-unimath'
leads to an error:The actual seems to be the
/bin/sh: Argument list too long
error...I think the problem might be that the path to the target directory is too long? not sure though.
The text was updated successfully, but these errors were encountered: