* flymake configuration error for C program
@ 2009-09-06 20:35 Corey Foote
2009-09-06 20:40 ` Corey Foote
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Corey Foote @ 2009-09-06 20:35 UTC (permalink / raw
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 830 bytes --]
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 <stdio.h>
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.
Thanks in advance!
_________________________________________________________________
Hotmail® is up to 70% faster. Now good news travels really fast.
http://windowslive.com/online/hotmail?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:WM_HYGN_faster:082009
[-- Attachment #2: Type: text/html, Size: 1193 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: flymake configuration error for C program
2009-09-06 20:35 flymake configuration error for C program Corey Foote
@ 2009-09-06 20:40 ` Corey Foote
[not found] ` <mailman.6140.1252269616.2239.help-gnu-emacs@gnu.org>
2009-09-06 22:23 ` Andreas Politz
2 siblings, 0 replies; 4+ messages in thread
From: Corey Foote @ 2009-09-06 20:40 UTC (permalink / raw
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 1205 bytes --]
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 <stdio.h>
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.
Thanks in advance!
Hotmail® is up to 70% faster. Now good news travels really fast. Try it now.
_________________________________________________________________
Windows Live: Keep your friends up to date with what you do online.
http://windowslive.com/Campaign/SocialNetworking?ocid=PID23285::T:WLMTAGL:ON:WL:en-US:SI_SB_online:082009
[-- Attachment #2: Type: text/html, Size: 1862 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: flymake configuration error for C program
[not found] ` <mailman.6140.1252269616.2239.help-gnu-emacs@gnu.org>
@ 2009-09-06 22:20 ` Anselm Helbig
0 siblings, 0 replies; 4+ messages in thread
From: Anselm Helbig @ 2009-09-06 22:20 UTC (permalink / raw
To: help-gnu-emacs
At Sun, 6 Sep 2009 16:40:10 -0400,
Corey Foote <coreyfoote@hotmail.com> wrote:
>
> [1 <text/plain; iso-8859-1 (quoted-printable)>]
>
> [2 <text/html; iso-8859-1 (quoted-printable)>]
> 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 <stdio.h>
>
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: flymake configuration error for C program
2009-09-06 20:35 flymake configuration error for C program Corey Foote
2009-09-06 20:40 ` Corey Foote
[not found] ` <mailman.6140.1252269616.2239.help-gnu-emacs@gnu.org>
@ 2009-09-06 22:23 ` Andreas Politz
2 siblings, 0 replies; 4+ messages in thread
From: Andreas Politz @ 2009-09-06 22:23 UTC (permalink / raw
To: help-gnu-emacs
Corey Foote <coreyfoote@hotmail.com> writes:
> 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 tried this today as well. Here is the answer :
,----[ (info "(flymake) Example -- Configuring a tool called via make") ]
|
| Thus, `Makefile' must contain the `check-syntax' target. In our case
| this target might look like this:
|
| check-syntax:
| gcc -o nul -S ${CHK_SOURCES}
`----
-ap
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-09-06 22:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-06 20:35 flymake configuration error for C program Corey Foote
2009-09-06 20:40 ` Corey Foote
[not found] ` <mailman.6140.1252269616.2239.help-gnu-emacs@gnu.org>
2009-09-06 22:20 ` Anselm Helbig
2009-09-06 22:23 ` Andreas Politz
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.