https://sourceware.org/bugzilla/show_bug.cgi?id=23455
Bug ID: 23455 Summary: gold: should the discarded version information warning exist? Product: binutils Version: 2.31 Status: UNCONFIRMED Severity: normal Priority: P2 Component: gold Assignee: ccoutant at gmail dot com Reporter: raphael.kubo.da.costa at intel dot com CC: ian at airs dot com Target Milestone: --- I've been trying to build the Chromium browser here, and linking a few shared libraries currently fails due to https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=cea6ffbd06a6ebb5c21cb51e7775b8ebb5e34f38 ("Fix treatment of symbol versions with unused as-needed libraries"). Chromium uses --as-needed by default, and also builds and links all targets with -pthread by default. This leads to failures such as g++ -shared -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,-z,defs -Wl,--as-needed -fuse-ld=gold -B -m64 -Wl,-O2 -Wl,--gc-sections -o "./libEGL.so" -Wl,-soname="libEGL.so" @"./libEGL.so.rsp" /usr/bin/ld.gold: warning: discarding version information for __cxa_finalize@GLIBC_2.2.5, defined in unused shared library /usr/lib64/libc.so.6 (linked with --as-needed) /usr/bin/ld.gold: error: treating warnings as errors g++ -shared -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,-z,defs -Wl,--as-needed -fuse-ld=gold -B -m64 -Wl,-O2 -Wl,--gc-sections -o "./libVkICD_mock_icd.so" -Wl,-soname="libVkICD_mock_icd.so" @"./libVkICD_mock_icd.so.rsp" /usr/bin/ld.gold: warning: discarding version information for __pthread_key_create@GLIBC_2.2.5, defined in unused shared library /usr/lib64/libpthread.so.0 (linked with --as-needed) /usr/bin/ld.gold: error: treating warnings as errors While it could be possible to avoid using -pthread everywhere, avoiding libc itself looks overkill, so I'm wondering if the gold warning is excessive, especially with --fatal-warnings. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils