From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anselm Helbig Newsgroups: gmane.emacs.help Subject: Re: flymake configuration error for C program Date: Mon, 07 Sep 2009 00:20:23 +0200 Organization: Freie Universitaet Berlin Message-ID: <87pra3d8bc.wl%anselm.helbig+news2009@googlemail.com> References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1252276855 7124 80.91.229.12 (6 Sep 2009 22:40:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Sep 2009 22:40:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 07 00:40:49 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MkQPe-0002kX-Ay for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Sep 2009 00:40:46 +0200 Original-Received: from localhost ([127.0.0.1]:59274 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MkQPd-0006Wp-Nw for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Sep 2009 18:40:45 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 54 Original-X-Trace: news.uni-berlin.de Q7hk6NMMN6DEOVWbd9RceglAOx8uZ5hWXLVFTM6OuzoXUSCXva76KtVfDj Cancel-Lock: sha1:3ILY2Q7q4FRDTNZ8d/qK7NZTNHU= In-Reply-To: Mail-Followup-To: Anselm Helbig Original-Xref: news.stanford.edu gnu.emacs.help:172778 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:67919 Archived-At: At Sun, 6 Sep 2009 16:40:10 -0400, Corey Foote wrote: > > [1 ] > > [2 ] > And, of course, I'm using tabs in the makefiile as necessary. It compiles fine when I just run "make" from the shell. > > --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > From: coreyfoote@hotmail.com > To: help-gnu-emacs@gnu.org > Date: Sun, 6 Sep 2009 16:35:36 -0400 > Subject: flymake configuration error for C program > > When trying to run M-x Flymake-Mode in Emacs I get: > > Flymake: Configuration error has occured while running (make -s -C ./CHK_SOURCES=helloworld_flymake.c SYNTAX_CHECK_MODE=1 check-syntax). Flymake will be switched OFF > > I am invoking the command in a buffer called helloworld.c: > > #include > > int main(void) { > printf("Hello World"); > return 0; > } > > And have a file called Makefile in the same directory: > > helloworld: helloworld.c > gcc helloworld.c -o helloworld > > I'm running GNU Emacs 23.0.91.1 under Ubuntu 9.04. Running make like this fails for me: make -s -C ./ CHK_SOURCES=helloworld_flymake.c SYNTAX_CHECK_MODE=1 check-syntax You need to expand your makefile to have a check-syntax target, which should take the name of the file you're editing in CHK_SOURCES. Set this if you want to get some logging from flymake in your *Messages* buffer: (setq flymake-log-level 3) HTH, Anselm -- Anselm Helbig mailto:anselm.helbig+news2009@googlemail.com