libtool: link: x86_64-pc-linux-gnu-ranlib .libs/libunwind-elf64.a libtool: link: ( cd ".libs" && rm -f "libunwind-elf64.la" && ln -s "../libunwind-elf64.la" "libunwind-elf64.la" ) /bin/sh ../libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -fexceptions -Wall -Wsign-compare -XCClinker -nostartfiles -XCClinker -nostdlib -version-info 8:1:0 -Wl,-O1 -Wl,--as-needed -o libunwind.la -rpath /usr/lib64 os-linux.lo mi/init.lo mi/flush_cache.lo mi/mempool.lo mi/strerror.lo x86_64/is_fpreg.lo x86_64/regname.lo x86_64/Los-linux.lo mi/_ReadULEB.lo mi/_ReadSLEB.lo mi/backtrace.lo mi/dyn-cancel.lo mi/dyn-info-list.lo mi/dyn-register.lo mi/Ldyn-extract.lo mi/Lfind_dynamic_proc_info.lo mi/Lget_accessors.lo mi/Lget_proc_info_by_ip.lo mi/Lget_proc_name.lo mi/Lput_dynamic_unwind_info.lo mi/Ldestroy_addr_space.lo mi/Lget_reg.lo mi/Lset_reg.lo mi/Lget_fpreg.lo mi/Lset_fpreg.lo mi/Lset_caching_policy.lo mi/Lset_cache_size.lo unwind/Backtrace.lo unwind/DeleteException.lo unwind/FindEnclosingFunction.lo unwind/ForcedUnwind.lo unwind/GetBSP.lo unwind/GetCFA.lo unwind/GetDataRelBase.lo unwind/GetGR.lo unwind/GetIP.lo unwind/GetLanguageSpecificData.lo unwind/GetRegionStart.lo unwind/GetTextRelBase.lo unwind/RaiseException.lo unwind/Resume.lo unwind/Resume_or_Rethrow.lo unwind/SetGR.lo unwind/SetIP.lo unwind/GetIPInfo.lo x86_64/setcontext.lo x86_64/Lapply_reg_state.lo x86_64/Lreg_states_iterate.lo x86_64/Lcreate_addr_space.lo x86_64/Lget_save_loc.lo x86_64/Lglobal.lo x86_64/Linit.lo x86_64/Linit_local.lo x86_64/Linit_remote.lo x86_64/Lget_proc_info.lo x86_64/Lregs.lo x86_64/Lresume.lo x86_64/Lstash_frame.lo x86_64/Lstep.lo x86_64/Ltrace.lo x86_64/getcontext.lo libunwind-dwarf-local.la libunwind-elf64.la -lc -lgcc_s libtool: link: x86_64-pc-linux-gnu-gcc -shared -fPIC -DPIC .libs/os-linux.o mi/.libs/init.o mi/.libs/flush_cache.o mi/.libs/mempool.o mi/.libs/strerror.o x86_64/.libs/is_fpreg.o x86_64/.libs/regname.o x86_64/.libs/Los-linux.o mi/.libs/_ReadULEB.o mi/.libs/_ReadSLEB.o mi/.libs/backtrace.o mi/.libs/dyn-cancel.o mi/.libs/dyn-info-list.o mi/.libs/dyn-register.o mi/.libs/Ldyn-extract.o mi/.libs/Lfind_dynamic_proc_info.o mi/.libs/Lget_accessors.o mi/.libs/Lget_proc_info_by_ip.o mi/.libs/Lget_proc_name.o mi/.libs/Lput_dynamic_unwind_info.o mi/.libs/Ldestroy_addr_space.o mi/.libs/Lget_reg.o mi/.libs/Lset_reg.o mi/.libs/Lget_fpreg.o mi/.libs/Lset_fpreg.o mi/.libs/Lset_caching_policy.o mi/.libs/Lset_cache_size.o unwind/.libs/Backtrace.o unwind/.libs/DeleteException.o unwind/.libs/FindEnclosingFunction.o unwind/.libs/ForcedUnwind.o unwind/.libs/GetBSP.o unwind/.libs/GetCFA.o unwind/.libs/GetDataRelBase.o unwind/.libs/GetGR.o unwind/.libs/GetIP.o unwind/.libs/GetLanguageSpecificData.o unwind/.libs/GetRegionStart.o unwind/.libs/GetTextRelBase.o unwind/.libs/RaiseException.o unwind/.libs/Resume.o unwind/.libs/Resume_or_Rethrow.o unwind/.libs/SetGR.o unwind/.libs/SetIP.o unwind/.libs/GetIPInfo.o x86_64/.libs/setcontext.o x86_64/.libs/Lapply_reg_state.o x86_64/.libs/Lreg_states_iterate.o x86_64/.libs/Lcreate_addr_space.o x86_64/.libs/Lget_save_loc.o x86_64/.libs/Lglobal.o x86_64/.libs/Linit.o x86_64/.libs/Linit_local.o x86_64/.libs/Linit_remote.o x86_64/.libs/Lget_proc_info.o x86_64/.libs/Lregs.o x86_64/.libs/Lresume.o x86_64/.libs/Lstash_frame.o x86_64/.libs/Lstep.o x86_64/.libs/Ltrace.o x86_64/.libs/getcontext.o -Wl,--whole-archive ./.libs/libunwind-dwarf-local.a ./.libs/libunwind-elf64.a -Wl,--no-whole-archive -Wl,--as-needed -lc -lgcc_s -O2 -march=native -nostartfiles -nostdlib -Wl,-O1 -Wl,-soname -Wl,libunwind.so.8 -o .libs/libunwind.so.8.0.1 /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: x86_64/.libs/Linit.o:(.bss+0x0): multiple definition of `_U_dyn_info_list'; mi/.libs/dyn-info-list.o:(.bss+0x0): first defined here collect2: error: ld returned 1 exit status ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_no-multilib-20200124-204141 ------------------------------------------------------------------- Please see the tracker bug for details. gcc-config -l: [1] x86_64-pc-linux-gnu-9.2.0 * llvm: 9.0.1 Available Python interpreters, in order of preference: [1] python3.8 [2] python3.7 [3] python3.6 [4] python2.7 (fallback) Available Ruby profiles: [1] ruby24 (with Rubygems) [2] ruby25 (with Rubygems) * Available Rust versions: [1] rust-1.40.0 * repository: ==> /var/db/repos/gentoo/metadata/timestamp.chk <== Sun, 26 Jan 2020 20:26:16 +0000 emerge -qpvO sys-libs/libunwind [ebuild N ] sys-libs/libunwind-1.3.1 USE="static-libs -debug -debug-frame -doc -libatomic -lzma"
Created attachment 604976 [details] emerge-info.txt
Created attachment 604978 [details] emerge-history.txt
Created attachment 604980 [details] environment
Created attachment 604982 [details] etc.portage.tbz2
Created attachment 604984 [details] logs.tbz2
Created attachment 604986 [details] sys-libs:libunwind-1.3.1:20200126-212855.log
Created attachment 604988 [details] temp.tbz2
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c50e03e331565aa875dc7a081d9c0f865869f563 commit c50e03e331565aa875dc7a081d9c0f865869f563 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2020-02-12 23:42:18 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2020-02-12 23:42:24 +0000 sys-libs/libunwind: add -fcommon workaround for gcc-10, bug # The source fix is not trivial as it's not clear where global shloud be defined: in common or per-arch files. Use -fcommon downstream and leave proper fix to upstream ticket. Reported-by: Toralf Förster Closes: https://bugs.gentoo.org/706560 Package-Manager: Portage-2.3.88, Repoman-2.3.20 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> sys-libs/libunwind/libunwind-1.2.1-r3.ebuild | 8 ++++++-- sys-libs/libunwind/libunwind-1.3.1.ebuild | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-)
Just to add that upstream has a patch and that the the -fcommon can be disabled. https://github.com/libunwind/libunwind/pull/157 Sorry for not contributing with a patch, but I do not use gentoo any more :(
My apologies, the previous link was to a pull request that was not merged. The one merged was https://github.com/libunwind/libunwind/pull/166