[MPlayer-users] make: *** [Makefile:744: ffmpeg/libavcodec/libavcodec.a] Error 2
Antonio Olivares
olivares14031 at yahoo.com
Thu Sep 22 17:31:47 EEST 2022
Dear mplayer-users,
on raspberry pi :
In file included from ./libavutil/aarch64/cpu.h:23,
from libswscale/utils.c:52:
libswscale/utils.c: In function 'initFilter':
./libavutil/cpu_internal.h:27:6: error: 'HAVE_LASX' undeclared (first use in this function); did you mean 'HAVE_AVX'?
27 | (HAVE_ ## cpuext ## suffix && ((flags) & AV_CPU_FLAG_ ## cpuext))
| ^~~~~
./libavutil/cpu_internal.h:43:31: note: in expansion of macro 'CPUEXT_SUFFIX'
43 | #define CPUEXT(flags, cpuext) CPUEXT_SUFFIX(flags, , cpuext)
| ^~~~~~~~~~~~~
./libavutil/loongarch/cpu.h:29:26: note: in expansion of macro 'CPUEXT'
29 | #define have_lasx(flags) CPUEXT(flags, LASX)
| ^~~~~~
libswscale/utils.c:663:9: note: in expansion of macro 'have_lasx'
663 | if (have_lasx(cpu_flags)) {
| ^~~~~~~~~
./libavutil/cpu_internal.h:27:6: note: each undeclared identifier is reported only once for each function it appears in
27 | (HAVE_ ## cpuext ## suffix && ((flags) & AV_CPU_FLAG_ ## cpuext))
| ^~~~~
./libavutil/cpu_internal.h:43:31: note: in expansion of macro 'CPUEXT_SUFFIX'
43 | #define CPUEXT(flags, cpuext) CPUEXT_SUFFIX(flags, , cpuext)
| ^~~~~~~~~~~~~
./libavutil/loongarch/cpu.h:29:26: note: in expansion of macro 'CPUEXT'
29 | #define have_lasx(flags) CPUEXT(flags, LASX)
| ^~~~~~
libswscale/utils.c:663:9: note: in expansion of macro 'have_lasx'
663 | if (have_lasx(cpu_flags)) {
| ^~~~~~~~~
libswscale/utils.c: In function 'sws_init_context':
./libavutil/cpu_internal.h:27:6: error: 'HAVE_LASX' undeclared (first use in this function); did you mean 'HAVE_AVX'?
27 | (HAVE_ ## cpuext ## suffix && ((flags) & AV_CPU_FLAG_ ## cpuext))
| ^~~~~
./libavutil/cpu_internal.h:43:31: note: in expansion of macro 'CPUEXT_SUFFIX'
43 | #define CPUEXT(flags, cpuext) CPUEXT_SUFFIX(flags, , cpuext)
| ^~~~~~~~~~~~~
./libavutil/loongarch/cpu.h:29:26: note: in expansion of macro 'CPUEXT'
29 | #define have_lasx(flags) CPUEXT(flags, LASX)
| ^~~~~~
libswscale/utils.c:1858:37: note: in expansion of macro 'have_lasx'
1858 | have_lasx(cpu_flags) ? 8 : 1;
| ^~~~~~~~~
make[1]: *** [ffbuild/common.mak:81: libswscale/utils.o] Error 1
make[1]: Leaving directory '/home/olivares/Downloads/mplayer/ffmpeg'
make: *** [Makefile:744: ffmpeg/libswscale/libswscale.a] Error 2
olivares at raspberrypi:~/Downloads/mplayer $
similar situation happens.
Best Regards,
Antonio
On Wednesday, September 21, 2022, 02:34:56 PM CDT, Antonio Olivares <olivares14031 at yahoo.com> wrote:
libavcodec/vp9recon.c: In function 'ff_vp9_intra_recon_16bpp':
libavcodec/vp9recon.c:97:18: note: 'top' was declared here
97 | uint8_t *top, *topleft;
| ^~~
./libavutil/intreadwrite.h:594:59: warning: 'topleft' may be used uninitialized [-Wmaybe-uninitialized]
594 | (((av_alias##n*)(d))->u##n = ((const av_alias##n*)(s))->u##n)
| ^~
libavcodec/vp9recon.c:97:24: note: 'topleft' was declared here
97 | uint8_t *top, *topleft;
| ^~~~~~~
In function 'check_intra_mode',
inlined from 'intra_recon' at libavcodec/vp9recon.c:244:20,
inlined from 'ff_vp9_intra_recon_16bpp' at libavcodec/vp9recon.c:295:5:
libavcodec/vp9recon.c:178:21: warning: 'top' may be used uninitialized [-Wmaybe-uninitialized]
178 | memcpy(&(*a)[4 * bytesperpixel], &top[4 * bytesperpixel], 4 * bytesperpixel);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavcodec/vp9recon.c: In function 'ff_vp9_intra_recon_16bpp':
libavcodec/vp9recon.c:97:18: note: 'top' was declared here
97 | uint8_t *top, *topleft;
| ^~~
./libavutil/intreadwrite.h:594:59: warning: 'topleft' may be used uninitialized [-Wmaybe-uninitialized]
594 | (((av_alias##n*)(d))->u##n = ((const av_alias##n*)(s))->u##n)
| ^~
libavcodec/vp9recon.c:97:24: note: 'topleft' was declared here
97 | uint8_t *top, *topleft;
| ^~~~~~~
make[1]: Leaving directory '/home/olivares/Downloads/mplayer/ffmpeg'
make: *** [Makefile:744: ffmpeg/libavcodec/libavcodec.a] Error 2
[olivares at fedora mplayer]$ sudo make install
make -C ffmpeg libswscale/libswscale.a
make[1]: Entering directory '/home/olivares/Downloads/mplayer/ffmpeg'
CC libswscale/utils.o
In file included from ./libavutil/intreadwrite.h:25,
from libswscale/utils.c:45:
./libavutil/bswap.h:43:7: warning: "ARCH_RISCV" is not defined, evaluates to 0 [-Wundef]
43 | #elif ARCH_RISCV
| ^~~~~~~~~~
In file included from ./libavutil/common.h:88,
from ./libavutil/avutil.h:296,
from ./libavutil/opt.h:31,
from libswscale/utils.c:48:
./libavutil/intmath.h:31:7: warning: "ARCH_RISCV" is not defined, evaluates to 0 [-Wundef]
31 | #elif ARCH_RISCV
| ^~~~~~~~~~
In file included from ./libavutil/internal.h:43,
from ./libavutil/common.h:575:
./libavutil/timer.h:60:7: warning: "ARCH_RISCV" is not defined, evaluates to 0 [-Wundef]
60 | #elif ARCH_RISCV
| ^~~~~~~~~~
In file included from ./libavutil/aarch64/cpu.h:23,
from libswscale/utils.c:52:
libswscale/utils.c: In function 'initFilter':
./libavutil/cpu_internal.h:27:6: error: 'HAVE_LASX' undeclared (first use in this function); did you mean 'HAVE_YASM'?
27 | (HAVE_ ## cpuext ## suffix && ((flags) & AV_CPU_FLAG_ ## cpuext))
| ^~~~~
./libavutil/cpu_internal.h:43:31: note: in expansion of macro 'CPUEXT_SUFFIX'
43 | #define CPUEXT(flags, cpuext) CPUEXT_SUFFIX(flags, , cpuext)
| ^~~~~~~~~~~~~
./libavutil/loongarch/cpu.h:29:26: note: in expansion of macro 'CPUEXT'
29 | #define have_lasx(flags) CPUEXT(flags, LASX)
| ^~~~~~
libswscale/utils.c:663:9: note: in expansion of macro 'have_lasx'
663 | if (have_lasx(cpu_flags)) {
| ^~~~~~~~~
./libavutil/cpu_internal.h:27:6: note: each undeclared identifier is reported only once for each function it appears in
27 | (HAVE_ ## cpuext ## suffix && ((flags) & AV_CPU_FLAG_ ## cpuext))
| ^~~~~
./libavutil/cpu_internal.h:43:31: note: in expansion of macro 'CPUEXT_SUFFIX'
43 | #define CPUEXT(flags, cpuext) CPUEXT_SUFFIX(flags, , cpuext)
| ^~~~~~~~~~~~~
./libavutil/loongarch/cpu.h:29:26: note: in expansion of macro 'CPUEXT'
29 | #define have_lasx(flags) CPUEXT(flags, LASX)
| ^~~~~~
libswscale/utils.c:663:9: note: in expansion of macro 'have_lasx'
663 | if (have_lasx(cpu_flags)) {
| ^~~~~~~~~
libswscale/utils.c: In function 'sws_init_context':
./libavutil/cpu_internal.h:27:6: error: 'HAVE_LASX' undeclared (first use in this function); did you mean 'HAVE_YASM'?
27 | (HAVE_ ## cpuext ## suffix && ((flags) & AV_CPU_FLAG_ ## cpuext))
| ^~~~~
./libavutil/cpu_internal.h:43:31: note: in expansion of macro 'CPUEXT_SUFFIX'
43 | #define CPUEXT(flags, cpuext) CPUEXT_SUFFIX(flags, , cpuext)
| ^~~~~~~~~~~~~
./libavutil/loongarch/cpu.h:29:26: note: in expansion of macro 'CPUEXT'
29 | #define have_lasx(flags) CPUEXT(flags, LASX)
| ^~~~~~
libswscale/utils.c:1858:37: note: in expansion of macro 'have_lasx'
1858 | have_lasx(cpu_flags) ? 8 : 1;
| ^~~~~~~~~
make[1]: *** [ffbuild/common.mak:81: libswscale/utils.o] Error 1
make[1]: Leaving directory '/home/olivares/Downloads/mplayer/ffmpeg'
make: *** [Makefile:744: ffmpeg/libswscale/libswscale.a] Error 2
[olivares at fedora mplayer]$
On Fedora 36
Thanks,
Antonio
More information about the MPlayer-users
mailing list