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

--- Comment #19 from John David Anglin <danglin at gcc dot gnu.org> ---
On hppa64-hp-hpux11.11, the tests currently fail on gcc-8 trunk with a link
error:

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-8/hppa6
4-hp-hpux11.11/bin/ -B/opt/gnu64/gcc/gcc-8/hppa64-hp-hpux11.11/lib/ -isystem
/op
t/gnu64/gcc/gcc-8/hppa64-hp-hpux11.11/include -isystem
/opt/gnu64/gcc/gcc-8/hppa
64-hp-hpux11.11/sys-include
-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/20_util/shared_ptr/thread/default_weaktoshared.cc
-pthread -fno-diagnostics-show-caret -fdiagnostics-color=never ./libtestc++.a
-L/test/gnu/gcc/objdir/hppa64hp-hpux11.11/libstdc++-v3/src
/filesystem/.libs -lm -o ./default_weaktoshared.exeld: Unsatisfied symbol
"__atomic_fetch_add_4" in file /var/tmp//ccfRrRyB.old: Unsatisfied symbol
"__atomic_fetch_sub_4" in file /var/tmp//ccfRrRyB.o

We need to link with "-latomic".

Reply via email to