This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [Mingw-w64-public] x86_64-pc-mingw32 native ld.exe randomly failed to read the archive file
- From: "zhou drangon" <drangon dot mail at gmail dot com>
- To: NightStrike <nightstrike at gmail dot com>
- Cc: mingw-w64-public at lists dot sourceforge dot net, libstdc++ at gcc dot gnu dot org
- Date: Sat, 6 Oct 2007 11:38:22 +0800
- Subject: Re: [Mingw-w64-public] x86_64-pc-mingw32 native ld.exe randomly failed to read the archive file
- References: <aaf959cb0710032305u2bdef18at3396f2a465244735@mail.gmail.com> <b609cb3b0710032325h29d39f58la57cbd4ddba97b5d@mail.gmail.com>
2007/10/4, NightStrike <nightstrike@gmail.com>:
> On 10/4/07, zhou drangon <drangon.mail@gmail.com> wrote:
> > under x86_64 linux, I built the cross x86_64-pc-mingw32 compiler using the
> > latest CVS/SVN head of binutils gcc mingw-w64,
>
> Wait, how? The current svn head of gcc is broken for me for
> x86_64-pc-mingw32. Did you patch it?
Do you meet with the following eror ?
------------------------
../../../../gcc/libstdc++-v3/libsupc++/guard.cc:68: error: expected
initializer before '*' token
../../../../gcc/libstdc++-v3/libsupc++/guard.cc:71: error: '__cond' is
not a member of '__gnu_cxx'
../../../../gcc/libstdc++-v3/libsupc++/guard.cc:72: error: '__cond' is
not a member of '__gnu_cxx'
../../../../gcc/libstdc++-v3/libsupc++/guard.cc:73: error:
'fake_cond_t' does not name a type
../../../../gcc/libstdc++-v3/libsupc++/guard.cc: In function
'void<unnamed>::init_static_cond()':
../../../../gcc/libstdc++-v3/libsupc++/guard.cc:76: error:
'static_cond' was not declared in this scope
------------------------
you may try with the following patch :
---------------------------------
Index: libstdc++-v3/libsupc++/guard.cc
===================================================================
--- libstdc++-v3/libsupc++/guard.cc (revision 129048)
+++ libstdc++-v3/libsupc++/guard.cc (working copy)
@@ -62,6 +62,7 @@
}
}
+#ifdef __GTHREAD_HAS_COND
namespace
{
// A single conditional variable controlling all static initializations.
@@ -83,6 +84,7 @@
return *static_cond;
}
}
+#endif
#ifndef _GLIBCXX_GUARD_TEST_AND_ACQUIRE
inline bool
---------------------------------------------------
The variable "static_cond" is used when __GTHREAD_HAS_COND is defined,
Since we don't define __GTHREAD_HAS_COND, so it may safe to remove
this variable.