Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 806478 - sci-libs/ceres-solver-2.0.0 - /.../ld: /.../libunwind-x86_64.so: error adding symbols: file in wrong format
Summary: sci-libs/ceres-solver-2.0.0 - /.../ld: /.../libunwind-x86_64.so: error adding...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-05 07:02 UTC by Toralf Förster
Modified: 2022-04-01 13:45 UTC (History)
4 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.68 KB, text/plain)
2021-08-05 07:02 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,406.91 KB, text/plain)
2021-08-05 07:02 UTC, Toralf Förster
Details
environment (environment,144.64 KB, text/plain)
2021-08-05 07:02 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,48.91 KB, application/x-bzip)
2021-08-05 07:02 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,7.24 KB, application/x-bzip)
2021-08-05 07:02 UTC, Toralf Förster
Details
sci-libs:ceres-solver-2.0.0:20210805-005558.log (sci-libs:ceres-solver-2.0.0:20210805-005558.log,169.82 KB, text/plain)
2021-08-05 07:02 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,39.06 KB, application/x-bzip)
2021-08-05 07:02 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 2021-08-05 07:02:16 UTC
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libunwind-x86_64.so: error adding symbols: file in wrong format
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
 * ERROR: sci-libs/ceres-solver-2.0.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 7e88391f67e5d81c9183ae3e9ef48bb700a70f17
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Aug 4 23:52:21 2021 +0000

    2021-08-04 23:52:20 UTC

emerge -qpvO sci-libs/ceres-solver
[ebuild  N    ] sci-libs/ceres-solver-2.0.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-05 07:02:17 UTC
Created attachment 730226 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-08-05 07:02:19 UTC
Created attachment 730228 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-08-05 07:02:21 UTC
Created attachment 730230 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-08-05 07:02:22 UTC
Created attachment 730232 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-08-05 07:02:23 UTC
Created attachment 730234 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-08-05 07:02:25 UTC
Created attachment 730236 [details]
sci-libs:ceres-solver-2.0.0:20210805-005558.log
Comment 7 Toralf Förster gentoo-dev 2021-08-05 07:02:26 UTC
Created attachment 730238 [details]
temp.tar.bz2
Comment 8 cJ 2022-04-01 12:14:39 UTC
I was curious and checked if the problem was gone on v2.1.0, but it still happens there.
Comment 9 cJ 2022-04-01 13:16:26 UTC
It's the multilib x86 portion of the build that fails due to presence of the 64-bit libunwind ; USE="-abi_x86_32" builds.
Comment 10 cJ 2022-04-01 13:42:51 UTC
The unwind issue is brought indirectly by glog, whose glog-config.cmake simply does:
find_dependency (Unwind 1.6.2)
and uses its own FindUnwind which was broken until
https://github.com/google/glog/pull/769/files#diff-d4308e6c6735dd82d755ac06d881951f963438a1929f6fca82a5593d8b15083bR55
(not tagged yet).

I suggest to include a glog patch?