-
Notifications
You must be signed in to change notification settings - Fork 95
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
Warning: Linking the executable calfmakerdf against the loadable module #156
Comments
I see no error here... |
I included an incomplete set sorry. It always breaks shortly after this warning:
|
Hi, sorry for writing in old bug but this is still a valid case. Trying to build Calf 0.9.3 on OpenMandriva Cooker with LLVM/Clang 11 and I see same error:
Worth to add, If I switch compiler to GCC, then all is compiled fine. |
Any solution to this? |
Any hope to fix build with clang? The FreeBSD Calf port is broken because of this. |
Digging deeper here, this issue seems to be caused by the |
Removing this doesn't seem to cause any issues but I'd like to defer to someone who knows more about why this was added in the first place. |
Specifically, this seems to stem from LLD handling |
Removing the export-symbols-regex shouldn't break anything since libtool exports all symbols by default. |
LLVM's LLD handles the -retain-symbols-file option (used by -export-symbols-regex in libtool) differently from GNU ld, causing undefined references during link. This commit removes the -export-symbols-regex option from libcalf_la_LDFLAGS since by default libtool exports all symbols anyway, so it should not be necessary. Fixes calf-studio-gear#156. Signed-off-by: Violet Purcell <vimproved@inventati.org>
The FreeBSD had this problem, and it has |
Odd. That doesn't fix it for me on Linux. |
Here are all the patches from the FreeBSD port: https://cgit.freebsd.org/ports/tree/audio/calf-lv2/files Maybe if you would apply all of them this would help. It was a long time ago that I solved this problem on FreeBSD, and I unfortunately don't remember the details now. |
Nevermind, it seems like the FreeBSD fix does the same thing as my PR of removing -export-symbols-regex. It does compile with all the FreeBSD patches applied. |
LLVM's LLD handles the -retain-symbols-file option (used by -export-symbols-regex in libtool) differently from GNU ld, causing undefined references during link. This commit removes the -export-symbols-regex option from libcalf_la_LDFLAGS since by default libtool exports all symbols anyway, so it should not be necessary. Fixes calf-studio-gear#156. Signed-off-by: Violet Purcell <vimproved@inventati.org>
LLVM's LLD handles the -retain-symbols-file option (used by -export-symbols-regex in libtool) differently from GNU ld, causing undefined references during link. This commit removes the -export-symbols-regex option from libcalf_la_LDFLAGS since by default libtool exports all symbols anyway, so it should not be necessary. Fixes #156. Signed-off-by: Violet Purcell <vimproved@inventati.org>
Getting this failure on FreeBSD (with clang-40 compiler):
The text was updated successfully, but these errors were encountered: