On Wed, Sep 24, 2025 at 04:04:08PM +0400, [email protected] wrote: > From: Marc-André Lureau <[email protected]> > > It fails to link on fedora >= 41: > /usr/bin/ld: > /usr/bin/../lib/clang/20/lib/x86_64-redhat-linux-gnu/libclang_rt.safestack.a(safestack.cpp.o): > in function `__sanitizer_internal_memcpy': > (.text.__sanitizer_internal_memcpy+0x0): multiple definition of > `__sanitizer_internal_memcpy'; > /usr/bin/../lib/clang/20/lib/x86_64-redhat-linux-gnu/libclang_rt.ubsan_standalone.a(sanitizer_libc.cpp.o):(.text.__sanitizer_internal_memcpy+0x0): > first defined here > /usr/bin/ld: > /usr/bin/../lib/clang/20/lib/x86_64-redhat-linux-gnu/libclang_rt.safestack.a(safestack.cpp.o): > in function `__sanitizer_internal_memmove': > (.text.__sanitizer_internal_memmove+0x0): multiple definition of > `__sanitizer_internal_memmove'; > /usr/bin/../lib/clang/20/lib/x86_64-redhat-linux-gnu/libclang_rt.ubsan_standalone.a(sanitizer_libc.cpp.o):(.text.__sanitizer_internal_memmove+0x0): > first defined here > /usr/bin/ld: > /usr/bin/../lib/clang/20/lib/x86_64-redhat-linux-gnu/libclang_rt.safestack.a(safestack.cpp.o): > in function `__sanitizer_internal_memset': > (.text.__sanitizer_internal_memset+0x0): multiple definition of > `__sanitizer_internal_memset'; > /usr/bin/../lib/clang/20/lib/x86_64-redhat-linux-gnu/libclang_rt.ubsan_standalone.a(sanitizer_libc.cpp.o):(.text.__sanitizer_internal_memset+0x0): > first defined here > > cfi_debug seems to pull ubsan which has conflicting symbols with safe_stack. > > See also: https://bugzilla.redhat.com/show_bug.cgi?id=2397265 > > Signed-off-by: Marc-André Lureau <[email protected]> > --- > meson.build | 3 +++ > .gitlab-ci.d/buildtest.yml | 6 +++--- > 2 files changed, 6 insertions(+), 3 deletions(-)
Reviewed-by: Daniel P. Berrangé <[email protected]> With regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
