Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 841497 - www-client/firefox-99.0.1[clang,lto] src_configure fails: ld.lld: error: unable to find library -l:libunwind.so
Summary: www-client/firefox-99.0.1[clang,lto] src_configure fails: ld.lld: error: unab...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-28 20:05 UTC by Enne Eziarc
Modified: 2022-04-28 20:30 UTC (History)
2 users (show)

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


Attachments
build log (build.log.txt,44.25 KB, text/plain)
2022-04-28 20:05 UTC, Enne Eziarc
Details
emerge --info firefox (emerge-info.txt,8.04 KB, text/plain)
2022-04-28 20:13 UTC, Enne Eziarc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Enne Eziarc 2022-04-28 20:05:54 UTC
Created attachment 775218 [details]
build log

This looks to be just a missing dependency. I double checked and I had neither libunwind nor llvm-libunwind on my system at the time of the error, and it looks like nothing else would pull that in by default. After emerging libunwind manually the build proceeds as normal.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-04-28 20:10:05 UTC
Please share emerge --info.

> * Current LDFLAGS:		-Wl,-O2,--as-needed,--hash-style=gnu -rtlib=compiler-rt -unwindlib=libunwind

Where's this coming from...?
Comment 2 Enne Eziarc 2022-04-28 20:13:21 UTC
Created attachment 775221 [details]
emerge --info firefox

(In reply to Sam James from comment #1)
> Please share emerge --info.
> 
> > * Current LDFLAGS:		-Wl,-O2,--as-needed,--hash-style=gnu -rtlib=compiler-rt -unwindlib=libunwind
> 
> Where's this coming from...?

Good question, the only thing that's mine in there is --as-needed,--hash-style=gnu, but that's been there for years without problems.
Comment 3 Enne Eziarc 2022-04-28 20:15:05 UTC
(In reply to Enne Eziarc from comment #2)

Oh, I screwed up. Just found that line in an env/ file!

My bad.
Comment 4 Enne Eziarc 2022-04-28 20:30:28 UTC
Follow-up: I was wondering exactly *where* that env file came from, because it didn't look like something I'd write on my own. Looks like it originated from here: https://wiki.gentoo.org/wiki/Clang

I guess it was a manual workaround from before the firefox ebuild had its own USE=clang, and it was still working by accident until recently.