Skip to content
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

binutils,gdb: fix enabling zstd compression #2144

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sobczyk
Copy link

@sobczyk sobczyk commented Apr 19, 2024

No description provided.

@sobczyk
Copy link
Author

sobczyk commented Apr 19, 2024

It was always disabled due to additional curly brace, thus bash expanded the variable badly.
It's broken in 1.26.0, It'd be nice to have 1.26.1

@cpackham
Copy link
Contributor

Hmm, macos seems unhappy with this

[ALL  ]    /Users/runner/work/crosstool-ng/crosstool-ng/x-tools/arm-unknown-linux-musleabi/lib/gcc/arm-unknown-linux-musleabi/13.2.0/../../../../arm-unknown-linux-musleabi/bin/ld.bfd: linux-tdep.o: in function `linux_corefile_thread(thread_info*, gdbarch*, bfd*, std::unique_ptr<char, gdb::xfree_deleter<char> >&, int*, gdb_signal)':
[ALL  ]    linux-tdep.c:(.text+0x4d0c): undefined reference to `gcore_elf_build_thread_register_notes(gdbarch*, thread_info*, gdb_signal, bfd*, std::unique_ptr<char, gdb::xfree_deleter<char> >*, int*)'
[ALL  ]    /Users/runner/work/crosstool-ng/crosstool-ng/x-tools/arm-unknown-linux-musleabi/lib/gcc/arm-unknown-linux-musleabi/13.2.0/../../../../arm-unknown-linux-musleabi/bin/ld.bfd: linux-tdep.o: in function `linux_make_corefile_notes(gdbarch*, bfd*, int*)':
[ALL  ]    linux-tdep.c:(.text+0x586c): undefined reference to `gcore_elf_make_tdesc_note(gdbarch*, bfd*, std::unique_ptr<char, gdb::xfree_deleter<char> >*, int*)'
[ALL  ]    /Users/runner/work/crosstool-ng/crosstool-ng/x-tools/arm-unknown-linux-musleabi/lib/gcc/arm-unknown-linux-musleabi/13.2.0/../../../../arm-unknown-linux-musleabi/bin/ld.bfd: /Users/runner/work/crosstool-ng/crosstool-ng/.build/arm-unknown-linux-musleabi/build/build-gdb-native/bfd/.libs/libbfd.a(compress.o): in function `decompress_contents':
[ALL  ]    compress.c:(.text+0x107c): undefined reference to `ZSTD_decompress'
[ALL  ]    /Users/runner/work/crosstool-ng/crosstool-ng/x-tools/arm-unknown-linux-musleabi/lib/gcc/arm-unknown-linux-musleabi/13.2.0/../../../../arm-unknown-linux-musleabi/bin/ld.bfd: compress.c:(.text+0x1088): undefined reference to `ZSTD_isError'
[ALL  ]    /Users/runner/work/crosstool-ng/crosstool-ng/x-tools/arm-unknown-linux-musleabi/lib/gcc/arm-unknown-linux-musleabi/13.2.0/../../../../arm-unknown-linux-musleabi/bin/ld.bfd: /Users/runner/work/crosstool-ng/crosstool-ng/.build/arm-unknown-linux-musleabi/build/build-gdb-native/bfd/.libs/libbfd.a(compress.o): in function `bfd_compress_section_contents':
[ALL  ]    compress.c:(.text+0x14fc): undefined reference to `ZSTD_compress'
[ALL  ]    /Users/runner/work/crosstool-ng/crosstool-ng/x-tools/arm-unknown-linux-musleabi/lib/gcc/arm-unknown-linux-musleabi/13.2.0/../../../../arm-unknown-linux-musleabi/bin/ld.bfd: compress.c:(.text+0x1510): undefined reference to `ZSTD_isError

@sobczyk
Copy link
Author

sobczyk commented Apr 24, 2024

I just realized that ${complibs} is empty and will not enable zstd compression.
The fix should not be too difficult

@sobczyk
Copy link
Author

sobczyk commented Apr 24, 2024

The last fail does not look like a macos failure.
I'm doing some checks on my ctng built toolchain and --compress-debug-sections=zstd failed in objdump.
I'll recheck the fixes

@cpackham
Copy link
Contributor

cpackham commented Apr 24, 2024 via email

Signed-off-by: Szymon Sobik <sobik.szymon@gmail.com>
Signed-off-by: Szymon Sobik <sobik.szymon@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants