[ 21%] Building CXX object common/ADM_audioFilter/src/CMakeFiles/ADM_audioFilter6.dir/audiofilter_limiter.cpp.o cd /var/tmp/portage/media-video/avidemux-2.7.0/work/avidemux-2.7.0_build/buildCli/common/ADM_audioFilter/src && /usr/bin/x86_64-pc-linux-gnu-g++ -DADM_LEGACY_PROGGY -DADM_UI_TYPE_BUILD=ADM_UI_CLI -DCPU_CLIPS_NEGATIVE=0 -DCPU_CLIPS_POSITIVE=0 -DHAVE_LRINT -DHAVE_LRINTF -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/var/tmp/portage/media-video/avidemux-2.7.0/work/avidemux-2.7.0_build/buildCli/config/cli -I/usr/include/avidemux/2.7 -I/usr/include/avidemux/2.7/ADM_core -I/usr/include/avidemux/2.7/ADM_coreAudioFilter -I/usr/include/avidemux/2.7/ADM_coreAudioParser -I/usr/include/avidemux/2.7/ADM_coreAudio -I/usr/include/avidemux/2.7/ADM_coreAudioDevice -I/usr/include/avidemux/2.7/ADM_coreAudioEncoder -I/usr/include/avidemux/2.7/ADM_coreDemuxer -I/usr/include/avidemux/2.7/ADM_coreDemuxer/unix -I/usr/include/avidemux/2.7/ADM_coreDemuxerMpeg -I/usr/include/avidemux/2.7/ADM_coreImage -I/usr/include/avidemux/2.7/ADM_coreMuxer -I/usr/include/avidemux/2.7/ADM_coreScript -I/usr/include/avidemux/2.7/ADM_coreUI -I/usr/include/avidemux/2.7/ADM_coreUtils -I/usr/include/avidemux/2.7/ADM_coreVideoEncoder -I/usr/include/avidemux/2.7/ADM_coreVideoFilter -I/usr/include/avidemux/2.7/ADM_coreVideoCodec -I/usr/include/avidemux/2.7/ADM_coreImageLoader -I/usr/include/avidemux/2.7/ADM_coreJobs -I/usr/include/avidemux/2.7/ADM_coreSocket -I/usr/include/avidemux/2.7/ADM_coreAudioCodec -I/var/tmp/portage/media-video/avidemux-2.7.0/work/avidemux_2.7.0/avidemux/cli/ADM_muxerGate/include -I/var/tmp/portage/media-video/avidemux-2.7.0/work/avidemux_2.7.0/avidemux/cli/../common -I/var/tmp/portage/media-video/avidemux-2.7.0/work/avidemux_2.7.0/avidemux/cli/../common/ADM_audioFilter/include -I/var/tmp/portage/media-video/avidemux-2.7.0/work/avidemux_2.7.0/avidemux/cli/../common/ADM_commonUI -I/var/tmp/portage/media-video/avidemux-2.7.0/work/avidemux_2.7.0/avidemux/cli/../common/ADM_videoFilter2/include -I/var/tmp/portage/media-video/avidemux-2.7.0/work/avidemux_2.7.0/avidemux/cli/../common/ADM_videoEncoder/include -I/var/tmp/portage/media-video/avidemux-2.7.0/work/avidemux_2.7.0/avidemux/cli/../common/ADM_editor/include -I/usr/include/avidemux/2.7/ffmpeg -DNDEBUG -O2 -march=x86-64 -pipe -fomit-frame-pointer -g -ggdb -std=c++14 -fmessage-length=0 -Werror=attributes -I/var/tmp/portage/media-video/avidemux-2.7.0/work/avidemux_2.7.0/avidemux/common/ADM_audioFilter/src -o CMakeFiles/ADM_audioFilter6.dir/audiofilter_limiter.cpp.o -c /var/tmp/portage/media-video/avidemux-2.7.0/work/avidemux_2.7.0/avidemux/common/ADM_audioFilter/src/audiofilter_limiter.cpp In file included from /usr/include/avidemux/2.7/libavutil/common.h:464, from /usr/include/avidemux/2.7/libavutil/avutil.h:303, from /usr/include/avidemux/2.7/libavutil/samplefmt.h:24, from /usr/include/avidemux/2.7/libavcodec/avcodec.h:31, from /var/tmp/portage/media-video/avidemux-2.7.0/work/avidemux_2.7.0/avidemux/common/ADM_muxerGate/src/ADM_videoCopyFromAnnexB.cpp:26: /usr/include/avidemux/2.7/libavutil/mem.h:341:79: error: ‘alloc_size’ attribute ignored on a function returning ‘int’ [-Werror=attributes] 341 | av_alloc_size(2, 3) int av_reallocp_array(void *ptr, size_t nmemb, size_t size); | ^
Compiled fine on January 25, now using GCC 9.1
See also: https://fossies.org/linux/avidemux/avidemux_core/ffmpeg_package/patches/upstream/0001-avutil-mem-gcc9.patch
avidemux has more than one problem, but yeah.
Same result on live ebuilds. I see active development in branch ffmpeg4x. With EGIT_BRANCH="ffmpeg4x" merge went fine.
*** Bug 685930 has been marked as a duplicate of this bug. ***
Created attachment 581836 [details, diff] add-patch-0001-avutil-mem-gcc9.patch There is no way to patch avutil/mem.h at src_prepare step since ffmpeg sources appears at src_configure step. This patch add-patch-0001-avutil-mem-gcc9.patch is for media-libs/avidemux-core-2.7.0. It appends avidemux patchs for ffmpeg.
(In reply to jospezial from comment #4) > Same result on live ebuilds. > > I see active development in branch ffmpeg4x. > > With > EGIT_BRANCH="ffmpeg4x" > merge went fine. Jun 30, 2019 https://github.com/mean00/avidemux2/commit/05cebde37b8b138e45cde0e1ab70176fdc6e71b5 Merge remote-tracking branch 'origin/ffmpeg4x'
(In reply to jospezial from comment #4) > Same result on live ebuilds. > > I see active development in branch ffmpeg4x. > > With > EGIT_BRANCH="ffmpeg4x" > merge went fine. Sorry, I did not remember. I commented out the failing parts of the ebuild. For example bug https://bugs.gentoo.org/689342 But the live ebuilds are gone for now.
*** Bug 687650 has been marked as a duplicate of this bug. ***
Does it reproduce with 2.7.3?
The entire avidemux suite version 2.7.3 compiles fine for me now
Great.