protobuf ftbfs in eoan (ppc64el)

Bug #1843757 reported by Matthias Klose
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
protobuf (Ubuntu)
Confirmed
High
Unassigned

Bug Description

https://launchpadlibrarian.net/441264543/buildlog_ubuntu-eoan-ppc64el.protobuf_3.6.1.3-2_BUILDING.txt.gz

g++ -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -pthread -DHAVE_PTHREAD=1 -DHAVE_ZLIB=1 -Wall -Wextra -Werror -Wno-unused-parameter -g -O3 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o google/protobuf/no_warning_test-any_test.pb.o `test -f 'google/protobuf/any_test.pb.cc' || echo './'`google/protobuf/any_test.pb.cc
In file included from /usr/include/string.h:494,
                 from ./google/protobuf/stubs/port.h:38,
                 from ./google/protobuf/stubs/common.h:46,
                 from ./google/protobuf/any_test.pb.h:9,
                 from google/protobuf/any_test.pb.cc:4:
In function ‘void* memset(void*, int, size_t)’,
    inlined from ‘void protobuf_unittest::TestAny::SharedCtor()’ at google/protobuf/any_test.pb.cc:163:11,
    inlined from ‘protobuf_unittest::TestAny::TestAny()’ at google/protobuf/any_test.pb.cc:145:13,
    inlined from ‘void protobuf_google_2fprotobuf_2fany_5ftest_2eproto::InitDefaultsTestAny()’ at google/protobuf/any_test.pb.cc:141:1:
/usr/include/powerpc64le-linux-gnu/bits/string_fortified.h:71:33: error: ‘void* __builtin_memset(void*, int, long unsigned int)’ offset [49, 52] from the object at ‘protobuf_unittest::_TestAny_default_instance_’ is out of the bounds of referenced subobject ‘protobuf_unittest::TestAny::any_value_’ with type ‘google::protobuf::Any*’ at offset 40 [-Werror=array-bounds]
   71 | return __builtin___memset_chk (__dest, __ch, __len, __bos0 (__dest));
      | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[4]: *** [Makefile:4468: google/protobuf/no_warning_test-any_test.pb.o] Error 1
make[4]: *** Waiting for unfinished jobs....
In file included from /usr/include/string.h:494,
                 from ./google/protobuf/stubs/port.h:38,
                 from ./google/protobuf/stubs/common.h:46,
                 from ./google/protobuf/unittest_lite.pb.h:9,
                 from google/protobuf/unittest_lite.pb.cc:4:
In function ‘void* memset(void*, int, size_t)’,
    inlined from ‘void protobuf_unittest::TestAllTypesLite_NestedMessage::SharedCtor()’ at google/protobuf/unittest_lite.pb.cc:792:11,
    inlined from ‘protobuf_unittest::TestAllTypesLite_NestedMessage::TestAllTypesLite_NestedMessage()’ at google/protobuf/unittest_lite.pb.cc:777:13,
    inlined from ‘void protobuf_google_2fprotobuf_2funittest_5flite_2eproto::InitDefaultsTestAllTypesLite_NestedMessage()’ at google/protobuf/unittest_lite.pb.cc:773:1:
/usr/include/powerpc64le-linux-gnu/bits/string_fortified.h:71:33: error: ‘void* __builtin_memset(void*, int, long unsigned int)’ offset [33, 36] from the object at ‘protobuf_unittest::_TestAllTypesLite_NestedMessage_default_instance_’ is out of the bounds of referenced subobject ‘protobuf_unittest::TestAllTypesLite_NestedMessage::cc_’ with type ‘long int’ at offset 24 [-Werror=array-bounds]
   71 | return __builtin___memset_chk (__dest, __ch, __len, __bos0 (__dest));
      | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[4]: *** [Makefile:4412: google/protobuf/no_warning_test-unittest_lite.pb.o] Error 1
In file included from /usr/include/string.h:494,
                 from ./google/protobuf/stubs/port.h:38,
                 from ./google/protobuf/stubs/common.h:46,
                 from ./google/protobuf/map_lite_unittest.pb.h:9,
                 from google/protobuf/map_lite_unittest.pb.cc:4:
In function ‘void* memset(void*, int, size_t)’,
    inlined from ‘void protobuf_unittest::TestRequiredLite::SharedCtor()’ at google/protobuf/map_lite_unittest.pb.cc:6417:11,
    inlined from ‘protobuf_unittest::TestRequiredLite::TestRequiredLite()’ at google/protobuf/map_lite_unittest.pb.cc:6394:13,
    inlined from ‘void protobuf_google_2fprotobuf_2fmap_5flite_5funittest_2eproto::InitDefaultsTestRequiredLite()’ at google/protobuf/map_lite_unittest.pb.cc:6390:1:
/usr/include/powerpc64le-linux-gnu/bits/string_fortified.h:71:33: error: ‘void* __builtin_memset(void*, int, long unsigned int)’ offset [29, 36] from the object at ‘protobuf_unittest::_TestRequiredLite_default_instance_’ is out of the bounds of referenced subobject ‘protobuf_unittest::TestRequiredLite::a_’ with type ‘int’ at offset 24 [-Werror=array-bounds]
   71 | return __builtin___memset_chk (__dest, __ch, __len, __bos0 (__dest));
      | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[4]: *** [Makefile:4398: google/protobuf/no_warning_test-map_lite_unittest.pb.o] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/src'

Matthias Klose (doko)
Changed in protobuf (Ubuntu):
status: New → Confirmed
importance: Undecided → High
tags: added: ftbfs rls-ee-incoming
Revision history for this message
Rion (rion4ik) wrote :

I have the same protobuf problem with my personal code.
Generated by protobuf code is definitely not compatible with currently installed system headers.
I also tested protobuf-3.10 and it works fine. So I think the protobuf package has to be upgraded in the Ubuntu repo.

Revision history for this message
Rion (rion4ik) wrote :

Ignore the above about 3.10. I tried to compile without optimization. That's why I didn't notice the problem. So 3.10 is also affected.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.