Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 834372 - games-emulation/dolphin-5.0_p20210506-r3 with ffmpeg-5.0: Source/Core/VideoCommon/FrameDump.cpp:157:56: error: invalid conversion from ‘const AVOutputFormat*’ to ‘AVOutputFormat*’ [-fpermissive]
Summary: games-emulation/dolphin-5.0_p20210506-r3 with ffmpeg-5.0: Source/Core/VideoCo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: ffmpeg-5.0
  Show dependency tree
 
Reported: 2022-02-28 17:30 UTC by Kobboi
Modified: 2022-07-26 05:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.gz (build.log.gz,37.74 KB, application/gzip)
2022-02-28 17:31 UTC, Kobboi
Details
emerge-info.txt (emerge-info.txt,8.00 KB, text/plain)
2022-02-28 17:31 UTC, Kobboi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2022-02-28 17:30:38 UTC
[569/831] /usr/bin/x86_64-pc-linux-gnu-g++ -DDATA_DIR=\"/usr/share/dolphin-emu/\" -DFMT_LOCALE -DFMT_SHARED -DHAS_OPENGL -DHAS_VULKAN -DHAVE_EGL=1 -DHAVE_FFMPEG -DHAVE_LIBEVDEV=1 -DHAVE_LIBSYSTEMD -DHAVE_LIBUDEV=1 -DHAVE_X11=1 -DHAVE_XRANDR=1 -DUSE_ANALYTICS=1 -DUSE_GDBSTUB -DUSE_MEMORYWATCHER=1 -DUSE_PIPES=1 -D_ARCH_64=1 -D_DEFAULT_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_M_X86=1 -D_M_X86_64=1 -D__LIBUSB__ -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/games-emulation/dolphin-5.0_p20210506-r3/work/dolphin-eb5cd9be78c76b9ccbab9e5fbd1721ef6876cd68/Source/Core -I/var/tmp/portage/games-emulation/dolphin-5.0_p20210506-r3/work/dolphin-eb5cd9be78c76b9ccbab9e5fbd1721ef6876cd68/External/minizip -I/usr/include/libpng16 -I/var/tmp/portage/games-emulation/dolphin-5.0_p20210506-r3/work/dolphin-eb5cd9be78c76b9ccbab9e5fbd1721ef6876cd68/Externals/soundtouch -I/usr/include/libusb-1.0 -I/var/tmp/portage/games-emulation/dolphin-5.0_p20210506-r3/work/dolphin-eb5cd9be78c76b9ccbab9e5fbd1721ef6876cd68/Externals/picojson -I/var/tmp/portage/games-emulation/dolphin-5.0_p20210506-r3/work/dolphin-5.0_p20210506_build/Source/Core -I/var/tmp/portage/games-emulation/dolphin-5.0_p20210506-r3/work/dolphin-eb5cd9be78c76b9ccbab9e5fbd1721ef6876cd68/Externals/minizip/. -I/var/tmp/portage/games-emulation/dolphin-5.0_p20210506-r3/work/dolphin-eb5cd9be78c76b9ccbab9e5fbd1721ef6876cd68/Externals/cubeb/include -I/var/tmp/portage/games-emulation/dolphin-5.0_p20210506-r3/work/dolphin-5.0_p20210506_build/exports -I/var/tmp/portage/games-emulation/dolphin-5.0_p20210506-r3/work/dolphin-eb5cd9be78c76b9ccbab9e5fbd1721ef6876cd68/Externals/xxhash -I/var/tmp/portage/games-emulation/dolphin-5.0_p20210506-r3/work/dolphin-eb5cd9be78c76b9ccbab9e5fbd1721ef6876cd68/Externals/imgui -isystem /var/tmp/portage/games-emulation/dolphin-5.0_p20210506-r3/work/dolphin-eb5cd9be78c76b9ccbab9e5fbd1721ef6876cd68/Externals/rangeset/include -isystem /usr/include/hidapi -O2 -march=znver3 -pipe -g -ggdb3 -msse2 -fdiagnostics-color -fno-strict-aliasing -fno-exceptions -fvisibility-inlines-hidden -fvisibility=hidden -fomit-frame-pointer -Wall -Wtype-limits -Wsign-compare -Wignored-qualifiers -Wuninitialized -Wlogical-op -Wshadow -Winit-self -Wmissing-declarations -Wno-stringop-truncation -Werror=format -std=c++17 -MD -MT Source/Core/VideoCommon/CMakeFiles/videocommon.dir/FrameDump.cpp.o -MF Source/Core/VideoCommon/CMakeFiles/videocommon.dir/FrameDump.cpp.o.d -o Source/Core/VideoCommon/CMakeFiles/videocommon.dir/FrameDump.cpp.o -c /var/tmp/portage/games-emulation/dolphin-5.0_p20210506-r3/work/dolphin-eb5cd9be78c76b9ccbab9e5fbd1721ef6876cd68/Source/Core/VideoCommon/FrameDump.cpp
FAILED: Source/Core/VideoCommon/CMakeFiles/videocommon.dir/FrameDump.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DDATA_DIR=\"/usr/share/dolphin-emu/\" -DFMT_LOCALE -DFMT_SHARED -DHAS_OPENGL -DHAS_VULKAN -DHAVE_EGL=1 -DHAVE_FFMPEG -DHAVE_LIBEVDEV=1 -DHAVE_LIBSYSTEMD -DHAVE_LIBUDEV=1 -DHAVE_X11=1 -DHAVE_XRANDR=1 -DUSE_ANALYTICS=1 -DUSE_GDBSTUB -DUSE_MEMORYWATCHER=1 -DUSE_PIPES=1 -D_ARCH_64=1 -D_DEFAULT_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_M_X86=1 -D_M_X86_64=1 -D__LIBUSB__ -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/games-emulation/dolphin-5.0_p20210506-r3/work/dolphin-eb5cd9be78c76b9ccbab9e5fbd1721ef6876cd68/Source/Core -I/var/tmp/portage/games-emulation/dolphin-5.0_p20210506-r3/work/dolphin-eb5cd9be78c76b9ccbab9e5fbd1721ef6876cd68/External/minizip -I/usr/include/libpng16 -I/var/tmp/portage/games-emulation/dolphin-5.0_p20210506-r3/work/dolphin-eb5cd9be78c76b9ccbab9e5fbd1721ef6876cd68/Externals/soundtouch -I/usr/include/libusb-1.0 -I/var/tmp/portage/games-emulation/dolphin-5.0_p20210506-r3/work/dolphin-eb5cd9be78c76b9ccbab9e5fbd1721ef6876cd68/Externals/picojson -I/var/tmp/portage/games-emulation/dolphin-5.0_p20210506-r3/work/dolphin-5.0_p20210506_build/Source/Core -I/var/tmp/portage/games-emulation/dolphin-5.0_p20210506-r3/work/dolphin-eb5cd9be78c76b9ccbab9e5fbd1721ef6876cd68/Externals/minizip/. -I/var/tmp/portage/games-emulation/dolphin-5.0_p20210506-r3/work/dolphin-eb5cd9be78c76b9ccbab9e5fbd1721ef6876cd68/Externals/cubeb/include -I/var/tmp/portage/games-emulation/dolphin-5.0_p20210506-r3/work/dolphin-5.0_p20210506_build/exports -I/var/tmp/portage/games-emulation/dolphin-5.0_p20210506-r3/work/dolphin-eb5cd9be78c76b9ccbab9e5fbd1721ef6876cd68/Externals/xxhash -I/var/tmp/portage/games-emulation/dolphin-5.0_p20210506-r3/work/dolphin-eb5cd9be78c76b9ccbab9e5fbd1721ef6876cd68/Externals/imgui -isystem /var/tmp/portage/games-emulation/dolphin-5.0_p20210506-r3/work/dolphin-eb5cd9be78c76b9ccbab9e5fbd1721ef6876cd68/Externals/rangeset/include -isystem /usr/include/hidapi -O2 -march=znver3 -pipe -g -ggdb3 -msse2 -fdiagnostics-color -fno-strict-aliasing -fno-exceptions -fvisibility-inlines-hidden -fvisibility=hidden -fomit-frame-pointer -Wall -Wtype-limits -Wsign-compare -Wignored-qualifiers -Wuninitialized -Wlogical-op -Wshadow -Winit-self -Wmissing-declarations -Wno-stringop-truncation -Werror=format -std=c++17 -MD -MT Source/Core/VideoCommon/CMakeFiles/videocommon.dir/FrameDump.cpp.o -MF Source/Core/VideoCommon/CMakeFiles/videocommon.dir/FrameDump.cpp.o.d -o Source/Core/VideoCommon/CMakeFiles/videocommon.dir/FrameDump.cpp.o -c /var/tmp/portage/games-emulation/dolphin-5.0_p20210506-r3/work/dolphin-eb5cd9be78c76b9ccbab9e5fbd1721ef6876cd68/Source/Core/VideoCommon/FrameDump.cpp
/var/tmp/portage/games-emulation/dolphin-5.0_p20210506-r3/work/dolphin-eb5cd9be78c76b9ccbab9e5fbd1721ef6876cd68/Source/Core/VideoCommon/FrameDump.cpp: In member function ‘bool FrameDump::CreateVideoFile()’:
/var/tmp/portage/games-emulation/dolphin-5.0_p20210506-r3/work/dolphin-eb5cd9be78c76b9ccbab9e5fbd1721ef6876cd68/Source/Core/VideoCommon/FrameDump.cpp:157:56: error: invalid conversion from ‘const AVOutputFormat*’ to ‘AVOutputFormat*’ [-fpermissive]
  157 |   AVOutputFormat* const output_format = av_guess_format(format.c_str(), dump_path.c_str(), nullptr);
      |                                         ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                        |
      |                                                        const AVOutputFormat*
