https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98003

--- Comment #1 from John David Anglin <danglin at gcc dot gnu.org> ---
spawn /test/gnu/gcc/objdir/./gcc/xg++ -shared-libgcc
-B/test/gnu/gcc/objdir/./gc
c -nostdinc++ -L/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/src
-L/tes
t/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/src/.libs
-L/test/gnu/gcc/objd
ir/hppa64-hp-hpux11.11/libstdc++-v3/libsupc++/.libs
-B/opt/gnu64/gcc/gcc-11/hppa
64-hp-hpux11.11/bin/ -B/opt/gnu64/gcc/gcc-11/hppa64-hp-hpux11.11/lib/ -isystem
/
opt/gnu64/gcc/gcc-11/hppa64-hp-hpux11.11/include -isystem
/opt/gnu64/gcc/gcc-11/
hppa64-hp-hpux11.11/sys-include -fchecking=1
-B/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/./libstdc++-v3/src/.libs
-fmessage-length=0 -fno-show-column -ffunction-sections -fdata-sections -g -O2
-DLOCALEDIR="." -nostdinc++
-I/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/hppa64-hp-hpux11.11
-I/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include
-I/test/gnu/gcc/gcc/libstdc++-v3/libsupc++
-I/test/gnu/gcc/gcc/libstdc++-v3/include/backward
-I/test/gnu/gcc/gcc/libstdc++-v3/testsuite/util
/test/gnu/gcc/gcc/libstdc++-v3/testsuite/27_io/basic_syncbuf/sync_ops/1.cc
-std=gnu++2a -pthread -fdiagnostics-plain-output ./libtestc++.a
-L/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/src/filesystem/.libs
-lm -o ./1.exe
ld: Unsatisfied symbol "__atomic_fetch_add_4" in file /var/tmp//ccnLRNCV.o
1 errors.
collect2: error: ld returned 1 exit status

It seems we need to link against libatomic.

Reply via email to