Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Oct 2022 19:22:56 -0400
From:      George Mitchell <george+freebsd@m5p.com>
To:        FreeBSD Hackers <freebsd-hackers@FreeBSD.org>
Subject:   Strange "make buildworld" error
Message-ID:  <d49cd983-2345-3d4a-65f6-4a6f1ecb0572@m5p.com>

next in thread | raw e-mail | index | archive | help
On a FreeBSD 12.3-RELEASE-p6, I have updated /usr/src to 13.1-RELEASE.
Running "make buildworld" resulted in this error while building shared
library libclang_rt.asan-x86_64.so:

ld: error: duplicate symbol: 
__asan::FlushUnneededASanShadowMemory(unsigned long, unsigned long)
 >>> defined at asan_linux.cpp:118 
(/usr/src/contrib/llvm-project/compiler-rt/lib/asan/asan_linux.cpp:118)
 >>> 
asan/asan_linux.pico:(__asan::FlushUnneededASanShadowMemory(unsigned 
long, unsigned long))
 >>> defined at asan_poisoning.cpp:65 
(/usr/src/contrib/llvm-project/compiler-rt/lib/asan/asan_poisoning.cpp:65)
 >>>            asan/asan_poisoning.pico:(.text+0x530)

However, line 65 of asan_poisoning.cpp neither defines nor even
references FlushUnneededASanShadowMemory.  Instead, it defines
AsanPoisonOrUnpoisonIntraObjectRedzone.

A complete typescript is here:
https://www.m5p.com/~george/FlushUnneededASanShadowMemory.xz
I am mystified.                                         -- George



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d49cd983-2345-3d4a-65f6-4a6f1ecb0572>