This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: src/gdb/p-exp.y:144: parse error before numeric c onstant


On Sat, 07 Dec 2002 10:46:33 -0500, bemis <bemis@iol.unh.edu> said:

> I am getting this problem on alpha and i686.  I am not downloading a
> package or something?  This has been happening for ~5 days now.    on
> alpha and intel I get a similar error.


> rm p-exp.tmp
> mv p-exp.new ./p-exp.tab.c
> gcc -c -g -O2  -mieee  -I. -I/mnt/u2/bemis/dev/tools/source/src/gdb
> -I/mnt/u2/be
> mis/dev/tools/source/src/gdb/config
> -DLOCALEDIR="\"/mnt/u2/bemis/dev/tools/insta
> ll/alpha7/bootstrap-gcc_3.2/native/src/share/locale\"" -DHAVE_CONFIG_H
> -I/mnt/u2
> /bemis/dev/tools/source/src/gdb/../include/opcode
> -I/mnt/u2/bemis/dev/tools/sour
> ce/src/gdb/../readline/.. -I../bfd
> -I/mnt/u2/bemis/dev/tools/source/src/gdb/../b
> fd -DNO_MMALLOC  -I/mnt/u2/bemis/dev/tools/source/src/gdb/../include
> -I../intl -
> I/mnt/u2/bemis/dev/tools/source/src/gdb/../intl -D_BSD_SOURCE
> -D_XOPEN_SOURCE=50
> 0 -D_LARGEFILE64_SOURCE  -DMI_OUT=1 -DUI_OUT=1 -Wimplicit -Wreturn-type
> -Wcommen
> t -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized
> p-exp.tab.
> c
> /mnt/u2/bemis/dev/tools/source/src/gdb/p-exp.y:144: parse error before
> numeric c
> onstant
> /mnt/u2/bemis/dev/tools/source/src/gdb/p-exp.y:183:1: warning: "TRUE"
> redefined
> In file included from /mnt/u2/bemis/dev/tools/source/src/gdb/defs.h:69,
>                  from /mnt/u2/bemis/dev/tools/source/src/gdb/p-exp.y:48:

> ../bfd/bfd.h:93:1: warning: this is the location of the previous
> definition
> /mnt/u2/bemis/dev/tools/source/src/gdb/p-exp.y:184:1: warning: "FALSE"
> redefined
> ../bfd/bfd.h:92:1: warning: this is the location of the previous
> definition
> make[1]: *** [p-exp.tab.o] Error 1
> make[1]: *** Waiting for unfinished jobs....
> make[1]: Leaving directory
> `/mnt/u2/bemis/dev/tools/build/alpha7/bootstrap-gcc_3
> .2/native/src/gdb'
> make: *** [all-gdb] Error 2

It's fallout from a recent BFD change; apparently the version of
yacc/bison that you're using is giving you a compilation error,
whereas the rest of us are getting a silent error.  But it's an error
either way; I'll send along a patch in a few minutes.

David Carlton
carlton@math.stanford.edu


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]