https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: net-misc/gnome-remote-desktop-43.2 fails to compile (CLANG-STRICTER-SYSTEM). Discovered on: amd64 (internal ref: clang-stricter_tinderbox) NOTE: (CLANG-STRICTER-SYSTEM) in the summary means that the bug was found on a machine that runs clang with stricter mode This machine uses clang with CFLAGS/CXXFLAGS=-Werror=implicit-function-declaration -Werror=implicit-int -Werror=incompatible-function-pointer-types See also: https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240 https://wiki.gentoo.org/wiki/Modern_C_porting
Created attachment 842603 [details] build.log build log and emerge --info
Error(s) that match a know pattern in addition to what has been reported in the summary: FAILED: src/gnome-remote-desktop-daemon.p/grd-rdp-audio-playback.c.o Run-time dependency systemd found: NO (tried pkgconfig and cmake) ../gnome-remote-desktop-43.2/src/grd-rdp-audio-playback.c:517:3: error: initializer element is not a compile-time constant
Same with 44.0
Nothing has changed between 44.2 and 45.1 in that file around these lines, but it works fine for me with clang. If it's still an issue, how can I reproduce? If not, how did it get fixed - newer clang or something? My compile command for that file: [87/119] clang -Isrc/gnome-remote-desktop-daemon.p -Isrc -I../gnome-remote-desktop-45.1/src -I. -I../gnome-remote-desktop-45.1 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/lib64/libffi/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -I/usr/include/pipewire-0.3 -I/usr/include/spa-0.2 -I/usr/include/libei-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libdrm -I/usr/include/libsecret-1 -I/usr/include/tss2 -I/usr/include/freerdp2/ -I/usr/include/winpr2 -I/usr/include/fuse3 -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -D_GNU_SOURCE -mcpu=apple-m2 -O3 -pipe -mbranch-protection=standard -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdebug-default-version=4 -gdwarf-4 -frecord-gcc-switches -flto=thin -pthread -D_REENTRANT -MD -MQ src/gnome-remote-desktop-daemon.p/grd-rdp-audio-playback.c.o -MF src/gnome-remote-desktop-daemon.p/grd-rdp-audio-playback.c.o.d -o src/gnome-remote-desktop-daemon.p/grd-rdp-audio-playback.c.o -c ../gnome-remote-desktop-45.1/src/grd-rdp-audio-playback.c # clang --version clang version 17.0.6 Target: aarch64-unknown-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/17/bin Configuration file: /etc/clang/aarch64-unknown-linux-gnu-clang.cfg