On Thu, Apr 22, 2021 at 6:56 PM Jonathan Wakely via Gcc-patches
<gcc-patches@gcc.gnu.org> wrote:
>
> This fixes a linker error on AIX:
>
> FAIL: 30_threads/semaphore/try_acquire_posix.cc (test for excess errors)
> Excess errors:
> ld: 0711-317 ERROR: Undefined symbol: .__atomic_fetch_add_8
> ld: 0711-317 ERROR: Undefined symbol: .__atomic_load_8
> ld: 0711-317 ERROR: Undefined symbol: .__atomic_fetch_sub_8
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
> collect2: error: ld returned 8 exit status
>
> libstdc++-v3/ChangeLog:
>
>         * testsuite/30_threads/semaphore/try_acquire_posix.cc: Add
>         options for libatomic.
>
> Tested powerpc64le-linux and powerpc-aix. Committed to trunk.
>
> I'd like to backport this to gcc-11 too.

Fine with me.

Reply via email to