public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/13913] New: win32: compile error: __GTHREAD_MUTEX_INIT' was not declared in this scope
@ 2004-01-29  3:51 ovid at mailandnews dot com
  2004-01-29  4:20 ` [Bug libstdc++/13913] [3.5 Regression] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: ovid at mailandnews dot com @ 2004-01-29  3:51 UTC (permalink / raw)
  To: gcc-bugs

/datal/gcc/build/crossgcc_build/gcc/xgcc -shared-libgcc -
B/datal/gcc/build/crossgcc_build/gcc/ -nostdinc++ -
L/datal/gcc/build/crossgcc_build
/i686-pc-mingw32/libstdc++-v3/src -L/datal/gcc/build/crossgcc_build/i686-pc-
mingw32/libstdc++-v3/src/.libs -B/datal/gcc/build/crossgcc/i686-
pc-mingw32/bin/ -B/datal/gcc/build/crossgcc/i686-pc-mingw32/lib/ -
isystem /datal/gcc/build/crossgcc/i686-pc-mingw32/include -isystem /datal/
gcc/build/crossgcc/i686-pc-mingw32/sys-include -
I/datal/gcc/build/crossgcc_build/i686-pc-mingw32/libstdc++-v3/include/i686-pc-
mingw32 -I/dat
al/gcc/build/crossgcc_build/i686-pc-mingw32/libstdc++-v3/include -
I/datal/gcc/gcc/libstdc++-v3/libsupc++ -O2 -O2 -g0 -O2 -g0 -fno-implicit-t
emplates -Wall -W -Wwrite-strings -Wcast-qual -fdiagnostics-show-
location=once -c /datal/gcc/gcc/libstdc++-v3/src/allocator.cc -o allocator.
o
In file included from /datal/gcc/build/crossgcc_build/i686-pc-
mingw32/libstdc++-v3/include/bits/allocator.h:52,
                 from /datal/gcc/build/crossgcc_build/i686-pc-
mingw32/libstdc++-v3/include/memory:55,
                 from /datal/gcc/gcc/libstdc++-v3/src/allocator.cc:35:
/datal/gcc/build/crossgcc_build/i686-pc-mingw32/libstdc++-
v3/include/ext/mt_allocator.h:840: error: `__GTHREAD_MUTEX_INIT' was not 
declared
in this scope

-- 
           Summary: win32: compile error: __GTHREAD_MUTEX_INIT' was not
                    declared in this scope
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ovid at mailandnews dot com
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13913


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libstdc++/13913] [3.5 Regression] win32: compile error: __GTHREAD_MUTEX_INIT' was not declared in this scope
  2004-01-29  3:51 [Bug libstdc++/13913] New: win32: compile error: __GTHREAD_MUTEX_INIT' was not declared in this scope ovid at mailandnews dot com
@ 2004-01-29  4:20 ` pinskia at gcc dot gnu dot org
  2004-01-30  0:22 ` [Bug libstdc++/13913] mt_allocator cannot be used on mygwin pinskia at gcc dot gnu dot org
  2004-01-31 18:33 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-29  4:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-29 04:20 -------
Confirmed, the problem is here:
#ifdef __GTHREADS
  template<typename _Tp> typename __mt_alloc<_Tp>::thread_record*
  volatile __mt_alloc<_Tp>::_S_thread_freelist_first = NULL;

  template<typename _Tp> __gthread_mutex_t
  __mt_alloc<_Tp>::_S_thread_freelist_mutex = __GTHREAD_MUTEX_INIT;  <--- this line

  /*
   * Actual initialization in _S_init()
   */
  template<typename _Tp> __gthread_key_t
  __mt_alloc<_Tp>::_S_thread_key;
#endif

Looks like someone forgot that not every target defines __GTHREAD_MUTEX_INIT.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |build
   Last reconfirmed|0000-00-00 00:00:00         |2004-01-29 04:20:48
               date|                            |
            Summary|win32: compile error:       |[3.5 Regression] win32:
                   |__GTHREAD_MUTEX_INIT' was   |compile error:
                   |not declared in this scope  |__GTHREAD_MUTEX_INIT' was
                   |                            |not declared in this scope
   Target Milestone|---                         |3.5.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13913


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libstdc++/13913] mt_allocator cannot be used on mygwin
  2004-01-29  3:51 [Bug libstdc++/13913] New: win32: compile error: __GTHREAD_MUTEX_INIT' was not declared in this scope ovid at mailandnews dot com
  2004-01-29  4:20 ` [Bug libstdc++/13913] [3.5 Regression] " pinskia at gcc dot gnu dot org
@ 2004-01-30  0:22 ` pinskia at gcc dot gnu dot org
  2004-01-31 18:33 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-30  0:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-30 00:22 -------
Basically this file has never worked since it was added.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
           Keywords|build                       |
            Summary|[3.5 Regression] win32:     |mt_allocator cannot be used
                   |compile error:              |on mygwin
                   |__GTHREAD_MUTEX_INIT' was   |
                   |not declared in this scope  |
   Target Milestone|3.5.0                       |---


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13913


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libstdc++/13913] mt_allocator cannot be used on mygwin
  2004-01-29  3:51 [Bug libstdc++/13913] New: win32: compile error: __GTHREAD_MUTEX_INIT' was not declared in this scope ovid at mailandnews dot com
  2004-01-29  4:20 ` [Bug libstdc++/13913] [3.5 Regression] " pinskia at gcc dot gnu dot org
  2004-01-30  0:22 ` [Bug libstdc++/13913] mt_allocator cannot be used on mygwin pinskia at gcc dot gnu dot org
@ 2004-01-31 18:33 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-31 18:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-31 18:33 -------
Fixed by:
	2004-01-31  Per Bothner  <per@bothner.com>
	
	* include/ext/mt_allocator.h
	(__mt_alloc::_S_thread_freelist_mutex): Guard with
	__GTHREAD_MUTEX_INIT.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |3.5.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13913


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-01-31 18:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-29  3:51 [Bug libstdc++/13913] New: win32: compile error: __GTHREAD_MUTEX_INIT' was not declared in this scope ovid at mailandnews dot com
2004-01-29  4:20 ` [Bug libstdc++/13913] [3.5 Regression] " pinskia at gcc dot gnu dot org
2004-01-30  0:22 ` [Bug libstdc++/13913] mt_allocator cannot be used on mygwin pinskia at gcc dot gnu dot org
2004-01-31 18:33 ` pinskia at gcc dot gnu dot org

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).