https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82590
Bug ID: 82590 Summary: auto-host.h error: declaration does not declare anything Product: gcc Version: 7.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: bastl at eclipso dot de Target Milestone: --- Compiling GCC-7.2.0 with: gcc (GCC) 6.3.0 libtool (GNU libtool) 2.4.6 GNU Make 4.2.1 GNU ld (GNU Binutils) 2.29 GNU Awk 4.1.4 perl 5, version 26, subversion 0 (v5.26.0) bison (GNU Bison) 3.0.4 ldd (GNU libc) 2.26 GNU bash, version 4.4.12(2)-release on and for: i686-pc-linux-gnu breaks with this error (./gcc): checking for strings.h... yes checking for inttypes.h... In file included from /usr/include/stdlib.h:707:0, from /mnt/usb6/prog/7.91_gcc-7/gcc-7.2.0/./gcc/system.h:258, from /mnt/usb6/prog/7.91_gcc-7/gcc-7.2.0/./gcc/genhooks.c:21: /usr/include/bits/stdlib-bsearch.h: In function 'void* bsearch(const void*, const void*, size_t, size_t, __compar_fn_t)': /usr/include/bits/stdlib-bsearch.h:32:65: warning: cast from type 'const char*' to type 'void*' casts away qualifiers [-Wcast-qual] __p = (void *) (((const char *) __base) + (__idx * __size)); ^ /usr/include/bits/stdlib-bsearch.h:39:18: warning: cast from type 'const void*' to type 'void*' casts away qualifiers [-Wcast-qual] return (void *) __p; ^~~ In file included from /usr/include/bits/fcntl.h:61:0, from /usr/include/fcntl.h:35, from /mnt/usb6/prog/7.91_gcc-7/gcc-7.2.0/./gcc/system.h:349, from /mnt/usb6/prog/7.91_gcc-7/gcc-7.2.0/./gcc/genhooks.c:21: /usr/include/bits/fcntl-linux.h: At global scope: /usr/include/bits/fcntl-linux.h:330:27: warning: ISO C++ forbids zero-size array 'f_handle' [-Wpedantic] unsigned char f_handle[0]; ^ In file included from ./bconfig.h:3:0, from /mnt/usb6/prog/7.91_gcc-7/gcc-7.2.0/./gcc/genhooks.c:20: ./auto-host.h:2357:16: error: declaration does not declare anything [-fpermissive] #define rlim_t long ^ /usr/include/bits/resource.h:133:20: note: in expansion of macro 'rlim_t' typedef __rlim64_t rlim_t;