This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/28671] [4.2 regression] undefined reference to `__sync_fetch_and_add_4'
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Aug 2006 23:08:24 -0000
- Subject: [Bug libstdc++/28671] [4.2 regression] undefined reference to `__sync_fetch_and_add_4'
- References: <bug-28671-5606@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from pcarlini at suse dot de 2006-08-09 23:08 -------
First, a general remark: this kind of error must never happen, irrespective of
the options used to build user code and/or GCC.
Then, it looks like _GLIBCXX_ATOMIC_BUILTINS is defined for that installation
of GCC. In turn, this is not supposed to happen for ?86, *any* ?. Either
something is wrong in the installation (something was forced overriding the
configure choices) or there are glitches in the recent changes from Benjamin.
Note, if the library is really at fault in that way, any trivial program using
string will not link, no complex applications are needed to reproduce.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28671