public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "sliwa at ifpan dot edu.pl" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/67114] [MinGW64] build failure with POSIX threads enabled
Date: Tue, 04 Aug 2015 14:45:00 -0000	[thread overview]
Message-ID: <bug-67114-4-Y74Xbn8K10@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-67114-4@http.gcc.gnu.org/bugzilla/>

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.


  parent reply	other threads:[~2015-08-04 14:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-04 10:47 [Bug libstdc++/67114] New: " 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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-67114-4-Y74Xbn8K10@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).