I'm trying to rebuild Wine from a CVS pull of a few seconds ago (Sat Jul 20 13:58:37 UTC 2002), and I am getting the following error:
make[2]: Entering directory `/usr/src/wine/tools/widl' gcc -c -I. -I. -I../../include -I../../include -I../../tools/wpp -g -O2 -Wall -mpreferred-stack-boundary=2 -D__WINE__ -D_REENTRANT -I/usr/X11R6/include -o header.o header.c In file included from header.c:36: ../../tools/wpp/y.tab.h:6: parse error before `wrc_sll_t' ../../tools/wpp/y.tab.h:6: warning: no semicolon at end of struct or union ../../tools/wpp/y.tab.h:7: warning: type defaults to `int' in declaration of `ull' ../../tools/wpp/y.tab.h:7: warning: data definition has no type or storage class ../../tools/wpp/y.tab.h:10: parse error before `cval' ../../tools/wpp/y.tab.h:10: warning: type defaults to `int' in declaration of `cval' ../../tools/wpp/y.tab.h:10: warning: data definition has no type or storage class ../../tools/wpp/y.tab.h:11: parse error before `*' ../../tools/wpp/y.tab.h:11: warning: type defaults to `int' in declaration of `marg' ../../tools/wpp/y.tab.h:11: warning: data definition has no type or storage class ../../tools/wpp/y.tab.h:12: parse error before `*' ../../tools/wpp/y.tab.h:12: warning: type defaults to `int' in declaration of `mtext' ../../tools/wpp/y.tab.h:12: warning: data definition has no type or storage class ../../tools/wpp/y.tab.h:13: parse error before `}' ../../tools/wpp/y.tab.h:13: warning: type defaults to `int' in declaration of `YYSTYPE' ../../tools/wpp/y.tab.h:13: warning: data definition has no type or storage class ../../tools/wpp/y.tab.h:59: parse error before `pplval' ../../tools/wpp/y.tab.h:59: warning: type defaults to `int' in declaration of `pplval' ../../tools/wpp/y.tab.h:59: warning: data definition has no type or storage class header.c: In function `is_object': header.c:180: `tOBJECT' undeclared (first use in this function) header.c:180: (Each undeclared identifier is reported only once header.c:180: for each function it appears in.) header.c: In function `is_local': header.c:189: `tLOCAL' undeclared (first use in this function) header.c: In function `is_callas': header.c:198: `tCALLAS' undeclared (first use in this function) make[2]: *** [header.o] Error 1 make[2]: Leaving directory `/usr/src/wine/tools/widl' make[1]: *** [widl] Error 2 make[1]: Leaving directory `/usr/src/wine/tools' make: *** [tools] Error 2
I've done a make clean to no avail.
"David" == David D Hagood wowbagger@sktc.net writes:
David> I'm trying to rebuild Wine from a CVS pull of a few seconds ago David> (Sat Jul 20 13:58:37 UTC 2002), and I am getting the following David> error: I updated at 13:51 UTC and compiled fine. David> I've done a make clean to no avail.
I had made a "make distclean", as I did a online update of glibc in between on my Suse 8.0 system.
Bye
On Fri, 19 Jul 2002, Boris Reisig wrote:
Wine stopped compiling a fews days ago or maybe a week. I download the CVS every few days and I noticed that it cant compile anymore.
On Sat, 20 Jul 2002, David D. Hagood wrote:
I'm trying to rebuild Wine from a CVS pull of a few seconds ago (Sat Jul 20 13:58:37 UTC 2002),
It compiles fine for me :)
BTW, I do rolling cvs builds and regression tests every time cvs is altered. The results are available at: http://www.astro.gla.ac.uk/users/paulm/WRT/wrt.php
I am getting the following error:
make[2]: Entering directory `/usr/src/wine/tools/widl' gcc [...] -I. [...] -I../../tools/wpp [...] header.c In file included from header.c:36: ../../tools/wpp/y.tab.h:6: parse error before `wrc_sll_t'
[similar errors]
header.c: In function `is_object':
[further knock-on effects]
The problem seems to be caused (in the first case) by using the wrong y.tab.h file. I did: cd tools/widl rm y.tab.h ln -s ../../tools/wpp/y.tab.h touch header.c && make and was able to reproduce your problem.
The header file tools/widl/y.tab.h is generated by either yacc or bison (whatever you've got installed) as part of the normal build process.
If tools/widl/y.tab.h exists, then either your compiler is broken (as it's using the wrong y.tab.h) or your copy of yacc/bison is producing broken code that closely resembles tools/wpp/y.tab.h. Occam's razor says the former is more likely :)
If tools/widl/y.tab.h doesn't exist, then there's something wrong with your yacc/bison or the build script as the necessary file wasn't produced.
So, do you have a tools/widl/y.tab.h file? Do you get any other warning or error messages just before header.c fails to compile?
Oh, one last thing, you might want to do a quick sanity check on your cvs, for example: cvs status|grep Status|grep -v Up-to-date from wine's base directory.
Cheers,
Paul.
---- Paul Millar
Paul Millar wrote:
If tools/widl/y.tab.h doesn't exist, then there's something wrong with your yacc/bison or the build script as the necessary file wasn't produced.
I've tried this with a fresh clean pull, and I still get the error. I don't a tools/widl/y.tab.h, so it isn't being created. So, there seems to be a problem in the build scripts as generated by configure.
If I manually force y.tab.h to be build (cd tools/widl; make y.tab.h) then all is well, so it looks like it may be a problem in the makefile - perhaps the makefile finding the wrong file, deciding that no action need be taken, and blewie!
On Sat, 20 Jul 2002, David D. Hagood wrote:
I've tried this with a fresh clean pull, and I still get the error. I don't a tools/widl/y.tab.h, so it isn't being created. So, there seems to be a problem in the build scripts as generated by configure.
If I manually force y.tab.h to be build (cd tools/widl; make y.tab.h) then all is well, so it looks like it may be a problem in the makefile - perhaps the makefile finding the wrong file, deciding that no action need be taken, and blewie!
Ah! Of course. Did you do "make depend" after the ./configure?
Paul.
---- Paul Millar
David D. Hagood wrote:
Paul Millar wrote:
If tools/widl/y.tab.h doesn't exist, then there's something wrong with your yacc/bison or the build script as the necessary file wasn't produced.
I've tried this with a fresh clean pull, and I still get the error. I don't a tools/widl/y.tab.h, so it isn't being created. So, there seems to be a problem in the build scripts as generated by configure.
If I manually force y.tab.h to be build (cd tools/widl; make y.tab.h) then all is well, so it looks like it may be a problem in the makefile
- perhaps the makefile finding the wrong file, deciding that no action
need be taken, and blewie!
I do "cvs update -PAd" when I do an update. I'm thinking you might be using an different set of parameters or maybe none?
Tony Lambregts