public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "cestrauss at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/51140] New: libstdc++-v3/libsupc++/eh_tm.cc:48: undefined reference to `___sync_sub_and_fetch_4' Date: Tue, 15 Nov 2011 12:40:00 -0000 [thread overview] Message-ID: <bug-51140-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51140 Bug #: 51140 Summary: libstdc++-v3/libsupc++/eh_tm.cc:48: undefined reference to `___sync_sub_and_fetch_4' Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: cestrauss@gmail.com Host: i386-pc-mingw32 Target: i386-pc-mingw32 Build: i386-pc-mingw32 Building 4.7.0 (trunk) on i368-pc-mingw32 fails with: Creating library file: .libs/libstdc++.dll.a../libsupc++/.libs/libsupc++convenience.a(eh_tm.o): In function `free_any_cxa_exception': c:\projetos\gcc\bld\svn\bld\mingw32\libstdc++-v3\libsupc++/../../../../../../gcc-svn/libstdc++-v3/libsupc++/eh_tm.cc:48: undefined reference to `___sync_sub_and_fetch_4' collect2.exe: error: ld returned 1 exit status make[5]: *** [libstdc++.la] Error 1 make[5]: Leaving directory `/projetos/gcc/bld/svn/bld/mingw32/libstdc++-v3/src' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/projetos/gcc/bld/svn/bld/mingw32/libstdc++-v3' make[3]: *** [all] Error 2 make[3]: Leaving directory `/projetos/gcc/bld/svn/bld/mingw32/libstdc++-v3' make[2]: *** [all-stage1-target-libstdc++-v3] Error 2 make[2]: Leaving directory `/projetos/gcc/bld/svn/bld' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/projetos/gcc/bld/svn/bld' make: *** [all] Error 2 The line in question is: if (__sync_sub_and_fetch (&h->referenceCount, 1) == 0) There is another use of __sync_sub_and_fetch in libstdc++-v3/libsupc++/eh_tm.cc, and there it is guarded by a #ifdef _GLIBCXX_ATOMIC_BUILTINS_4, which is undefined in my case. I guess this guard is missing from eh_tm.cc. $ gcc -v Using built-in specs. COLLECT_GCC=\mingw\bin\gcc.exe COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.5.2/lto-wrapper.exe Target: mingw32 Configured with: ../gcc-4.5.2/configure --enable-languages=c,c++,ada,fortran,obj c,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --enable-libgo mp --disable-win32-registry --enable-libstdcxx-debug --enable-version-specific-r untime-libs --disable-werror --build=mingw32 --prefix=/mingw Thread model: win32 gcc version 4.5.2 (GCC)
next reply other threads:[~2011-11-15 12:35 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-11-15 12:40 cestrauss at gmail dot com [this message] 2011-11-15 12:45 ` [Bug libstdc++/51140] " cestrauss at gmail dot com 2011-11-15 13:53 ` redi at gcc dot gnu.org 2011-11-18 0:24 ` paolo.carlini at oracle dot com 2011-11-22 21:50 ` cestrauss at gmail dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-51140-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).