public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/67114] New: [MinGW64] build failure with POSIX threads enabled
@ 2015-08-04 10:47 sliwa at ifpan dot edu.pl
  2015-08-04 10:48 ` [Bug libstdc++/67114] " sliwa at ifpan dot edu.pl
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: sliwa at ifpan dot edu.pl @ 2015-08-04 10:47 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67114

            Bug ID: 67114
           Summary: [MinGW64] build failure with POSIX threads enabled
           Product: gcc
           Version: 5.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sliwa at ifpan dot edu.pl
  Target Milestone: ---

Created attachment 36119
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36119&action=edit
proposed patch to GCC

Since operator< is not available for thread types when using the pthreads-win32
library, gcc build fails when configured with POSIX threads on MinGW64.

The attached patch implements a field-by-field comparison.


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

* [Bug libstdc++/67114] [MinGW64] build failure with POSIX threads enabled
  2015-08-04 10:47 [Bug libstdc++/67114] New: [MinGW64] build failure with POSIX threads enabled sliwa at ifpan dot edu.pl
@ 2015-08-04 10:48 ` sliwa at ifpan dot edu.pl
  2015-08-04 12:03 ` sliwa at ifpan dot edu.pl
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: sliwa at ifpan dot edu.pl @ 2015-08-04 10:48 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67114

--- Comment #1 from Cezary Śliwa <sliwa at ifpan dot edu.pl> ---
Created attachment 36120
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36120&action=edit
complementary patch to the w32-pthreads library
>From gcc-bugs-return-494037-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 04 10:56:53 2015
Return-Path: <gcc-bugs-return-494037-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82872 invoked by alias); 4 Aug 2015 10:56:52 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 82829 invoked by uid 48); 4 Aug 2015 10:56:48 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/66427] The compiler rejects too complex variable templates
Date: Tue, 04 Aug 2015 10:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on target_milestone everconfirmed
Message-ID: <bug-66427-4-zX14xTC8IU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66427-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66427-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-08/txt/msg00179.txt.bz2
Content-length: 596

https://gcc.gnu.org/bugzilla/show_bug.cgi?idf427

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-08-04
   Target Milestone|---                         |5.2
     Ever confirmed|0                           |1

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
5.2.0 is also fine, I'm adding a testcase and closing the bug.


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

* [Bug libstdc++/67114] [MinGW64] build failure with POSIX threads enabled
  2015-08-04 10:47 [Bug libstdc++/67114] New: [MinGW64] build failure with POSIX threads enabled sliwa at ifpan dot edu.pl
  2015-08-04 10:48 ` [Bug libstdc++/67114] " sliwa at ifpan dot edu.pl
@ 2015-08-04 12:03 ` sliwa at ifpan dot edu.pl
  2015-08-04 12:21 ` redi at gcc dot gnu.org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: sliwa at ifpan dot edu.pl @ 2015-08-04 12:03 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67114

--- Comment #3 from Cezary Śliwa <sliwa at ifpan dot edu.pl> ---
Yes, I understand. The purpose of the patch is to point the problem. In
particular I don't know why operator< is needed and what are the required
semantics (i.e. comparing pointers vs. comparing thread sequence numbers; what
is the x field in the struct?). I am also concerned if the current
implementation of pthread_equal in the w32-pthreads library is correct in this
respect.
>From gcc-bugs-return-494054-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 04 12:08:48 2015
Return-Path: <gcc-bugs-return-494054-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1498 invoked by alias); 4 Aug 2015 12:08:48 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 1467 invoked by uid 48); 4 Aug 2015 12:08:44 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/67108] [6 Regression] ICE: in cxx_eval_call_expression, at cp/constexpr.c:1345 when dumping
Date: Tue, 04 Aug 2015 12:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc short_desc everconfirmed
Message-ID: <bug-67108-4-aM5vAqvlPw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67108-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67108-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-08/txt/msg00196.txt.bz2
Content-length: 841

https://gcc.gnu.org/bugzilla/show_bug.cgi?idg108

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-08-04
                 CC|                            |mpolacek at gcc dot gnu.org
            Summary|ICE: in                     |[6 Regression] ICE: in
                   |cxx_eval_call_expression,   |cxx_eval_call_expression,
                   |at cp/constexpr.c:1345 when |at cp/constexpr.c:1345 when
                   |dumping                     |dumping
     Ever confirmed|0                           |1

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed.


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

