Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 830899 - media-gfx/iscan-3.65.0 fails to compile: ld.lld: error: undefined symbol: utsushi::_drv_::esci::compound_base::get_information()
Summary: media-gfx/iscan-3.65.0 fails to compile: ld.lld: error: undefined symbol: uts...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Marcin Deranek
Depends on:
Blocks: LD-is-lld, systemwide-lld
  Show dependency tree
Reported: 2022-01-10 08:34 UTC by Agostino Sarubbo
Modified: 2023-06-10 16:54 UTC (History)
1 user (show)

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

build.log (build.log,173.59 KB, text/plain)
2022-01-10 08:34 UTC, Agostino Sarubbo

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-01-10 08:34:21 UTC

Issue: media-gfx/iscan-3.65.0 fails to compile.
Discovered on: amd64 (internal ref: tinderbox)

This machine uses CLANG as a compiler and LLD as a linker
Comment 1 Agostino Sarubbo gentoo-dev 2022-01-10 08:34:24 UTC
Created attachment 761743 [details]

build log and emerge --info
Comment 2 Marcin Deranek 2022-01-12 12:22:03 UTC
Problem seems to be related to a different behavior of ld.lld vs ld.bfd when using --retain-symbols-file option. Either forcing ld.bfd or removing --retain-symbols-file option works around the problem eg.

(after configure)
sed -e 's/^archive_expsym_cmds_CXX=.*/archive_expsym_cmds_CXX=/' -i config.status

What is the preferred way? I presume forcing ld.bfd should be safer.