Bug #5726
Attribut »alloc_size« an einer Funktion mit Rückgabetyp »int« wird ignoriert [-Werror=attributes]
0%
Description
/home/klaus/tvheadend/build.linux/ffmpeg/build/ffmpeg/include/libavutil/mem.h:342:1: Fehler: Attribut »alloc_size« an einer Funktion mit Rückgabetyp »int« wird ignoriert [-Werror=attributes]
342 | av_alloc_size(2, 3) int av_reallocp_array(void *ptr, size_t nmemb, size_t size);
| ^~~~~~~~~~~
cc1: Alle Warnungen werden als Fehler behandelt
make1: * [Makefile:717: /home/klaus/tvheadend/build.linux/src/main.o] Fehler 1
make1: Verzeichnis „/home/klaus/tvheadend“ wird verlassen
make: * [Makefile:110: ffmpeg_all] Fehler 2
History
Updated by Klaus Hader about 5 years ago
forgot to mention:
I'm trying to build tvheadend on a raspberry 4 running 64bit Manjaro Linux (aarch64).
Had several other issues (e.g. an outdated config.guess in /home/klaus/tvheadend/build.linux/ffmpeg/libtheora-1.1.1), but these were easy to fix. (Maybe I'll open another ticket for that).
I'm using GCC 9.1:
gcc v__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --disable-multilib --disable-werror --enable-checking=release --enable-default-pie --enable-default-ssp --host=aarch64-unknown-linux-gnu --build=aarch64-unknown-linux-gnu --with-arch=armv8-a --enable-fix-cortex-a53-835769 --enable-fix-cortex-a53-843419
Es werden eingebaute Spezifikationen verwendet.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-unknown-linux-gnu/9.1.0/lto-wrapper
Ziel: aarch64-unknown-linux-gnu
Konfiguriert mit: /build/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://github.com/archlinuxarm/PKGBUILDs/issues --enable-languages=c,c++,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --with-isl --enable
Thread-Modell: posix
gcc-Version 9.1.0 (GCC)
Updated by Klaus Hader about 5 years ago
that seems to be a known problem since Nov 2018: