Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] batch compilation and warnings

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] batch compilation and warnings


Chronological Thread 
  • From: Ralf Jung <post AT ralfj.de>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] batch compilation and warnings
  • Date: Thu, 4 Feb 2016 09:59:40 +0100
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=post AT ralfj.de; spf=None smtp.mailfrom=post AT ralfj.de; spf=None smtp.helo=postmaster AT zwei.ralfj.de
  • Ironport-phdr: 9a23:xfFKLB1RWcaRMcQpsmDT+DRfVm0co7zxezQtwd8ZsegUIvad9pjvdHbS+e9qxAeQG96LtLQd2qGP6fiocFdDyKjCmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TWM5DIfUi/yKRBybrysXNWC0ILuhqvrocWbSj4LrQT+SIs6FA+xowTVu5teqqpZAYF19CH0pGBVcf9d32JiKAHbtR/94sCt4MwrqHwI6Lpyv/JHBK79ZuEzSaFSJDUgKWE8osPx5jfZSg7a3HIYXC00jxxHS1zd6wrmdo34tiX48OZwjnrJdfbqRKw5DGzxp5xgTwXl3X8K

Hi,

> I asked this question because this would be very useful to have such an
> option. If there is currently no way for batch compilation to print
> warnings, then consider this as a feature request. Such a feature is
> provided by compilers like gcc, ocamlc, etc. It helps maintaining and
> improving developments. It is especially useful for big ones. Each new
> release of Coq comes with new features but also with new warnings and
> deprecated constructions. Instead of discovering that a development
> breaks with a new release, printing warnings would enable users to
> anticipate changes and improve their developments. Currently, in Coq,
> warnings are discovered in interactive mode only. This makes impossible
> to locate warnings in big developments spread other many files that are,
> most of the time, run on batch mode only. So, would it be possible to
> include such an option in the next 8.5pl1?

I can second this, having warnings when running "make" would be helpful.
However, there also would have to be some work on which warnings are
printed. For example, when doing automation involving ssreflect's
"case", one often gets annoying warnings like "nothing to inject", which
are very hard to avoid in generic tactics. (Or maybe my ltac-foo is just
lacking.)

Other compilers typically allow choosing the set of printed warnings
being configurable via "-Wflag". That would be helpful, and probably
necessary, when enabling printing of warnings for batch compilation.

Kind regards,
Ralf



Archive powered by MHonArc 2.6.18.

Top of Page