• Re: Need for manual link to libatomic on powerpc?

    From John Paul Adrian Glaubitz@21:1/5 to Jeffrey Walton on Tue Aug 23 16:00:01 2022
    Hello!

    On 8/23/22 15:34, Jeffrey Walton wrote:
    If not, does anyone know why libatomic might not be added by the
    compiler driver when needed on Debian powerpc?

    Yes, it's a long-standing GCC bug [1].

    Adrian

    [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81358

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer
    `. `' Physicist
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mathieu Malaterre@21:1/5 to [email protected] on Tue Aug 23 15:50:01 2022
    On Tue, Aug 23, 2022 at 3:34 PM Jeffrey Walton <[email protected]> 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 :(

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jeffrey Walton@21:1/5 to All on Tue Aug 23 15:40:01 2022
    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?

    Thanks in advance.

    [1] https://github.com/weidai11/cryptopp/issues/1134
    [2] https://github.com/weidai11/cryptopp/issues/1141
    [3] https://github.com/weidai11/cryptopp/issues/1141#issuecomment-1224051475 [4] https://buildd.debian.org/status/package.php?p=libcrypto%2B%2B&suite=sid

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Paul Wise@21:1/5 to Mathieu Malaterre on Wed Aug 24 02:20:01 2022
    On Tue, 2022-08-23 at 15:46 +0200, Mathieu Malaterre wrote:

    gcc will not automatically add -latomic for you

    This has been an issue on RISC-V too.

    end of story :(

    IIRC there are patches fixing this but they didn't manage to get
    upstreamed yet. I expect they could get in if there were someone
    willing to put in the effort of upstreaming.

    --
    bye,
    pabs

    https://wiki.debian.org/PaulWise

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEYQsotVz8/kXqG1Y7MRa6Xp/6aaMFAmMFbTUACgkQMRa6Xp/6 aaMf+g//eF4+WTXF1B26HOtlsSlVsOCH48U0O00x87hh3pa3KjcDUdl2e3Ji4hVS yD7hSakKf+NjJjwNG0ZmFsWBDYjRSZdqH+gQpgCtJjoSotIdEMBgb/XLaovJSr6E H0gerMnW3l7eYUZP848Q3M9iOMDNvzrT8lFH0l1rftlzo8yz1Om4czKWTTp67mC+ vvcinWtRdKqhEAODM8MEZN1m1iC6SF68Ro6s72pKLgmY6hJsEubsJMN8HCv0XEDI DlQ34soIiF/W4TRCid37dJ2J39x8AEZSjoS3kP6ZXr6G0QaQ5z9xXY+oHT419fOJ a1J5Pq9aHz5DkduSZR1UR4iZKKBguV/3HSb5s5BDHpfuN57k4JWw8tpjA2v03YwS eqXUskSliVd52M38tVphuYALnoCTm2B66NTI25vnplVXr9HPSyxv+LO980fr9X5D LrmLSNVyaQJxi6d6qIMri3TQjAygoelmBFClW5rmpw7EMg+wjP5WY/ugMuqRVSmR 7JTdRBOlavxC6Kp2pTJklLdeZqObVep655sxRTBn/6fWM9jvWxa/KyWSXUreeyGF ohcY8icnrWzT7/kdG3ppmbGFhq/yIijJuvxzqANPA1KbNACipMS014GHYZiiopyP WEviQdiqeR+ptm6GC27q4LlZCTd32sz3vBlLB81u6xgko0DMrMI=
    =ZQKQ
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)