I'm trying to install gdb (gdb-8.1-1) on MacOS 10.11.6 and it fails when trying to compile probe.c:
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;
^
Failing command line:
g++ -x c++ -std=gnu++11 -g -O2 -I. -I. -I./common -I./config -DLOCALEDIR="\"/sw/share/locale\"" -DHAVE_CONFIG_H -I./../include/opcode -I./../opcodes/.. -I./../readline/.. -I./../zlib -I../bfd -I./../bfd -I./../include -I../libdecnumber -I./../libdecnumber -I./gnulib/import -Ibuild-gnulib/import -DTUI=1 -I/sw/include -I/sw/include/guile/2.0 -I/sw/include -D_THREAD_SAFE -I/sw/include/python2.7 -I/sw/include/python2.7 -Wall -Wpointer-arith -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wempty-body -Wno-sign-compare -Wno-narrowing -Wno-mismatched-tags -Wformat-nonliteral -c -o probe.o -MT probe.o -MMD -MP -MF ./.deps/probe.Tpo probe.c
Environment:
Package manager version: 0.43.0
Distribution version: selfupdate-git Wed Mar 28 11:48:52 2018, 10.11, x86_64
Trees: local/main stable/main local/injected
Xcode.app: 8.2.1
Xcode command-line tools: 8.2.0.0.1.1480973914
Max. Fink build jobs: 1
I get the same failure with Xcode 7.3.1 on 10.11. So it's not tied to a specific Xcode release, but it could require a minimum Xcode. The initial commit was tested by @remkos on Xcode 9.2/10.13.
https://github.com/fink/fink-distributions/pull/56
Pushed a fix to git.