Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 688394 - dev-libs/protobuf-c-1.3.1 with linker GOLD: terminate called after throwing an instance of 'std::system_error'
Summary: dev-libs/protobuf-c-1.3.1 with linker GOLD: terminate called after throwing a...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: systemwide-gold
  Show dependency tree
 
Reported: 2019-06-20 14:34 UTC by Bernd
Modified: 2022-02-26 17:20 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
protobuf-c-1.3.1:20190620-142231.log (protobuf-c-1.3.1:20190620-142231.log,23.19 KB, text/x-log)
2019-06-20 14:34 UTC, Bernd
Details
emerge-info_protobuf-c-1.3.1.txt (emerge-into_protobuf-c-1.3.1.txt,13.88 KB, text/plain)
2019-06-20 14:35 UTC, Bernd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd 2019-06-20 14:34:01 UTC
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.
Comment 1 Bernd 2019-06-20 14:35:15 UTC
Created attachment 580226 [details]
emerge-info_protobuf-c-1.3.1.txt

output of emerge --info =dev-libs/protobuf-c-1.3.1
Comment 2 Arfrever Frehtes Taifersar Arahesis 2019-06-20 15:27:51 UTC
(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?
Comment 3 Bernd 2019-06-20 17:48:41 UTC
No, only protobuf-c was rebuilt using BFD linker.
Comment 4 Skruppy 2019-07-07 16:58:47 UTC
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