Date: Sun, 28 Sep 1997 23:37:07 -0400 (EDT) From: Chuck Robey <chuckr@glue.umd.edu> To: Carlo Dapor <dapor@nessie.inf.ethz.ch> Cc: freebsd-current@FreeBSD.ORG Subject: Re: Suggestions on some make rules as far as the -o option is concerned Message-ID: <Pine.BSF.3.96.970928233555.4042F-100000@Journey2.mat.net> In-Reply-To: <199709261645.SAA06025@nessie.ethz.ch>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 26 Sep 1997, Carlo Dapor wrote: > Hello, everybody > > My situation is this. > I have a Pentium 90 MHz machine, freshly installed with 2.2.2. > I unpacked src-2.2.0400xEmpty.gz successfully. I applied the > patches up until src-2.2.0447 inclusively. > Furthermore, I ran a 'make install' in /usr/src/share/mk. > > In attempt to make world the success was always broken when some > file had to be build by bison. > The command line looked like > bison -d /some/directory/where/the/dot-y-files-lies/file.y -o foo.c Excuse me, why are you using bison, instead of the native yacc that's in FreeBSD? I don't think anyone is going to make changes to support this. > > Bison doesn't like the option after the argument given to the -d > option. In fact, bison built foo.tab.[ch], ignoring the rest. > The build procedure then tried to build foo.o ===>> end of the build > process. So I modified all the rules where .y.c is applied. > Fortunately there are only 3 occurences. > > The next run (making the world) outlived the first attempt by a factor > of 6 or 7, but ended when a .info file had to be produced. > The command line looked very similar to the one mentioned above: > makeinfo -d /some/directory/file.texi [ some more options ] -o foo.info > > Here makeinfo broke hopelessly !! So I modified share/mk/bsd.info.mk. > So far, I have fixed some build issues. > IMHO both bison and makeinfo do not behave the way they are designed. > I am aware that the patches I include in this mail should not be > necessary. > > But then, didn't anybody build the world recently ? Do I have to assume > I am the only one ? Everybody else is building current (3.0) all the time ? > > Who knows, maybe these patches are not the only ones to be applied > to successfully 'make world'. > > And yes, another thing. I am a subscriber of both Release and Snapshots CDs. > One thing I miss is the mentioning which source patch number the release > corresponds to actually. > Just for making this clear: FreeBSD 2.2-RELEASE is equivalent to the > sources up and until src-2.2.0209, 2.2.1 up to src-2.2.0216, 2.2.2 up to > src-2.2.0286. I'd like to know that, before I have to find it out myself > and learning from it when it is rather late. > Why the hell do I ask for this thing ? > The reason is I usually install the sources from the CD. And to keep up with > the rest of You guys, I apply the necessary patches every day. > But I need to know where to start from each release. So far I had to operate > with trial and error (not fun at all). > > So, enough talking, here are the patches: > > > --- contrib/gcc/Makefile.in.orig Thu Sep 25 19:54:12 1997 > +++ contrib/gcc/Makefile.in Fri Sep 26 10:11:57 1997 > @@ -1063 +1063 @@ > - cd $(srcdir); $(BISON) $(BISONFLAGS) -d c-parse.y -o c-parse.c > + cd $(srcdir); $(BISON) -o c-parse.c $(BISONFLAGS) -d c-parse.y > @@ -1125 +1125 @@ > - cd $(srcdir); $(BISON) $(BISONFLAGS) objc-parse.y -o objc-parse.c > + cd $(srcdir); $(BISON) -o objc-parse.c $(BISONFLAGS) objc-parse.y > @@ -1561 +1561 @@ > - cd $(srcdir); $(BISON) $(BISONFLAGS) -d bi-parser.y -o bi-parser.c > + cd $(srcdir); $(BISON) -o bi-parser.c $(BISONFLAGS) -d bi-parser.y > --- gnu/usr.bin/cc/cc1plus/Makefile.orig Thu Sep 25 19:59:10 1997 > +++ gnu/usr.bin/cc/cc1plus/Makefile Fri Sep 26 09:55:45 1997 > @@ -21 +21 @@ > - ${BISON} -d ${GCCDIR}/cp/parse.y -o parse.c > + ${BISON} -o parse.c -d ${GCCDIR}/cp/parse.y > --- gnu/usr.bin/cc/cc_tools/Makefile.orig Thu Sep 25 19:59:15 1997 > +++ gnu/usr.bin/cc/cc_tools/Makefile Fri Sep 26 09:30:23 1997 > @@ -30 +30 @@ > - ${BISON} ${BISONFLAGS} -d ${.ALLSRC} -o ${.TARGET} > + ${BISON} ${BISONFLAGS} -o ${.TARGET} -d ${.ALLSRC} > @@ -89 +89 @@ > - ${BISON} -d c-parse.y -o c-parse.c > + ${BISON} -o c-parse.c -d c-parse.y > @@ -101 +101 @@ > - ${BISON} -d objc-parse.y -o objc-parse.c > + ${BISON} -o objc-parse.c -d objc-parse.y > --- gnu/usr.bin/cc/cpp/Makefile.orig Thu Sep 25 19:59:15 1997 > +++ gnu/usr.bin/cc/cpp/Makefile Fri Sep 26 09:54:40 1997 > @@ -13 +13 @@ > - ${BISON} -d ${GCCDIR}/cexp.y -o cexp.c > + ${BISON} -o cexp.c -d ${GCCDIR}/cexp.y > --- share/mk/bsd.info.mk.orig Thu Sep 25 20:03:17 1997 > +++ share/mk/bsd.info.mk Fri Sep 26 17:55:53 1997 > @@ -92,2 +92,2 @@ > - ${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} -I ${SRCDIR} ${.IMPSRC} \ > - -o ${.TARGET}.new > + ${MAKEINFO} -o ${.TARGET}.new ${MAKEINFOFLAGS} \ > + -I ${.CURDIR} -I ${SRCDIR} ${.IMPSRC} > @@ -97,2 +97,2 @@ > - ${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} -I ${SRCDIR} ${.IMPSRC} \ > - -o ${.TARGET}.new > + ${MAKEINFO} -o ${.TARGET}.new ${MAKEINFOFLAGS} \ > + -I ${.CURDIR} -I ${SRCDIR} ${.IMPSRC} > > > -- > Carlo Dapor > > ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@eng.umd.edu | communications topic, C programming, and Unix. 213 Lakeside Drive Apt T-1 | Greenbelt, MD 20770 | I run Journey2 and picnic, both FreeBSD (301) 220-2114 | version 3.0 current -- and great FUN! ----------------------------+-----------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.970928233555.4042F-100000>