Summary: | dev-libs/protobuf-3.20.1-r1 fails to compile tests with ABI_X86="32" (repeated_field.h:81:27: error: static assertion failed) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Paolo Pedroni <paolo.pedroni> |
Component: | Current packages | Assignee: | Arfrever Frehtes Taifersar Arahesis <arfrever.fta> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | cjk, jstein, sam |
Priority: | Normal | Keywords: | TESTFAILURE |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://github.com/protocolbuffers/protobuf/pull/10589 | ||
See Also: |
https://github.com/protocolbuffers/protobuf/issues/10418 https://bugs.gentoo.org/show_bug.cgi?id=857570 https://bugs.gentoo.org/show_bug.cgi?id=921943 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 879971 | ||
Attachments: |
protobuf-3.20.1-r1:20221006-090713.log.gz
build.log (pcc, 21.9) |
Description
Paolo Pedroni
2022-10-06 09:14:59 UTC
from /var/tmp/portage/dev-libs/protobuf-3.20.1-r1/work/protobuf-3.20.1/src/google/protobuf/test_util.h:38, from /var/tmp/portage/dev-libs/protobuf-3.20.1-r1/work/protobuf-3.20.1/src/google/protobuf/extension_set_unittest.cc:39: /var/tmp/portage/dev-libs/protobuf-3.20.1-r1/work/protobuf-3.20.1/src/google/protobuf/repeated_field.h: In instantiation of ‘constexpr int google::protobuf::internal::RepeatedFieldLowerClampLimit() [with T = long long int; int kRepHeaderSize = 4]’: /var/tmp/portage/dev-libs/protobuf-3.20.1-r1/work/protobuf-3.20.1/src/google/protobuf/extension_set_unittest.cc:844:3: required from here /var/tmp/portage/dev-libs/protobuf-3.20.1-r1/work/protobuf-3.20.1/src/google/protobuf/repeated_field.h:81:27: error: static assertion failed 81 | static_assert(sizeof(T) <= kRepHeaderSize, ""); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~ /var/tmp/portage/dev-libs/protobuf-3.20.1-r1/work/protobuf-3.20.1/src/google/protobuf/repeated_field.h:81:27: note: the comparison reduces to ‘(8 <= 4)’ /var/tmp/portage/dev-libs/protobuf-3.20.1-r1/work/protobuf-3.20.1/src/google/protobuf/repeated_field.h: In instantiation of ‘constexpr int google::protobuf::internal::RepeatedFieldLowerClampLimit() [with T = long long unsigned int; int kRepHeaderSize = 4]’: /var/tmp/portage/dev-libs/protobuf-3.20.1-r1/work/protobuf-3.20.1/src/google/protobuf/extension_set_unittest.cc:846:3: required from here /var/tmp/portage/dev-libs/protobuf-3.20.1-r1/work/protobuf-3.20.1/src/google/protobuf/repeated_field.h:81:27: error: static assertion failed /var/tmp/portage/dev-libs/protobuf-3.20.1-r1/work/protobuf-3.20.1/src/google/protobuf/repeated_field.h:81:27: note: the comparison reduces to ‘(8 <= 4)’ /var/tmp/portage/dev-libs/protobuf-3.20.1-r1/work/protobuf-3.20.1/src/google/protobuf/repeated_field.h: In instantiation of ‘constexpr int google::protobuf::internal::RepeatedFieldLowerClampLimit() [with T = double; int kRepHeaderSize = 4]’: /var/tmp/portage/dev-libs/protobuf-3.20.1-r1/work/protobuf-3.20.1/src/google/protobuf/extension_set_unittest.cc:854:3: required from here /var/tmp/portage/dev-libs/protobuf-3.20.1-r1/work/protobuf-3.20.1/src/google/protobuf/repeated_field.h:81:27: error: static assertion failed /var/tmp/portage/dev-libs/protobuf-3.20.1-r1/work/protobuf-3.20.1/src/google/protobuf/repeated_field.h:81:27: note: the comparison reduces to ‘(8 <= 4)’ Created attachment 839907 [details]
build.log (pcc, 21.9)
Same on ppc. Probably all 32bit arches affected?
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7778f9cadb610c8d9cdc057fe1781009d776511f commit 7778f9cadb610c8d9cdc057fe1781009d776511f Author: Sam James <sam@gentoo.org> AuthorDate: 2023-01-04 05:58:56 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-01-04 06:04:21 +0000 dev-libs/protobuf: backport 32-bit test fixes Closes: https://bugs.gentoo.org/875584 Signed-off-by: Sam James <sam@gentoo.org> .../files/protobuf-21.9-disable-32-bit-tests.patch | 118 +++++++++++++++++++++ dev-libs/protobuf/protobuf-21.9.ebuild | 3 +- 2 files changed, 120 insertions(+), 1 deletion(-) |