public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/94601] New: Build Latest GCC on MinGW-w64 failed. Conflict macro PLURAL_PARSE
@ 2020-04-15  4:06 euloanty at live dot com
  2020-04-15  4:19 ` [Bug preprocessor/94601] " euloanty at live dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: euloanty at live dot com @ 2020-04-15  4:06 UTC (permalink / raw)
  To: gcc-bugs

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...

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug preprocessor/94601] Build Latest GCC on MinGW-w64 failed. Conflict macro PLURAL_PARSE
  2020-04-15  4:06 [Bug bootstrap/94601] New: Build Latest GCC on MinGW-w64 failed. Conflict macro PLURAL_PARSE euloanty at live dot com
@ 2020-04-15  4:19 ` euloanty at live dot com
  2020-04-15  4:22 ` pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: euloanty at live dot com @ 2020-04-15  4:19 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94601

--- Comment #1 from fdlbxtqi <euloanty at live dot com> ---
Can you guys stop using macros and migrate to namespace?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug preprocessor/94601] Build Latest GCC on MinGW-w64 failed. Conflict macro PLURAL_PARSE
  2020-04-15  4:06 [Bug bootstrap/94601] New: Build Latest GCC on MinGW-w64 failed. Conflict macro PLURAL_PARSE euloanty at live dot com
  2020-04-15  4:19 ` [Bug preprocessor/94601] " euloanty at live dot com
@ 2020-04-15  4:22 ` pinskia at gcc dot gnu.org
  2020-04-15  4:24 ` [Bug bootstrap/94601] " pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2020-04-15  4:22 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94601

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to fdlbxtqi from comment #1)
> Can you guys stop using macros and migrate to namespace?

This is C code .....

Plus this code has not changed and is really pulled in from upstream (libintl).

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug bootstrap/94601] Build Latest GCC on MinGW-w64 failed. Conflict macro PLURAL_PARSE
  2020-04-15  4:06 [Bug bootstrap/94601] New: Build Latest GCC on MinGW-w64 failed. Conflict macro PLURAL_PARSE euloanty at live dot com
  2020-04-15  4:19 ` [Bug preprocessor/94601] " euloanty at live dot com
  2020-04-15  4:22 ` pinskia at gcc dot gnu.org
@ 2020-04-15  4:24 ` pinskia at gcc dot gnu.org
  2020-04-15  4:50 ` euloanty at live dot com
  2020-04-15  4:53 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2020-04-15  4:24 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94601

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 92008.

*** This bug has been marked as a duplicate of bug 92008 ***

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug bootstrap/94601] Build Latest GCC on MinGW-w64 failed. Conflict macro PLURAL_PARSE
  2020-04-15  4:06 [Bug bootstrap/94601] New: Build Latest GCC on MinGW-w64 failed. Conflict macro PLURAL_PARSE euloanty at live dot com
                   ` (2 preceding siblings ...)
  2020-04-15  4:24 ` [Bug bootstrap/94601] " pinskia at gcc dot gnu.org
@ 2020-04-15  4:50 ` euloanty at live dot com
  2020-04-15  4:53 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: euloanty at live dot com @ 2020-04-15  4:50 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94601

--- Comment #4 from fdlbxtqi <euloanty at live dot com> ---
Created attachment 48276
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48276&action=edit
Let me try whether this patch works.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug bootstrap/94601] Build Latest GCC on MinGW-w64 failed. Conflict macro PLURAL_PARSE
  2020-04-15  4:06 [Bug bootstrap/94601] New: Build Latest GCC on MinGW-w64 failed. Conflict macro PLURAL_PARSE euloanty at live dot com
                   ` (3 preceding siblings ...)
  2020-04-15  4:50 ` euloanty at live dot com
@ 2020-04-15  4:53 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2020-04-15  4:53 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94601

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to fdlbxtqi from comment #4)
> Created attachment 48276 [details]
> Let me try whether this patch works.

That is wrong.  See the duplicated bug.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-04-15  4:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-15  4:06 [Bug bootstrap/94601] New: Build Latest GCC on MinGW-w64 failed. Conflict macro PLURAL_PARSE euloanty at live dot com
2020-04-15  4:19 ` [Bug preprocessor/94601] " euloanty at live dot com
2020-04-15  4:22 ` pinskia at gcc dot gnu.org
2020-04-15  4:24 ` [Bug bootstrap/94601] " pinskia at gcc dot gnu.org
2020-04-15  4:50 ` euloanty at live dot com
2020-04-15  4:53 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).