https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94601
Bug ID: 94601 Summary: Build Latest GCC on MinGW-w64 failed. Conflict macro PLURAL_PARSE Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: euloanty at live dot com Target Milestone: --- In file included from ../../gcc-git/intl/plural.y:35: ../../gcc-git/intl/plural-exp.h:102:23: error: conflicting types for 'libintl_gettextparse' 102 | # define PLURAL_PARSE libintl_gettextparse | ^~~~~~~~~~~~~~~~~~~~ ../../gcc-git/intl/plural.y:40:25: note: x86_64-w64-mingw32-gcc -c -D__USE_MINGW_ANSI_STDIO=1 -I/mingw64/include -march=x86-64 -mtune=generic -O2 -pipe -D__USE_MINGW_ACCESS -DHAVE_CONFIG_H -I. -I../../gcc-git/intl ../../gcc-git/intl/relocatex.c in expansion of macro 'no PLURAL_PARSEx86_64-w64-mingw32-gcc -c -D__USE_MINGW_ANSI_STDIO=1 -I/mingw64/include -march=x86-64 -mtune=generic -O2 -pipe -D__USE_MINGW_ACCESS - DHAVE_CONFIG ' 40 | # define __gettextparse PLURAL_PARSE | ^~~~~~~~~~~~ x86_64-w64-mingw32-gcc -c -D__USE_MINGW_ANSI_STDIO=1 -I/mingw64/include -march=x86-64 -mtune=generic -O2 -pipe -D__USE_MINGW_ACCESS -DHAVE_CONFIG _H -I. -I../../gcc-git/intl ../../gcc-git/intl/localename.c plural.c:199:5: note: in expansion of macro '__gettextparse' 199 | int x86_64-w64-mingw32-gcc -c -D__USE_MINGW_ANSI_STDIO=1 -I/mingw64/include -march=x86-64 -mtune=generic -O2 -pipe -D__USE_MINGW_ACCESS - DHAVE_CONFIG_H -I. -I../../gcc-git/intl ../../gcc-git/intl/log.c __gettextparse (void); | x86_64-w64-mingw32-gcc -c -D__USE_MINGW_ANSI_STDIO=1 -I/mingw64/include -march=x86-64 -mtune=generic -O2 -pipe -D__USE_MINGW_ACCESS - DHAVE_CONFIG_H -I. -I../../gcc-git/intl ../../gcc-git/intl/osdep.c^~~~~~~~~~~~~~ ../../gcc-git/intl/plural-exp.h:102:23: note: previous declaration of 'libintl_gettextparse' was here 102 | # define PLURAL_PARSE libintl_gettextparsex86_64-w64-mingw32-gcc -c -D__USE_MINGW_ANSI_STDIO=1 -I/mingw64/include -march=x86-64 -mtune=ge neric -O2 -pipe -D__USE_MINGW_ACCESS -DHAVE_CONFIG_H -I. -I../../gcc-git/intl ../../gcc-git/intl/intl-compat.c | ^~~~~~~~~~~~~~~~~~~~ ../../gcc-git/intl/plural-exp.h:114:12: note: in expansion of macro 'PLURAL_PARSE' 114 | extern int PLURAL_PARSE PARAMS ((void *arg)); | ^~~~~~~~~~~~ ../../gcc-git/intl/plural-exp.h:102:23: error: conflicting types for 'libintl_gettextparse' 102 | # define PLURAL_PARSE no libintl_gettextparse | ^~~~~~~~~~~~~~~~~~~~ ../../gcc-git/intl/plural.y:40:25: no note: in expansion of macro 'PLURAL_PARSE' 40 | # define __gettextparse PLURAL_PARSE | ^~~~~~~~~~~~ plural.c:67:25: note: in expansion of macro '__gettextparse' 67 | #define yyparse __gettextparse | ^~~~~~~~~~~~~~ plural.c:1220:1: note: in expansion of macro 'yyparse' 1220 | yyparse (void) | ^~~~~~~ ../../gcc-git/intl/plural-exp.h:102:23: note: previous declaration of 'libintl_gettextparse' was here 102 | # define PLURAL_PARSE libintl_gettextparseconfig.status: creating Makefile | ^~~~~~~~~~~~~~~~~~~~ ../../gcc-git/intl/plural-exp.h:114:12: note: in expansion of macro 'PLURAL_PARSE' 114 | extern int PLURAL_PARSE PARAMS ((void *arg)); | ^~~~~~~~~~~~ plural.c: In function 'libintl_gettextparse': plural.c:68:25: error: too few arguments to function '__gettextlex' 68 | #define yylex __gettextlex | ^~~~~~~~~~~~ checking for stpncpy... plural.c:1398:16: note: in expansion of macro 'checking for stpncpy... yylex' 1398 | yychar = yylex (&yylval); | ^~~~~ plural.c:68:25: note: declared here 68 | #define yylex __gettextlex | ^~~~~~~~~~~~ ../../gcc-git/intl/plural.y:69:12: note: in expansion of macro 'yylex' 69 | static int yylex PARAMS ((YYSTYPE *lval, const char **pexp)); | ^~~~~ ../../gcc-git/intl/plural.y:178:29: error: 'arg' undeclared (first use in this function) 178 | ((struct parse_args *) arg)->res = $1; | ^~~ ../../gcc-git/intl/plural.y:178:29: note: each undeclared identifier is reported only once for each function it appears in make[2]: *** [Makefile:139: plural.o] Error 1 make[2]: *** Waiting for unfinished jobs.... config.status: creating backtrace-supported.h no checking whether putchar_unlocked is declared... config.status: creating install-debuginfo-for-buildid.sh no no make[2]: Leaving directory '/home/unlvs/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32/intl' make[1]: *** [Makefile:5841: all-intl] Error 2 make[1]: *** Waiting for unfinished jobs.... checking for strcasecmp... checking for strcasecmp... config.status: creating config.h no config.status: executing libtool commands checking whether putc_unlocked is declared... yes yes checking for strchr... checking for strchr... no config.status: executing gstdint.h commands checking for working alloca.h... yes yes config.status: executing default commands checking for strdup... checking for strdup... no checking for alloca... yes checking for ANSI C header files... (cached) yes checking for nl_langinfo and CODESET... yes yes checking for strncasecmp... checking for strncasecmp... no checking whether NLS is requested... no checking for uchar... yes yes checking for ld used by GCC... checking for strndup... checking for strndup... D:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86 _64-w64-mingw32/bin/ld.exe checking if the linker (D:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe) is GNU ld... nono checking for strnlen... checking for strnlen... yes checking for shared library run path origin... yes yes done checking for iconv... (cached) no checking for strrchr... checking for strrchr... yes yes configure: updating cache ./config.cache configure: creating ./config.status checking for strstr... checking for strstr... yesyes checking for strtod... checking for strtod... yes yes checking for strtol... checking for strtol... yes yes checking for strtoul... checking for strtoul... yes yes checking for strtoll... checking for strtoll... yes yes checking for strtoull... checking for strtoull... config.status: creating Makefile config.status: creating config.h yesyes config.status: executing depdir commands checking for strverscmp... checking for strverscmp... mkdir -p -- .deps no no checking for tmpnam... checking for tmpnam... yes yes checking for vasprintf... checking for vasprintf... yes yes checking for vfprintf... checking for vfprintf... yes yes checking for vprintf... checking for vprintf... yes yes checking for vsnprintf... checking for vsnprintf... yes yes checking for vsprintf... checking for vsprintf... yesyes checking for waitpid... checking for waitpid... nono checking for setproctitle... checking for setproctitle... no checking whether alloca needs Cray hooks... no checking whether alloca needs Cray hooks... no checking stack direction for C alloca... no checking stack direction for C alloca... -1-1 checking for vfork.h... checking for vfork.h... no no checking for fork... checking for fork... no no checking for vfork... checking for vfork... no no checking for _doprnt... checking for _doprnt... no checking for sys_errlist... (cached) no checking for sys_errlist... (cached) yes yes checking for sys_nerr... checking for sys_nerr... (cached) (cached) yes yes checking for sys_siglist... checking for sys_siglist... nono checking for external symbol _system_configuration... checking for external symbol _system_configuration... nono checking for __fsetlocking... checking for __fsetlocking... nono checking for canonicalize_file_name... checking for canonicalize_file_name... no no checking for dup3... checking for dup3... no no checking for getrlimit... checking for getrlimit... nono checking for getrusage... checking for getrusage... no no checking for getsysinfo... checking for getsysinfo... no no checking for gettimeofday... (cached) yes checking for gettimeofday... (cached) yes checking for on_exit... checking for on_exit... no no checking for pipe2... checking for pipe2... no no checking for psignal... checking for psignal... nono checking for pstat_getdynamic... checking for pstat_getdynamic... no no checking for pstat_getstatic... checking for pstat_getstatic... no no checking for realpath... checking for realpath... no no checking for setrlimit... checking for setrlimit... no no checking for sbrk... checking for sbrk... nono checking for spawnve... checking for spawnve... yes yes checking for spawnvpe... checking for spawnvpe... yes yes checking for strerror... checking for strerror... yes yes checking for strsignal... checking for strsignal... no no checking for sysconf... checking for sysconf... nono checking for sysctl... checking for sysctl... nono checking for sysmp... checking for sysmp... no no checking for table... checking for table... no no checking for times... checking for times... nono checking for wait3... checking for wait3... nono checking for wait4... checking for wait4... no no checking whether basename is declared... checking whether basename is declared... nono checking whether ffs is declared... checking whether ffs is declared... no no checking whether asprintf is declared... checking whether asprintf is declared... yes yes checking whether vasprintf is declared... checking whether vasprintf is declared... yes yes checking whether snprintf is declared... checking whether snprintf is declared... yes yes checking whether vsnprintf is declared... checking whether vsnprintf is declared... yes yes checking whether calloc is declared... checking whether calloc is declared... yes yes checking whether getenv is declared... checking whether getenv is declared... yes yes checking whether getopt is declared... checking whether getopt is declared... yes yes checking whether malloc is declared... checking whether malloc is declared... yesyes checking whether realloc is declared... checking whether realloc is declared... yesyes checking whether sbrk is declared... checking whether sbrk is declared... no no checking whether strtol is declared... checking whether strtol is declared... yes yes checking whether strtoul is declared... checking whether strtoul is declared... yesyes checking whether strtoll is declared... checking whether strtoll is declared... yesyes checking whether strtoull is declared... checking whether strtoull is declared... yes yes checking whether strverscmp is declared... checking whether strverscmp is declared... nono checking whether strnlen is declared... checking whether strnlen is declared... yes yes checking whether canonicalize_file_name must be declared... checking whether canonicalize_file_name must be declared... yesyes checking for stdlib.h... (cached) yes checking for stdlib.h... (cached) yes checking for unistd.h... checking for unistd.h... (cached) (cached) yesyes checking for sys/param.h... checking for sys/param.h... (cached) (cached) yesyes checking for getpagesize... checking for getpagesize... (cached) (cached) yesyes checking for working mmap... checking for working mmap... no no checking for working strncmp... checking for working strncmp... yes yes configure: updating cache ./config.cache configure: updating cache ./config.cache configure: creating ./config.status configure: creating ./config.status config.status: creating Makefile config.status: creating Makefile config.status: creating testsuite/Makefile config.status: creating testsuite/Makefile config.status: creating config.h config.status: creating config.h config.status: executing default commands config.status: executing default commands make[1]: Leaving directory '/home/unlvs/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32' make: *** [Makefile:971: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting...