Summary: | dev-db/cpp-driver-2.7.1 : /.../buffer.hpp:199:16: error: *((void*)(&<anonymous>)+8).cass::Buffer::data_.cass::Buffer::<unnamed union>::buffer may be used uninitialized in this function [-Werror=maybe-uninitialized] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Geaaru <geaaru> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | proxy-maint |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge-info.txt
dev-db:cpp-driver-2.7.1:20171128-213453.log emerge-history.txt environment etc.portage.tbz2 logs.tbz2 temp.tbz2 |
Description
Toralf Förster
2017-11-28 21:46:02 UTC
Created attachment 507026 [details]
emerge-info.txt
Created attachment 507028 [details]
dev-db:cpp-driver-2.7.1:20171128-213453.log
Created attachment 507030 [details]
emerge-history.txt
Created attachment 507032 [details]
environment
Created attachment 507034 [details]
etc.portage.tbz2
Created attachment 507036 [details]
logs.tbz2
Created attachment 507038 [details]
temp.tbz2
Can you check if there is same problem with gcc6 ? FWIS you use gcc7. I will try to investigate in the next days. Thanks G. With gcc-6.4.0 from a clean stage3 rootfs I can't reproduce this issue. I think that related with gcc-7. I continue to investigate. G. I confirm that is related with gcc7 compilation but I'm not sure that is not a false positive on gcc preprocessor. This could be a workaround, until I don't found a clear fix: # cat /etc/portage/patches/dev-db/cpp-driver-2.7.1/01-gcc7_warnings.patch --- a/src/buffer.hpp 2017-09-19 19:18:10.000000000 +0000 +++ b/src/buffer.hpp 2017-12-03 01:37:06.076256644 +0000 @@ -196,6 +196,9 @@ private: void copy(const Buffer& buf) { + +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wmaybe-uninitialized" RefBuffer* temp = data_.buffer; if (buf.size_ > FIXED_BUFFER_SIZE) { @@ -210,6 +213,7 @@ } size_ = buf.size_; +#pragma GCC diagnostic pop } union { Hi, dev-db/cpp-driver-2.8.0 fix this. I will push pr to portage soon. Thanks for reporting. G. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5084338185ba601335cbc09166677c9b203b5933 commit 5084338185ba601335cbc09166677c9b203b5933 Author: Geaaru <geaaru@gmail.com> AuthorDate: 2017-12-07 08:54:30 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2017-12-07 09:12:26 +0000 dev-db/cpp-driver: 2.8.0 version bump, bug #639116 Package-Manager: Portage-2.3.13, Repoman-2.3.4 Closes: https://bugs.gentoo.org/639116 Closes: https://github.com/gentoo/gentoo/pull/6446 dev-db/cpp-driver/Manifest | 3 ++- dev-db/cpp-driver/cpp-driver-2.8.0.ebuild | 28 ++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) |