Created attachment 873696 [details] build.log Unable to compile net-misc/freerdp on llvm profile [441/455] /usr/lib/llvm/17/bin/clang -DFREERDP_EXPORTS -DHAVE_CONFIG_H -DWINPR_EXPORTS -DWITH_OPENSSL -D_FILE_OFFSET_BITS=64 -I/var/tmp/portage/net-misc/freerdp-2.11.1/work/freerdp-2.11.1_build -I/var/tmp/portage/net-misc/freerdp-2.11.1/work/freerdp-2.11.1_build/include -I/var/tmp/portage/net-misc/freerdp-2.11.1/work/freerdp-2.11.1/include -I/var/tmp/portage/net-misc/freerdp-2.11.1/work/freerdp-2.11.1/winpr/include -I/var/tmp/portage/net-misc/freerdp-2.11.1/work/freerdp-2.11.1_build/winpr/include -I/var/tmp/portage/net-misc/freerdp-2.11.1/work/freerdp-2.11.1/rdtk/include -I/var/tmp/portage/net-misc/freerdp-2.11.1/work/freerdp-2.11.1_build/rdtk/include -I/var/tmp/portage/net-misc/freerdp-2.11.1/work/freerdp-2.11.1/uwac/include -O2 -march=native -Wno-unused-parameter -Wno-unused-macros -Wno-padded -Wno-c11-extensions -Wno-gnu -Wno-unused-command-line-argument -Wno-deprecated-declarations -fno-omit-frame-pointer -DWINPR_DLL -fPIE -MD -MT client/Wayland/CMakeFiles/wlfreerdp.dir/wlfreerdp.c.o -MF client/Wayland/CMakeFiles/wlfreerdp.dir/wlfreerdp.c.o.d -o client/Wayland/CMakeFiles/wlfreerdp.dir/wlfreerdp.c.o -c /var/tmp/portage/net-misc/freerdp-2.11.1/work/freerdp-2.11.1/client/Wayland/wlfreerdp.c FAILED: client/Wayland/CMakeFiles/wlfreerdp.dir/wlfreerdp.c.o /usr/lib/llvm/17/bin/clang -DFREERDP_EXPORTS -DHAVE_CONFIG_H -DWINPR_EXPORTS -DWITH_OPENSSL -D_FILE_OFFSET_BITS=64 -I/var/tmp/portage/net-misc/freerdp-2.11.1/work/freerdp-2.11.1_build -I/var/tmp/portage/net-misc/freerdp-2.11.1/work/freerdp-2.11.1_build/include -I/var/tmp/portage/net-misc/freerdp-2.11.1/work/freerdp-2.11.1/include -I/var/tmp/portage/net-misc/freerdp-2.11.1/work/freerdp-2.11.1/winpr/include -I/var/tmp/portage/net-misc/freerdp-2.11.1/work/freerdp-2.11.1_build/winpr/include -I/var/tmp/portage/net-misc/freerdp-2.11.1/work/freerdp-2.11.1/rdtk/include -I/var/tmp/portage/net-misc/freerdp-2.11.1/work/freerdp-2.11.1_build/rdtk/include -I/var/tmp/portage/net-misc/freerdp-2.11.1/work/freerdp-2.11.1/uwac/include -O2 -march=native -Wno-unused-parameter -Wno-unused-macros -Wno-padded -Wno-c11-extensions -Wno-gnu -Wno-unused-command-line-argument -Wno-deprecated-declarations -fno-omit-frame-pointer -DWINPR_DLL -fPIE -MD -MT client/Wayland/CMakeFiles/wlfreerdp.dir/wlfreerdp.c.o -MF client/Wayland/CMakeFiles/wlfreerdp.dir/wlfreerdp.c.o.d -o client/Wayland/CMakeFiles/wlfreerdp.dir/wlfreerdp.c.o -c /var/tmp/portage/net-misc/freerdp-2.11.1/work/freerdp-2.11.1/client/Wayland/wlfreerdp.c /var/tmp/portage/net-misc/freerdp-2.11.1/work/freerdp-2.11.1/client/Wayland/wlfreerdp.c:637:19: error: incompatible function pointer types assigning to 'OBJECT_NEW_FN' (aka 'void *(*)(void *)') from 'void *(const void *)' [-Wincompatible-function-pointer-types] 637 | obj->fnObjectNew = uwac_event_clone; | ^ ~~~~~~~~~~~~~~~~ 1 error generated.
Created attachment 873697 [details] emerge --info
Created attachment 875867 [details] emerge --info Can confirm this bug on my machine with desktop/plasma profile, with clang manually set as default in make.conf
Created attachment 875871 [details, diff] possible patch patch could be quite trivial -- just add explicit cast
Please report the issue upstream.
(In reply to Mike Gilbert from comment #4) > Please report the issue upstream. I know I have to, but a) I'm noob; b) I managed to build in-repo version with patch, but can't build git version. It requires SDL2 libs, which are missing on my machine, and I neither know how to fix it nor have time to dig in. I going to do this one of these days (but would be deeply grateful if someone do this).
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd1faced71b23f460c067320c785b0133570ca76 commit dd1faced71b23f460c067320c785b0133570ca76 Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2023-12-06 18:58:49 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2023-12-06 18:58:49 +0000 net-misc/freerdp: fix build with clang Closes: https://bugs.gentoo.org/916515 Signed-off-by: Mike Gilbert <floppym@gentoo.org> net-misc/freerdp/files/freerdp-2.11.2-clang.patch | 29 +++++++++++++++++++++++ net-misc/freerdp/freerdp-2.11.1.ebuild | 4 ++++ net-misc/freerdp/freerdp-2.11.2.ebuild | 4 ++++ 3 files changed, 37 insertions(+)