[Bug target/41810] Cannot build gcc: gthr-default.h:466: error: '__mutex' was not declared in this scope
ro at techfak dot uni-bielefeld dot de
gcc-bugzilla@gcc.gnu.org
Tue Nov 17 19:43:00 GMT 2009
------- Comment #4 from ro at techfak dot uni-bielefeld dot de 2009-11-17 19:43 -------
Subject: Re: Cannot build gcc: gthr-default.h:466: error: '__mutex' was not
declared in this scope
> ------- Comment #3 from alanpae at ilkda dot com 2009-11-17 19:18 -------
[...]
> Will try building it again with threads=none or the equivalent.
Why are you building with --enable-threads=solaris in the first place?
Just omit --enable-threads (defaulting to posix); the implementation of
both on Solaris 2 is the same, anyway. It is beyond me why anyone would
want to program to the old UI Threads interface.
That said, I'm testing the obvious fix:
Index: gcc/gthr-solaris.h
===================================================================
--- gcc/gthr-solaris.h (revision 154216)
+++ gcc/gthr-solaris.h (working copy)
@@ -37,7 +37,7 @@
#include <errno.h>
#ifdef __cplusplus
-#define UNUSED(x)
+#define UNUSED(x) x
#else
#define UNUSED(x) x __attribute__((unused))
#endif
I've now idea what other problems with --enable-threads=solaris might
exist, though. This isn't regularly tested.
Rainer
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41810
More information about the Gcc-bugs
mailing list