From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3FE05385040C; Wed, 8 Sep 2021 07:49:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3FE05385040C From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug build/28318] New: [gdb/build] std::thread support configure check does not used CXX_DIALECT Date: Wed, 08 Sep 2021 07:49:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: build X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Sep 2021 07:49:39 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28318 Bug ID: 28318 Summary: [gdb/build] std::thread support configure check does not used CXX_DIALECT Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: build Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- As reported here (https://sourceware.org/pipermail/gdb-patches/2021-September/181862.html ): ... I find: ... CXX_DIALECT=3D'-std=3Dgnu++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=3Dc++11 or -std=3Dgnu++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: $? =3D 1 ... It could be that: ... $ g++ -std=3Dgnu++11 -c -pthread -Wall -O2 -g conftest.cpp ... actually would succeed. ... --=20 You are receiving this mail because: You are on the CC list for the bug.=