This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Mingw-w64-public] x86_64-pc-mingw32 native ld.exe randomly failed to read the archive file


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]