[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Need for manual link to libatomic on powerpc?



On Tue, Aug 23, 2022 at 3:34 PM Jeffrey Walton <noloader@gmail.com> wrote:
>
> Hi Everyone,
>
> I'm trying to track down a Crypto++ 8/GCC 12 bug at [1,2]. Our Debian
> maintainer, who is helping with testing, mentioned we were missing
> libatomic during link when using santiziers on powerpc and hppa.[3,4]
> That kind of caught me off-guard.
>
> On Fedora (but not Debian in the past), we needed to install gcc, g++,
> libasan, libubsan and friends. Libraries for Asan and Ubsan are
> separate installs on Fedora (but not Debian). However, once installed,
> the compiler driver added the necessary libs (like libubsan and
> libatomic) when it encountered an option like -fsanitize=undefined.
>
> My question is, are libasan, libubsan and friends a separate install
> for Debian on powerpc and hppa?
>
> If not, does anyone know why libatomic might not be added by the
> compiler driver when needed on Debian powerpc?

Last time I asked, I was reminded the status:

* https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104248#c4

Long story short, gcc will not automatically add -latomic for you ..
end of story :(


Reply to: