-
Notifications
You must be signed in to change notification settings - Fork 300
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 about missing symbol when building with LTO and the mold linker #725
Comments
This is also reproducible with GNU's ld linker even if not using LTO if FAILED: va/libva.so.2.2000.0 |
libva has an issue regarding a symbol not being found during the linking phase when using -flto and the mold linker.
I've turned mold's warnings into errors with
-Wl,--fatal-warnings
, so I can catch them more easily. Below is the last couple of lines from the build log, and I am also adding the complete log as an attachment.libva source used is at 984dfee
mold used is at commit b04aba89d3a1931470983212925443e7aefca1e1
gcc (Gentoo 13.1.1_p20230527 p3) 13.1.1 20230527
Steps to reproduce:
cd
into the libva folderexport CFLAGS="-O2 -flto=auto"
andexport LDFLAGS="-fuse-ld=mold -Wl,--fatal-warnings"
./autogen.sh --prefix=/usr
andmake V=1
libva-github.log
The text was updated successfully, but these errors were encountered: