public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/98003] New: FAIL: 27_io/basic_syncbuf/sync_ops/1.cc (test for excess errors)
@ 2020-11-26 10:28 redi at gcc dot gnu.org
  2020-11-30 22:11 ` [Bug libstdc++/98003] " danglin at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2020-11-26 10:28 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98003
           Summary: FAIL: 27_io/basic_syncbuf/sync_ops/1.cc (test for
                    excess errors)
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redi at gcc dot gnu.org
                CC: danglin at gcc dot gnu.org
  Target Milestone: ---
            Target: hppa64-hp-hpux11.11

https://gcc.gnu.org/pipermail/gcc-testresults/2020-November/630265.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libstdc++/98003] FAIL: 27_io/basic_syncbuf/sync_ops/1.cc (test for excess errors)
  2020-11-26 10:28 [Bug libstdc++/98003] New: FAIL: 27_io/basic_syncbuf/sync_ops/1.cc (test for excess errors) redi at gcc dot gnu.org
@ 2020-11-30 22:11 ` danglin at gcc dot gnu.org
  2020-11-30 22:24 ` redi at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: danglin at gcc dot gnu.org @ 2020-11-30 22:11 UTC (permalink / raw)
  To: gcc-bugs

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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libstdc++/98003] FAIL: 27_io/basic_syncbuf/sync_ops/1.cc (test for excess errors)
  2020-11-26 10:28 [Bug libstdc++/98003] New: FAIL: 27_io/basic_syncbuf/sync_ops/1.cc (test for excess errors) redi at gcc dot gnu.org
  2020-11-30 22:11 ` [Bug libstdc++/98003] " danglin at gcc dot gnu.org
@ 2020-11-30 22:24 ` redi at gcc dot gnu.org
  2020-12-01 10:38 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2020-11-30 22:24 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2020-11-30
           Assignee|unassigned at gcc dot gnu.org      |redi at gcc dot gnu.org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever confirmed|0                           |1

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Thought it might be that, thanks.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libstdc++/98003] FAIL: 27_io/basic_syncbuf/sync_ops/1.cc (test for excess errors)
  2020-11-26 10:28 [Bug libstdc++/98003] New: FAIL: 27_io/basic_syncbuf/sync_ops/1.cc (test for excess errors) redi at gcc dot gnu.org
  2020-11-30 22:11 ` [Bug libstdc++/98003] " danglin at gcc dot gnu.org
  2020-11-30 22:24 ` redi at gcc dot gnu.org
@ 2020-12-01 10:38 ` cvs-commit at gcc dot gnu.org
  2020-12-01 10:39 ` redi at gcc dot gnu.org
  2020-12-12 16:58 ` dave.anglin at bell dot net
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-12-01 10:38 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <redi@gcc.gnu.org>:

https://gcc.gnu.org/g:58f71a34c68711c4432b45086bfcccb78be7ace5

commit r11-5604-g58f71a34c68711c4432b45086bfcccb78be7ace5
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Tue Dec 1 10:36:09 2020 +0000

    libstdc++: Link test with libatomic if needed [PR 98003]

    libstdc++-v3/ChangeLog:

            PR libstdc++/98003
            * testsuite/27_io/basic_syncbuf/sync_ops/1.cc: Add options for
            libatomic.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libstdc++/98003] FAIL: 27_io/basic_syncbuf/sync_ops/1.cc (test for excess errors)
  2020-11-26 10:28 [Bug libstdc++/98003] New: FAIL: 27_io/basic_syncbuf/sync_ops/1.cc (test for excess errors) redi at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2020-12-01 10:38 ` cvs-commit at gcc dot gnu.org
@ 2020-12-01 10:39 ` redi at gcc dot gnu.org
  2020-12-12 16:58 ` dave.anglin at bell dot net
  4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2020-12-01 10:39 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
   Target Milestone|---                         |11.0
         Resolution|---                         |FIXED

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The test should pass now.

Does the HP-UX linker support something like GNU ld's --as-needed? I wonder if
it makes sense to make g++ always add -latomic when adding -lstdc++, or just
link libstdc++.so to libatomic unconditionally.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libstdc++/98003] FAIL: 27_io/basic_syncbuf/sync_ops/1.cc (test for excess errors)
  2020-11-26 10:28 [Bug libstdc++/98003] New: FAIL: 27_io/basic_syncbuf/sync_ops/1.cc (test for excess errors) redi at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2020-12-01 10:39 ` redi at gcc dot gnu.org
@ 2020-12-12 16:58 ` dave.anglin at bell dot net
  4 siblings, 0 replies; 6+ messages in thread
From: dave.anglin at bell dot net @ 2020-12-12 16:58 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from dave.anglin at bell dot net ---
There is no --as-needed support.

I think either approach would simplify things as most targets don't need to
link against libatomic.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-12-12 16:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-26 10:28 [Bug libstdc++/98003] New: FAIL: 27_io/basic_syncbuf/sync_ops/1.cc (test for excess errors) redi at gcc dot gnu.org
2020-11-30 22:11 ` [Bug libstdc++/98003] " danglin at gcc dot gnu.org
2020-11-30 22:24 ` redi at gcc dot gnu.org
2020-12-01 10:38 ` cvs-commit at gcc dot gnu.org
2020-12-01 10:39 ` redi at gcc dot gnu.org
2020-12-12 16:58 ` dave.anglin at bell dot net

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).