coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Jason Gross <jasongross9 AT gmail.com>
- To: coq-club <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] _CoqProject
- Date: Tue, 28 Apr 2020 10:11:31 -0400
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=jasongross9 AT gmail.com; spf=Pass smtp.mailfrom=jasongross9 AT gmail.com; spf=None smtp.helo=postmaster AT mail-ed1-f41.google.com
- Ironport-phdr: 9a23:UcjGbx/Szi3j0f9uRHKM819IXTAuvvDOBiVQ1KB41uMcTK2v8tzYMVDF4r011RmVBNidtasP1LCempujcFRI2YyGvnEGfc4EfD4+ouJSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgppPOT1HZPZg9iq2+yo9JDffgVFiCC8bL9vIxm7rxvdvdQKjIV/Lao81gHHqWZSdeRMwmNoK1OTnxLi6cq14ZVu7Sdete8/+sBZSan1cLg2QrJeDDQ9LmA6/9brugXZTQuO/XQTTGMbmQdVDgff7RH6WpDxsjbmtud4xSKXM9H6QawyVD+/6apgVR3mhzodNzMh/27XhM5/gqJVrhyiuhJx3ZLbbZqPO/ZiZK7QZ88WSXZDU8tXSidPApm8b4wKD+cZOehXtZL9p1wIrRCjBAesHuTvyiRThnTr2qA60f4uERrB3AwmENIOqnPUrM7uNKoWSu21w6zIwi/Cb/NSwzvy9I/IchU4rPyKQLl+f83RyUw1GAPEiFWdsZbqMCmP2usXqWeU9fJsWvm0hGE8sQ1xoyagy8ExgYfKnoIY0k7I+Tl9zYovJtC1SFR3bcC4HJZTrS2XOJZ6T8U/SG9yoik60KcJuZujcSgK1psnwxnfZuSCc4eS4xLjUP+dLilli354Yb6/iRm//VW6xu3zUcm011lKri5bndXWqn8N0BnT5tCGSvt74EihxS6C2x7P5uxAO0w5lqrWJ4Q/zrIslZcfq0vOEjLulEXzlqCWd0Ek+uay6+TgZ7Xrvp2cOJVvigH5NKQulda/AeMjMggVW2WW4uu81Lj58k34RLVGlOE5kq7csJzCP8QUura5AxNJ0oYk8xuwEzCm0M0BkXYbKFJFZQmIgpPyO1DOJfD4Fe2wj06tkDdt3fDGP6fuDo/DLnjZw//deuN27FcZww4ux5gL7JVNT7oFPfjbW0nrtdWeAAVvYCKuxOOyKtxm0YVWdniIGbTRZKHbqliO6fgoOPLdTIAQsTf5bfMi4qi93jcChVYBcPzxjtMsY3eiE6E+ehnLUT/Xmt4EVFwykE8mVuWz0Q+NVDdSYzC5WKduvmhmWrLjNp/KQ8WWuJLE3Cq/GccLNGVPC1TJHHuxMovYArEDbyWdJsInmTsBB+D4Gt0RkCq2vQq/8IJJa+/d+ykWr5XmjYEn6OjalBV0/jtxXZ2Q
Run `make clean` before `make` to remove all the outdated .vo files that you previously produced with different settings, which are incompatible with the new ones.
On Tue, Apr 28, 2020, 10:03 Jeremy Dawson <Jeremy.Dawson AT anu.edu.au> wrote:
OK, so I've put some random name (corresponding to your a below)
which isn't used, but then, having run coq_makefile and then make I get
the following
[jeremy@localhost coq]$ coq_makefile -f _CoqProject -o Makefile
[jeremy@localhost coq]$ make
COQC lnt/tense-logic-in-Coq/cut.v
File "./lnt/tense-logic-in-Coq/cut.v", line 3, characters 0-20:
Error:
The file /home/jeremy/coq/lnt/tense-logic-in-Coq/genT.vo contains library
genT and not library xxx.genT
make[1]: *** [Makefile:657: lnt/tense-logic-in-Coq/cut.vo] Error 1
make: *** [Makefile:318: all] Error 2
Jeremy
On 28/4/20 11:39 pm, Gaëtan Gilbert wrote:
> If you have files
>
> A/AA/AAA.v
> B/BB/BBB.v
>
> and use flags -R A a -Q B b, the following work:
>
> Require AAA.
> Require AA.AAA.
> Require a.AA.AAA.
> From a Require AAA.
> From a Require AA.AAA.
> Require b.BB.BBB.
> From b Require BBB.
> From b Require BB.BBB.
>
> ie with -Q you must use either From or the full name, with -R you don't
> have to (which can be fragile when mixing developments).
>
> coq_makefile installs in user-contrib, and each directory D in
> user-contrib is treated as though you had -Q /path/to/user-contrib/D D
>
> Gaëtan Gilbert
>
> On 28/04/2020 15:26, Christian Doczkal wrote:
>> Hi
>>
>>> Anyhow, I've tried your suggestion: I assume "-R/-Q" means choose
>>> either "-R" or "-Q" (without assuming this, coq_makefile produces
>>> errors).
>>
>> Yes.
>>
>>> Then coq_makefile seems to work OK but then "make" produces the
>>> following
>>>
>>> lots of warnings of which I show the last
>>> *** Warning: in file modal/k4.v, library lntacsT is required and has not
>>> been found in the loadpath!
>>> COQC lnt/tense-logic-in-Coq/cut_extraction_test.v
>>
>> Ah sorry, the syntax of -R and -Q is [-R physicalpath logicalpath] so
>> all three -R/-Q lines need a logical path as well (i.e., the prefix you
>> use in "From <prefix> Require Import <lib>). Something like TL, gen,...)
>>
>> The difference between -R and -Q is IIRC whether the files inside the
>> folder use the prefix when including other files from the same folder or
>> not.
>>
>>> Error: Invalid character '-' at beginning of identifier "-Q".
>>> make[1]: *** [Makefile:657:
>>> lnt/tense-logic-in-Coq/cut_extraction_test.vo] Error 1
>>> make: *** [Makefile:318: all] Error 2
>>
>> make is trying to use -Q as logical path, which obviously fails ...
>>
>> Hope this helps!
>> Christian
>>
- Re: [Coq-Club] _CoqProject, (continued)
- Re: [Coq-Club] _CoqProject, Jeremy Dawson, 04/28/2020
- Re: [Coq-Club] _CoqProject, Christian Doczkal, 04/28/2020
- Re: [Coq-Club] _CoqProject, Benoît Viguier, 04/28/2020
- Re: [Coq-Club] _CoqProject, Gaëtan Gilbert, 04/28/2020
- Re: [Coq-Club] _CoqProject, Benoît Viguier, 04/28/2020
- Re: [Coq-Club] _CoqProject, Pierre Courtieu, 04/28/2020
- Re: [Coq-Club] _CoqProject, Jeremy Dawson, 04/28/2020
- Re: [Coq-Club] _CoqProject, Christian Doczkal, 04/28/2020
- Re: [Coq-Club] _CoqProject, Gaëtan Gilbert, 04/28/2020
- Re: [Coq-Club] _CoqProject, Jeremy Dawson, 04/28/2020
- Re: [Coq-Club] _CoqProject, Jason Gross, 04/28/2020
- Re: [Coq-Club] _CoqProject, Jeremy Dawson, 04/28/2020
- Re: [Coq-Club] _CoqProject, Christian Doczkal, 04/28/2020
- Re: [Coq-Club] _CoqProject, Jeremy Dawson, 04/28/2020
- Re: [Coq-Club] _CoqProject, Gaëtan Gilbert, 04/28/2020
- Re: [Coq-Club] _CoqProject, Jeremy Dawson, 04/28/2020
Archive powered by MHonArc 2.6.18.