From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 82957 invoked by alias); 27 Apr 2018 19:10:48 -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 82943 invoked by uid 89); 27 Apr 2018 19:10:47 -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=utm_source, utm_medium, Hx-spam-relays-external:ESMTPA, utm_campaign X-HELO: resqmta-po-05v.sys.comcast.net Received: from resqmta-po-05v.sys.comcast.net (HELO resqmta-po-05v.sys.comcast.net) (96.114.154.164) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 27 Apr 2018 19:10:46 +0000 Received: from resomta-po-06v.sys.comcast.net ([96.114.154.230]) by resqmta-po-05v.sys.comcast.net with ESMTP id C85RfALvEBVaJC8lYfABzB; Fri, 27 Apr 2018 19:10:44 +0000 Received: from [192.168.10.125] ([73.60.223.101]) by resomta-po-06v.sys.comcast.net with ESMTPA id C8lXfEhojkQwdC8lYfyq7h; Fri, 27 Apr 2018 19:10:44 +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: <77e31c8f87342c5753d1d622fa7574ff@polymtl.ca> Date: Fri, 27 Apr 2018 19:18:00 -0000 Cc: "gdb@sourceware.org" Content-Transfer-Encoding: quoted-printable Message-Id: <245849C1-8B07-4305-9DFC-8CCE1FE90A73@comcast.net> References: <214C80CC-1173-41F6-AAA1-39C9D39E28B2@comcast.net> <454707570722fc0220074c0eca015a8f@polymtl.ca> <77e31c8f87342c5753d1d622fa7574ff@polymtl.ca> To: Simon Marchi X-CMAE-Envelope: MS4wfB++K7uFt09CFf1nJ332U3joVSSLGJXT47TEd7FbEidWK2+xFb/zNMUhkHD3XVCHT5M3OkbTVNaqRqEMJTgJ2EBSd7hqVSFd2bGRTWl6MvlyS56WTHWn BZZtvhdw/9pRnvHTnbrhJvk68jmE1OawcX2aqmHwwxPyPiQ5b67AaWNTTzNnWa9cyCc1+VNSw2DxokDJKr3fDE/Gajh5F6gArTA= X-SW-Source: 2018-04/txt/msg00031.txt.bz2 > On Apr 27, 2018, at 3:01 PM, Simon Marchi wrote: >=20 > ... > This seems to be a bogus error that was fixed in clang 3.9: >=20 > https://stackoverflow.com/questions/7411515/why-does-c-require-a-user-pro= vided-default-constructor-to-default-construct-a?utm_medium=3Dorganic&utm_s= ource=3Dgoogle_rich_qa&utm_campaign=3Dgoogle_rich_qa >=20 > You Apple LLVM 7.3.0 seems to map to upstream clang 3.8.0: >=20 > https://en.wikipedia.org/wiki/Xcode#Latest_versions >=20 > I indeed get the same error if I try building the file with clang 3.8 on = Linux: >=20 > $ clang++-3.8 -x c++ -std=3Dgnu++11 -g3 -O0 /home/emaisin/src/binu= tils-gdb/gdb/probe.c > /home/emaisin/src/binutils-gdb/gdb/probe.c:63:28: error: default initiali= zation of an object of > const type 'const any_static_probe_ops' without a user-provided defa= ult constructor > const any_static_probe_ops any_static_probe_ops; > ^ >=20 > If compatibility with clang 3.8 is really important to you, we could alwa= ys add an empty constructor to that class. Otherwise, if it's easy for you= to update your Xcode, I'd say try that first. I foolishly assumed that the Apple updater would update Apple stuff. And i= ndeed it has given me bugfix updates to Xcode Command Line in the past. Bu= t it doesn't do Xcode version updates.=20=20 You're right, I'm way out of date, and that was unintentional. I'm getting= the latest now. Will try with that and report. paul