Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Nov 2020 20:53:39 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 251112] Compiling C++ with asan fails by default because libclang_rt.asan-x86_64.so uses symbol pthread_attr_get_np but doesn't link to libpthread.so
Message-ID:  <bug-251112-227-p3QS1pJWVx@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-251112-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-251112-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D251112

--- Comment #2 from Andrew Stitcher <astitcher@apache.org> ---
(In reply to Konstantin Belousov from comment #1)

I'd say neither.

To me it looks like a build error in the clang++ asan support shared librar=
y:
If libclang_rt.asan-x86_64.so uses the symbol pthread_attr_get_np then it
should be linked against the shared library that provides that symbol.

But if this is not possible for some reason then changing the driver to link
against libpthreads when using the shared library version of asan seems bet=
ter
to me.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-251112-227-p3QS1pJWVx>