Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926261 - media-video/vlc-3.0.20-r3: fails with gcc 14 (stream_out/chromaprint.c: error: ... -Wincompatible-pointer-types)
Summary: media-video/vlc-3.0.20-r3: fails with gcc 14 (stream_out/chromaprint.c: error...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2024-03-06 12:11 UTC by tdr
Modified: 2024-03-17 04:02 UTC (History)
1 user (show)

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


Attachments
build log (vlc-3.0.20-r3:20240306-120138.log,566.29 KB, text/plain)
2024-03-06 12:11 UTC, tdr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tdr 2024-03-06 12:11:19 UTC
media-video/vlc-3.0.20-r3: fails with gcc 14 (stream_out/chromaprint.c: error: ... -Wincompatible-pointer-types)



Reproducible: Always

Steps to Reproduce:
[ebuild   R    ] media-video/vlc-3.0.20-r3:0/5-9::gentoo  USE="X a52 alsa archive bidi bluray cddb chromaprint chromecast dav1d dbus dc1394 dts dvbpsi dvd encode faad fdk ffmpeg flac fluidsynth fontconfig gcrypt gme gstreamer gui ieee1394 jpeg kate keyring libass libcaca libnotify libsamplerate libtar lirc live mad matroska mp3 mpeg mtp ncurses ogg optimisememory opus png pulseaudio shout skins soxr speex ssl svg taglib theora tremor truetype twolame udev v4l wayland x264 x265 xml zvbi -aom -aribsub -debug (-directx) -jack -libtiger -linsys -lua -macosx-notifications -modplug -musepack -nfs -omxil -projectm -rdp -run-as-root -samba -sdl-image -sftp -sid -srt -test -upnp -vaapi -vdpau -vnc -vpx -zeroconf" CPU_FLAGS_X86="mmx sse" LUA_SINGLE_TARGET="lua5-1" 0 KiB


Actual Results:  
stream_out/chromaprint.c: In function â<80><98>Sendâ<80><99>:
stream_out/chromaprint.c:234:41: error: passing argument 2 of â<80>-Wincompatible-pointer-types^[[m^[[K][]]
  234 |                                    p_buf->p_buffer,


does build successfully with "-fpermissive"


# emerge --info
Portage 3.0.63 (python 3.11.8-final-0, default/linux/amd64/17.1, gcc-14, glibc-2.39-r2, 6.7.8-gentoo-test x86_64)
=================================================================
System uname: Linux-6.7.8-gentoo-test-x86_64-Intel-R-_Xeon-R-_w7-3465X-with-glibc2.39
KiB Mem:   263417076 total, 223823864 free
KiB Swap:   10485756 total,  10485756 free
Timestamp of repository gentoo: Mon, 04 Mar 2024 01:30:00 +0000
Head commit of repository gentoo: 22fe17089f20027554c2fe530a9d71f193ea2e42
sh bash 5.2_p26
ld GNU ld (Gentoo 2.42 p3) 2.42.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p26::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.28.3::gentoo
dev-build/libtool:         2.4.7-r2::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.2::gentoo
dev-lang/perl:             5.38.2-r2::gentoo
dev-lang/python:           3.11.8_p1::gentoo, 3.12.2_p1::gentoo
dev-lang/rust-bin:         1.75.0::gentoo
sys-apps/baselayout:       2.14-r2::gentoo
sys-apps/openrc:           0.53::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 17.0.6::gentoo
sys-devel/gcc:             13.2.1_p20240210::gentoo, 14.0.1_pre20240303::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             17.0.6::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 17.0.6::gentoo
sys-kernel/linux-headers:  6.7::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r2::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 3
    sync-rsync-verify-jobs: 1

local
    location: /usr/local/portage
    masters: gentoo
    volatile: True

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -fno-vect-cost-model -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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 /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O3 -fno-vect-cost-model -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
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"
FCFLAGS="-march=native -O3 -fno-vect-cost-model -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O3 -fno-vect-cost-model -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j56"
PKGDIR="/var/cache/binpkgs"
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"
SHELL="/bin/bash"
USE="X a52 aac acl acpi activities alsa amd64 bluetooth branding brotli bzip2 cairo caps cdda cdr cet cli colord crypt cups dbus declarative dri dts dvd dvdr eds elogind encode evo exif flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gnome-shell gpm gstreamer gtk gui iconv icu introspection ipv6 jpeg kde keyring kwallet lcms libnotify libtirpc lzma mad mng mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls ogg opengl openmp pam pango pcre pdf pic pie pipewire plasma png policykit ppds pulseaudio python qml qt5 readline screencast sdl seccomp semantic-desktop sound spell split-usr ssl startup-notification svg sysprof test-rust threads tiff tracker truetype udev udisks unicode upower usb vorbis vulkan wayland widgets wxwidgets x264 xattr xcb xft xml xv xvid zlib zstd" ABI_X86="64" CPU_FLAGS_X86="aes avx avx2 avx512f avx512dq avx512cd avx512bw avx512vl avx512vbmi f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en" LLVM_TARGETS="X86 AArch64" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" QEMU_SOFTMMU_TARGETS="aarch64 arm i386 hppa ppc ppc64 x86_64" QEMU_USER_TARGETS="aarch64 arm i386 hppa ppc ppc64 x86_64" RUBY_TARGETS="ruby33" VIDEO_CARDS="intel"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 tdr 2024-03-06 12:11:46 UTC
Created attachment 886803 [details]
build log
Comment 3 Larry the Git Cow gentoo-dev 2024-03-17 04:02:53 UTC
The bug has been closed via the following commit(s):

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

commit b359a8fd43d7d49eafb2533e61417a1241719134
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-03-17 03:59:17 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-17 03:59:17 +0000

    media-video/vlc: fix another modern C issue
    
    Closes: https://bugs.gentoo.org/926261
    Signed-off-by: Sam James <sam@gentoo.org>

 media-video/vlc/files/vlc-3.0.20-c99-2.patch |  23 ++
 media-video/vlc/vlc-3.0.20-r4.ebuild         | 519 +++++++++++++++++++++++++++
 2 files changed, 542 insertions(+)