[gfortran,patch] bootstrap broken

Feng Wang wf_cs@yahoo.com
Fri Sep 17 15:22:00 GMT 2004


 --- Hans-Peter Nilsson <hp@bitrange.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
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
$make

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
-I../../gcc-4.0-20040912/gcc/fortr
an -I../../gcc-4.0-20040912/gcc/../include
-I../../gcc-4.0-20040912/gcc/../libcp
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.

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

_________________________________________________________
Do You Yahoo!?
150ÍòÇúMP3·è¿ñËÑ£¬´øÄú´³ÈëÒôÀÖµîÌÃ
http://music.yisou.com/
ÃÀÅ®Ã÷ÐÇÓ¦Óо¡ÓУ¬ËѱéÃÀͼ¡¢ÑÞͼºÍ¿áͼ
http://image.yisou.com
1G¾ÍÊÇ1000Õ×£¬ÑÅ»¢µçÓÊ×ÔÖúÀ©ÈÝ£¡
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/



More information about the Fortran mailing list