I need to build ld from sources on OSX 10.12.3 (16D32). I cloned the last version from git://sourceware.org/git/binutils-gdb.git and tried to build it:
./configure --prefix=/usr --disable-werror (there are a lot of warnings, so I disable them)
make
but I got
In file included from dwarf2read.c:72:
./common/gdb_unlinker.h:35:35: error: '__nonnull__' attribute
is invalid for the implicit this argument
unlinker (const char *filename) ATTRIBUTE_NONNULL (1)
Have anybody seen it and know how to fix it? I need only ld to check why it shows
ld: warning: can't parse dwarf compilation unit info in
on OSX, when Ubuntu works fine and objdump doesn't show any elf symbols.
Thanks for help.