* [Bug libstdc++/67114] [MinGW64] build failure with POSIX threads enabled
  2015-08-04 10:47 [Bug libstdc++/67114] New: [MinGW64] build failure with POSIX threads enabled sliwa at ifpan dot edu.pl
  2015-08-04 10:48 ` [Bug libstdc++/67114] " sliwa at ifpan dot edu.pl
  2015-08-04 12:03 ` sliwa at ifpan dot edu.pl
@ 2015-08-04 12:21 ` redi at gcc dot gnu.org
  2015-08-04 13:13 ` redi at gcc dot gnu.org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: redi at gcc dot gnu.org @ 2015-08-04 12:21 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67114

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The C++ standard requires thread::id objects to be comparable with operator<
and for it to impose a total order.

The current libstdc++ code assumes that a total order can be obtained simply by
comparing the pthread_t objects, which is not portable, but some form of total
order over pthread_t objects is needed.

For w32-pthreads comparing thread sequence numbers should be sufficient.


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

* [Bug libstdc++/67114] [MinGW64] build failure with POSIX threads enabled
  2015-08-04 10:47 [Bug libstdc++/67114] New: [MinGW64] build failure with POSIX threads enabled sliwa at ifpan dot edu.pl
                   ` (2 preceding siblings ...)
  2015-08-04 12:21 ` redi at gcc dot gnu.org
@ 2015-08-04 13:13 ` redi at gcc dot gnu.org
  2015-08-04 13:17 ` redi at gcc dot gnu.org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: redi at gcc dot gnu.org @ 2015-08-04 13:13 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67114

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #36119|0                           |1
        is obsolete|                            |
  Attachment #36120|0                           |1
        is obsolete|                            |

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Created attachment 36124
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36124&action=edit
Add _GLIBCXX_THREAD_ID_LESS hook for thread ID comparisons

This patch preserves the existing behaviour for most targets but adds a new
macro hook that can be used to define a target-specific alternative in
os_defines.h

This does not require any changes to pthreads-win32. Could you test it?


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

* [Bug libstdc++/67114] [MinGW64] build failure with POSIX threads enabled
  2015-08-04 10:47 [Bug libstdc++/67114] New: [MinGW64] build failure with POSIX threads enabled sliwa at ifpan dot edu.pl
                   ` (3 preceding siblings ...)
  2015-08-04 13:13 ` redi at gcc dot gnu.org
@ 2015-08-04 13:17 ` redi at gcc dot gnu.org
  2015-08-04 14:45 ` sliwa at ifpan dot edu.pl
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: redi at gcc dot gnu.org @ 2015-08-04 13:17 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67114

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #36124|0                           |1
        is obsolete|                            |

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Created attachment 36125
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36125&action=edit
Patch to add _GLIBCXX_THREAD_ID_LESS hook.

Oops, that wasn't the final version of the patch. This one should actually
compile!


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

* [Bug libstdc++/67114] [MinGW64] build failure with POSIX threads enabled
  2015-08-04 10:47 [Bug libstdc++/67114] New: [MinGW64] build failure with POSIX threads enabled sliwa at ifpan dot edu.pl
                   ` (4 preceding siblings ...)
  2015-08-04 13:17 ` redi at gcc dot gnu.org
@ 2015-08-04 14:45 ` sliwa at ifpan dot edu.pl
  2015-08-04 15:55 ` redi at gcc dot gnu.org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: sliwa at ifpan dot edu.pl @ 2015-08-04 14:45 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67114

--- Comment #7 from Cezary Śliwa <sliwa at ifpan dot edu.pl> ---

1. After applying the patch to GCC 5.2.0, the build fails (I do not see
PTW32_VERSION defined):

