This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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: Who knows m4?


On Sun, May 29, 2005 at 10:59:05AM +0100, Paul Brook wrote:
> > > BTW, what's the magic incantation to regenerate the
> > > generated files?
> >
> > I have a horrible hack for this:
> >
> > I make a second source tree with
> >
> > ( cd ../gcc-4.1 ; tar cf - . ) | tar xvf -
> >
> > then do "configure --enable-maintainer-mode" in the libgfortran
> > subdirectory.  The error messages from the configure can be ignored.
> >
> > I then make the m4 changes there, do a "make generated/*.c" and copy
> > over the generated files and the m4 files to the original source tree.
> 
> You shouldn't need to do this any more. Just configuring your normal build 
> with --enable-maintainer-mode should be sufficient.
> 
> If this doesn't work, please reopen PR15160.
> 

Well, it doesn't work for me.  I have a log of the build
if you want to look at it.

cd obj
../gcc41/configure --prefix=$HOME/work/41 --disable-libmudflap \
 --program-suffix=41 --enable-languages=c,f95 --enable-maintainer-mode
gmake bootstrap 

(hours later)

/bin/sh ./libtool --mode=compile /home/kargl/gcc/obj41/./gcc/xgcc -B/home/kargl/gcc/obj41/./gcc/ -B/home/kargl/work/41/i386-unknown-freebsd6.0/bin/ -B/home/kargl/work/41/i386-unknown-freebsd6.0/lib/ -isystem /home/kargl/work/41/i386-unknown-freebsd6.0/include -isystem /home/kargl/work/41/i386-unknown-freebsd6.0/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc41/libgfortran -I.  -iquote../../../gcc41/libgfortran/io  -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -O2 -g -O2 -c -o all_l4.lo `test -f 'generated/all_l4.c' || echo '../../../gcc41/libgfortran/'`generated/all_l4.c
/home/kargl/gcc/obj41/./gcc/xgcc -B/home/kargl/gcc/obj41/./gcc/ -B/home/kargl/work/41/i386-unknown-freebsd6.0/bin/ -B/home/kargl/work/41/i386-unknown-freebsd6.0/lib/ -isystem /home/kargl/work/41/i386-unknown-freebsd6.0/include -isystem /home/kargl/work/41/i386-unknown-freebsd6.0/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc41/libgfortran -I. -iquote../../../gcc41/libgfortran/io -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -O2 -g -O2 -c ../../../gcc41/libgfortran/generated/all_l4.c  -fPIC -DPIC -o .libs/all_l4.o
../../../gcc41/libgfortran/generated/all_l4.c:37: error: expected ')' before '*' token
../../../gcc41/libgfortran/generated/all_l4.c:38: error: '_' undeclared here (not in a function)
../../../gcc41/libgfortran/generated/all_l4.c:38: warning: type defaults to 'int' in declaration of '_'
../../../gcc41/libgfortran/generated/all_l4.c:41: error: expected ')' before '*' token
gmake[3]: *** [all_l4.lo] Error 1
gmake[3]: Leaving directory `/home/kargl/gcc/obj41/i386-unknown-freebsd6.0/libgfortran'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/home/kargl/gcc/obj41/i386-unknown-freebsd6.0/libgfortran'
gmake[1]: *** [all-target-libgfortran] Error 2
gmake[1]: Leaving directory `/home/kargl/gcc/obj41'
gmake: *** [bootstrap] Error 2

So, if someone who knows what they're doing wants to apply my 
cexp.m4 patch and test it.  I won't object if you commit the
change.

-- 
Steve


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