help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bison 3.0.4 causes conflicting types for ...


From: blubee blubeeme
Subject: bison 3.0.4 causes conflicting types for ...
Date: Fri, 9 Mar 2018 07:16:43 +0800

Hello bison developers

I am trying to build the riscv-gnu-toolchain from github. I have bison
3.0.4 installed

After running configure then doing make I get this error below.

rm -f plural.h
Live child 0x8006e44b0 (plural.c) PID 12403
Reaping winning child 0x8006e44b0 PID 12403
Removing child 0x8006e44b0 PID 12403 from chain.
        Successfully remade target file 'plural.c'.
        Pruning file 'config.h'.
        Pruning file 'libintl.h'.
        Pruning file
'/usr/home/blubee/dev/riscv/_riscv-gnu-toolchain/riscv-binutils-gdb/intl/plural-exp.h'.
       Finished prerequisites of target file 'plural.o'.
      Must remake target 'plural.o'.
cc -c  -g -O2 -DHAVE_CONFIG_H  -I.
-I/usr/home/blubee/dev/riscv/_riscv-gnu-toolchain/riscv-binutils-gdb/intl
plural.c
Putting child 0x8006e44b0 (plural.o) PID 12404 on the chain.
Live child 0x8006e44b0 (plural.o) PID 12404
plural.c:184:5: error: conflicting types for 'libintl_gettextparse'
int __gettextparse (void);
    ^
/usr/home/blubee/dev/riscv/_riscv-gnu-toolchain/riscv-binutils-gdb/intl/plural.y:40:25:
note: expanded from macro '__gettextparse'# define __gettextparse
PLURAL_PARSE
                        ^
/usr/home/blubee/dev/riscv/_riscv-gnu-toolchain/riscv-binutils-gdb/intl/plural-exp.h:102:23:
note: expanded from macro 'PLURAL_PARSE'# define PLURAL_PARSE
libintl_gettextparse
                      ^
/usr/home/blubee/dev/riscv/_riscv-gnu-toolchain/riscv-binutils-gdb/intl/plural-exp.h:114:12:
note: previous declaration is here
extern int PLURAL_PARSE PARAMS ((void *arg));
           ^
/usr/home/blubee/dev/riscv/_riscv-gnu-toolchain/riscv-binutils-gdb/intl/plural-exp.h:102:23:
note: expanded from macro 'PLURAL_PARSE'# define PLURAL_PARSE
libintl_gettextparse
                      ^
plural.c:1129:1: error: conflicting types for 'libintl_gettextparse'
yyparse (void)
^
plural.c:63:25: note: expanded from macro 'yyparse'#define yyparse
    __gettextparse
                        ^
/usr/home/blubee/dev/riscv/_riscv-gnu-toolchain/riscv-binutils-gdb/intl/plural.y:40:25:
note: expanded from macro '__gettextparse'# define __gettextparse
PLURAL_PARSE
                        ^
/usr/home/blubee/dev/riscv/_riscv-gnu-toolchain/riscv-binutils-gdb/intl/plural-exp.h:102:23:
note: expanded from macro 'PLURAL_PARSE'# define PLURAL_PARSE
libintl_gettextparse
                      ^
/usr/home/blubee/dev/riscv/_riscv-gnu-toolchain/riscv-binutils-gdb/intl/plural-exp.h:114:12:
note: previous declaration is here
extern int PLURAL_PARSE PARAMS ((void *arg));
           ^
/usr/home/blubee/dev/riscv/_riscv-gnu-toolchain/riscv-binutils-gdb/intl/plural-exp.h:102:23:
note: expanded from macro 'PLURAL_PARSE'# define PLURAL_PARSE
libintl_gettextparse
                      ^
plural.c:1298:30: error: too few arguments to function call, expected 2, have 1
      yychar = yylex (&yylval);
               ~~~~~         ^
/usr/home/blubee/dev/riscv/_riscv-gnu-toolchain/riscv-binutils-gdb/intl/plural.y:69:1:
note: '__gettextlex' declared here
static int yylex PARAMS ((YYSTYPE *lval, const char **pexp));
^
/usr/home/blubee/dev/riscv/_riscv-gnu-toolchain/riscv-binutils-gdb/intl/plural.y:178:29:
error: use of undeclared identifier 'arg'
            ((struct parse_args *) arg)->res = (yyvsp[0].exp);



You can see the command that's run right before the error:

bison -y --name-prefix=__gettext --output plural.c
/usr/home/blubee/dev/riscv/riscv-gnu-toolchain/riscv-binutils-gdb/intl/plural.y
rm -f plural.h
cc -c  -g -O2 -DHAVE_CONFIG_H  -I.
-I/usr/home/blubee/dev/riscv/riscv-gnu-toolchain/riscv-binutils-gdb/intl
plural.c
plural.c:184:5: error: conflicting types for 'libintl_gettextparse'
int __gettextparse (void);


The source code was checked out from:
https://github.com/riscv/riscv-gnu-toolchain

I'd think this is an issue with bison since I've found some posts from in
the past saying previous versions of bison didn't show this behavior.

Is this something that's known about? Are there any fixes?
FreeBSD blubee 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r326056: Tue Nov 21
14:54:55 UTC 2017
address@hidden:/usr/obj/usr/src/amd64.amd64/sys/GENERIC
amd64


Best,
Owen


reply via email to

[Prev in Thread] Current Thread [Next in Thread]