Making all in c++11
make[5]: Entering directory
`/home/czarek/src/nowe/build-pthreads/objdir-gcc/x86_64-w64-mingw32/libstdc++-v3/src/c++11'
/bin/sh ../../libtool --tag CXX --tag disable-shared   --mode=compile
/home/czarek/src/nowe/build-pthreads/objdir-gcc/./gcc/xgcc -shared-libgcc
-B/home/czarek/src/nowe/build-pthreads/objdir-gcc/./gcc -nostdinc++
-L/home/czarek/src/nowe/build-pthreads/objdir-gcc/x86_64-w64-mingw32/libstdc++-v3/src
-L/home/czarek/src/nowe/build-pthreads/objdir-gcc/x86_64-w64-mingw32/libstdc++-v3/src/.libs
-L/home/czarek/src/nowe/build-pthreads/objdir-gcc/x86_64-w64-mingw32/libstdc++-v3/libsupc++/.libs
-L/opt/mingw64/x86_64-w64-mingw32/lib -L/opt/mingw64/mingw/lib -isystem
/opt/mingw64/x86_64-w64-mingw32/include -isystem /opt/mingw64/mingw/include
-B/opt/mingw64/x86_64-w64-mingw32/bin/ -B/opt/mingw64/x86_64-w64-mingw32/lib/
-isystem /opt/mingw64/x86_64-w64-mingw32/include -isystem
/opt/mingw64/x86_64-w64-mingw32/sys-include   
-I/home/czarek/src/nowe/build-pthreads/gcc-5.2.0/libstdc++-v3/../libgcc
-I/home/czarek/src/nowe/build-pthreads/objdir-gcc/x86_64-w64-mingw32/libstdc++-v3/include/x86_64-w64-mingw32
-I/home/czarek/src/nowe/build-pthreads/objdir-gcc/x86_64-w64-mingw32/libstdc++-v3/include
-I/home/czarek/src/nowe/build-pthreads/gcc-5.2.0/libstdc++-v3/libsupc++ 
-std=gnu++11 -prefer-pic -D_GLIBCXX_SHARED -fno-implicit-templates  -Wall
-Wextra -Wwrite-strings -Wcast-qual -Wabi  -fdiagnostics-show-location=once  
-ffunction-sections -fdata-sections  -frandom-seed=functexcept.lo -g -O2  -c -o
functexcept.lo ../../../../../gcc-5.2.0/libstdc++-v3/src/c++11/functexcept.cc
libtool: compile:  /home/czarek/src/nowe/build-pthreads/objdir-gcc/./gcc/xgcc
-shared-libgcc -B/home/czarek/src/nowe/build-pthreads/objdir-gcc/./gcc
-nostdinc++
-L/home/czarek/src/nowe/build-pthreads/objdir-gcc/x86_64-w64-mingw32/libstdc++-v3/src
-L/home/czarek/src/nowe/build-pthreads/objdir-gcc/x86_64-w64-mingw32/libstdc++-v3/src/.libs
-L/home/czarek/src/nowe/build-pthreads/objdir-gcc/x86_64-w64-mingw32/libstdc++-v3/libsupc++/.libs
-L/opt/mingw64/x86_64-w64-mingw32/lib -L/opt/mingw64/mingw/lib -isystem
/opt/mingw64/x86_64-w64-mingw32/include -isystem /opt/mingw64/mingw/include
-B/opt/mingw64/x86_64-w64-mingw32/bin/ -B/opt/mingw64/x86_64-w64-mingw32/lib/
-isystem /opt/mingw64/x86_64-w64-mingw32/include -isystem
/opt/mingw64/x86_64-w64-mingw32/sys-include
-I/home/czarek/src/nowe/build-pthreads/gcc-5.2.0/libstdc++-v3/../libgcc
-I/home/czarek/src/nowe/build-pthreads/objdir-gcc/x86_64-w64-mingw32/libstdc++-v3/include/x86_64-w64-mingw32
-I/home/czarek/src/nowe/build-pthreads/objdir-gcc/x86_64-w64-mingw32/libstdc++-v3/include
-I/home/czarek/src/nowe/build-pthreads/gcc-5.2.0/libstdc++-v3/libsupc++
-std=gnu++11 -D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra
-Wwrite-strings -Wcast-qual -Wabi -fdiagnostics-show-location=once
-ffunction-sections -fdata-sections -frandom-seed=functexcept.lo -g -O2 -c
../../../../../gcc-5.2.0/libstdc++-v3/src/c++11/functexcept.cc -o functexcept.o
In file included from
/home/czarek/src/nowe/build-pthreads/objdir-gcc/x86_64-w64-mingw32/libstdc++-v3/include/future:40:0,
                 from
../../../../../gcc-5.2.0/libstdc++-v3/src/c++11/functexcept.cc:34:
/home/czarek/src/nowe/build-pthreads/objdir-gcc/x86_64-w64-mingw32/libstdc++-v3/include/thread:
In instantiation of ‘static bool std::thread::id::__less<_Tp,
<template-parameter-1-2> >::_S_less(const _Tp&, const _Tp&) [with _Tp =
ptw32_handle_t; <template-parameter-1-2> = void]’:
/home/czarek/src/nowe/build-pthreads/objdir-gcc/x86_64-w64-mingw32/libstdc++-v3/include/thread:106:37:
  required from here
/home/czarek/src/nowe/build-pthreads/objdir-gcc/x86_64-w64-mingw32/libstdc++-v3/include/thread:91:36:
error: ‘_GLIBCXX_THREAD_ID_LESS’ was not declared in this scope
    { return _GLIBCXX_THREAD_ID_LESS(__x, __y); }
                                    ^
make[5]: *** [functexcept.lo] Error 1
make[5]: Leaving directory
`/home/czarek/src/nowe/build-pthreads/objdir-gcc/x86_64-w64-mingw32/libstdc++-v3/src/c++11'
make[5]: Entering directory
`/home/czarek/src/nowe/build-pthreads/objdir-gcc/x86_64-w64-mingw32/libstdc++-v3/src'
/bin/sh ../libtool --tag CXX   --mode=compile
/home/czarek/src/nowe/build-pthreads/objdir-gcc/./gcc/xgcc -shared-libgcc
-B/home/czarek/src/nowe/build-pthreads/objdir-gcc/./gcc -nostdinc++
-L/home/czarek/src/nowe/build-pthreads/objdir-gcc/x86_64-w64-mingw32/libstdc++-v3/src
-L/home/czarek/src/nowe/build-pthreads/objdir-gcc/x86_64-w64-mingw32/libstdc++-v3/src/.libs
-L/home/czarek/src/nowe/build-pthreads/objdir-gcc/x86_64-w64-mingw32/libstdc++-v3/libsupc++/.libs
-L/opt/mingw64/x86_64-w64-mingw32/lib -L/opt/mingw64/mingw/lib -isystem
/opt/mingw64/x86_64-w64-mingw32/include -isystem /opt/mingw64/mingw/include
-B/opt/mingw64/x86_64-w64-mingw32/bin/ -B/opt/mingw64/x86_64-w64-mingw32/lib/
-isystem /opt/mingw64/x86_64-w64-mingw32/include -isystem
/opt/mingw64/x86_64-w64-mingw32/sys-include    
-I/home/czarek/src/nowe/build-pthreads/objdir-gcc/x86_64-w64-mingw32/libstdc++-v3/include/x86_64-w64-mingw32
-I/home/czarek/src/nowe/build-pthreads/objdir-gcc/x86_64-w64-mingw32/libstdc++-v3/include
-I/home/czarek/src/nowe/build-pthreads/gcc-5.2.0/libstdc++-v3/libsupc++ 
-DDLL_EXPORT -DPIC -fno-implicit-templates  -Wall -Wextra -Wwrite-strings
-Wcast-qual -Wabi  -fdiagnostics-show-location=once   -ffunction-sections
-fdata-sections  -frandom-seed=compatibility-thread-c++0x.lo -g -O2 
-std=gnu++11 -c
../../../../gcc-5.2.0/libstdc++-v3/src/c++11/compatibility-thread-c++0x.cc
libtool: compile:  /home/czarek/src/nowe/build-pthreads/objdir-gcc/./gcc/xgcc
-shared-libgcc -B/home/czarek/src/nowe/build-pthreads/objdir-gcc/./gcc
-nostdinc++
-L/home/czarek/src/nowe/build-pthreads/objdir-gcc/x86_64-w64-mingw32/libstdc++-v3/src
-L/home/czarek/src/nowe/build-pthreads/objdir-gcc/x86_64-w64-mingw32/libstdc++-v3/src/.libs
-L/home/czarek/src/nowe/build-pthreads/objdir-gcc/x86_64-w64-mingw32/libstdc++-v3/libsupc++/.libs
-L/opt/mingw64/x86_64-w64-mingw32/lib -L/opt/mingw64/mingw/lib -isystem
/opt/mingw64/x86_64-w64-mingw32/include -isystem /opt/mingw64/mingw/include
-B/opt/mingw64/x86_64-w64-mingw32/bin/ -B/opt/mingw64/x86_64-w64-mingw32/lib/
-isystem /opt/mingw64/x86_64-w64-mingw32/include -isystem
/opt/mingw64/x86_64-w64-mingw32/sys-include
-I/home/czarek/src/nowe/build-pthreads/objdir-gcc/x86_64-w64-mingw32/libstdc++-v3/include/x86_64-w64-mingw32
-I/home/czarek/src/nowe/build-pthreads/objdir-gcc/x86_64-w64-mingw32/libstdc++-v3/include
-I/home/czarek/src/nowe/build-pthreads/gcc-5.2.0/libstdc++-v3/libsupc++
-DDLL_EXPORT -DPIC -fno-implicit-templates -Wall -Wextra -Wwrite-strings
-Wcast-qual -Wabi -fdiagnostics-show-location=once -ffunction-sections
-fdata-sections -frandom-seed=compatibility-thread-c++0x.lo -g -O2 -std=gnu++11
-c ../../../../gcc-5.2.0/libstdc++-v3/src/c++11/compatibility-thread-c++0x.cc 
-DDLL_EXPORT -DPIC -D_GLIBCXX_SHARED -o .libs/compatibility-thread-c++0x.o
In file included from
/home/czarek/src/nowe/build-pthreads/objdir-gcc/x86_64-w64-mingw32/libstdc++-v3/include/future:40:0,
                 from
../../../../gcc-5.2.0/libstdc++-v3/src/c++11/compatibility-thread-c++0x.cc:30:
/home/czarek/src/nowe/build-pthreads/objdir-gcc/x86_64-w64-mingw32/libstdc++-v3/include/thread:
In instantiation of ‘static bool std::thread::id::__less<_Tp,
<template-parameter-1-2> >::_S_less(const _Tp&, const _Tp&) [with _Tp =
ptw32_handle_t; <template-parameter-1-2> = void]’:
/home/czarek/src/nowe/build-pthreads/objdir-gcc/x86_64-w64-mingw32/libstdc++-v3/include/thread:106:37:
  required from here
/home/czarek/src/nowe/build-pthreads/objdir-gcc/x86_64-w64-mingw32/libstdc++-v3/include/thread:91:36:
error: ‘_GLIBCXX_THREAD_ID_LESS’ was not declared in this scope
    { return _GLIBCXX_THREAD_ID_LESS(__x, __y); }
                                    ^
make[5]: *** [compatibility-thread-c++0x.lo] Error 1
make[5]: Leaving directory
`/home/czarek/src/nowe/build-pthreads/objdir-gcc/x86_64-w64-mingw32/libstdc++-v3/src'



