On Thu, Jan 3, 2019 at 3:49 AM Iain Sandoe <idsan...@googlemail.com> wrote: > > > On 2 Jan 2019, at 13:26, Iain Sandoe <idsan...@googlemail.com> wrote: > > > > > >> On 2 Jan 2019, at 13:20, Rainer Orth <r...@cebitec.uni-bielefeld.de> wrote: > >> > >> Gerald Pfeifer <ger...@pfeifer.com> writes: > >> > >>> > <snip> > >>> > >>> I believe that in addition to FreeBSD this probably also fails on > >>> Solaris and Darwin. > >> > >> I cannot test Darwin right now, > > > > I have builds running on a number of versions, will take a look > > - is it missing a “macho_xx.c” implementation, anyway ? > > (on darwin17 / macOS 10.13) > > make check-target-libbacktrace > > fails for me at trunk r267505 with: > > /src-local/gcc-trunk/libbacktrace/elf.c:144:2: error: #error "Unknown > BACKTRACE_ELF_SIZE" > 144 | #error "Unknown BACKTRACE_ELF_SIZE" > | ^~~~~ > > So, it looks like there’s some configury-fixing/implementation work needed > for Darwin.
Someone needs to write a macho.c that roughly corresponds to the existing elf.c, pecoff.c, and xcoff.c. Ian