Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 834376 - games-emulation/ppsspp-1.12.3 with ffmpeg-5.0: Core/AVIDump.cpp:148:37: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
Summary: games-emulation/ppsspp-1.12.3 with ffmpeg-5.0: Core/AVIDump.cpp:148:37: error...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Maciej Barć
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: ffmpeg-5.0
  Show dependency tree
 
Reported: 2022-02-28 17:53 UTC by Kobboi
Modified: 2022-03-01 01:34 UTC (History)
0 users

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


Attachments
build.log.gz (build.log.gz,24.81 KB, application/gzip)
2022-02-28 17:54 UTC, Kobboi
Details
emerge-info.txt (emerge-info.txt,8.00 KB, text/plain)
2022-02-28 17:54 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:53:36 UTC
[368/670] /usr/bin/ccache /usr/bin/x86_64-pc-linux-gnu-g++ -DASSETS_DIR=\"/usr/share/ppsspp/assets/\" -DGLSLANG_IS_SHARED_LIBRARY=1 -DMINIUPNPC_SET_SOCKET_TIMEOUT -DMINIUPNP_STATICLIB -DPNG_ARM_NEON_OPT=0 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB
 -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DSDL -DSHARED_LIBZIP -DSHARED_ZLIB -DUSE_FFMPEG=1 -DUSING_QT_UI -DVK_USE_PLATFORM_XLIB_KHR -DWITH_UPNP -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE=1 -D_POSIX_C_SOURCE=200112L -D_XOPEN_SO