2. What is the appropriate test to verify the correctness of the order imposed?

3. My procedure is the following: I build GCC with Win32 threads, use it to
build the w32-pthreads library, and only then I build the compiler which uses
POSIX threads. Is there a better or simpler way? Building libgcc requires
pthreads, w32-pthreads compiled with gcc require libgcc. This looks like a
circular dependence.
>From gcc-bugs-return-494079-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 04 14:48:07 2015
Return-Path: <gcc-bugs-return-494079-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1977 invoked by alias); 4 Aug 2015 14:48:07 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 1778 invoked by uid 48); 4 Aug 2015 14:48:01 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/66392] rejects-valid: copy-initialization through user-defined conversion sequence fails
Date: Tue, 04 Aug 2015 14:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.1.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-66392-4-nMFjkoKgtk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66392-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66392-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-08/txt/msg00221.txt.bz2
Content-length: 498

https://gcc.gnu.org/bugzilla/show_bug.cgi?idf392

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |paolo.carlini at oracle dot com

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Works in mainline, likely due to the fix for c++/54521. I'm adding the testcase
and closing the bug.


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

* [Bug libstdc++/67114] [MinGW64] build failure with POSIX threads enabled
  2015-08-04 10:47 [Bug libstdc++/67114] New: [MinGW64] build failure with POSIX threads enabled sliwa at ifpan dot edu.pl
                   ` (5 preceding siblings ...)
  2015-08-04 14:45 ` sliwa at ifpan dot edu.pl
