-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
librdkafka cannot be built with LLD linker #4593
Comments
cc @emasab |
FreeBSD seems to be affected as well: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275866 |
StephanDollberg
added a commit
to StephanDollberg/librdkafka
that referenced
this issue
Oct 4, 2024
Define `rd_ut_coverage_check` even in non-devel mode as the `lds-gen.py` script adds the symbol unconditionally. Otherwise LLD complains about ld: ``` error: version script assignment of 'global' to symbol 'rd_ut_coverage_check' failed: symbol not defined ``` Fixes confluentinc#4593
StephanDollberg
added a commit
to StephanDollberg/librdkafka
that referenced
this issue
Oct 4, 2024
Define `rd_ut_coverage_check` even in non-devel mode as the `lds-gen.py` script adds the symbol unconditionally. Otherwise LLD complains about ld: ``` error: version script assignment of 'global' to symbol 'rd_ut_coverage_check' failed: symbol not defined ``` Fixes confluentinc#4593
StephanDollberg
added a commit
to StephanDollberg/librdkafka
that referenced
this issue
Oct 4, 2024
Define `rd_ut_coverage_check` even in non-devel mode as the `lds-gen.py` script adds the symbol unconditionally. Otherwise LLD complains about ld: ``` error: version script assignment of 'global' to symbol 'rd_ut_coverage_check' failed: symbol not defined ``` Fixes confluentinc#4593
#4862 fixes the problem for me on FreeBSD 14.1. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
lds-gen.py
appendsrd_ut_coverage_check
for linker script unconditionally. However, LLD produces a warning if coverage is disabled. This warning becomes an error since LLVM LLD 17.0.0.How to reproduce
Checklist
Please provide the following information:
2.3.0
The text was updated successfully, but these errors were encountered: