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
--lto=on build fails on Linux with GCC #4699
Comments
No idea what caused your error, but I found this, which looks similar: Can you build FFmpeg on its own, with |
I tried building ffmpeg by replicating this guide, and it seems that I have the exact same error there. I copied Below some more information on my build setup. Note that I am no expert in building C/C++ projects. Handbrake --lto=on buildffmpeg --enable-lto buildffmpeg --enable-lto --enable-shared --ar=gcc-ar --ranlib=true build |
I confirmed locally that only ffmpeg --enable-lto --enable-shared build |
This seems more like a ffmpeg bug to me then. It would be good to report this to ffmpeg, so they can fix this. As a workaround you can try to edit the file
with
This should fix your issue, until there is a proper fix for this. |
Thank you for your help!
Meanwhile I also got a successful build of ffmpeg with I have absolutely no clue what I am doing or what all this means. I just tried it out, because something like that was mentioned in the same ffmpeg mail and I also found mentions of it from skimming this Clear Linux forum post and this gentooLTO GitHub issue from 2019. |
Thanks for your test. I also found the Could you then try, if
in the file |
Problem Description
Hi,
building current master with --lto=on fails for me on two different systems. Hopefully its not either an issue or misuse on my end.
In the pastebin below you will find the end part of my compilation logs.
I tested GCC 12.2.0 and GCC 11.3.0 on Ryzen 3900x and Ryzen 5900x, building inside gcc:*-bullseye docker images.
Thanks!
Activity Log, Crash Log or any other details
What Operating System are you running?
gcc:12.2.0-bullseye (docker)
What version of HandBrake are you running?
Nightly e41f232
Where did you download HandBrake from?
No response
The text was updated successfully, but these errors were encountered: