Bug 9081 - 3.1.7 / dev compile failure with GCC 4.7.1
Summary: 3.1.7 / dev compile failure with GCC 4.7.1
Status: CLOSED FIXED
Alias: None
Product: ccache
Classification: Unclassified
Component: ccache (show other bugs)
Version: dev
Hardware: x64 Linux
: P5 regression
Target Milestone: 3.1.8
Assignee: Joel Rosdahl
QA Contact: Joel Rosdahl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-06 18:23 UTC by Bug Reporter
Modified: 2012-08-11 13:26 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bug Reporter 2012-08-06 18:23:21 UTC
Since about a month compilation of ccache will quickly abort with:

gcc -march=x86-64 -mtune=core2 -O3 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wall -W -Werror -DHAVE_CONFIG_H  -DSYSCONFDIR=/usr/etc -I. -I. -MD -MP -MF .deps/manifest.c.d -c -o manifest.o manifest.c
manifest.c:69:0: error: "static_assert" redefined [-Werror]
In file included from system.h:34:0,
                 from ccache.h:4,
                 from manifest.c:19:
/usr/include/assert.h:119:0: note: this is the location of the previous definition
cc1: all warnings being treated as errors
make: *** [manifest.o] Error 1

Using Arch Linux x64, zlib 1.2.7 and (I guess that might be the cause:) glibc 2.16.0.
Comment 1 Joel Rosdahl 2012-08-09 13:17:08 UTC
Fixed in 0010ba1ac6071a5585b8a59df896855b1d711974.
Comment 2 Joel Rosdahl 2012-08-11 13:26:16 UTC
Fix included in v3.1.8.