@ 2015-08-04 15:55 ` redi at gcc dot gnu.org
  2015-08-05  9:55 ` sliwa at ifpan dot edu.pl
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: redi at gcc dot gnu.org @ 2015-08-04 15:55 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67114

--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Cezary Śliwa from comment #7)
> 1. After applying the patch to GCC 5.2.0, the build fails (I do not see
> PTW32_VERSION defined):

Doh, of course not, because gthr.h isn't included until after os_defines.h,
sorry.
>From gcc-bugs-return-494095-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 04 16:00:24 2015
Return-Path: <gcc-bugs-return-494095-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10766 invoked by alias); 4 Aug 2015 16:00:24 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 10703 invoked by uid 48); 4 Aug 2015 16:00:19 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/67116] incorrect detection of thread model when cross-compiling the tool chain
Date: Tue, 04 Aug 2015 16:00:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 5.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-67116-4-lwB09IM8KX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67116-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67116-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-08/txt/msg00237.txt.bz2
Content-length: 647

https://gcc.gnu.org/bugzilla/show_bug.cgi?idg116

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2015-08-04
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
What are the configure commands you're using?

Libstdc++ is built using the target compiler, so its configure uses the target
compiler not the host, so this shouldn't happen.


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

* [Bug libstdc++/67114] [MinGW64] build failure with POSIX threads enabled
  2015-08-04 10:47 [Bug libstdc++/67114] New: [MinGW64] build failure with POSIX threads enabled sliwa at ifpan dot edu.pl
                   ` (6 preceding siblings ...)
  2015-08-04 15:55 ` redi at gcc dot gnu.org
