public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/96657] New: libsupc++.a missing required functions from src/c++98/atomicity.cc when atomic builtins are not supported
@ 2020-08-17 12:35 james.hilliard1 at gmail dot com
  2020-08-17 13:28 ` [Bug libstdc++/96657] [9/10/11 Regression] " redi at gcc dot gnu.org
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: james.hilliard1 at gmail dot com @ 2020-08-17 12:35 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 96657
           Summary: libsupc++.a missing required functions from
                    src/c++98/atomicity.cc when atomic builtins are not
                    supported
           Product: gcc
           Version: 9.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: james.hilliard1 at gmail dot com
                CC: redi at gcc dot gnu.org
  Target Milestone: ---

We've been hitting a bug in buildroot with an application(apcupsd) that links
against libsupc++.a directly.

This issue appears to be due to a sparc/arc specific missing symbols bug in
libsupc++, we aren't seeing this build error for any other architectures at the
moment.

See discussions:
http://lists.busybox.net/pipermail/buildroot/2020-May/282779.html
http://lists.busybox.net/pipermail/buildroot/2020-August/289413.html

Build error
http://autobuild.buildroot.org/results/3be/3bedf404de0ea42ee3ba624cded65d310a847af9//build-end.log:

/tmp/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/sparc-buildroot-linux-uclibc/8.3.0/../../../../sparc-buildroot-linux-uclibc/bin/ld:
/tmp/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/sparc-buildroot-linux-uclibc/8.3.0/../../../../sparc-buildroot-linux-uclibc/lib/libsupc++.a(eh_throw.o):
in function `__gxx_exception_cleanup(_Unwind_Reason_Code, _Unwind_Exception*)':
eh_throw.cc:(.text._ZL23__gxx_exception_cleanup19_Unwind_Reason_CodeP17_Unwind_Exception+0x38):
undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:33: apcupsd] Error 1

Based on previous
discussions(https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70560#c6) it appears
this has been broken since r244051 enabled std::exception_ptr for targets
without lock-free atomic built-ins.

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

end of thread, other threads:[~2021-07-22 21:29 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-17 12:35 [Bug libstdc++/96657] New: libsupc++.a missing required functions from src/c++98/atomicity.cc when atomic builtins are not supported james.hilliard1 at gmail dot com
2020-08-17 13:28 ` [Bug libstdc++/96657] [9/10/11 Regression] " redi at gcc dot gnu.org
2020-08-17 13:38 ` james.hilliard1 at gmail dot com
2020-08-17 13:46 ` redi at gcc dot gnu.org
2020-08-25 10:41 ` rguenth at gcc dot gnu.org
2020-10-12 12:33 ` rguenth at gcc dot gnu.org
2020-11-04 15:38 ` redi at gcc dot gnu.org
2021-04-15 11:42 ` redi at gcc dot gnu.org
2021-04-15 16:10 ` cvs-commit at gcc dot gnu.org
2021-04-15 16:15 ` [Bug libstdc++/96657] [9/10 " redi at gcc dot gnu.org
2021-04-19 10:40 ` [Bug libstdc++/96657] [8/9/10 " redi at gcc dot gnu.org
2021-06-01  8:18 ` [Bug libstdc++/96657] [9/10 " rguenth at gcc dot gnu.org
2021-07-22 17:05 ` cvs-commit at gcc dot gnu.org
2021-07-22 17:06 ` [Bug libstdc++/96657] [9 " redi at gcc dot gnu.org
2021-07-22 21:29 ` cvs-commit at gcc dot gnu.org
2021-07-22 21:29 ` redi at gcc dot gnu.org

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).