mpv-build
mpv-build copied to clipboard
Compile Error fifo.o (Raspberry Pi 4 - Bullseye)
Any idea whats wrong ?
INSTALL libavcodec/libavcodec.a
/usr/bin/ld: libavformat/libavformat.a(fifo.o): in function `fifo_init':
./ffmpeg_build/src/libavformat/fifo.c:519: undefined reference to `__atomic_stor e_8'
/usr/bin/ld: libavformat/libavformat.a(fifo.o): in function `fifo_write_trailer' :
./ffmpeg_build/src/libavformat/fifo.c:624: undefined reference to `__atomic_fetc h_add_8'
/usr/bin/ld: ./ffmpeg_build/src/libavformat/fifo.c:631: undefined reference to ` __atomic_store_8'
/usr/bin/ld: libavformat/libavformat.a(fifo.o): in function `fifo_thread_write_p acket':
./ffmpeg_build/src/libavformat/fifo.c:188: undefined reference to `__atomic_fetc h_sub_8'
/usr/bin/ld: libavformat/libavformat.a(fifo.o): in function `fifo_consumer_threa d':
./ffmpeg_build/src/libavformat/fifo.c:457: undefined reference to `__atomic_load _8'
/usr/bin/ld: libavformat/libavformat.a(fifo.o): in function `fifo_write_packet':
./ffmpeg_build/src/libavformat/fifo.c:597: undefined reference to `__atomic_fetc h_add_8'
/usr/bin/ld: libavformat/libavformat.a(fifo.o): in function `fifo_init':
./ffmpeg_build/src/libavformat/fifo.c:519: undefined reference to `__atomic_stor e_8'
/usr/bin/ld: libavformat/libavformat.a(fifo.o): in function `fifo_write_trailer' :
./ffmpeg_build/src/libavformat/fifo.c:624: undefined reference to `__atomic_fetc h_add_8'
/usr/bin/ld: ./ffmpeg_build/src/libavformat/fifo.c:631: undefined reference to ` __atomic_store_8'
/usr/bin/ld: libavformat/libavformat.a(fifo.o): in function `fifo_thread_write_p acket':
./ffmpeg_build/src/libavformat/fifo.c:188: undefined reference to `__atomic_fetc h_sub_8'
/usr/bin/ld: libavformat/libavformat.a(fifo.o): in function `fifo_consumer_threa d':
./ffmpeg_build/src/libavformat/fifo.c:457: undefined reference to `__atomic_load _8'
/usr/bin/ld: libavformat/libavformat.a(fifo.o): in function `fifo_write_packet':
./ffmpeg_build/src/libavformat/fifo.c:597: undefined reference to `__atomic_fetc h_add_8'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/tmp/build/mpv-build/ffmpeg/Makefile:124: ffprobe_g] Error 1
make[2]: *** Waiting for unfinished jobs....
collect2: error: ld returned 1 exit status
make[2]: *** [/home/tmp/build/mpv-build/ffmpeg/Makefile:124: ffmpeg_g] Error 1
make[2]: Leaving directory '/home/tmp/build/mpv-build/ffmpeg_build'
make[1]: *** [debian/rules:60: ffmpeg_build] Error 2
make[1]: Leaving directory '/home/tmp/build/mpv
Any idea whats wrong ?
yes, your terminal is sized too small and is cutting off all the text so we can't even read anything.
Either way, ffmpeg build is failing. Needs more output to know exactly why.
in some boards I read ... so ffmpeg need to configure with --extra-ldflags="-latomic"
so I can add this, like this ? echo --extra-ldflags="-latomic" >> ffmpeg_options
New log with Full Terminal
INSTALL libavdevice/libavdevice.a
INSTALL libavformat/libavformat.a
INSTALL libpostproc/libpostproc.a
INSTALL libavdevice/libavdevice.pc
INSTALL libavfilter/libavfilter.pc
INSTALL libavformat/libavformat.pc
INSTALL libavcodec/libavcodec.pc
INSTALL libpostproc/libpostproc.pc
INSTALL libswresample/libswresample.pc
INSTALL libswscale/libswscale.pc
INSTALL libavutil/libavutil.pc
AR libavfilter/libavfilter.a
AR libavcodec/libavcodec.a
AR libswresample/libswresample.a
AR libswscale/libswscale.a
AR libavutil/libavutil.a
INSTALL libavfilter/libavfilter.a
INSTALL libswresample/libswresample.a
INSTALL libswscale/libswscale.a
INSTALL libavutil/libavutil.a
LD ffmpeg_g
INSTALL libavcodec/libavcodec.a
LD ffprobe_g
/usr/bin/ld: libavformat/libavformat.a(fifo.o): in function `fifo_init':
fifo.c:(.text+0x80): undefined reference to `__atomic_store_8'
/usr/bin/ld: libavformat/libavformat.a(fifo.o): in function `fifo_write_trailer':
fifo.c:(.text+0x284): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: fifo.c:(.text+0x318): undefined reference to `__atomic_store_8'
/usr/bin/ld: libavformat/libavformat.a(fifo.o): in function `fifo_thread_dispatch_message.part.0':
fifo.c:(.text+0x544): undefined reference to `__atomic_fetch_sub_8'
/usr/bin/ld: libavformat/libavformat.a(fifo.o): in function `fifo_consumer_thread':
fifo.c:(.text+0xce4): undefined reference to `__atomic_load_8'
/usr/bin/ld: libavformat/libavformat.a(fifo.o): in function `fifo_write_packet':
fifo.c:(.text+0xf9c): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libavformat/libavformat.a(fifo.o): in function `fifo_init':
fifo.c:(.text+0x80): undefined reference to `__atomic_store_8'
/usr/bin/ld: libavformat/libavformat.a(fifo.o): in function `fifo_write_trailer':
fifo.c:(.text+0x284): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: fifo.c:(.text+0x318): undefined reference to `__atomic_store_8'
/usr/bin/ld: libavformat/libavformat.a(fifo.o): in function `fifo_thread_dispatch_message.part.0':
fifo.c:(.text+0x544): undefined reference to `__atomic_fetch_sub_8'
/usr/bin/ld: libavformat/libavformat.a(fifo.o): in function `fifo_consumer_thread':
fifo.c:(.text+0xce4): undefined reference to `__atomic_load_8'
/usr/bin/ld: libavformat/libavformat.a(fifo.o): in function `fifo_write_packet':
fifo.c:(.text+0xf9c): undefined reference to `__atomic_fetch_add_8'
collect2: error: ld returned 1 exit status
make: *** [/home/tmp/build/mpv-build/ffmpeg/Makefile:125: ffmpeg_g] Error 1
make: *** Waiting for unfinished jobs....
collect2: error: ld returned 1 exit status
make: *** [/home/tmp/build/mpv-build/ffmpeg/Makefile:125: ffprobe_g] Error 1
make: Leaving directory '/home/tmp/build/mpv-build/ffmpeg_build'
root@firewall:/home/tmp/build/mpv-build#
--extra-ldflags="-latomic" doesn't help at all :(
Old but you seem to not be linking to libatomic for some reason. Feel free to make a new issue if this is still a problem.