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>
Subject: bug#70716: closed (Re: bug#70716: flymake-cc creates `-.o` files)
Date: Wed, 28 Aug 2024 17:53:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#70716: flymake-cc creates `-.o` files

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 70716 <at> debbugs.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: 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!


[Message part 3 (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 4 (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)]

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.