bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/21057] New: GDB build failure with flex 2.6.3


From: pefoley2+sourceware at pefoley dot com
Subject: [Bug binutils/21057] New: GDB build failure with flex 2.6.3
Date: Tue, 17 Jan 2017 06:38:50 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=21057

            Bug ID: 21057
           Summary: GDB build failure with flex 2.6.3
           Product: binutils
           Version: 2.29 (HEAD)
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: pefoley2+sourceware at pefoley dot com
  Target Milestone: ---

Created attachment 9756
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9756&action=edit
Patch for bug

Building gdb at commit f964e51d90 with flex 2.6.3 and bison 3.0.4 fails with
the below error.
I've attached a patch that allows the compile to succeed, although I'm unclear
whether the compatibility code it removes is still necessary.

g++ -std=gnu++11 -g -O2   -I. -I../../gdb -I../../gdb/common -I../../gdb/config
-DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H
-I../../gdb/../include/opcode -I../../gdb/../opcodes/..
-I../../gdb/../readline/.. -I../../gdb/../zlib -I../bfd -I../../gdb/../bfd
-I../../gdb/../include -I../libdecnumber -I../../gdb/../libdecnumber 
-I../../gdb/gnulib/import -Ibuild-gnulib/import   -DTUI=1 
-I/usr/include/python2.7 -I/usr/include/python2.7 -Wall -Wpointer-arith
-Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts
-Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable
-Wno-sign-compare -Wno-write-strings -Wno-narrowing -Wformat-nonliteral -Werror
`echo " -Wall -Wpointer-arith -Wno-unused -Wunused-value -Wunused-function
-Wno-switch -Wno-char-subscripts -Wempty-body -Wunused-but-set-parameter
-Wunused-but-set-variable -Wno-sign-compare -Wno-write-strings -Wno-narrowing
-Wformat-nonliteral " | sed "s/ -Wold-style-definition /
-Wno-old-style-definition /g"` \
        -c -o ada-exp.o -MT ada-exp.o -MMD -MP -MF .deps/ada-exp.Tpo `if test
-f ada-exp.c; then echo ada-exp.c; else echo ../../gdb/ada-exp.c; fi`
In file included from ../../gdb/ada-exp.y:731:0:
ada-lex.c:16:0: error: "yy_create_buffer" redefined [-Werror]

 ^
../../gdb/ada-exp.y:717:0: note: this is the location of the previous
definition
 #define yy_create_buffer ada_yy_create_buffer
 ^
In file included from ../../gdb/ada-exp.y:731:0:
ada-lex.c:18:0: error: "yy_delete_buffer" redefined [-Werror]

 ^
../../gdb/ada-exp.y:718:0: note: this is the location of the previous
definition
 #define yy_delete_buffer ada_yy_delete_buffer
 ^
In file included from ../../gdb/ada-exp.y:731:0:
ada-lex.c:26:0: error: "yy_init_buffer" redefined [-Werror]

 ^
../../gdb/ada-exp.y:719:0: note: this is the location of the previous
definition
 #define yy_init_buffer ada_yy_init_buffer
 ^
In file included from ../../gdb/ada-exp.y:731:0:
ada-lex.c:30:0: error: "yy_load_buffer_state" redefined [-Werror]

 ^
../../gdb/ada-exp.y:720:0: note: this is the location of the previous
definition
 #define yy_load_buffer_state ada_yy_load_buffer_state
 ^
In file included from ../../gdb/ada-exp.y:731:0:
ada-lex.c:32:0: error: "yy_switch_to_buffer" redefined [-Werror]

 ^
../../gdb/ada-exp.y:721:0: note: this is the location of the previous
definition
 #define yy_switch_to_buffer ada_yy_switch_to_buffer
 ^
In file included from ../../gdb/ada-exp.y:731:0:
ada-lex.c:40:0: error: "yylex" redefined [-Werror]

 ^
In file included from ../../gdb/ada-exp.y:56:0:
../../gdb/yy-remap.h:41:0: note: this is the location of the previous
definition
 #define yylex  GDB_YY_REMAP (yylex)
 ^
In file included from ../../gdb/ada-exp.y:731:0:
ada-lex.c:42:0: error: "yyrestart" redefined [-Werror]

 ^
../../gdb/ada-exp.y:722:0: note: this is the location of the previous
definition
 #define yyrestart ada_yyrestart
 ^
In file included from ../../gdb/ada-exp.y:731:0:
ada-lex.c:74:0: error: "yywrap" redefined [-Werror]

 ^
../../gdb/ada-exp.y:724:0: note: this is the location of the previous
definition
 #define yywrap ada_yywrap
 ^
In file included from ../../gdb/ada-exp.y:731:0:
ada-lex.c:82:0: error: "yytext" redefined [-Werror]

 ^
../../gdb/ada-exp.y:723:0: note: this is the location of the previous
definition
 #define yytext ada_yytext
 ^
In file included from ../../gdb/ada-exp.y:56:0:
../../gdb/ada-exp.y:55:29: error: ‘int ada_yylex()’ used but never defined
[-Werror]
 #define GDB_YY_REMAP_PREFIX ada_
                             ^
../../gdb/yy-remap.h:35:39: note: in definition of macro ‘GDB_YY_REMAP_2’
 #define GDB_YY_REMAP_2(PREFIX, YYSYM) PREFIX ## YYSYM
                                       ^
../../gdb/yy-remap.h:37:29: note: in expansion of macro ‘GDB_YY_REMAP_1’
 #define GDB_YY_REMAP(YYSYM) GDB_YY_REMAP_1 (GDB_YY_REMAP_PREFIX, YYSYM)
                             ^
../../gdb/yy-remap.h:37:45: note: in expansion of macro ‘GDB_YY_REMAP_PREFIX’
 #define GDB_YY_REMAP(YYSYM) GDB_YY_REMAP_1 (GDB_YY_REMAP_PREFIX, YYSYM)
                                             ^
../../gdb/yy-remap.h:41:16: note: in expansion of macro ‘GDB_YY_REMAP’
 #define yylex  GDB_YY_REMAP (yylex)
                ^
../../gdb/ada-exp.y:78:12: note: in expansion of macro ‘yylex’
 static int yylex (void);
            ^
In file included from ../../gdb/ada-exp.y:731:0:
ada-lex.c:40:19: error: ‘int yylex()’ defined but not used
[-Werror=unused-function]
../../gdb/ada-lex.l:60:28: note: in expansion of macro ‘yylex’
 #define YY_DECL static int yylex ( void )
                            ^
ada-lex.c:1123:1: note: in expansion of macro ‘YY_DECL’
  */
 ^
cc1plus: all warnings being treated as errors
make[2]: *** [Makefile:2683: ada-exp.o] Error 1
make[2]: Leaving directory '/home/peter/binutils-gdb/work/gdb'
make[1]: *** [Makefile:10456: all-gdb] Error 2
make[1]: Leaving directory '/home/peter/binutils-gdb/work'
make: *** [Makefile:851: all] Error 2

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

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