Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 806360

Summary: sci-libs/ceres-solver-1.14.0 - /.../ld: cannot find -lunwind-x86_64
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED OBSOLETE    
Severity: normal CC: andrewammerlaan
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2
sci-libs:ceres-solver-1.14.0:20210804-035240.log
temp.tar.bz2

Description Toralf Förster gentoo-dev 2021-08-04 08:58:12 UTC
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lunwind-x86_64
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
 * ERROR: sci-libs/ceres-solver-1.14.0::gentoo failed (compile phase):
 *   ninja -v -j3 -l0 failed

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop-j3_abi32+64_debug-20210729-185806

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.0 *
clang version 12.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/12/bin
/usr/lib/llvm/12
12.0.1
Python 3.9.6
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.53.0 *
The following VMs are available for generation-2:
1)	JamVM JDK 2.0.0 [jamvm]
*)	AdoptOpenJDK 8.292_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   jamvm 
  [2]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4

  HEAD of ::gentoo
commit e127241ec8ecb9ba3551672aac2fb526ca10fbd2
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Aug 4 03:06:42 2021 +0000

    2021-08-04 03:06:40 UTC

emerge -qpvO sci-libs/ceres-solver
[ebuild  N    ] sci-libs/ceres-solver-1.14.0  USE="openmp schur -cxsparse -doc -examples -gflags -lapack -sparse -test" ABI_X86="32 (64) (-x32)"
Comment 1 Toralf Förster gentoo-dev 2021-08-04 08:58:13 UTC
Created attachment 730044 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-08-04 08:58:15 UTC
Created attachment 730046 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-08-04 08:58:16 UTC
Created attachment 730048 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-08-04 08:58:17 UTC
Created attachment 730050 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-08-04 08:58:18 UTC
Created attachment 730052 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-08-04 08:58:20 UTC
Created attachment 730054 [details]
sci-libs:ceres-solver-1.14.0:20210804-035240.log
Comment 7 Toralf Förster gentoo-dev 2021-08-04 08:58:21 UTC
Created attachment 730056 [details]
temp.tar.bz2
Comment 8 Arfrever Frehtes Taifersar Arahesis 2021-08-04 17:40:12 UTC
This error occurs in abi_x86_32 part of multilib (abi_x86_32 + abi_x86_64) build.

Build system incorrectly calculates name of libunwind platform library.

Name of libunwind platform library is platform-specific:
On x86_32: libunwind-x86.so
On x86_64: libunwind-x86_64.so

libunwind platform library is also rarely used, and maintainers should check if it is actually needed here (by checking if there are undefined references if it is disabled). Maybe dropping of linking would suffice.