From nobody Wed Nov 13 13:26:25 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XpPFF6Mwnz5dcgN for ; Wed, 13 Nov 2024 13:26:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XpPFF40vJz4j3k for ; Wed, 13 Nov 2024 13:26:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731504385; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=PwIf20TVfQI62xONiQZJYJoOdi4Pb3lu8DjYX3oO3lU=; b=iwm4sqkaWDaFQniAvleu/aBrajd6OqY1rDqQ8OqukslkVF6GtbCC76D/HDW00i1afO18rN P5l+BZKDye3tdPp1E0j5IQ8JKf3QYPK4LtlTxOXpaa9Xj2BdT+VWfB9U+ZvMgNFDnKO9pq XU70kQ0M1gLbxOOrTD/yFNI30948FepBUq/oqwebp1cL6QhO6cSfykYE/LfVU+lhQWffhT cL5Os13GyJEKWo3cpNpHaO2V1x/3ATH4OcUhI9lWILmh3LAj5PskGqFdEToTxRr79UJoaC XumcmrNmYCEXIXx/boN31MNZyCDa03d44f1rkK5iNYZIjz9z86Yswb8e693Z3A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731504385; a=rsa-sha256; cv=none; b=ecEyJQDFeScL/iQKaAc9E1kR3k7Z52BkUKWGHv+R7qM+R/bKsqipCuyQMXdPJylNKv+Odc RnbS2ZhFDkshwU9sHoJTfJ8HODkWOFLe9ZZe/rEv89bnvGS9muj+dDNZfSyXyfGjFC8kW7 X/74Yz+EYDisPpauIh20rqY33LgL8QxQq24HcY4WKyx5O3fGVHJ+zWCXchXygR6J+dihZR fmO/gFo4ZbFkLL7UW3bfdpfa8Yyjka8fKQ4s82Hk96MQuM6rj430eJlPCc09teOF9v9zES uSRDkFPF8n4L+ghmdS/hVYSFkPv4PgQFtpC7lTOM44jc1v3+hf1I9ILX47a6BQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XpPFF374nzwWs for ; Wed, 13 Nov 2024 13:26:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4ADDQP9Q093261 for ; Wed, 13 Nov 2024 13:26:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4ADDQPHR093260 for bugs@FreeBSD.org; Wed, 13 Nov 2024 13:26:25 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 282728] tsan linking failure: duplicated symbols Date: Wed, 13 Nov 2024 13:26:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: bapt@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282728 Bug ID: 282728 Summary: tsan linking failure: duplicated symbols Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: bapt@FreeBSD.org When linking on freebsd with tsan: (https://github.com/freebsd/pkg/pull/234= 3) ld: error: duplicate symbol: _pthread_mutex_init >>> defined at tsan_interceptors_posix.cpp >>> tsan_interceptors_posix.o:(_pthread_mutex_init) in archive /= usr/lib/clang/19/lib/freebsd/libclang_rt.tsan-x86_64.a >>> defined at thr_mutex.c:380 (/home/pkgbuild/worktrees/main/lib/libthr/th= read/thr_mutex.c:380) >>> thr_mutex.o:(__Tthr_mutex_init) in archive /usr/lib/libpthre= ad.a ld: error: duplicate symbol: _pthread_mutex_lock >>> defined at tsan_interceptors_posix.cpp >>> tsan_interceptors_posix.o:(_pthread_mutex_lock) in archive /= usr/lib/clang/19/lib/freebsd/libclang_rt.tsan-x86_64.a >>> defined at thr_mutex.c:745 (/home/pkgbuild/worktrees/main/lib/libthr/th= read/thr_mutex.c:745) >>> thr_mutex.o:(__Tthr_mutex_lock) in archive /usr/lib/libpthre= ad.a ld: error: duplicate symbol: _pthread_mutex_trylock >>> defined at tsan_interceptors_posix.cpp >>> tsan_interceptors_posix.o:(_pthread_mutex_trylock) in archiv= e /usr/lib/clang/19/lib/freebsd/libclang_rt.tsan-x86_64.a >>> defined at thr_mutex.c:616 (/home/pkgbuild/worktrees/main/lib/libthr/th= read/thr_mutex.c:616) >>> thr_mutex.o:(__Tthr_mutex_trylock) in archive /usr/lib/libpt= hread.a ld: error: duplicate symbol: arc4random_buf >>> defined at tsan_interceptors_posix.cpp >>> tsan_interceptors_posix.o:(arc4random_buf) in archive /usr/l= ib/clang/19/lib/freebsd/libclang_rt.tsan-x86_64.a >>> defined at arc4random.c:248 (/home/pkgbuild/worktrees/main/lib/libc/gen= /arc4random.c:248) >>> arc4random.o:(.text+0xC0) in archive /usr/lib/libc.a ld: error: duplicate symbol: opendir >>> defined at tsan_interceptors_posix.cpp >>> tsan_interceptors_posix.o:(opendir) in archive /usr/lib/clan= g/19/lib/freebsd/libclang_rt.tsan-x86_64.a >>> defined at opendir.c:53 (/home/pkgbuild/worktrees/main/lib/libc/gen/ope= ndir.c:53) >>> opendir.o:(.text+0x0) in archive /usr/lib/libc.a ld: error: duplicate symbol: posix_spawn >>> defined at tsan_interceptors_posix.cpp >>> tsan_interceptors_posix.o:(posix_spawn) in archive /usr/lib/= clang/19/lib/freebsd/libclang_rt.tsan-x86_64.a >>> defined at posix_spawn.c:377 (/home/pkgbuild/worktrees/main/lib/libc/ge= n/posix_spawn.c:377) >>> posix_spawn.o:(.text+0x0) in archive /usr/lib/libc.a ld: error: duplicate symbol: posix_spawnp >>> defined at tsan_interceptors_posix.cpp >>> tsan_interceptors_posix.o:(posix_spawnp) in archive /usr/lib= /clang/19/lib/freebsd/libclang_rt.tsan-x86_64.a >>> defined at posix_spawn.c:386 (/home/pkgbuild/worktrees/main/lib/libc/ge= n/posix_spawn.c:386) >>> posix_spawn.o:(.text+0x180) in archive /usr/lib/libc.a ld: error: duplicate symbol: scandir >>> defined at tsan_interceptors_posix.cpp >>> tsan_interceptors_posix.o:(scandir) in archive /usr/lib/clan= g/19/lib/freebsd/libclang_rt.tsan-x86_64.a >>> defined at scandir.c:144 (/home/pkgbuild/worktrees/main/lib/libc/gen/sc= andir.c:144) >>> scandir.o:(.text+0x0) in archive /usr/lib/libc.a ld: error: duplicate symbol: sigemptyset >>> defined at tsan_interceptors_posix.cpp >>> tsan_interceptors_posix.o:(sigemptyset) in archive /usr/lib/= clang/19/lib/freebsd/libclang_rt.tsan-x86_64.a >>> defined at sigsetops.c:61 (/home/pkgbuild/worktrees/main/lib/libc/gen/s= igsetops.c:61) >>> sigsetops.o:(.text+0x80) in archive /usr/lib/libc.a ld: error: duplicate symbol: sigfillset >>> defined at tsan_interceptors_posix.cpp >>> tsan_interceptors_posix.o:(sigfillset) in archive /usr/lib/c= lang/19/lib/freebsd/libclang_rt.tsan-x86_64.a >>> defined at sigsetops.c:71 (/home/pkgbuild/worktrees/main/lib/libc/gen/s= igsetops.c:71) >>> sigsetops.o:(.text+0x90) in archive /usr/lib/libc.a ld: error: duplicate symbol: _setjmp >>> defined at tsan_rtl_amd64.S:72 (/home/pkgbuild/worktrees/main/contrib/l= lvm-project/compiler-rt/lib/tsan/rtl/tsan_rtl_amd64.S:72) >>> tsan_rtl_amd64.o:(_setjmp) in archive /usr/lib/clang/19/lib/= freebsd/libclang_rt.tsan-x86_64.a >>> defined at _setjmp.S:45 (/home/pkgbuild/worktrees/main/lib/libc/amd64/g= en/_setjmp.S:45) >>> _setjmp.o:(.text+0x0) in archive /usr/lib/libc.a ld: error: duplicate symbol: setlocale >>> defined at tsan_interceptors_posix.cpp >>> tsan_interceptors_posix.o:(setlocale) in archive /usr/lib/cl= ang/19/lib/freebsd/libclang_rt.tsan-x86_64.a >>> defined at setlocale.c:98 (/home/pkgbuild/worktrees/main/lib/libc/local= e/setlocale.c:98) >>> setlocale.o:(.text+0x0) in archive /usr/lib/libc.a ld: error: duplicate symbol: wcsnrtombs >>> defined at tsan_interceptors_posix.cpp >>> tsan_interceptors_posix.o:(wcsnrtombs) in archive /usr/lib/c= lang/19/lib/freebsd/libclang_rt.tsan-x86_64.a >>> defined at wcsnrtombs.c:54 (/home/pkgbuild/worktrees/main/lib/libc/loca= le/wcsnrtombs.c:54) >>> wcsnrtombs.o:(.text+0x40) in archive /usr/lib/libc.a ld: error: duplicate symbol: getaddrinfo >>> defined at tsan_interceptors_posix.cpp >>> tsan_interceptors_posix.o:(getaddrinfo) in archive /usr/lib/= clang/19/lib/freebsd/libclang_rt.tsan-x86_64.a >>> defined at getaddrinfo.c:391 (/home/pkgbuild/worktrees/main/lib/libc/ne= t/getaddrinfo.c:391) >>> getaddrinfo.o:(.text+0x40) in archive /usr/lib/libc.a ld: error: duplicate symbol: getifaddrs >>> defined at tsan_interceptors_posix.cpp >>> tsan_interceptors_posix.o:(getifaddrs) in archive /usr/lib/c= lang/19/lib/freebsd/libclang_rt.tsan-x86_64.a >>> defined at getifaddrs.c:78 (/home/pkgbuild/worktrees/main/lib/libc/net/= getifaddrs.c:78) >>> getifaddrs.o:(.text+0x0) in archive /usr/lib/libc.a ld: error: duplicate symbol: getprotoent >>> defined at tsan_interceptors_posix.cpp >>> tsan_interceptors_posix.o:(getprotoent) in archive /usr/lib/= clang/19/lib/freebsd/libclang_rt.tsan-x86_64.a >>> defined at getprotoent.c:540 (/home/pkgbuild/worktrees/main/lib/libc/ne= t/getprotoent.c:540) >>> getprotoent.o:(.text+0xDC0) in archive /usr/lib/libc.a ld: error: duplicate symbol: fflush >>> defined at tsan_interceptors_posix.cpp >>> tsan_interceptors_posix.o:(fflush) in archive /usr/lib/clang= /19/lib/freebsd/libclang_rt.tsan-x86_64.a >>> defined at fflush.c:50 (/home/pkgbuild/worktrees/main/lib/libc/stdio/ff= lush.c:50) >>> fflush.o:(.text+0x0) in archive /usr/lib/libc.a ld: error: duplicate symbol: vfprintf >>> defined at tsan_interceptors_posix.cpp >>> tsan_interceptors_posix.o:(vfprintf) in archive /usr/lib/cla= ng/19/lib/freebsd/libclang_rt.tsan-x86_64.a >>> defined at vfprintf.c:287 (/home/pkgbuild/worktrees/main/lib/libc/stdio= /vfprintf.c:287) >>> vfprintf.o:(.text+0x35D0) in archive /usr/lib/libc.a ld: error: duplicate symbol: localtime >>> defined at tsan_interceptors_posix.cpp >>> tsan_interceptors_posix.o:(localtime) in archive /usr/lib/cl= ang/19/lib/freebsd/libclang_rt.tsan-x86_64.a >>> defined at localtime.c:1681 (/home/pkgbuild/worktrees/main/contrib/tzco= de/localtime.c:1681) >>> localtime.o:(.text+0x300) in archive /usr/lib/libc.a ld: error: duplicate symbol: localtime_r >>> defined at tsan_interceptors_posix.cpp >>> tsan_interceptors_posix.o:(localtime_r) in archive /usr/lib/= clang/19/lib/freebsd/libclang_rt.tsan-x86_64.a >>> defined at localtime.c:1708 (/home/pkgbuild/worktrees/main/contrib/tzco= de/localtime.c:1708) >>> localtime.o:(.text+0x460) in archive /usr/lib/libc.a ld: error: too many errors emitted, stopping now (use --error-limit=3D0 to = see all errors) cc: error: linker command failed with exit code 1 (use -v to see invocation) *** [pkg-static] Error code 1 --=20 You are receiving this mail because: You are the assignee for the bug.=