GNU bug report logs - #70716
flymake-cc creates `-.o` files

Previous Next

Package: emacs;

Reported by: Mattias Engdegård <mattias.engdegard <at> gmail.com>

Date: Thu, 2 May 2024 13:11:01 UTC

Severity: normal

Done: Mattias Engdegård <mattias.engdegard <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Mattias Engdegård <mattias.engdegard <at> gmail.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#70716: closed (flymake-cc creates `-.o` files)
Date: Wed, 28 Aug 2024 17:53:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 28 Aug 2024 19:50:00 +0200
with message-id <915DA9CD-3EB2-46C4-8FA2-B9ED923E881B <at> gmail.com>
and subject line Re: bug#70716: flymake-cc creates `-.o` files
has caused the debbugs.gnu.org bug report #70716,
regarding flymake-cc creates `-.o` files
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
70716: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=70716
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Mattias Engdegård <mattias.engdegard <at> gmail.com>
To: Emacs Bug Report <bug-gnu-emacs <at> gnu.org>
Cc: João Távora <joaotavora <at> gmail.com>
Subject: flymake-cc creates `-.o` files
Date: Thu, 2 May 2024 15:10:18 +0200
[Message part 3 (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)]
[Message part 5 (message/rfc822, inline)]
From: Mattias Engdegård <mattias.engdegard <at> gmail.com>
To: Spencer Baugh <sbaugh <at> janestreet.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 70716-done <at> debbugs.gnu.org,
 João Távora <joaotavora <at> gmail.com>
Subject: Re: bug#70716: flymake-cc creates `-.o` files
Date: Wed, 28 Aug 2024 19:50:00 +0200
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!



This bug report was last modified 265 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.