Created attachment 580224 [details] protobuf-c-1.3.1:20190620-142231.log After updating to protobuf-3.7.1, protobuf-c fails to rebuild with this error: [libprotobuf WARNING /var/tmp/portage/dev-libs/protobuf-3.7.1/work/protobuf-3.7.1/src/google/protobuf/compiler/parser.cc:564] No syntax specified for the proto file: t/issue220/issue220.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.) [libprotobuf WARNING /var/tmp/portage/dev-libs/protobuf-3.7.1/work/protobuf-3.7.1/src/google/protobuf/compiler/parser.cc:564] No syntax specified for the proto file: t/issue220/issue220.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.) terminate called after throwing an instance of 'std::system_error' what(): Unknown error -1 terminate called after throwing an instance of 'std::system_error' what(): Unknown error -1 terminate called after throwing an instance of 'std::system_error' what(): Unknown error -1 terminate called after throwing an instance of 'std::system_error' what(): Unknown error -1 --c_out: protoc-gen-c: Plugin killed by signal 6. make: *** [Makefile:2397: t/test-proto3.pb-c.h] Error 1 make: *** Waiting for unfinished jobs.... --c_out: protoc-gen-c: Plugin killed by signal 6. make: *** [Makefile:2399: t/issue220/issue220.pb-c.c] Error 1 --c_out: protoc-gen-c: Plugin killed by signal 6. make: *** [Makefile:2397: t/test-proto3.pb-c.c] Error 1 --c_out: protoc-gen-c: Plugin killed by signal 6. make: *** [Makefile:2399: t/issue220/issue220.pb-c.h] Error 1 * ERROR: dev-libs/protobuf-c-1.3.1::gentoo failed (compile phase): * emake failed Looks like it's linked to the gold linker. Switching to ld.bfd temporarily let's me rebuild protobuf-c succesfully.
Created attachment 580226 [details] emerge-info_protobuf-c-1.3.1.txt output of emerge --info =dev-libs/protobuf-c-1.3.1
(In reply to Bernd from comment #0) > Looks like it's linked to the gold linker. Switching to ld.bfd temporarily > let's me rebuild protobuf-c succesfully. Do you mean that you rebuilt dev-libs/protobuf or dev-libs/protobuf-c with linker BFD?
No, only protobuf-c was rebuilt using BFD linker.
As a workaround, the following worked for me: echo 'LDFLAGS="${LDFLAGS} -Wl,-fuse-ld=bfd"' >>/etc/portage/env/force-bfd.conf echo 'dev-libs/protobuf-c force-bfd.conf' >>/etc/portage/env/package.env/issue-688394