Mailinglist Archive: opensuse-bugs (4283 mails)

< Previous Next >
[Bug 1025891] ceph does not build with GCC 7
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Thu, 18 May 2017 09:42:30 +0000
  • Message-id: <bug-1025891-21960-Hdzd4a7Ss9@http.bugzilla.novell.com/>
http://bugzilla.novell.com/show_bug.cgi?id=1025891
http://bugzilla.novell.com/show_bug.cgi?id=1025891#c24

--- Comment #24 from Richard Biener <rguenther@xxxxxxxx> ---
(In reply to Martin Liška from comment #23)
Currently, latest GCC 7 is in Staging:C.

And I see for filesystems:ceph/ceph (revision 84):

$ osc build ceph.spec --alternative-project=openSUSE:Factory:Staging:C


[ 132s]
/home/abuild/rpmbuild/BUILD/ceph-12.0.2+git.1493341348.9148e53/src/rocksdb/
db/write_thread.h: In member function 'std::mutex&
rocksdb::WriteThread::Writer::StateMutex()':
[ 132s]
/home/abuild/rpmbuild/BUILD/ceph-12.0.2+git.1493341348.9148e53/src/rocksdb/
db/write_thread.h:192:78: error: dereferencing type-punned pointer will
break strict-aliasing rules [-Werror=strict-aliasing]
[ 132s] return
*static_cast<std::mutex*>(static_cast<void*>(&state_mutex_bytes));
[ 132s]
^

Probably similar to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80593

(not seeing the actual type of state_mutex_bytes). The cast to void * was
probably working as a warning silencer in the past.

--
You are receiving this mail because:
You are on the CC list for the bug.
< Previous Next >