From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 69489 invoked by alias); 27 Apr 2018 18:57:50 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 69480 invoked by uid 89); 27 Apr 2018 18:57:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-spam-relays-external:ESMTPA X-HELO: resqmta-po-06v.sys.comcast.net Received: from resqmta-po-06v.sys.comcast.net (HELO resqmta-po-06v.sys.comcast.net) (96.114.154.165) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 27 Apr 2018 18:57:48 +0000 Received: from resomta-po-17v.sys.comcast.net ([96.114.154.241]) by resqmta-po-06v.sys.comcast.net with ESMTP id C8XTfSPkXzVkrC8Z0fufVI; Fri, 27 Apr 2018 18:57:46 +0000 Received: from [192.168.10.125] ([73.60.223.101]) by resomta-po-17v.sys.comcast.net with ESMTPA id C8YzfHcs1DPPkC8YzfE2hA; Fri, 27 Apr 2018 18:57:46 +0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Re: GDB 8.1 build error From: Paul Koning In-Reply-To: Date: Fri, 27 Apr 2018 19:01:00 -0000 Cc: "gdb@sourceware.org" Content-Transfer-Encoding: quoted-printable Message-Id: <6899ECC3-F9E6-4203-8B09-D9F4B279263E@comcast.net> References: <214C80CC-1173-41F6-AAA1-39C9D39E28B2@comcast.net> <454707570722fc0220074c0eca015a8f@polymtl.ca> To: Simon Marchi X-CMAE-Envelope: MS4wfPVFsDQ8uajZJfCFLY6EU6KQWE47zFLcBwseZT1BGLa+P+DcNt8ZDoJse0tC01FtGNd/LzU+sZusdKKMAnp8e+JSyH8RSOUJhKslmU1vig1yZgbxPcUQ YvHff2rYqTYiSeTYqKjsN8z2hi/gg6kh0AuB7lLAe5cYB029njOYdoOwqONabqspru943iMlwYmonEztTNcaHBwECho4Ez1YyhY= X-SW-Source: 2018-04/txt/msg00027.txt.bz2 > On Apr 27, 2018, at 2:44 PM, Paul Koning wrote: >=20 >=20 >=20 >> On Apr 27, 2018, at 2:02 PM, Simon Marchi wrot= e: >>=20 >> On 2018-04-26 19:48, Paul Koning wrote: >>> I can't build GDB on Mac. This shows up both in a native build, and a >>> cross-build (for example target=3Dmips-netbsdelf). I see this error: >>> /Users/pkoning/Downloads/gdb-8.1/gdb/stap-probe.c:122:29: error: default >>> initialization of an object of const type 'const stap_static_probe_= ops' >>> without a user-provided default constructor >>> const stap_static_probe_ops stap_static_probe_ops; >>> or >>> /Users/pkoning/Downloads/gdb-8.1/gdb/probe.c:63:28: error: default >>> initialization of an object of const type 'const any_static_probe_o= ps' >>> without a user-provided default constructor >>> const any_static_probe_ops any_static_probe_ops; >>> (same problem, different source file). >>> paul >>=20 >> Hi Paul, >>=20 >> What is the compiler, which version, and can you share the full command = line used to compile probe.o, for example? >>=20 >> Simon > ... > These appear to be LLVM incompatibilities; if I feed those command lines = to (real) GCC 8.0, just built yesterday from current trunk, they compile cl= eanly. To follow up on that: if I force the use of real GCC/G++ (with CC and CXX d= efinitions in the configure command), I get a successful build for the nati= ve case. I'm trying a cross-build now. paul