FS#75018 - zstd 1.5.2-5 has a broken static library

Attached to Project: Arch Linux
Opened by Moody (Moody) - Friday, 10 June 2022, 10:52 GMT
Last edited by Antonio Rojas (arojas) - Friday, 17 June 2022, 15:59 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Maxime Gauduin (Alucryd)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description:

zstd version 1.5.2-5 includes a static library, say /usr/lib/libzstd.a but it's nearly empty and contains no symbols.

since: https://github.com/archlinux/svntogit-packages/commit/af1bab8ee585b5f0d6e3eeb368878c36ce4c62c3

after a bunch of checks, it seems to disable LTO resolves the problem.


Additional info:
* package version(s)
- zstd (1.5.2-5) previous versions are not affected since there's no static library.

Steps to reproduce:

install zstd package and
- nm /lib/libzstd.a | grep " T"

then rebuild with "!lto" and run the same command above.
This task depends upon

Closed by  Antonio Rojas (arojas)
Friday, 17 June 2022, 15:59 GMT
Reason for closing:  Fixed
Additional comments about closing:  zstd 1.5.2-7
Comment by Allan McRae (Allan) - Friday, 10 June 2022, 11:41 GMT
Need to add -ffat-lto-objects to the build flags
Comment by Antonio Rojas (arojas) - Tuesday, 14 June 2022, 15:29 GMT
why is the static library packaged anyway? This makes some comsumers (at least Qt) choose the static over the shared version, which is currently broken.
Comment by Moody (Moody) - Friday, 17 June 2022, 15:47 GMT
Hello, it's been a whole week since this breakage and it's affecting at least all Qt builds.
Can someone move zstd (1.5.2-7) from `testing` to `core` asap?

Loading...