URCE=700 -D_XOPEN_SOURCE_EXTENDED -D__BSD_VISIBLE=1 -D__STDC_CONSTANT_MACROS -I/var/tmp/portage/games-emulation/ppsspp-1.12.3/work/ppsspp-1.12.3_build/Core_autogen/include -I/var/tmp/portage/games-emulation/ppsspp-1.12.3/work/ppsspp-1.12.3/ext/glslang -I/var/tmp/porta
ge/games-emulation/ppsspp-1.12.3/work/ppsspp-1.12.3/ext/glew -I/var/tmp/portage/games-emulation/ppsspp-1.12.3/work/ppsspp-1.12.3 -I/var/tmp/portage/games-emulation/ppsspp-1.12.3/work/ppsspp-1.12.3/Common -I/var/tmp/portage/games-emulation/ppsspp-1.12.3/work/ppsspp-1.1
2.3/ext/cityhash -I/var/tmp/portage/games-emulation/ppsspp-1.12.3/work/ppsspp-1.12.3/Qt -I/var/tmp/portage/games-emulation/ppsspp-1.12.3/work/ppsspp-1.12.3_build -I/var/tmp/portage/games-emulation/ppsspp-1.12.3/work/ppsspp-1.12.3/ext/libkirk -I/var/tmp/portage/games-e
mulation/ppsspp-1.12.3/work/ppsspp-1.12.3/ext/sfmt19937 -I/var/tmp/portage/games-emulation/ppsspp-1.12.3/work/ppsspp-1.12.3/ext/xbrz -I/var/tmp/portage/games-emulation/ppsspp-1.12.3/work/ppsspp-1.12.3/ext/xxhash -I/var/tmp/portage/games-emulation/ppsspp-1.12.3/work/pp
sspp-1.12.3/ext/zstd/lib -I/usr/include/SDL2 -I/usr/include/qt5 -I/usr/include/qt5/QtOpenGL -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I/usr/lib64/qt5/mkspecs/linux-g++ -I/usr/include/qt5/QtMultimedia -I/usr/include/qt5/QtNetwork 
-I/var/tmp/portage/games-emulation/ppsspp-1.12.3/work/ppsspp-1.12.3/ext/glslang/glslang/.. -I/var/tmp/portage/games-emulation/ppsspp-1.12.3/work/ppsspp-1.12.3_build/include -I/var/tmp/portage/games-emulation/ppsspp-1.12.3/work/ppsspp-1.12.3/ext/glslang/SPIRV/.. -I/var
/tmp/portage/games-emulation/ppsspp-1.12.3/work/ppsspp-1.12.3/ext/SPIRV-Cross-build/../SPIRV-Cross  -O2 -march=znver3 -pipe -g -ggdb3  -O2 -g -D_NDEBUG   -Wno-multichar -Wno-deprecated-register -Wno-tautological-pointer-compare -msse2 -Wno-psabi -fPIC -fno-strict-alia
sing -fPIC -std=gnu++11 -MD -MT CMakeFiles/Core.dir/Core/AVIDump.cpp.o -MF CMakeFiles/Core.dir/Core/AVIDump.cpp.o.d -o CMakeFiles/Core.dir/Core/AVIDump.cpp.o -c /var/tmp/portage/games-emulation/ppsspp-1.12.3/work/ppsspp-1.12.3/Core/AVIDump.cpp
FAILED: CMakeFiles/Core.dir/Core/AVIDump.cpp.o 
/usr/bin/ccache /usr/bin/x86_64-pc-linux-gnu-g++ -DASSETS_DIR=\"/usr/share/ppsspp/assets/\" -DGLSLANG_IS_SHARED_LIBRARY=1 -DMINIUPNPC_SET_SOCKET_TIMEOUT -DMINIUPNP_STATICLIB -DPNG_ARM_NEON_OPT=0 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_NO_D
EBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DSDL -DSHARED_LIBZIP -DSHARED_ZLIB -DUSE_FFMPEG=1 -DUSING_QT_UI -DVK_USE_PLATFORM_XLIB_KHR -DWITH_UPNP -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE=1 -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=700 -
D_XOPEN_SOURCE_EXTENDED -D__BSD_VISIBLE=1 -D__STDC_CONSTANT_MACROS -I/var/tmp/portage/games-emulation/ppsspp-1.12.3/work/ppsspp-1.12.3_build/Core_autogen/include -I/var/tmp/portage/games-emulation/ppsspp-1.12.3/work/ppsspp-1.12.3/ext/glslang -I/var/tmp/portage/games-e
mulation/ppsspp-1.12.3/work/ppsspp-1.12.3/ext/glew -I/var/tmp/portage/games-emulation/ppsspp-1.12.3/work/ppsspp-1.12.3 -I/var/tmp/portage/games-emulation/ppsspp-1.12.3/work/ppsspp-1.12.3/Common -I/var/tmp/portage/games-emulation/ppsspp-1.12.3/work/ppsspp-1.12.3/ext/ci
tyhash -I/var/tmp/portage/games-emulation/ppsspp-1.12.3/work/ppsspp-1.12.3/Qt -I/var/tmp/portage/games-emulation/ppsspp-1.12.3/work/ppsspp-1.12.3_build -I/var/tmp/portage/games-emulation/ppsspp-1.12.3/work/ppsspp-1.12.3/ext/libkirk -I/var/tmp/portage/games-emulation/p
psspp-1.12.3/work/ppsspp-1.12.3/ext/sfmt19937 -I/var/tmp/portage/games-emulation/ppsspp-1.12.3/work/ppsspp-1.12.3/ext/xbrz -I/var/tmp/portage/games-emulation/ppsspp-1.12.3/work/ppsspp-1.12.3/ext/xxhash -I/var/tmp/portage/games-emulation/ppsspp-1.12.3/work/ppsspp-1.12.
3/ext/zstd/lib -I/usr/include/SDL2 -I/usr/include/qt5 -I/usr/include/qt5/QtOpenGL -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I/usr/lib64/qt5/mkspecs/linux-g++ -I/usr/include/qt5/QtMultimedia -I/usr/include/qt5/QtNetwork -I/var/tmp
/portage/games-emulation/ppsspp-1.12.3/work/ppsspp-1.12.3/ext/glslang/glslang/.. -I/var/tmp/portage/games-emulation/ppsspp-1.12.3/work/ppsspp-1.12.3_build/include -I/var/tmp/portage/games-emulation/ppsspp-1.12.3/work/ppsspp-1.12.3/ext/glslang/SPIRV/.. -I/var/tmp/porta
ge/games-emulation/ppsspp-1.12.3/work/ppsspp-1.12.3/ext/SPIRV-Cross-build/../SPIRV-Cross  -O2 -march=znver3 -pipe -g -ggdb3  -O2 -g -D_NDEBUG   -Wno-multichar -Wno-deprecated-register -Wno-tautological-pointer-compare -msse2 -Wno-psabi -fPIC -fno-strict-aliasing -fPIC
 -std=gnu++11 -MD -MT CMakeFiles/Core.dir/Core/AVIDump.cpp.o -MF CMakeFiles/Core.dir/Core/AVIDump.cpp.o.d -o CMakeFiles/Core.dir/Core/AVIDump.cpp.o -c /var/tmp/portage/games-emulation/ppsspp-1.12.3/work/ppsspp-1.12.3/Core/AVIDump.cpp
