stable/10 build broken (ELF_MACHINE_OK undefined)?

Nathan Dorfman na at rtfm.net
Mon Jun 29 05:07:10 UTC 2015


Hello, has anyone been able to build stable/10 for mips lately? It stops here
for me:

===> usr.bin/gcore (all)
cc  -O -pipe -G0   -std=gnu99  -Wsystem-headers -Werror -Wno-pointer-sign -c /usr/src/usr.bin/gcore/elfcore.c -o elfcore.o
cc1: warnings being treated as errors
/usr/src/usr.bin/gcore/elfcore.c: In function 'elf_ident':
/usr/src/usr.bin/gcore/elfcore.c:149: warning: implicit declaration of function 'ELF_MACHINE_OK'
*** Error code 1

Adding -DNO_WERROR just postpones the same problem until linking:

===> usr.bin/gcore (all)
cc  -O -pipe -G0   -std=gnu99  -Wsystem-headers -Wno-pointer-sign -c /usr/src/usr.bin/gcore/elfcore.c -o elfcore.o
/usr/src/usr.bin/gcore/elfcore.c: In function 'elf_ident':
/usr/src/usr.bin/gcore/elfcore.c:149: warning: implicit declaration of function 'ELF_MACHINE_OK'
cc  -O -pipe -G0   -std=gnu99  -Wsystem-headers -Wno-pointer-sign -c /usr/src/usr.bin/gcore/gcore.c -o gcore.o
cc  -O -pipe -G0   -std=gnu99  -Wsystem-headers -Wno-pointer-sign  -o gcore elfcore.o gcore.o -lsbuf -lutil
elfcore.o: In function `elf_ident':
elfcore.c:(.text+0x15bc): undefined reference to `ELF_MACHINE_OK'
elfcore.c:(.text+0x15c0): undefined reference to `ELF_MACHINE_OK'
*** Error code 1

(Building with TARGET=mips TARGET_ARCH=mips64 on an amd64 host, running a fresh
build of the exact same tree.)

-nd.


More information about the freebsd-mips mailing list