This is the mail archive of the
mailing list for the GCC project.
Re: [gfortran,patch] bootstrap broken
- From: Feng Wang <wf_cs at yahoo dot com>
- To: Hans-Peter Nilsson <hp at bitrange dot com>, Tobias "Schl¨šter" <tobias dot schlueter at physik dot uni-muenchen dot de>
- Cc: Daniel Jacobowitz <drow at false dot org>, Feng Wang <wf_cs at yahoo dot com>, fortran <fortran at gcc dot gnu dot org>, patch <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 17 Sep 2004 23:22:19 +0800 (CST)
- Subject: Re: [gfortran,patch] bootstrap broken
--- Hans-Peter Nilsson <email@example.com> wrote：
> On Thu, 16 Sep 2004, Tobias Schlüter wrote:
> > Hans-Peter Nilsson wrote:
> > > Right: there is no such thing as "bootstrapping for
> > > cross-compilers".
> > Well, what I meant was a build process that goes something like this:
> > [describing as improvement an extra step of
> > building and/or bootstrapping and installing source for cross
> > compiler also as host compiler]
> No, that's not how it's done, and not what I'd like to see as a
> requirement, particularly not as an argument out of a documented
> requirement. Better to fix things that breaks while they're
> still fixable. Please bear with us cross-compiler users, who
> actually *do* cross-compile. ;-)
> I'll try and build gfortran cross using gcc-2.95 and see what
> breaks, then send patches. Ok?
I have to say that I *did not* do cross-compile and the fortran did be
compilered by system gcc. This is what I did:
Gcc source codes directory is ~/gcc40/gcc-4.0-20040912. The compiling directory
Reading specs from /usr/lib/gcc-lib/ia64-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.2 2.96-112.7.2)
$../gcc40/configure --prefix=/home/wf/local --enable-languages=c,f95
Then the make have errors:
gcc -c -DUSE_LIBUNWIND_EXCEPTIONS -g -O2 -DIN_GCC -W -Wall -Wwrite-
strings -Wstrict-prototypes -Wmissing-prototypes -fno-common -DHAVE_CONFIG_H
-I. -Ifortran -I../../gcc-4.0-20040912/gcc
p/include ../../gcc-4.0-20040912/gcc/fortran/arith.c -o fortran/arith.o
In file included from ../../gcc-4.0-20040912/gcc/fortran/arith.c:30:
../../gcc-4.0-20040912/gcc/fortran/gfortran.h:471: array size missing in `line'
make: *** [fortran/arith.o] Error 1
make: Leaving directory `/home/wf/gcc40/install/gcc'
make: *** [all-gcc] Error 2
Please note the compiler is gcc, not *xgcc*. I think it is the system gcc.
If it should be xgcc from the same tree, there must be something wrong in
config or makefile.
p.s. Indeed the libgfortran is compilerd by xgcc.
Creative Compiler Research Group.
National University of Defense Technology, P.R. China.
Do You Yahoo!?