This is the mail archive of the mailing list for the GCC 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: [gfortran,patch] bootstrap broken

 --- Hans-Peter Nilsson <> 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
is ~/gcc40/install.

$gcc -v
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)
$cd ~/install
$../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
an -I../../gcc-4.0-20040912/gcc/../include
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[1]: *** [fortran/arith.o] Error 1
make[1]: 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.

Feng Wang
Creative Compiler Research Group.
National University of Defense Technology, P.R. China.

Do You Yahoo!?

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