GNU bug report logs -
#70716
flymake-cc creates `-.o` files
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 70716 in the body.
You can then email your comments to 70716 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#70716
; Package
emacs
.
(Thu, 02 May 2024 13:11:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Mattias Engdegård <mattias.engdegard <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 02 May 2024 13:11:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
`flymake-cc-use-special-make-target`, the standard value for `flymake-cc-command`, generates a command like
make check-syntax CHK_SOURCES="-x c -c -"
which causes the compiler (at least Clang) to create the file `-.o` that is never cleaned up and whose name is mysterious and awkward to remove.
What about the patch below?
[flymake-cc-null-output.diff (application/octet-stream, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#70716
; Package
emacs
.
(Thu, 02 May 2024 13:15:02 GMT)
Full text and
rfc822 format available.
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Thu, May 2, 2024 at 2:10 PM Mattias Engdegård <
mattias.engdegard <at> gmail.com> wrote:
> `flymake-cc-use-special-make-target`, the standard value for
> `flymake-cc-command`, generates a command like
>
> make check-syntax CHK_SOURCES="-x c -c -"
>
> which causes the compiler (at least Clang) to create the file `-.o` that
> is never cleaned up and whose name is mysterious and awkward to remove.
>
> What about the patch below?
>
Copying in Spencer Baugh, the new Flymake maintainer.
João
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#70716
; Package
emacs
.
(Thu, 02 May 2024 14:01:01 GMT)
Full text and
rfc822 format available.
Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):
2 maj 2024 kl. 15.13 skrev João Távora <joaotavora <at> gmail.com>:
> Copying in Spencer Baugh, the new Flymake maintainer.
Would either of you please update the `Maintainer:` lines in lisp/progmodes/flymake*.el then?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#70716
; Package
emacs
.
(Sat, 04 May 2024 11:40:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 70716 <at> debbugs.gnu.org (full text, mbox):
> Cc: sbaugh <at> catern.com, 70716 <at> debbugs.gnu.org
> From: Mattias Engdegård <mattias.engdegard <at> gmail.com>
> Date: Thu, 2 May 2024 16:00:08 +0200
>
> 2 maj 2024 kl. 15.13 skrev João Távora <joaotavora <at> gmail.com>:
>
> > Copying in Spencer Baugh, the new Flymake maintainer.
>
> Would either of you please update the `Maintainer:` lines in lisp/progmodes/flymake*.el then?
Spencer, is it okay to mention you there as the maintainer of Flymake?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#70716
; Package
emacs
.
(Sat, 18 May 2024 08:30:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 70716 <at> debbugs.gnu.org (full text, mbox):
> Cc: 70716 <at> debbugs.gnu.org
> From: João Távora <joaotavora <at> gmail.com>
> Date: Thu, 2 May 2024 14:13:49 +0100
>
> On Thu, May 2, 2024 at 2:10 PM Mattias Engdegård <mattias.engdegard <at> gmail.com> wrote:
>
> `flymake-cc-use-special-make-target`, the standard value for `flymake-cc-command`, generates a
> command like
>
> make check-syntax CHK_SOURCES="-x c -c -"
>
> which causes the compiler (at least Clang) to create the file `-.o` that is never cleaned up and whose
> name is mysterious and awkward to remove.
>
> What about the patch below?
>
>
> Copying in Spencer Baugh, the new Flymake maintainer.
Spencer, any comments or suggestions or patches?
Thanks.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#70716
; Package
emacs
.
(Sat, 18 May 2024 08:34:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 70716 <at> debbugs.gnu.org (full text, mbox):
Ping!
> Cc: sbaugh <at> catern.com, 70716 <at> debbugs.gnu.org, joaotavora <at> gmail.com
> Date: Sat, 04 May 2024 14:38:39 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
>
> > Cc: sbaugh <at> catern.com, 70716 <at> debbugs.gnu.org
> > From: Mattias Engdegård <mattias.engdegard <at> gmail.com>
> > Date: Thu, 2 May 2024 16:00:08 +0200
> >
> > 2 maj 2024 kl. 15.13 skrev João Távora <joaotavora <at> gmail.com>:
> >
> > > Copying in Spencer Baugh, the new Flymake maintainer.
> >
> > Would either of you please update the `Maintainer:` lines in lisp/progmodes/flymake*.el then?
>
> Spencer, is it okay to mention you there as the maintainer of Flymake?
>
>
>
>
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#70716
; Package
emacs
.
(Sun, 30 Jun 2024 05:47:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 70716 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> Cc: 70716 <at> debbugs.gnu.org
>> From: João Távora <joaotavora <at> gmail.com>
>> Date: Thu, 2 May 2024 14:13:49 +0100
>>
>> On Thu, May 2, 2024 at 2:10 PM Mattias Engdegård <mattias.engdegard <at> gmail.com> wrote:
>>
>> `flymake-cc-use-special-make-target`, the standard value for `flymake-cc-command`, generates a
>> command like
>>
>> make check-syntax CHK_SOURCES="-x c -c -"
>>
>> which causes the compiler (at least Clang) to create the file `-.o` that is never cleaned up and whose
>> name is mysterious and awkward to remove.
>>
>> What about the patch below?
>>
>>
>> Copying in Spencer Baugh, the new Flymake maintainer.
>
> Spencer, any comments or suggestions or patches?
>
> Thanks.
Ping.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#70716
; Package
emacs
.
(Sat, 20 Jul 2024 10:12:02 GMT)
Full text and
rfc822 format available.
Message #26 received at 70716 <at> debbugs.gnu.org (full text, mbox):
Ping! Spencer, would you please chime in?
> From: Stefan Kangas <stefankangas <at> gmail.com>
> Date: Sat, 29 Jun 2024 22:45:50 -0700
> Cc: João Távora <joaotavora <at> gmail.com>, sbaugh <at> catern.com,
> mattias.engdegard <at> gmail.com, 70716 <at> debbugs.gnu.org
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> >> Cc: 70716 <at> debbugs.gnu.org
> >> From: João Távora <joaotavora <at> gmail.com>
> >> Date: Thu, 2 May 2024 14:13:49 +0100
> >>
> >> On Thu, May 2, 2024 at 2:10 PM Mattias Engdegård <mattias.engdegard <at> gmail.com> wrote:
> >>
> >> `flymake-cc-use-special-make-target`, the standard value for `flymake-cc-command`, generates a
> >> command like
> >>
> >> make check-syntax CHK_SOURCES="-x c -c -"
> >>
> >> which causes the compiler (at least Clang) to create the file `-.o` that is never cleaned up and whose
> >> name is mysterious and awkward to remove.
> >>
> >> What about the patch below?
> >>
> >>
> >> Copying in Spencer Baugh, the new Flymake maintainer.
> >
> > Spencer, any comments or suggestions or patches?
> >
> > Thanks.
>
> Ping.
>
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#70716
; Package
emacs
.
(Sun, 04 Aug 2024 07:57:01 GMT)
Full text and
rfc822 format available.
Message #29 received at 70716 <at> debbugs.gnu.org (full text, mbox):
Ping! Ping! Spencer, please respond.
> Cc: mattias.engdegard <at> gmail.com, joaotavora <at> gmail.com, 70716 <at> debbugs.gnu.org
> Date: Sat, 20 Jul 2024 13:10:52 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
>
> Ping! Spencer, would you please chime in?
>
> > From: Stefan Kangas <stefankangas <at> gmail.com>
> > Date: Sat, 29 Jun 2024 22:45:50 -0700
> > Cc: João Távora <joaotavora <at> gmail.com>, sbaugh <at> catern.com,
> > mattias.engdegard <at> gmail.com, 70716 <at> debbugs.gnu.org
> >
> > Eli Zaretskii <eliz <at> gnu.org> writes:
> >
> > >> Cc: 70716 <at> debbugs.gnu.org
> > >> From: João Távora <joaotavora <at> gmail.com>
> > >> Date: Thu, 2 May 2024 14:13:49 +0100
> > >>
> > >> On Thu, May 2, 2024 at 2:10 PM Mattias Engdegård <mattias.engdegard <at> gmail.com> wrote:
> > >>
> > >> `flymake-cc-use-special-make-target`, the standard value for `flymake-cc-command`, generates a
> > >> command like
> > >>
> > >> make check-syntax CHK_SOURCES="-x c -c -"
> > >>
> > >> which causes the compiler (at least Clang) to create the file `-.o` that is never cleaned up and whose
> > >> name is mysterious and awkward to remove.
> > >>
> > >> What about the patch below?
> > >>
> > >>
> > >> Copying in Spencer Baugh, the new Flymake maintainer.
> > >
> > > Spencer, any comments or suggestions or patches?
> > >
> > > Thanks.
> >
> > Ping.
> >
>
>
>
>
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#70716
; Package
emacs
.
(Sat, 17 Aug 2024 08:24:02 GMT)
Full text and
rfc822 format available.
Message #32 received at 70716 <at> debbugs.gnu.org (full text, mbox):
Ping! Ping! Ping! Spencer, are you there?
> Cc: mattias.engdegard <at> gmail.com, stefankangas <at> gmail.com, 70716 <at> debbugs.gnu.org,
> joaotavora <at> gmail.com
> Date: Sun, 04 Aug 2024 10:55:48 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
>
> Ping! Ping! Spencer, please respond.
>
> > Cc: mattias.engdegard <at> gmail.com, joaotavora <at> gmail.com, 70716 <at> debbugs.gnu.org
> > Date: Sat, 20 Jul 2024 13:10:52 +0300
> > From: Eli Zaretskii <eliz <at> gnu.org>
> >
> > Ping! Spencer, would you please chime in?
> >
> > > From: Stefan Kangas <stefankangas <at> gmail.com>
> > > Date: Sat, 29 Jun 2024 22:45:50 -0700
> > > Cc: João Távora <joaotavora <at> gmail.com>, sbaugh <at> catern.com,
> > > mattias.engdegard <at> gmail.com, 70716 <at> debbugs.gnu.org
> > >
> > > Eli Zaretskii <eliz <at> gnu.org> writes:
> > >
> > > >> Cc: 70716 <at> debbugs.gnu.org
> > > >> From: João Távora <joaotavora <at> gmail.com>
> > > >> Date: Thu, 2 May 2024 14:13:49 +0100
> > > >>
> > > >> On Thu, May 2, 2024 at 2:10 PM Mattias Engdegård <mattias.engdegard <at> gmail.com> wrote:
> > > >>
> > > >> `flymake-cc-use-special-make-target`, the standard value for `flymake-cc-command`, generates a
> > > >> command like
> > > >>
> > > >> make check-syntax CHK_SOURCES="-x c -c -"
> > > >>
> > > >> which causes the compiler (at least Clang) to create the file `-.o` that is never cleaned up and whose
> > > >> name is mysterious and awkward to remove.
> > > >>
> > > >> What about the patch below?
> > > >>
> > > >>
> > > >> Copying in Spencer Baugh, the new Flymake maintainer.
> > > >
> > > > Spencer, any comments or suggestions or patches?
> > > >
> > > > Thanks.
> > >
> > > Ping.
> > >
> >
> >
> >
> >
>
>
>
>
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#70716
; Package
emacs
.
(Wed, 28 Aug 2024 17:03:02 GMT)
Full text and
rfc822 format available.
Message #35 received at 70716 <at> debbugs.gnu.org (full text, mbox):
Mattias Engdegård <mattias.engdegard <at> gmail.com> writes:
> `flymake-cc-use-special-make-target`, the standard value for `flymake-cc-command`, generates a command like
>
> make check-syntax CHK_SOURCES="-x c -c -"
>
> which causes the compiler (at least Clang) to create the file `-.o` that is never cleaned up and whose name is mysterious and awkward to remove.
>
> What about the patch below?
(info "(flymake) Example---Configuring a tool called via make")
mentions a check-syntax target looking like:
check-syntax:
gcc -o /dev/null -S ${CHK_SOURCES} || true
So it seems like it would be better to add this -o /dev/null in your
Makefile.
That also allows you to run, e.g.,
make check-syntax CHK_SOURCES="file1.c file2.c"
from a shell or M-x compile.
So I think this is a bug in your Makefile, not flymake-cc.
But, also, probably the docstring of flymake-cc-use-special-make-target
should be updated to link to the manual. And probably the manual should
mention that CHK_SOURCES can be an explicit list of files too.
BTW, the CHK_SOURCES target mentioned by flymake is, AFAICT from web
searches, completely unique to flymake. I wonder if there's a more
standard alternative... but we probably can't change the default of
flymake-cc-command anyway.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#70716
; Package
emacs
.
(Wed, 28 Aug 2024 17:03:02 GMT)
Full text and
rfc822 format available.
Message #38 received at 70716 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> Ping! Ping! Ping! Spencer, are you there?
My apologies, I had an issue causing me to not receive these emails.
I think it would be best to list sbaugh <at> janestreet.com as the Flymake
maintainer, since I'm more likely to receive such emails.
Reply sent
to
Mattias Engdegård <mattias.engdegard <at> gmail.com>
:
You have taken responsibility.
(Wed, 28 Aug 2024 17:53:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Mattias Engdegård <mattias.engdegard <at> gmail.com>
:
bug acknowledged by developer.
(Wed, 28 Aug 2024 17:53:02 GMT)
Full text and
rfc822 format available.
Message #43 received at 70716-done <at> debbugs.gnu.org (full text, mbox):
28 aug. 2024 kl. 19.01 skrev sbaugh <at> catern.com:
> check-syntax:
> gcc -o /dev/null -S ${CHK_SOURCES} || true
>
> So it seems like it would be better to add this -o /dev/null in your
> Makefile.
Actually not my Makefile but that of flymake-tests.
Anyway, now done on master, thank you!
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 26 Sep 2024 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 264 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.