https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100015
Bug ID: 100015 Summary: MSDOS DJGPP host build mallinfo was not declared Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: unlvsur at live dot com Target Milestone: --- In file included from ../../../gcc/gcc/ggc-common.c:25: ../../../gcc/gcc/ggc-common.c: In function 'void report_heap_memory_use()': ../../../gcc/gcc/ggc-common.c:1020:23: error: 'mallinfo' was not declared in this scope; did you mean 'mmap_info'? 1020 | #define MALLINFO_FN mallinfo | ^~~~~~~~ ../../../gcc/gcc/system.h:1262:26: note: in definition of macro 'SIZE_SCALE' 1262 | #define SIZE_SCALE(x) (((x) < 10 * ONE_K \ | ^ ../../../gcc/gcc/ggc-common.c:1024:14: note: in expansion of macro 'SIZE_AMOUNT' 1024 | SIZE_AMOUNT (MALLINFO_FN ().arena)); | ^~~~~~~~~~~ ../../../gcc/gcc/ggc-common.c:1024:27: note: in expansion of macro 'MALLINFO_FN' 1024 | SIZE_AMOUNT (MALLINFO_FN ().arena)); | ^~~~~~~~~~~ ../../../gcc/gcc/cp/mapper-client.cc:25:10: fatal error: sys/socket.h: No such file or directory 25 | #include <sys/socket.h> | ^~~~~~~~~~~~~~ compilation terminated. make[2]: *** [Makefile:1143: cp/mapper-client.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [Makefile:1142: ggc-common.o] Error 1 In file included from ../../../gcc/gcc/cp/error.c:29: ../../../gcc/gcc/cp/error.c: In function 'void dump_aggr_type(cxx_pretty_printer*, tree, int)': ../../../gcc/gcc/cp/error.c:799:27: warning: spurious leading punctuation sequence '<' in format [-Wformat-diag] 799 | pp_printf (pp, M_("<unnamed %s>"), variety); ../../../gcc/gcc/intl.h:40:26: note: in definition of macro 'gettext' 40 | # define gettext(msgid) (msgid) | ^~~~~ ../../../gcc/gcc/cp/error.c:52:56: note: in expansion of macro '_' 52 | #define M_(msgid) (pp_translate_identifiers (cxx_pp) ? _(msgid) : (msgid)) | ^ ../../../gcc/gcc/cp/error.c:799:24: note: in expansion of macro 'M_' 799 | pp_printf (pp, M_("<unnamed %s>"), variety); | ^~ ../../../gcc/gcc/cp/error.c:799:27: warning: spurious trailing punctuation sequence '>' in format [-Wformat-diag] 799 | pp_printf (pp, M_("<unnamed %s>"), variety); ../../../gcc/gcc/intl.h:40:26: note: in definition of macro 'gettext' 40 | # define gettext(msgid) (msgid) | ^~~~~ ../../../gcc/gcc/cp/error.c:52:56: note: in expansion of macro '_' 52 | #define M_(msgid) (pp_translate_identifiers (cxx_pp) ? _(msgid) : (msgid)) | ^ ../../../gcc/gcc/cp/error.c:799:24: note: in expansion of macro 'M_' 799 | pp_printf (pp, M_("<unnamed %s>"), variety); | ^~ make[1]: *** [Makefile:4453: all-gcc] Error 2 make: *** [Makefile:979: all] Error 2