-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpftool: Fix failure with static linkage #4739
bpftool: Fix failure with static linkage #4739
Conversation
Upstream branch: e2f0791 |
Upstream branch: e2f0791 |
bc04b82
to
545da32
Compare
2566d40
to
5442d69
Compare
Upstream branch: dff8470 |
545da32
to
ffc29b7
Compare
5442d69
to
e7cfe1a
Compare
Upstream branch: dff8470 |
ffc29b7
to
5022415
Compare
e7cfe1a
to
2dde120
Compare
Upstream branch: dd42e01 |
5022415
to
49b3ec3
Compare
2dde120
to
d21a8b5
Compare
Upstream branch: e10500b |
49b3ec3
to
88a996e
Compare
d21a8b5
to
36cdeea
Compare
Upstream branch: e10500b |
88a996e
to
dcb7416
Compare
36cdeea
to
387e76a
Compare
Upstream branch: e10500b |
dcb7416
to
8f92eb9
Compare
387e76a
to
e788156
Compare
Upstream branch: d6212d8 |
8f92eb9
to
ef36ae0
Compare
e788156
to
6f73df7
Compare
Upstream branch: 442bc81 |
ef36ae0
to
fdfe502
Compare
6f73df7
to
d7469c1
Compare
Upstream branch: 82c1f13 |
fdfe502
to
83d6beb
Compare
d7469c1
to
05fce66
Compare
Upstream branch: 4d33dc1 |
83d6beb
to
7aeb2a1
Compare
05fce66
to
e666082
Compare
When building perf with static linkage: make O=/build LDFLAGS="-static" -C tools/perf VF=1 DEBUG=1 ... LINK /build/util/bpf_skel/.tmp/bootstrap/bpftool /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libelf.a(elf_compress.o): in function `__libelf_compress': (.text+0x113): undefined reference to `ZSTD_createCCtx' /usr/bin/ld: (.text+0x2a9): undefined reference to `ZSTD_compressStream2' /usr/bin/ld: (.text+0x2b4): undefined reference to `ZSTD_isError' /usr/bin/ld: (.text+0x2db): undefined reference to `ZSTD_freeCCtx' /usr/bin/ld: (.text+0x5a0): undefined reference to `ZSTD_compressStream2' /usr/bin/ld: (.text+0x5ab): undefined reference to `ZSTD_isError' /usr/bin/ld: (.text+0x6b9): undefined reference to `ZSTD_freeCCtx' /usr/bin/ld: (.text+0x835): undefined reference to `ZSTD_freeCCtx' /usr/bin/ld: (.text+0x86f): undefined reference to `ZSTD_freeCCtx' /usr/bin/ld: (.text+0x91b): undefined reference to `ZSTD_freeCCtx' /usr/bin/ld: (.text+0xa12): undefined reference to `ZSTD_freeCCtx' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libelf.a(elf_compress.o): in function `__libelf_decompress': (.text+0xbfc): undefined reference to `ZSTD_decompress' /usr/bin/ld: (.text+0xc04): undefined reference to `ZSTD_isError' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libelf.a(elf_compress.o): in function `__libelf_decompress_elf': (.text+0xd45): undefined reference to `ZSTD_decompress' /usr/bin/ld: (.text+0xd4d): undefined reference to `ZSTD_isError' collect2: error: ld returned 1 exit status Building bpftool with static linkage also fails with the same errors: make O=/build -C tools/bpf/bpftool/ V=1 To fix the issue, explicitly link libzstd. Signed-off-by: Leo Yan <[email protected]> Tested-by: Namhyung Kim <[email protected]>
Upstream branch: 6e8ba49 |
7aeb2a1
to
fe4fa87
Compare
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=914710 expired. Closing PR. |
Pull request for series with
subject: bpftool: Fix failure with static linkage
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=914710