/var/tmp/portage/games-emulation/dolphin-5.0_p20210506-r3/work/dolphin-eb5cd9be78c76b9ccbab9e5fbd1721ef6876cd68/Source/Core/VideoCommon/FrameDump.cpp: In member function ‘void FrameDump::ProcessPackets()’:
/var/tmp/portage/games-emulation/dolphin-5.0_p20210506-r3/work/dolphin-eb5cd9be78c76b9ccbab9e5fbd1721ef6876cd68/Source/Core/VideoCommon/FrameDump.cpp:340:19: warning: ‘void av_init_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
  340 |     av_init_packet(&pkt);
      |     ~~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/libavcodec/avcodec.h:45,
                 from /var/tmp/portage/games-emulation/dolphin-5.0_p20210506-r3/work/dolphin-eb5cd9be78c76b9ccbab9e5fbd1721ef6876cd68/Source/Core/VideoCommon/FrameDump.cpp:18:
/usr/include/libavcodec/packet.h:506:6: note: declared here
  506 | void av_init_packet(AVPacket *pkt);
      |      ^~~~~~~~~~~~~~


Reproducible: Always
Comment 1 Kobboi 2022-02-28 17:31:09 UTC
Created attachment 766007 [details]
build.log.gz
Comment 2 Kobboi 2022-02-28 17:31:12 UTC
Created attachment 766008 [details]
emerge-info.txt
Comment 3 Kobboi 2022-02-28 17:31:29 UTC
Compiles fine with ffmpeg-4.4.1
Comment 4 Jonas Rakebrandt 2022-06-24 10:32:51 UTC
The build with ffmpeg-5 was fixed upstream in games-emulation/dolphin-5.0_p20220520 and later by this PR: https://github.com/dolphin-emu/dolphin/pull/9721
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-26 05:20:34 UTC
(In reply to Jonas Rakebrandt from comment #4)
> The build with ffmpeg-5 was fixed upstream in
> games-emulation/dolphin-5.0_p20220520 and later by this PR:
> https://github.com/dolphin-emu/dolphin/pull/9721

Thanks.