Skip to content

configure: clang 3.5.0 build fixes

John Snow qemu-devel 4 versions – Applied

Status from this message: Thanks, applied to my block tree:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest4 patches 4 repliesApplied
  2. v44 patches 1 replySuperseded
  3. v34 patches 9 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v24 patches3 repliesSuperseded

v4 from the cover letter

- Enable ccache workaround for configurations without -Werror, to suppress warnings as well.
- Removed optimization from cc_has_warning_flag()
- Renamed ccache variable to ccache_cpp2

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/4configure: handle clang -nopie argument warningconfigure+1 -10 replies
2/4configure: factor out supported flag checkconfigure+19 -140 replies
3/4configure: silence glib unknown attribute __alloc_size__configure+12 -00 replies
4/4configure: Add workaround for ccache and clangconfigure+33 -10 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchStefan Hajnoczi
SeriesR-b
1/4
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [Qemu-devel] [PATCH v5 0/4] configure: clang 3.5.0 build fixes

QEMU does not compile cleanly under clang 3.5.0. These patches eliminate the avalanche of warnings and make the build usable.

The result is that you *should* be able to use clang 3.5.0 *with* ccache and -Werror and produce all targets.

Regrettably, this is v5 because I overlooked deleting "--keep-tmpc" in the previous version. Sorry mom, I let the homestead down. We'll be eating dirt this winter. I can always go to the city for work, please don't cry.

v4:
- Enable ccache workaround for configurations without -Werror, to suppress warnings as well.
- Removed optimization from cc_has_warning_flag()
- Renamed ccache variable to ccache_cpp2

John Snow (3):
configure: factor out supported flag check
configure: silence glib unknown attribute __alloc_size__
configure: Add workaround for ccache and clang

Stefan Hajnoczi (1):
configure: handle clang -nopie argument warning

 configure | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++-------------
 1 file changed, 65 insertions(+), 16 deletions(-)
Signature · 1 line
2.1.0