Syntax error when building gfortran in gcc-4.0.3

Shin, John Y CONTRACTOR WRAIR-Wash DC John.Shin@AMEDD.ARMY.MIL
Wed Dec 20 21:43:00 GMT 2006


I'm trying to build gfortran from gcc 4.0.3 on an Octane 2 SGI machine
running IRIX 6.5.25f with binutils 2.17.  During the initial build, gcc
and g++ compiled successfully but not gfortran, so I tried to rebuild
gfortran specifically by configuring and bootstrapping with the
following commands under a different build directory:

1. ../gcc-4.0.3/configure --with-gnu-as --with-as=/usr/local/bin/as
--with-gnu-ld --with-ld=/usr/local/bin/ld --with-gmp=/usr/local/lib
--with-mpfr=/usr/local/lib --enable-languages=f95

2. make bootstrap

The compilation stops when it runs into the following syntax error in
selected_int_kind.f90:

---------------------------------------
Make[3]: Entering directory
'/usr/people/jshin/GNU/gcc-4.0.3_gfortran_build/mips-sgi-irix6.5-libgfor
tran'
/bin/sh ./libtool --mode=compile
/usr/people/jshin/GNU/gcc-4.0.3_gfortran_build/gcc/gfortran
-B/usr/people/jshin/GNU/gcc-4.0.3_gfortran_build/gcc/
-B/usr/local/mips-sgi-irix6.5/bin/ -B/usr/local/mips-sgi-irix6.5/lib/
-isystem /usr/local/mips-sgi-irix6.5/sys-include -I . -Wall
-fno-repack-arrays -fno-underscoring -c -o selected_int_kind.lo 'test -f
' intrinsics/selected_int_kind.f90' || echo
'../../../gcc-4.0.3/libgfortran/''intrinsics/selected_int_kind.f90
/usr/people/jshin/GNU/gcc-4.0.3_gfortran_build/gcc/gfortran
-B/usr/people/jshin/GNU/gcc-4.0.3_gfortran_build/gcc/
-B/usr/local/mips-sgi-irix6.5/bin/ -B/usr/local/mips-sgi-irix6.5/lib/
-isystem /usr/local/mips-sgi-irix6.5/include -isystem
/usr/local/mips-sgi-irix6.5/sys-include -I . -Wall -fno-repack-arrays
-fno-underscoring -c
../../../gcc-4.0.3/libgfortran/intrinsics/selected_int_kind.f90 -DPIC -o
.libs/seleced_int_kind.o
 In file
../../../gcc-4.0.3/libgfortran/intrinsics/selected_int_kind.f90:35

   do i = 1, c
     1
Error: Syntax error in array constructor at (1)
 In file
../../../gcc-4.0.3/libgfortran/intrinsics/selected_int_kind.f90:36

     if (r <= int_infos (i) % range) then
                          1
Error: Syntax error in IF-expression at (1)
 In file
../../../gcc-4.0.3/libgfortran/intrinsics/selected_int_kind.f90:37

      selected_int_kind = int_infos (i) % kind
     1
Error: Unclassifiable statement at (1)
 In file
../../../gcc-4.0.3/libgfortran/intrinsics/selected_int_kind.f90:39

     end if
       1
Error: Expecting END_FUNCTION statement at (1)
 In file
../../../gcc-4.0.3/libgfortran/intrinsics/selected_int_kind.f90:40

  end do
    1
Error: Expecting END FUNCTION statement at (1)
make[3]: *** [selected)int)kind.lo] Error 1
make[3]: Leaving directory
'/usr/people/jshin/GNU/gcc-4.0.3_gfortran_build/mips-sgi-irix6.5/libgfor
tran'
make[2]: *** [all] Error 2
make[2]: Leaving directory
'/usr/people/jshin/GNU/gcc-4.0.3_gfortran_build/mips-sgi-irix6.5/libgfor
tran'
make[1]: *** [all-target-libgfortran] Error 2
make[1]: Leaving directory
'/usr/people/jshin/GNU/gcc-4.0.3_gfortran_build'
make: *** [bootstrap] Error 2
---------------------------------------

What am I doing wrong?

Much thanks,

John Shin

Walter Reed Army Institute of Research
Division of Molecular Pharmacology
Department of Biochemistry
503 Robert Grant Ave.
Silver Spring, MD 20910
Tel: 301-319-9054



More information about the Gcc-help mailing list