@ 2015-08-05  9:55 ` sliwa at ifpan dot edu.pl
  2015-08-08 22:01 ` jason at gcc dot gnu.org
  2015-08-08 22:05 ` jason at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: sliwa at ifpan dot edu.pl @ 2015-08-05  9:55 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67114

--- Comment #9 from Cezary Śliwa <sliwa at ifpan dot edu.pl> ---
One think I missed is that MinGW64 uses the winpthreads library. If using
winpthreads, there is no failure. However, as far as I understand,
pthreads-win32 is in use in MinGW.
>From gcc-bugs-return-494147-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 05 10:01:50 2015
Return-Path: <gcc-bugs-return-494147-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1510 invoked by alias); 5 Aug 2015 10:01:50 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 1445 invoked by uid 55); 5 Aug 2015 10:01:46 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/67055] [5/6 Regression] Segmentation fault in fold_builtin_alloca_with_align in tree-ssa-ccp.c
Date: Wed, 05 Aug 2015 10:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 5.2.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-67055-4-EFNvZ1wlaT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67055-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67055-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-08/txt/msg00289.txt.bz2
Content-length: 640

https://gcc.gnu.org/bugzilla/show_bug.cgi?idg055

--- Comment #11 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Wed Aug  5 10:01:12 2015
New Revision: 226616

URL: https://gcc.gnu.org/viewcvs?rev"6616&root=gcc&view=rev
Log:
2015-08-05  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/67055
        * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
        NULL gimple_block.

        * g++.dg/torture/pr67055.C: New testcase.

Added:
    trunk/gcc/testsuite/g++.dg/torture/pr67055.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-ccp.c


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

* [Bug libstdc++/67114] [MinGW64] build failure with POSIX threads enabled
  2015-08-04 10:47 [Bug libstdc++/67114] New: [MinGW64] build failure with POSIX threads enabled sliwa at ifpan dot edu.pl
                   ` (7 preceding siblings ...)
  2015-08-05  9:55 ` sliwa at ifpan dot edu.pl
@ 2015-08-08 22:01 ` jason at gcc dot gnu.org
  2015-08-08 22:05 ` jason at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu.org @ 2015-08-08 22:01 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67114

--- Comment #10 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Sat Aug  8 22:01:12 2015
New Revision: 226736

URL: https://gcc.gnu.org/viewcvs?rev=226736&root=gcc&view=rev
Log:
        PR c++/67114
        * call.c (joust): Only call more_constrained on decls.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1z/regress1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c


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

* [Bug libstdc++/67114] [MinGW64] build failure with POSIX threads enabled
  2015-08-04 10:47 [Bug libstdc++/67114] New: [MinGW64] build failure with POSIX threads enabled sliwa at ifpan dot edu.pl
                   ` (8 preceding siblings ...)
  2015-08-08 22:01 ` jason at gcc dot gnu.org
@ 2015-08-08 22:05 ` jason at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu.org @ 2015-08-08 22:05 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67114

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org

--- Comment #11 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Jason Merrill from comment #10)
Oops, wrong bug number.


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

end of thread, other threads:[~2015-08-08 22:05 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-04 10:47 [Bug libstdc++/67114] New: [MinGW64] build failure with POSIX threads enabled sliwa at ifpan dot edu.pl
2015-08-04 10:48 ` [Bug libstdc++/67114] " sliwa at ifpan dot edu.pl
2015-08-04 12:03 ` sliwa at ifpan dot edu.pl
2015-08-04 12:21 ` redi at gcc dot gnu.org
2015-08-04 13:13 ` redi at gcc dot gnu.org
2015-08-04 13:17 ` redi at gcc dot gnu.org
2015-08-04 14:45 ` sliwa at ifpan dot edu.pl
2015-08-04 15:55 ` redi at gcc dot gnu.org
2015-08-05  9:55 ` sliwa at ifpan dot edu.pl
2015-08-08 22:01 ` jason at gcc dot gnu.org
2015-08-08 22:05 ` jason at gcc dot gnu.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).