bug-bison
[Top][All Lists]
Advanced

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

Re: bison-2.4 breaks gcc-4.3.2 build


From: Sergei Steshenko
Subject: Re: bison-2.4 breaks gcc-4.3.2 build
Date: Mon, 3 Nov 2008 08:51:44 -0800 (PST)



--- On Mon, 11/3/08, Joel E. Denny <address@hidden> wrote:

> From: Joel E. Denny <address@hidden>
> Subject: Re: bison-2.4 breaks gcc-4.3.2 build
> To: "Sergei Steshenko" <address@hidden>
> Cc: address@hidden
> Date: Monday, November 3, 2008, 6:08 AM
> On Mon, 3 Nov 2008, Sergei Steshenko wrote:
> 
> > I've been routinely building various gcc version
> with bison-2.3 with no 
> > problems.
> 
> Thanks for doing that.  It would be helpful if you would do
> the same for 
> Bison test releases, such as 2.3a and 2.3b, before formal
> releases come 
> out.
> 
> > bison-2.4 breaks the build, the error messages are:
> > 
> > "
> > /home/sergei/AFSWD/build/gcc-4.3.2/./prev-gcc/xgcc
> -B/home/sergei/AFSWD/build/gcc-4.3.2/./prev-gcc/
> -B/home/sergei/AFSWD/install/gcc-4.3.2/i686-pc-linux-gnu/bin/
> -c   -g -O2 -fomit-frame-pointer -DIN_GCC   -W -Wall
> -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
> -Wold-style-definition -Wmissing-format-attribute -pedantic
> -Wno-long-long -Wno-variadic-macros                         
>         -Wno-overlength-strings  -Wno-error  -DHAVE_CONFIG_H
> -I. -Itreelang -I/home/sergei/AFSWD/build/gcc-4.3.2.src/gcc
> -I/home/sergei/AFSWD/build/gcc-4.3.2.src/gcc/treelang
> -I/home/sergei/AFSWD/build/gcc-4.3.2.src/gcc/../include
> -I/home/sergei/AFSWD/build/gcc-4.3.2.src/gcc/../libcpp/include
> -I/home/sergei/AFSWD/install/gmp-4.2.2/include
> -I/home/sergei/AFSWD/install/mpfr-2.3.2/include
> -I/home/sergei/AFSWD/build/gcc-4.3.2.src/gcc/../libdecnumber
> -I/home/sergei/AFSWD/build/gcc-4.3.2.src/gcc/../libdecnumber/bid
> -I../libdecnumber
> >  -I/home/sergei/AFSWD/install/autoconf-2.63/include
> -I/home/sergei/AFSWD/install/autogen-5.8.7/include
> -I/home/sergei/AFSWD/install/bash-3.0/include
> -I/home/sergei/AFSWD/install/bison-2.4/include
> -I/home/sergei/AFSWD/install/dejagnu-1.4.4/include
> -I/home/sergei/AFSWD/install/expect-5.44.1/include
> -I/home/sergei/AFSWD/install/flex-2.5.35/include
> -I/home/sergei/AFSWD/install/gmp-4.2.2/include
> -I/home/sergei/AFSWD/install/gperf-3.0.3/include
> -I/home/sergei/AFSWD/install/guile-1.8.5/include
> -I/home/sergei/AFSWD/install/libtool-1.5.26/include
> -I/home/sergei/AFSWD/install/m4-1.4.12/include
> -I/home/sergei/AFSWD/install/make-3.80/include
> -I/home/sergei/AFSWD/install/mpfr-2.3.2/include
> -I/home/sergei/AFSWD/install/ncurses-5.7/include
> -I/home/sergei/AFSWD/install/readline-5.1/include
> -I/home/sergei/AFSWD/install/tcl-8.4.19/include
> -I/home/sergei/AFSWD/install/texinfo-4.13/include
> -I/home/sergei/AFSWD/install/tk-8.4.19/include  
> treelang/parse.c -o treelang/parse.o
> >
> /home/sergei/AFSWD/build/gcc-4.3.2.src/gcc/treelang/parse.y:
> In function ‘yyparse’:
> >
> /home/sergei/AFSWD/build/gcc-4.3.2.src/gcc/treelang/parse.y:689:
> error: expected ‘;’ before ‘}’ token
> >
> /home/sergei/AFSWD/build/gcc-4.3.2.src/gcc/treelang/parse.y:690:
> error: expected ‘;’ before ‘}’ token
> > make[3]: *** [treelang/parse.o] Error 1
> > make[3]: Leaving directory
> `/home/sergei/AFSWD/build/gcc-4.3.2/gcc'
> > make[2]: *** [all-stage2-gcc] Error 2
> > make[2]: Leaving directory
> `/home/sergei/AFSWD/build/gcc-4.3.2'
> > make[1]: *** [stage2-bubble] Error 2
> > make[1]: Leaving directory
> `/home/sergei/AFSWD/build/gcc-4.3.2'
> > make: *** [all] Error 2
> > "
> > 
> > - looks like 'bison' does not put the final
> ';'.
> 
> I haven't seen this happen.  From your report, I
> can't tell where the 
> semicolon is missing.  Please show us that part of the
> code.  A small test 
> grammar would be nice as well.

I am not writing 'bison' grammars, I'm just building existing stuff from
sources.

The problematic file is attached.

The offending piece of it:

    686 expressions_with_commas_opt:
    687 /* Nil.  */ {
    688 $$ = 0
    689 }
    690 |expressions_with_commas { $$ = $1 }
    691 ;

- I think there should ';' at the end of line number 688. To the same 
extent there should be ';' after "$$ = $1" on line number 690.

I can send you by tool - using it you can build everything yourself in
a directory of your choosing, not being root, using a command line like 
this:

"
( export PKG_CONFIG_PATH=/usr/lib/pkgconfig; 
/home/sergei/AppsFromScratch/20071221/bin/build.pl -make_like -check_with_ldd 
-targets_to_build bash:pkg-config > build.prerequisites.log 2>&1; 
PATH=/home/sergei/AFSWD/install/pkg-config-0.23/bin:$PATH; export PATH; 
/home/sergei/AppsFromScratch/20071221/bin/build.pl -make_like -check_with_ldd 
-sh_exec /home/sergei/AFSWD/install/bash-3.2/bin/bash -targets_to_build gcc4 > 
rebuild.gcc4.log 2>&1 )
"
- the sources will be downloaded automatically from the net.

Maybe I'll try the test releases - if I find them and if they use the
standard

./configure
make
make check
make install

sequence.

Thanks,
  Sergei.


      

Attachment: parse.y
Description: Binary data


reply via email to

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