Re: GDB 8.1 build error

Paul Koning <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>

> On Apr 27, 2018, at 2:44 PM, Paul Koning <[email protected]> wrote:
> 
> 
> 
>> On Apr 27, 2018, at 2:02 PM, Simon Marchi <[email protected]> wrote:
>> 
>> 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=mips-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_ops'
>>>     without a user-provided default constructor
>>> const any_static_probe_ops any_static_probe_ops;
>>> (same problem, different source file).
>>> 	paul
>> 
>> Hi Paul,
>> 
>> What is the compiler, which version, and can you share the full command line used to compile probe.o, for example?
>> 
>> 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 cleanly.

To follow up on that: if I force the use of real GCC/G++ (with CC and CXX definitions in the configure command), I get a successful build for the native case.  I'm trying a cross-build now.

	paul
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.