coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Jeremy Dawson <Jeremy.Dawson AT anu.edu.au>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] _CoqProject
- Date: Wed, 29 Apr 2020 00:22:32 +1000
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=anu.edu.au; dmarc=pass action=none header.from=anu.edu.au; dkim=pass header.d=anu.edu.au; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qM1WiS6FyV3zAdPzvlMCgHOmwRs7uBI819GuF2ibcrQ=; b=DN08Jjwdvx3lmPo2u3ecUYJEr6woVjT0yIJjUR5C1fEDVFVTltam7AF7yY8gQtr8xlF8JtI8QTCd1VYWqes+uGvJRTmKk4KBWEIYUSm9b/Xhk2PLLMeIC1McGcAnXHm2flLfTFUFX35FzpD5vuwoplQ0k/MjNg3xoULeL1pxaNLRHaVBPMYzRru/RfhVGyd893YqtI7gFcKmKBKgDE53u9IS5X0kVN3auP3XGl+17jsiHPppsjDQQ7Lg38T+AKHk8GNvtS8AXdpCKY2pDGm1s1FO8S6wfq0zuPGK9hDvl++2zplvMtMxFmbrWxtNbfb8hWjzfHrJN4jDggUl/IZ0Nw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UiiPJglb6lwdrQbjj2ZRe8ibQbpPEMkkB+PtMeXyT0MjcgQ8RIwytVdJM48UVjprzw1pTLi9ZcjG5rWeG0FbCprT+5+OF/rZKATZq0MbhlA8p8xHBhkyNXTOot0qUIIqPdg5RMMm3e8FKDdoQcLw2xhw47YdEHO8Ajk3qnMQk3EF9oWFZ0lLxIdp+Xm4hPe0vCjMajRSST2dAvNYWPqiS1n+ZlPqvQi7U0zD9LmpjtGy30H/q7D/vu637FoDjP15ToKbgtoqhEvpZ55BmAAmwVvxBc7rDnlxxmnc/8fCks87mU37G/OpB4om05fq7NqfLsRee83oR9tdOiBgdb2Mug==
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=Jeremy.Dawson AT anu.edu.au; spf=Pass smtp.mailfrom=Jeremy.Dawson AT anu.edu.au; spf=Pass smtp.helo=postmaster AT AUS01-SY3-obe.outbound.protection.outlook.com
- Ironport-phdr: 9a23:2+kZ5RFV4D3cUCugmKHFm51GYnF86YWxBRYc798ds5kLTJ7zp8uwAkXT6L1XgUPTWs2DsrQY0reQ7fmrBjBIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSizexfLN/IA+3oAnMucUbg4RvIbstxxXUpXdFZ/5Yzn5yK1KJmBb86Maw/Jp9/ClVpvks6c1OX7jkcqohVbBXAygoPG4z5M3wqBnMVhCP6WcGUmUXiRVHHQ7I5wznU5jrsyv6su192DSGPcDzULs5Vyiu47ttRRT1jioMKjw3/3zNisFokaxVvhyhqRx8zYDabo6aNuZxcKzSctMbXmdBQsVcWjZdDo+gYYYCDewMNvtYoYnnoFsOqAOzCw2yC+P11DBIg3/31rA03es7HwDGxwsgH9QTu3nTqNv6Kr0SXv6wzKjI1znNYelZ2Dnm6IjPdBAsuuuDXbRtccbL10YgCh7Fgk+Kpoz4Jj6Y0PkGvWuD7+d4Wu+jl3QrpxxtrjWt3Msgl4fEi4APxlzZ6Sl0z545KNK8RUJhfNKpE4dcuzuYOoZ4WM8uXn9ktDo8x7Ybo5C0ZjIKx44ixxPHa/yIbYyI4hX7WeuNLzh2mW5pdK+mixiv80etxPTwVs6v31lUtCZFlcTMtmwW2BzU98iHTOZy8l252TaV0ADT9v9LLlwolaraLJ4hxKQ8lp0OsUTfGi/2n0L2jKyMeko4/eio7vzrYrTgppCCK495kg7zPrg0lsCiHeg1MBICU3WV9Om+zrHv4FH1TbpSgv0ziKbZsZTaJcoBpq6+Bg9YyoIt5AilDzi41dQZnWMLIlxfdxOJlIjpPFfOLeviAve5nlSgiilkyO3bPrH7GJrNM2DPkK39crZl905c1A0zwMhD6JJTE7ENOe78WkvstNPDFRI5KAy1w+P/CNpnzI8eWGSPArWYMKzIq1OI6PgvcKGwY9oevy+4IPw47dbvi2U4kBkTZ/qHx5wSPVK1BPljMg21aGX3hdFJRUUHpAc7XarGgUKZVjh7bnCvGa8w+3cyFdT1Xs/4WomxjenZj2+AFZpMazUeUwzeITLTb4yBHsw0RmeKOMY4yG4NU6XnRoM8kxiz5lejluhXa9HM8yhdjqrNkdh44+qPykMbyAcsVoGm4jrISGt52GQVWzUxwaZz51RnzUuO2rR5hPoeEsFP4/ROUUExMpuOlrUrWeC3YRrIe5KycHjjR9ynBT8rSddomY0HZVs7Ftm/yBnejXOn
Hi Gaetan,
Thanks for your advice: I don't quite know how best to make this clear but I want something that works.
At present, even if I have to recompile 20 or 30 files whenever I change one of them, that is preferable to trying a myriad of different things, as I have been doing in the last day or so.
So here is the situation. I have a bunch of coq source files, not all in the same directory, in most cases depending on other source files.
If anyone knows whether the _CoqProject and coq_makefile capabilities handle this situation, and knows how to do it, and is able to tell me how, I'd appreciate it. (with the further limitation that I'm not touching the existing Makefile or any of the source files in ../lnt/tense-logic-in-Coq because it works and is not used solely by me).
Otherwise please don't advise people like me to use it, it just wastes everyone's time.
Thanks
Jeremy
On 28/4/20 11:45 pm, Gaëtan Gilbert wrote:
Don't use Add Loadpath, put the information in coproject instead
If you don't use a prefix then use -R
Gaëtan Gilbert
On 28/04/2020 15:43, Jeremy Dawson wrote:
Hi Christian,
Thanks. But I don't use a prefix for Require Import. For example here are the relevant lines from one of the files.
Add LoadPath "../gen".
Add LoadPath "../lnt/tense-logic-in-Coq".
Require Import gen genT ddT dd_fc.
Require Import List_lemmasT.
Require Import lntT.
Require Import swappedT.
Require Import lntacsT.
Require Import gstep.
Require Import gentree.
Require Import gen_ext.
Require Import rtcT.
Require Import k4.
Require Import k4_exch.
Require Import k4_inv.
Require Import k4_ctr.
Cheers,
Jeremy
On 28/4/20 11:26 pm, 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, 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.