From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 80954 invoked by alias); 20 Dec 2018 19:25:19 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 80819 invoked by uid 89); 20 Dec 2018 19:25:14 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1021, HTo:U*davem X-HELO: smtp.polymtl.ca Received: from smtp.polymtl.ca (HELO smtp.polymtl.ca) (132.207.4.11) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 20 Dec 2018 19:25:13 +0000 Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id wBKJP69j011726 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 20 Dec 2018 14:25:11 -0500 Received: by simark.ca (Postfix, from userid 112) id 93B1F1E7B1; Thu, 20 Dec 2018 14:25:06 -0500 (EST) Received: from simark.ca (localhost [127.0.0.1]) by simark.ca (Postfix) with ESMTP id 472FA1E093; Thu, 20 Dec 2018 14:25:04 -0500 (EST) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 20 Dec 2018 19:25:00 -0000 From: Simon Marchi To: Dave Murphy Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] fix compile error with clang In-Reply-To: References: Message-ID: X-Sender: simon.marchi@polymtl.ca User-Agent: Roundcube Webmail/1.3.6 X-IsSubscribed: yes X-SW-Source: 2018-12/txt/msg00238.txt.bz2 On 2018-12-20 12:25, Dave Murphy wrote: > Cross compiling for macOS using osxcross gives errors of the form > "error: default initialization of an object of ... without a > user-provided default constructor" > > Fixed by attached patch, tested compile with mingw-w64, osxcross and > linux native builds. > > 2018-12-20 Dave Murphy > > * gdb/dtrace-probe.c (dtrace_static_probe_ops): explicit zero > initialise. > * gdb/probe.c (any_static_probe_ops): ditto > * gdb/record-btrace.c (record_btrace_thread_observer_token): ditto > * gdb/stap-probe.c (stap_static_probe_ops): ditto > * gdb/tui/tui-hooks.c (tui_observers_token): ditto > * gdb/unittests/observable-selftests.c (token1, token2, token3): > ditto Hi Dave, Could you mention which exact compiler version you are using (output of --version), and paste one instance of the exact error message? I'm trying to see why I don't see this when building with clang natively on both macOS and Linux. Simon