[deb13] xar: /usr/bin/ld: cannot find -lzstd: No such file or directory
Categories
(Firefox Build System :: Toolchains, task)
Tracking
(firefox158 fixed)
| Tracking | Status | |
|---|---|---|
| firefox158 | --- | fixed |
People
(Reporter: jcristau, Assigned: jcristau)
References
Details
Attachments
(1 external file, 1 obsolete file)
The xar toolchain task fails when moved to the deb13-toolchain-build docker image: libcrypto in debian 13 requires libzstd (pkg-config --static --libs libcrypto returns -lcrypto -lz -lzstd -ldl -pthread), but libzstd-dev is currently missing from the image.
| Comment hidden (Intermittent Failures Robot) |
| Assignee | ||
Comment 2•10 months ago
|
||
Installing libzstd-dev in turns causes llvm to pick it up and try to build against it, except it's not in the sysroot so things then fail to link.
Adding -DLLVM_ENABLE_ZSTD=OFF to the cmake args in clang and llvm build scripts seems to help.
| Assignee | ||
Comment 3•3 months ago
|
||
libcrypto in Debian 13 pulls in libzstd, so xar fails to link without
libzstd-dev in the image.
Installing it in turn makes LLVM and binutils pick up the system zstd,
which isn't in the sysroots they link against, so turn it off explicitly
in both. build-cctools-port.sh already passes -DLLVM_ENABLE_ZSTD=OFF for
the same reason.
LLVM_ENABLE_ZSTD=ON really means autodetect, so this only pins behaviour
we already had: no image shipped libzstd-dev until now.
| Assignee | ||
Comment 4•3 months ago
|
||
libcrypto in Debian 13 pulls in libzstd, so xar fails to link without
libzstd-dev in the image.
Installing it in turn makes LLVM and binutils pick up the system zstd,
which isn't in the sysroots they link against, so turn it off explicitly.
This covers both build-clang.py and build-llvm-common.sh; the latter
configures llvm proper for llvm-symbolizer. build-cctools-port.sh already
passes -DLLVM_ENABLE_ZSTD=OFF for the same reason.
LLVM_ENABLE_ZSTD=ON really means autodetect, so this only pins behaviour
we already had: no image shipped libzstd-dev until now.
Updated•3 months ago
|
Updated•3 months ago
|
Comment 6•2 months ago
|
||
Backed out for causing spidermonkey bustages.
Comment 8•2 months ago
|
||
| bugherder | ||
Description
•