From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 20nqMgZvOGHhUAAAWB0awg (envelope-from ) for ; Wed, 08 Sep 2021 04:06:30 -0400 Received: by simark.ca (Postfix, from userid 112) id C84C11EE22; Wed, 8 Sep 2021 04:06:30 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_DYNAMIC, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 0B20D1EDDB for ; Wed, 8 Sep 2021 04:06:29 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7E2EF3850419 for ; Wed, 8 Sep 2021 08:06:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7E2EF3850419 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1631088388; bh=aqTwn0DFgV7CqGnJjUXOh4DHjiSJROMjoyxJ0q2LAuU=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=hwB28qS3zCtnBtSZ7ck5rMc7yAqZeHTU8uE4zc15qVkMih0rvD7wVbmuHH4Nsnlbq S3KGGw3F3JChvNprzLuSBo0z/X3S+YJPab2w0IFuunttjTV0Rr6KZ7Tl3Hn4y55zjF sflAxZC2g2ZHVQUcUhz49G4oo5A+LzfOoF9eNTt8= Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id 0384B3858415 for ; Wed, 8 Sep 2021 08:06:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0384B3858415 Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 401CB221D9; Wed, 8 Sep 2021 08:06:07 +0000 (UTC) Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id 27473137FE; Wed, 8 Sep 2021 08:06:07 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id 1WquB+9uOGGiTgAAGKfGzw (envelope-from ); Wed, 08 Sep 2021 08:06:07 +0000 Subject: Re: [PATCH][gdb/build] Fix build with undefined CXX_STD_THREAD To: gdb-patches@sourceware.org References: <20210907145006.GA4878@delia> Message-ID: <68b36a03-0d56-2e30-bc0e-403eda7b761c@suse.de> Date: Wed, 8 Sep 2021 10:06:06 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Tom de Vries via Gdb-patches Reply-To: Tom de Vries Cc: Tom Tromey Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" On 9/7/21 5:19 PM, Tom de Vries wrote: > I find: > ... > CXX_DIALECT='-std=gnu++11' > ... > in the config.log, but that setting is not used when checking for > CXX_STD_THREAD, so we have: > ... > configure:14614: checking for std::thread > configure:14631: g++ -c -pthread -Wall -O2 -g conftest.cpp >&5 > In file included from /usr/include/c++/4.8/thread:35:0, > from conftest.cpp:167: > /usr/include/c++/4.8/bits/c++0x_warning.h:32:2: error: #error This file > requires compiler and library support for the ISO C++ 2011 standard. > This support is currently experimental, and must be enabled with the > -std=c++11 or -std=gnu++11 compiler options. > #error This file requires compiler and library support for the \ > ^ > conftest.cpp: In function 'int main()': > conftest.cpp:172:1: error: 'thread' is not a member of 'std' > std::thread t(callback); > ^ > conftest.cpp:172:13: error: expected ';' before 't' > std::thread t(callback); > ^ > configure:14631: $? = 1 > ... > > It could be that: > ... > $ g++ -std=gnu++11 -c -pthread -Wall -O2 -g conftest.cpp > ... > actually would succeed. Filed PR28318 - "[gdb/build] std::thread support configure check does not use CXX_DIALECT" here ( https://sourceware.org/bugzilla/show_bug.cgi?id=28318 ). Thanks, - Tom