FreeBSD rimwks 11.0-STABLE FreeBSD 11.0-STABLE #2 r310035M: Wed Dec 14 05:45:09 MSK 2016 root@rimwks:/usr/obj/usr/src/sys/RIMWKSx64 amd64 ... c++: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated c++ -O2 -msse2 -msse3 -mssse3 -msse4.1 -pipe -DRL_NO_COMPAT -Wno-unused-function -Wno-unused-variable -D_rl_echoing_p=readline_echoing_p -Wno-extended-offsetof -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing -DLIBICONV_PLUG -I. -I. -I./common -I./config -DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I./../include/opcode -I./../opcodes/.. -I./../zlib -I../bfd -I./../bfd -I./../include -I../libdecnumber -I./../libdecnumber -I./gnulib/import -Ibuild-gnulib/import -DTUI=1 -DLIBICONV_PLUG -I/usr/local/include -I/usr/local/include/python2.7 -I/usr/local/include/python2.7 -Wall -Wpointer-arith -Wno-unused -Wno-switch -Wno-char-subscripts -Wempty-body -Wno-sign-compare -Wno-write-strings -Wno-narrowing -Wformat-nonliteral -c -o inf-loop.o -MT inf-loop.o -MMD -MP -MF .deps/inf-loop.Tpo inf-loop.c c++: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated c++ -O2 -msse2 -msse3 -mssse3 -msse4.1 -pipe -DRL_NO_COMPAT -Wno-unused-function -Wno-unused-variable -D_rl_echoing_p=readline_echoing_p -Wno-extended-offsetof -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing -DLIBICONV_PLUG -I. -I. -I./common -I./config -DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I./../include/opcode -I./../opcodes/.. -I./../zlib -I../bfd -I./../bfd -I./../include -I../libdecnumber -I./../libdecnumber -I./gnulib/import -Ibuild-gnulib/import -DTUI=1 -DLIBICONV_PLUG -I/usr/local/include -I/usr/local/include/python2.7 -I/usr/local/include/python2.7 -Wall -Wpointer-arith -Wno-unused -Wno-switch -Wno-char-subscripts -Wempty-body -Wno-sign-compare -Wno-write-strings -Wno-narrowing -Wformat-nonliteral -c -o completer.o -MT completer.o -MMD -MP -MF .deps/completer.Tpo completer.c c++: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated c++ -O2 -msse2 -msse3 -mssse3 -msse4.1 -pipe -DRL_NO_COMPAT -Wno-unused-function -Wno-unused-variable -D_rl_echoing_p=readline_echoing_p -Wno-extended-offsetof -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing -DLIBICONV_PLUG -I. -I. -I./common -I./config -DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I./../include/opcode -I./../opcodes/.. -I./../zlib -I../bfd -I./../bfd -I./../include -I../libdecnumber -I./../libdecnumber -I./gnulib/import -Ibuild-gnulib/import -DTUI=1 -DLIBICONV_PLUG -I/usr/local/include -I/usr/local/include/python2.7 -I/usr/local/include/python2.7 -Wall -Wpointer-arith -Wno-unused -Wno-switch -Wno-char-subscripts -Wempty-body -Wno-sign-compare -Wno-write-strings -Wno-narrowing -Wformat-nonliteral -c -o gdbarch.o -MT gdbarch.o -MMD -MP -MF .deps/gdbarch.Tpo gdbarch.c c++: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated completer.c:1771:1: error: C++ requires a type specifier for all declarations _rl_completion_prefix_display_length=0; ^ completer.c:1772:1: error: C++ requires a type specifier for all declarations rl_sort_completion_matches=1; ^ 2 errors generated. gmake[4]: *** [Makefile:1141: completer.o] Error 1 gmake[4]: *** Waiting for unfinished jobs.... gmake[4]: Leaving directory '/tmp/ports/usr/ports/devel/gdb/work/gdb-7.12/gdb' gmake[3]: *** [Makefile:8173: all-gdb] Error 2 gmake[3]: Leaving directory '/tmp/ports/usr/ports/devel/gdb/work/gdb-7.12' gmake[2]: *** [Makefile:850: all] Error 2 gmake[2]: Leaving directory '/tmp/ports/usr/ports/devel/gdb/work/gdb-7.12' ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. make[1]: stopped in /usr/ports/devel/gdb *** Error code 1 Stop. make: stopped in /usr/ports/devel/gdb
I'm working on a solution. Are you using the BASE_READLINE option? as workaround, you can select the PORT_READLINE option.
Yes, BASE_READLINE was used. Set to PORT_READLINE fix problem.
A commit references this bug: Author: olivier Date: Thu Jan 12 21:40:07 UTC 2017 New revision: 431323 URL: https://svnweb.freebsd.org/changeset/ports/431323 Log: Add MIPS support and other fixes PR: 215938 - Main PR that merge all Submitted by: luca.pizzamiglio@gmail.com (maintainer) PR: 215783 - Add MIPS support Submitted by: jhb Sponsored by: DARPA / AFRL PR: 215868 - Fix build on powerpc architecture Reported by: Mark Millard PR: 212607 - Add a workaround to mitigate gdb hangs under some circumstances with multi-threaded applications (thanks to misc-freebsd-bugzilla@talk2dom.com) Reported by: tijl PR: 215578 - Fix build by removing option to use system readline Reported by: rozhuk.im@gmail.com Changes: head/devel/gdb/Makefile head/devel/gdb/distinfo head/devel/gdb/files/commit-387360daf9 head/devel/gdb/files/commit-b268007c68 head/devel/gdb/files/extrapatch-base-readline head/devel/gdb/files/extrapatch-kgdb head/devel/gdb/files/kgdb/mipsfbsd-kern.c head/devel/gdb/files/kgdb/ppcfbsd-kern.c head/devel/gdb/files/kgdb/sparc64fbsd-kern.c head/devel/gdb/files/patch-gdb-fbsd-nat.c
Thanks.