From: Dave Murphy <davem@devkitpro.org>
To: Simon Marchi <simon.marchi@polymtl.ca>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] fix compile error with clang
Date: Thu, 20 Dec 2018 21:39:00 -0000 [thread overview]
Message-ID: <CAAjerb+M9fgGdufaqaoKSpY+0ZudE8QPKtkCTfm2QyEjy51saw@mail.gmail.com> (raw)
In-Reply-To: <eecf58bf35f73a9607bb6a8051dee1a9@polymtl.ca>
Hi Simon,
The error I get is
../../binutils-gdb/gdb/unittests/observable-selftests.c:73:31: error:
default initialization of an object of const type 'const
gdb::observers::token' without a user-provided default constructor
const gdb::observers::token token1, token2, token3;
^
{}
clang version is
davem@devkit-builder:~$ /opt/osx/bin/x86_64-apple-darwin15-clang --version
clang version 3.8.1-24 (tags/RELEASE_381/final)
Target: x86_64-apple-darwin15
Thread model: posix
(targeting 10.9+ host)
build machine is debian stretch
davem@devkit-builder:~$ uname -a
Linux devkit-builder 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2
(2018-10-27) x86_64 GNU/Linux
Dave
On Thu, Dec 20, 2018 at 7:25 PM Simon Marchi <simon.marchi@polymtl.ca> wrote:
>
> 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 <davem@devkitpro.org>
> >
> > * 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
next prev parent reply other threads:[~2018-12-20 21:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-20 17:26 Dave Murphy
2018-12-20 19:25 ` Simon Marchi
2018-12-20 21:39 ` Dave Murphy [this message]
2018-12-21 17:00 ` Simon Marchi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAAjerb+M9fgGdufaqaoKSpY+0ZudE8QPKtkCTfm2QyEjy51saw@mail.gmail.com \
--to=davem@devkitpro.org \
--cc=gdb-patches@sourceware.org \
--cc=simon.marchi@polymtl.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox