Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 934324 - media-video/obs-studio-30.1.1: fails to build with >media-video/ffmpeg-7.0: error: passing argument 6 of ‘avio_alloc_context’ from incompatible pointer type [-Wincompatible-pointer-types]
Summary: media-video/obs-studio-30.1.1: fails to build with >media-video/ffmpeg-7.0: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Chiitoo
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: ffmpeg-7.0
  Show dependency tree
 
Reported: 2024-06-15 03:14 UTC by Leonardo Hernández Hernández
Modified: 2024-07-13 05:44 UTC (History)
2 users (show)

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


Attachments
build.log (obs-studio-30.1.1:20240615-021612.log.gz,22.50 KB, application/gzip)
2024-06-15 03:14 UTC, Leonardo Hernández Hernández
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leonardo Hernández Hernández 2024-06-15 03:14:47 UTC
Created attachment 895841 [details]
build.log

/usr/bin/x86_64-pc-linux-gnu-gcc -fPIC -march=native -O3 -pipe -Werror=odr -Werror=strict-aliasing -Werror=lto-type-mismatch -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-O2 -fuse-ld=mold -Wl,--threads=8 -shared  -o linux-v4l2.so "CMakeFiles/linux-v4l2.dir/linux-v4l2.c.o" "CMakeFiles/linux-v4l2.dir/v4l2-controls.c.o" "CMakeFiles/linux-v4l2.dir/v4l2-input.c.o" "CMakeFiles/linux-v4l2.dir/v4l2-helpers.c.o" "CMakeFiles/linux-v4l2.dir/v4l2-output.c.o" "CMakeFiles/linux-v4l2.dir/v4l2-decoder.c.o" "CMakeFiles/linux-v4l2.dir/v4l2-udev.c.o"  -Wl,-rpath,/var/tmp/portage/media-video/obs-studio-30.1.1/work/obs-studio-30.1.1_build/libobs: ../../libobs/libobs.so.30 /usr/lib64/libv4l2.so /usr/lib64/libavcodec.so /usr/lib64/libavformat.so /usr/lib64/libavutil.so /usr/lib64/libudev.so
/var/tmp/portage/media-video/obs-studio-30.1.1/work/obs-studio-30.1.1/plugins/obs-ffmpeg/ffmpeg-mux/ffmpeg-mux.c: In function ‘open_output_file’:
/var/tmp/portage/media-video/obs-studio-30.1.1/work/obs-studio-30.1.1/plugins/obs-ffmpeg/ffmpeg-mux/ffmpeg-mux.c:978:33: error: passing argument 6 of ‘avio_alloc_context’ from incompatible pointer type [-Wincompatible-pointer-types[https://gcc.gnu.org/onlinedocs/gcc-14.1.0/gcc/Warning-Options.html#index-Wincompatible-pointer-types]]
  978 |                                 ffmpeg_mux_write_av_buffer,
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 int (*)(void *, uint8_t *, int) {aka int (*)(void *, unsigned char *, int)}
In file included from /usr/include/libavformat/avformat.h:319,
                 from /var/tmp/portage/media-video/obs-studio-30.1.1/work/obs-studio-30.1.1/plugins/obs-ffmpeg/ffmpeg-mux/ffmpeg-mux.c:34:
/usr/include/libavformat/avio.h:404:25: note: expected ‘int (*)(void *, const uint8_t *, int)’ {aka ‘int (*)(void *, const unsigned char *, int)’} but argument is of type ‘int (*)(void *, uint8_t *, int)’ {aka ‘int (*)(void *, unsigned char *, int)’}
  404 |                   int (*write_packet)(void *opaque, const uint8_t *buf, int buf_size),
      |                   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


-----


Portage 3.0.65 (python 3.12.4-final-0, default/linux/amd64/23.0/hardened, gcc-14, glibc-2.39-r9, 6.9.4 x86_64)
=================================================================
System uname: Linux-6.9.4-x86_64-AMD_Ryzen_5_3500U_with_Radeon_Vega_Mobile_Gfx-with-glibc2.39
KiB Mem:    22469348 total,  12595492 free
KiB Swap:   27262968 total,  27262968 free
Timestamp of repository gentoo: Fri, 14 Jun 2024 20:03:59 +0000
Head commit of repository gentoo: bfc9f3a7e4bebcc132fb6fd850ff1a724eef1fa6

Timestamp of repository guru: Fri, 14 Jun 2024 12:36:12 +0000
Head commit of repository guru: f33b6d320b1230412b5b0d7ae1fe5116b2cfc035

Timestamp of repository kde: Fri, 14 Jun 2024 17:49:01 +0000
Head commit of repository kde: 3003cc912b1acfc9876de05558d4339e49530e1b

Timestamp of repository sevz: Wed, 12 Jun 2024 06:56:07 +0000
Head commit of repository sevz: e1defd36c8229253b63b35bb56c7f2d2ae3a91b1

sh dash 0.5.12
ld GNU ld (Gentoo 2.42 p3) 2.42.0
ccache version 4.10 [disabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p26-r3::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.29.3::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.4.1::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.40.0::gentoo
dev-lang/python:           3.12.4_p1::gentoo, 3.13.0_beta2_p1::gentoo
dev-lang/rust-bin:         1.78.0::gentoo
dev-util/ccache:           4.10-r1::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/openrc:           0.54::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           17.0.6::gentoo, 18.1.7::gentoo
sys-devel/gcc:             14.1.1_p20240518::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             17.0.6::gentoo, 18.1.7::gentoo
sys-devel/llvm:            17.0.6::gentoo, 18.1.7::gentoo
sys-kernel/linux-headers:  6.9::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r9::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    sync-user: portage:portage
    priority: -1000
    volatile: False
    sync-git-verify-commit-signature: yes

crossdev
    location: /var/db/repos/crossdev
    masters: gentoo guru
    volatile: True

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    sync-user: portage:portage
    masters: gentoo
    volatile: False

kde
    location: /var/db/repos/kde
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/kde.git
    masters: gentoo
    volatile: False

local
    location: /var/db/repos/local
    masters: gentoo
    volatile: True

sevz
    location: /var/db/repos/sevz
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/sevz.git
    sync-user: portage:portage
    masters: gentoo
    volatile: False

Binary Repositories:

binhost
    priority: 9999
    sync-uri: https://mirror.leaseweb.com/gentoo/releases/amd64/binpackages/17.1/x86-64

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
AR="gcc-ar"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -pipe -flto=auto -Werror=odr -Werror=strict-aliasing -Werror=lto-type-mismatch"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-march=native -O3 -pipe -flto=auto -Werror=odr -Werror=strict-aliasing -Werror=lto-type-mismatch"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--load-average 12 --unordered-display --keep-going --quiet-unmerge-warn"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
F77FLAGS="-march=native -O3 -pipe -flto=auto -Werror=odr -Werror=strict-aliasing -Werror=lto-type-mismatch"
FCFLAGS="-march=native -O3 -pipe -flto=auto -Werror=odr -Werror=strict-aliasing -Werror=lto-type-mismatch"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live clean-logs compress-build-logs config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles ipc-sandbox merge-sync merge-wait metadata-transfer mount-sandbox multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms sign split-elog split-log strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync warn-on-large-env xattr"
FFLAGS="-march=native -O3 -pipe -flto=auto -Werror=odr -Werror=strict-aliasing -Werror=lto-type-mismatch"
GENTOO_MIRRORS="http://tux.rainside.sk/gentoo/     ftp://tux.rainside.sk/gentoo/"
INSTALL_MASK="/usr/lib/systemd* /etc/systemd* /lib/systemd* /usr/lib64/systemd*"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-O2 -fuse-ld=mold -Wl,--threads=8"
LEX="flex"
MAKEOPTS="-j8 -l12"
NM="gcc-nm"
PKGDIR="/var/cache/binpkgs"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9 -e -q"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
RANLIB="gcc-ranlib"
RUSTFLAGS="-C target-cpu=native -C opt-level=3 -C codegen-units=1 -C embed-bitcode=yes -C lto=thin -C linker-plugin-lto -C linker-flavor=gcc -C linker=rust-linker-wrapper"
SHELL="/bin/zsh"
USE="a52 aac acl acpi alsa amd64 avif bluetooth branding bzip2 cairo caps cdda cdr cet cjk clang crypt cups dbus dist-kernel dri dts dvdr egl eglfs elogind encode exif flac gdbm gif git gles2 gmp gpgme gpm gpu-accel gtk gtk3 gtk4 gui hardened heif hwaccel iconv icu idn ipv6 jit jpeg jpeg2k jpegxl keyring kf6compat lcms libnotify libtirpc libv4l lm-sensors lto lua luajit lz4 lzma lzo mad magic man mng modules-compress modules-sign mp3 mp4 mpeg mtp multilib ncurses networkmanager nftables nls ogg opengl openmp orc pam pango pcre pdf pgo pic pie pipewire png policykit ppds pulseaudio qml qt5 qt6 raw readline sasl savedconfig screencast sdl seccomp secureboot sound spell ssl ssp startup-notification svg test-rust threads tiff tpm truetype udev udisks unicode upower usb v4l v4lutils vaapi verify-sig vorbis vulkan wayland webp wifi wxwidgets x264 x265 xattr xcb xml xtpax xvid zip zlib zstd" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput" KERNEL="linux" L10N="es-MX es-419 en" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_SLOT="18" LLVM_TARGETS="AMDGPU" LUA_SINGLE_TARGET="luajit" LUA_TARGETS="lua5-4 luajit" OFFICE_IMPLEMENTATION="libreoffice" PERL_FEATURES="ithreads" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12 python3_13" RUBY_TARGETS="ruby33" SANE_BACKENDS="hp" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, FC, GCOV, GPROF, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Mark 2024-07-08 09:53:03 UTC
Is this still an issue? I made a test update to ffmpeg 7.0.1 and obs-studio 30.1.2 and it built.
Comment 2 Leonardo Hernández Hernández 2024-07-13 05:44:44 UTC
Fixed in https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6319a01b9f628945cb9433de2a20b3c5798b9f87

From 6319a01b9f628945cb9433de2a20b3c5798b9f87 Mon Sep 17 00:00:00 2001
From: Jimi Huotari <chiitoo@gentoo.org>
Date: Sat, 13 Jul 2024 03:01:16 +0300
Subject: media-video/obs-studio: add 30.2.0

Signed-off-by: Jimi Huotari <chiitoo@gentoo.org>
---
 media-video/obs-studio/Manifest                 |   3 +
 media-video/obs-studio/obs-studio-30.2.0.ebuild | 270 ++++++++++++++++++++++++
 2 files changed, 273 insertions(+)