Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 685142 - media-video/avidemux-2.7.0 and media-libs/avidemux-plugins-2.7.0: error: ‘alloc_size’ attribute ignored on a function returning ‘int’ [-Werror=attributes]
Summary: media-video/avidemux-2.7.0 and media-libs/avidemux-plugins-2.7.0: error: ‘all...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords: PATCH
: 685930 687650 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-05-05 21:20 UTC by Kobboi
Modified: 2019-08-15 08:38 UTC (History)
7 users (show)

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


Attachments
add-patch-0001-avutil-mem-gcc9.patch (add-patch-0001-avutil-mem-gcc9.patch,1.55 KB, patch)
2019-07-03 08:49 UTC, Andrey Volkov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2019-05-05 21:20:55 UTC
[ 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);
      |                                                                               ^
Comment 1 Kobboi 2019-05-05 21:21:24 UTC
Compiled fine on January 25, now using GCC 9.1
Comment 3 Andreas Sturmlechner gentoo-dev 2019-05-05 21:36:12 UTC
avidemux has more than one problem, but yeah.
Comment 4 jospezial 2019-05-11 06:39:01 UTC
Same result on live ebuilds.

I see active development in branch ffmpeg4x.

With
EGIT_BRANCH="ffmpeg4x"
merge went fine.
Comment 5 Andreas Sturmlechner gentoo-dev 2019-05-14 09:04:44 UTC
*** Bug 685930 has been marked as a duplicate of this bug. ***
Comment 6 Andrey Volkov 2019-07-03 08:49:36 UTC
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.
Comment 7 jospezial 2019-07-07 10:13:33 UTC
(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'
Comment 8 jospezial 2019-07-07 12:46:07 UTC
(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.
Comment 9 Mike Auty (RETIRED) gentoo-dev 2019-07-15 00:15:20 UTC
*** Bug 687650 has been marked as a duplicate of this bug. ***
Comment 10 Stefan Strogin gentoo-dev 2019-08-14 02:56:49 UTC
Does it reproduce with 2.7.3?
Comment 11 Kobboi 2019-08-14 08:13:05 UTC
The entire avidemux suite version 2.7.3 compiles fine for me now
Comment 12 Stefan Strogin gentoo-dev 2019-08-14 14:09:55 UTC
Great.