https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81579
Bug ID: 81579 Summary: sanitizer_platform_limits_linux.cc:37:15: error: conflicting declaration ‘typedef __gid_t __kernel_gid_t’ Product: gcc Version: 5.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: mfe at live dot de CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxin at gcc dot gnu.org Target Milestone: --- the exact version of GCC: gcc-7.1.0 the system type: NetgearReadyNAS Duo (http://wiki.dietpc.org/index.php/DIET-PC_on_SPARC_ReadyNAS) the options given when GCC was configured/built: $ ../gcc-7.1.0/configure CC=/opt/gcc-4.6/bin/gcc CXX=/opt/gcc-4.6/bin/g++ --enable-languages=c,c++ --prefix=/opt/gcc-7.1 --with-cpu=v7 --with-mpc=/usr/local --with-mpfr=/usr/local --with-gmp=/usr/local --with-isl=/usr/local/ --disable-libstdcxx-pch --disable-linux-futex ## --------- ## ## Platform. ## ## --------- ## hostname = nas-02-90-38 uname -m = padre uname -r = 2.6.17.14ReadyNAS uname -s = Linux uname -v = #1 Wed Jun 20 20:08:20 PDT 2012 the complete command line that triggers the bug; /usr/local/bin/make the compiler output (error messages, warnings, etc.); [...] er/../libstdc++-v3/libsupc++ -std=gnu++11 -DSANITIZER_LIBBACKTRACE -DSANITIZER_CP_DEMANGLE -I ../../../../gcc-7.1.0/libsanitizer/../libbacktrace -I ../libbacktrace -I ../../../../gcc-7.1.0/libsanitizer/../include -include ../../../../gcc-7.1.0/libsanitizer/libbacktrace/backtrace-rename.h -g -O2 -D_GNU_SOURCE -MT sanitizer_platform_limits_linux.lo -MD -MP -MF .deps/sanitizer_platform_limits_linux.Tpo -c ../../../../gcc-7.1.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc -fPIC -DPIC -o .libs/sanitizer_platform_limits_linux.o ../../../../gcc-7.1.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc:37:15: error: conflicting declaration ‘typedef __gid_t __kernel_gid_t’ #define gid_t __kernel_gid_t ^ In file included from /usr/include/asm/posix_types.h:11:0, from /usr/include/linux/posix_types.h:46, from ../../../../gcc-7.1.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc:29: /usr/include/asm-sparc/posix_types.h:19:32: note: previous declaration as ‘typedef short unsigned int __kernel_gid_t’ typedef unsigned short __kernel_gid_t; ^~~~~~~~~~~~~~ ../../../../gcc-7.1.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc:34:16: error: conflicting declaration ‘typedef __mode_t __kernel_mode_t’ #define mode_t __kernel_mode_t ^ In file included from /usr/include/asm/posix_types.h:11:0, from /usr/include/linux/posix_types.h:46, from ../../../../gcc-7.1.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc:29: /usr/include/asm-sparc/posix_types.h:21:32: note: previous declaration as ‘typedef short unsigned int __kernel_mode_t’ typedef unsigned short __kernel_mode_t; ^~~~~~~~~~~~~~~ ../../../../gcc-7.1.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc:35:17: error: conflicting declaration ‘typedef __nlink_t __kernel_nlink_t’ #define nlink_t __kernel_nlink_t ^ In file included from /usr/include/asm/posix_types.h:11:0, from /usr/include/linux/posix_types.h:46, from ../../../../gcc-7.1.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc:29: /usr/include/asm-sparc/posix_types.h:23:32: note: previous declaration as ‘typedef short int __kernel_nlink_t’ typedef short __kernel_nlink_t; ^~~~~~~~~~~~~~~~ ../../../../gcc-7.1.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc:36:15: error: conflicting declaration ‘typedef __uid_t __kernel_uid_t’ #define uid_t __kernel_uid_t ^ In file included from /usr/include/asm/posix_types.h:11:0, from /usr/include/linux/posix_types.h:46, from ../../../../gcc-7.1.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc:29: /usr/include/asm-sparc/posix_types.h:18:32: note: previous declaration as ‘typedef short unsigned int __kernel_uid_t’ typedef unsigned short __kernel_uid_t; ^~~~~~~~~~~~~~ make[4]: *** [Makefile:523: sanitizer_platform_limits_linux.lo] Error 1 make[4]: Leaving directory '/c/media/gcc-7.1.0-compiled/sparc-unknown-linux-gnu/libsanitizer/sanitizer_common'