/var/tmp/portage/games-emulation/ppsspp-1.12.3/work/ppsspp-1.12.3/Core/AVIDump.cpp: In static member function ‘static bool AVIDump::CreateAVI()’:
/var/tmp/portage/games-emulation/ppsspp-1.12.3/work/ppsspp-1.12.3/Core/AVIDump.cpp:148:37: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
  148 |         codec = avcodec_find_encoder(s_codec_context->codec_id);
      |                 ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                     |
      |                                     const AVCodec*
/var/tmp/portage/games-emulation/ppsspp-1.12.3/work/ppsspp-1.12.3/Core/AVIDump.cpp: In function ‘void PreparePacket(AVPacket*)’:
/var/tmp/portage/games-emulation/ppsspp-1.12.3/work/ppsspp-1.12.3/Core/AVIDump.cpp:184:23: warning: ‘void av_init_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
  184 |         av_init_packet(pkt);
      |         ~~~~~~~~~~~~~~^~~~~
In file included from /usr/include/libavcodec/avcodec.h:45,
                 from /var/tmp/portage/games-emulation/ppsspp-1.12.3/work/ppsspp-1.12.3/Core/AVIDump.cpp:18:
/usr/include/libavcodec/packet.h:506:6: note: declared here
  506 | void av_init_packet(AVPacket *pkt);
      |      ^~~~~~~~~~~~~~
At global scope:
cc1plus: note: unrecognized command-line option ‘-Wno-tautological-pointer-compare’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-deprecated-register’ may have been intended to silence earlier diagnostics

Reproducible: Always
Comment 1 Kobboi 2022-02-28 17:54:04 UTC
Created attachment 766015 [details]
build.log.gz
Comment 2 Kobboi 2022-02-28 17:54:06 UTC
Created attachment 766016 [details]
emerge-info.txt
Comment 3 Kobboi 2022-02-28 17:54:22 UTC
Compiles fine with ffmpeg-4.4.1
Comment 4 Larry the Git Cow gentoo-dev 2022-03-01 01:34:25 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5853372b18c0ae585625040adddb26a374f7f617

commit 5853372b18c0ae585625040adddb26a374f7f617
Author:     Maciej Barć <xgqt@gentoo.org>
AuthorDate: 2022-03-01 01:15:04 +0000
Commit:     Maciej Barć <xgqt@gentoo.org>
CommitDate: 2022-03-01 01:33:45 +0000

    games-emulation/ppsspp: pin ffmpeg to 0/56.58.58 slot
    
    Upstream bug report: https://github.com/hrydgard/ppsspp/issues/15308
    CONSIDER: If we can not patch this in the future,
    then maybe bring back USE="system-ffmpeg".
    
    Closes: https://bugs.gentoo.org/834376
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Maciej Barć <xgqt@gentoo.org>

 .../ppsspp/{ppsspp-1.11.3.ebuild => ppsspp-1.11.3-r1.ebuild}          | 4 ++--
 ...p-1.11.3_p20210627-r1.ebuild => ppsspp-1.11.3_p20210627-r2.ebuild} | 4 ++--
 .../ppsspp/{ppsspp-1.12.3.ebuild => ppsspp-1.12.3-r1.ebuild}          | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)