Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 706560 - sys-libs/libunwind-1.3.1 : fails to build with -fno-common or gcc-10
Summary: sys-libs/libunwind-1.3.1 : fails to build with -fno-common or gcc-10
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: https://github.com/libunwind/libunwin...
Whiteboard:
Keywords:
Depends on:
Blocks: -fno-common
  Show dependency tree
 
Reported: 2020-01-26 21:37 UTC by Toralf Förster
Modified: 2020-09-30 08:21 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,15.41 KB, text/plain)
2020-01-26 21:37 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,116.35 KB, text/plain)
2020-01-26 21:37 UTC, Toralf Förster
Details
environment (environment,84.19 KB, text/plain)
2020-01-26 21:37 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,14.81 KB, application/x-bzip)
2020-01-26 21:37 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,12.70 KB, application/x-bzip)
2020-01-26 21:37 UTC, Toralf Förster
Details
sys-libs:libunwind-1.3.1:20200126-212855.log (sys-libs:libunwind-1.3.1:20200126-212855.log,130.03 KB, text/plain)
2020-01-26 21:37 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,29.78 KB, application/x-bzip)
2020-01-26 21:37 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-01-26 21:37:29 UTC
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"
Comment 1 Toralf Förster gentoo-dev 2020-01-26 21:37:32 UTC
Created attachment 604976 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-26 21:37:35 UTC
Created attachment 604978 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-26 21:37:38 UTC
Created attachment 604980 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-26 21:37:43 UTC
Created attachment 604982 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-26 21:37:46 UTC
Created attachment 604984 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-01-26 21:37:49 UTC
Created attachment 604986 [details]
sys-libs:libunwind-1.3.1:20200126-212855.log
Comment 7 Toralf Förster gentoo-dev 2020-01-26 21:37:52 UTC
Created attachment 604988 [details]
temp.tbz2
Comment 8 Larry the Git Cow gentoo-dev 2020-02-12 23:42:29 UTC
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(-)
Comment 9 Paulo Neves 2020-09-30 08:16:38 UTC
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 :(
Comment 10 Paulo Neves 2020-09-30 08:21:45 UTC
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