Summary: | media-video/ffmpeg-6.0-r6 ‘ff_nv12ToUV_sse2’ does not match original declaration [-Werror=lto-type-mismatch] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Pietro <pietro.sammarco> |
Component: | Current packages | Assignee: | Gentoo Media-video project <media-video> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | kocelfc, parona |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=907484 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 618550 | ||
Attachments: |
media-video\:ffmpeg-6.0-r6\:20231002-160145.log
emerge --info ffmpeg-6.0-r6-no-lto.log |
Description
Pietro
2023-10-02 15:57:00 UTC
Created attachment 872046 [details]
emerge --info
Doesn't build without LTO either. (In reply to Pietro from comment #2) > Doesn't build without LTO either. That sounds unlikely. Please include a build.log for both builds. Created attachment 872047 [details]
ffmpeg-6.0-r6-no-lto.log
I realised the reason why it was failing to build without LTO is due to
"-Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing" in COMMON_FLAGS in make.conf, and the the variables from the nolto.conf file were all pointing to $COMMON_FLAGS.
So I edited nolto.conf file as such and I was able to build the package.
>>>
# Env setup to disable LTO for problem builds
COMMON_FLAGS_NO_LTO="-march=alderlake -O2 -pipe"
CFLAGS="${COMMON_FLAGS_NO_LTO} -fno-lto"
CXXFLAGS="${COMMON_FLAGS_NO_LTO} -fno-lto"
FCFLAGS="${COMMON_FLAGS_NO_LTO} -fno-lto"
FFLAGS="${COMMON_FLAGS_NO_LTO} -fno-lto"
<<<
However, issue remains when compiling using LTO.
Thanks
Issue most likely introduced here when the opaque pointer wasn't added everywhere. https://github.com/FFmpeg/FFmpeg/commit/f2de911818fbd7e73343803626b697fd0c968121 *** This bug has been marked as a duplicate of bug 907484 *** |