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

Bug 934360

Summary: toolchain.eclass: likely a minor mistake in zstd option handling
Product: Gentoo Linux Reporter: Rafał Mużyło <galtgendo>
Component: EclassesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: CONFIRMED ---    
Severity: minor    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Rafał Mużyło 2024-06-15 10:47:03 UTC
Given this little beauty is gcc emerge log:
'-lmpc -lmpfr -lgmp -rdynamic -ldl  -lz -Lyes/lib -lzstd'

it seems '$(use_with zstd)' should rather be something like '$(use_with zstd zstd /usr)'.
Comment 1 Mike Gilbert gentoo-dev 2024-06-15 14:51:15 UTC
-L/usr/lib would also be incorrect on most 64-bit archs.
Comment 2 Mike Gilbert gentoo-dev 2024-06-15 16:10:30 UTC
It looks like gcc-14 handles this correctly.

What package/version were you building here? Please provide a build log.
Comment 3 Mike Gilbert gentoo-dev 2024-06-15 16:12:44 UTC
Actually, upon further inspection, it looks like we might need to specify --with-zstd-lib for gcc.