Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 885875 - net-misc/gnome-remote-desktop-43.2 fails to compile (CLANG-STRICTER-SYSTEM): grd-rdp-audio-playback.c:517:3: error: initializer element is not a compile-time constant
Summary: net-misc/gnome-remote-desktop-43.2 fails to compile (CLANG-STRICTER-SYSTEM): ...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-14 11:16 UTC by Agostino Sarubbo
Modified: 2024-01-03 22:01 UTC (History)
0 users

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


Attachments
build.log (build.log,139.08 KB, text/plain)
2022-12-14 11:16 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-12-14 11:16:31 UTC
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
Comment 1 Agostino Sarubbo gentoo-dev 2022-12-14 11:16:33 UTC
Created attachment 842603 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-12-14 11:16:34 UTC
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
Comment 3 listout 2023-03-27 16:10:19 UTC
Same with 44.0
Comment 4 Mart Raudsepp gentoo-dev 2024-01-03 22:01:09 UTC
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