From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Org Build System (aka Makefile) Date: Sun, 12 Aug 2012 12:56:33 -0600 Message-ID: <87k3x4rlb2.fsf@gmx.com> References: <87y5mkrca2.fsf@Rainer.invalid> <87ipcs3smd.fsf@Rainer.invalid> <871ujf5i7g.fsf@gnu.org> <874no8dxik.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0dLa-0001JO-0q for emacs-orgmode@gnu.org; Sun, 12 Aug 2012 14:57:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T0dLW-0001Q9-UN for emacs-orgmode@gnu.org; Sun, 12 Aug 2012 14:57:09 -0400 Received: from mailout-us.gmx.com ([74.208.5.67]:57606) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1T0dLW-0001Pt-O7 for emacs-orgmode@gnu.org; Sun, 12 Aug 2012 14:57:06 -0400 In-Reply-To: <874no8dxik.fsf@Rainer.invalid> (Achim Gratz's message of "Sun, 12 Aug 2012 15:56:35 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Achim Gratz Cc: emacs-orgmode@gnu.org >> I know we disagree about this: you think that compiler warnings are for >> the developers, not for the users. I think the default "make" should >> send as much warnings as Emacs sends with its own default "make". > > You continue to misunderstand what I was saying or at least trying to > say. The primary function of Org's build system is to, well, build Org > with the minimum fuzz. That's what it was designed to do and that is > what it does =E2=80=94 it can do other things as well, but you'll have to > configure it to do that. > > Getting more warnings is a secondary function, however useful they might > be. But we certainly shouldn't (and currently aren't?) inhibit the display of any warnings when the default make is run. I was surprised to run make compile-source and see additional warnings which weren't shown during regular make. What is the difference between "make" and "make compile-source" which results in different warnings? > Now, Emacs Lisp as a dynamic language is notoriously difficult in the > static checks department (warnings are but a small part of that) and > Emacs lacks functions to do this thoroughly in an automated manner. > There is _no_ complete tool for doing dependency checks at the source > level (I'd love to be proved wrong) for instance. Emacs does have > elint since version 23, which is properly separated from building, but > again, is still incomplete. I've added two compilation methods that > use elint, but they certainly aren't for casual use =E2=80=94 the first o= ne > takes 25 times as long as a simple build and the other one 275 times. > After some time digging through the make files, it looks to me like one must edit the local.mk file to run these. I'd propose that they are added as a separate Makefile target (mentioned by "make help") so that they can be easily run. Very few people (users or developers) are willing to edit make configuration files. Perhaps these elint build options should be used to build when "make check" is run. If a user is willing to run the test suite they should be willing to endure a slower build for more thorough warnings. Best, --=20 Eric Schulte http://cs.unm.edu/~eschulte