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

Bug 841497

Summary: www-client/firefox-99.0.1[clang,lto] src_configure fails: ld.lld: error: unable to find library -l:libunwind.so
Product: Gentoo Linux Reporter: Enne Eziarc <gentoo+bugs>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal CC: ftpd+sites, mozilla
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log
emerge --info firefox

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.