Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 924818 - =media-video/ffmpeg-6.1.1-r3 [soc] fails to compile with: src/libavcodec/v4l2_req_decode_q.h:11:5: error: unknown type name 'pthread_mutex_t' on armv7a+musl
Summary: =media-video/ffmpeg-6.1.1-r3 [soc] fails to compile with: src/libavcodec/v4l2...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: James Le Cuirot
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-17 19:05 UTC by tt_1
Modified: 2024-02-18 14:06 UTC (History)
1 user (show)

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


Attachments
compressed build log (build.log.gz,59.75 KB, application/gzip)
2024-02-17 19:05 UTC, tt_1
Details
output from emerge --info (emerge-info,5.98 KB, text/plain)
2024-02-17 19:07 UTC, tt_1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tt_1 2024-02-17 19:05:54 UTC
Created attachment 885233 [details]
compressed build log

just got this juicy error when compiling ffmpeg: 


                 from src/libavcodec/v4l2_req_hevc_vx.c:43,
                 from src/libavcodec/v4l2_req_hevc_v4.c:2:
src/libavcodec/v4l2_req_decode_q.h:11:5: error: unknown type name 'pthread_mutex_t'
   11 |     pthread_mutex_t q_lock;
      |     ^~~~~~~~~~~~~~~
src/libavcodec/v4l2_req_decode_q.h:12:5: error: unknown type name 'pthread_cond_t'
   12 |     pthread_cond_t q_cond;
      |     ^~~~~~~~~~~~~~
src/libavcodec/v4l2_req_hevc_vx.c: In function 'fill_dpb_entries':
src/libavcodec/v4l2_req_hevc_vx.c:305:13: warning: 'interlaced_frame' is deprecated [-Wdeprecated-declarations]
  305 |             entry->field_pic = frame->frame->interlaced_frame;
      |             ^~~~~
In file included from src/libavcodec/decode.h:24,
                 from src/libavcodec/v4l2_req_hevc_vx.c:3:
src/libavutil/frame.h:530:9: note: declared here
  530 |     int interlaced_frame;
      |         ^~~~~~~~~~~~~~~~
make: *** [/var/tmp/portage/media-video/ffmpeg-6.1.1-r3/work/ffmpeg-6.1.1/ffbuild/common.mak:81: libavcodec/v4l2_req_hevc_v4.o] Error 1
make: *** Waiting for unfinished jobs....
Comment 1 tt_1 2024-02-17 19:07:00 UTC
Created attachment 885234 [details]
output from emerge --info
Comment 2 tt_1 2024-02-17 19:08:00 UTC
output of emerge -pv ffmpeg: 

[ebuild   R   ~] media-video/ffmpeg-6.1.1-r3:0/58.60.60::gentoo  USE="alsa bzip2 gmp gnutls gpl iconv libdrm network pic postproc soc* svg threads zlib -X (-amf) -amr -amrenc (-appkit) -bluray -bs2b -cdio -chromaprint -chromium -codec2 -cpudetection (-cuda) -dav1d -debug -doc -encode -fdk -flite -fontconfig -frei0r -fribidi -gcrypt -glslang -gme -gsm -hardcoded-tables -iec61883 (-ieee1394) -jack -jpeg2k -jpegxl -kvazaar -ladspa -lcms -libaom -libaribb24 -libass -libcaca -libilbc (-libplacebo) -librtmp -libsoxr -libtesseract -libv4l -libxml2 -lv2 -lzma (-mipsdspr1) (-mipsdspr2) (-mipsfpu) -modplug -mp3 (-nvenc) -openal (-opencl) -opengl -openh264 -openssl -opus -oss -pulseaudio (-qsv) -rav1e -rubberband -samba -sdl (-shaderc) -snappy -sndio -speex -srt -ssh -static-libs -svt-av1 -test -theora -truetype -twolame -v4l (-vaapi) (-vdpau) -verify-sig -vidstab (-vmaf) -vorbis -vpx -vulkan -webp -x264 -x265 -xvid -zeromq -zimg -zvbi" CPU_FLAGS_ARM="(thumb) (thumb2) (v6) (vfp) vfpv3 -asimddp -i8mm -neon (-v8)" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB
Comment 3 tt_1 2024-02-18 06:28:58 UTC
Is there a place where upstream for this patch actually lives and can be talked to?
Comment 4 James Le Cuirot gentoo-dev 2024-02-18 08:44:52 UTC
(In reply to tt_1 from comment #3)
> Is there a place where upstream for this patch actually lives and can be
> talked to?

Yes, but I'll handle it.
Comment 5 Larry the Git Cow gentoo-dev 2024-02-18 09:26:48 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86d153ff4a1d965671cb49f2e1c5b172cf932c05

commit 86d153ff4a1d965671cb49f2e1c5b172cf932c05
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2024-02-18 09:25:37 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2024-02-18 09:26:33 +0000

    media-video/ffmpeg: Fix musl build with new RPi patch
    
    Closes: https://bugs.gentoo.org/924818
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>

 media-video/ffmpeg/Manifest               | 2 +-
 media-video/ffmpeg/ffmpeg-6.1.1-r3.ebuild | 2 +-
 media-video/ffmpeg/ffmpeg-9999.ebuild     | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
Comment 6 tt_1 2024-02-18 14:06:17 UTC
thanks, the bug is fixed on armv7a