This is the mail archive of the gcc-help@gcc.gnu.org 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]

gcc-g77 install problem [reposting for improved readability and additional notes]


{Apology: Prior reposting may have failed due to present of mime
formatted inclusion, duplicated post may appear, I am in digest mode so
wouldn't see post immediately}

Hello,

I am running FreeBSD O/S 4.2x on an i386 architecture and attempting to
install the gcc v3.2.3 package in order to use the g77 Fortran compiler.

Steps:

      Downloaded, untarred etc.
      sh ./configure --with-f2c --with-g77
      make


                --
                --
                --

                 if [ -z "" ]; then  true;  else  rootpre=`pwd`/;
     export rootpre;  srcrootpre=`cd .; pwd`/; export
               srcrootpre;  lib=`echo ${rootpre} | sed -e
     's,^.*/\([^/][^/]*\)/$,\1,'`;
               compiler="/usr/local/gcc-3.2.3/gcc/xgcc
     -B/usr/local/gcc-3.2.3/gcc/
               -B/usr/local/i386-unknown-freebsd4.2/bin/
     -B/usr/local/i386-unknown-freebsd4.2/lib/ -isystem
               /usr/local/i386-unknown-freebsd4.2/include";  for i
     in `${compiler} --print-multi-lib 2>/dev/null`; do
               dir=`echo $i | sed -e 's/;.*$//'`;  if [ "${dir}" =
     "." ]; then  true;  else  if [ -d ../${dir}/${lib} ]; then
               flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/
     -/g'`;  if (cd ../${dir}/${lib}; make   CFLAGS="-O2 -g -O2
               ${flags}"  prefix="/usr/local"
     exec_prefix="/usr/local"  GCJFLAGS="@GCJFLAGS@ ${flags}"
               CXXFLAGS="-g -O2 ${flags}"  LIBCFLAGS="-O2 -g -O2
     ${flags}"  LIBCXXFLAGS="-g -O2
               -fno-implicit-templates ${flags}"  LDFLAGS="
     ${flags}"  DESTDIR=""  all); then  true;  else  exit 1;
               fi;  else true;  fi;  fi;  done;  fi
                 "Makefile", line 3110: Need an operator
                 "Makefile", line 3515: Need an operator
                 make: fatal errors encountered -- cannot continue
                 *** Error code 1

                 Stop in /usr/local/gcc-3.2.3.


....................................................
Previous default compilation without the f2c & the g77 may have gone
well, didn't recall problem although it could have been present.
However, subsequent attempts had the error condition. Relative to the
fatal Makefile error messages, it should be noted that the Makefile
generated by ./configure had only 2130 lines but the error positions are
given as lines 3110 & 3515 .

# wc /usr/local/gcc-3.2.3/Makefile
    2130    8110   65469 /usr/local/gcc-3.2.3/Makefile

Last few lines of Makefile:
 # tail /usr/local/gcc-3.2.3/Makefile

      newlib.tar.bz2: $(DIST_SUPPORT) $(NEWLIB_SUPPORT_DIRS) newlib

       $(MAKE) -f Makefile.in taz TOOL=newlib \
        MD5PROG="$(MD5PROG)" \
        SUPPORT_FILES="$(NEWLIB_SUPPORT_DIRS)" \
        DEVO_SUPPORT="$(DEVO_SUPPORT) COPYING.NEWLIB" newlib

      .NOEXPORT:
      MAKEOVERRIDES=

      # end of Makefile.in



Did a 'make clean'; 'make distclean'; and ultimately a 'rm -Rf
gcc-3.2.3';
Also did a make with a  'sh ./configure --with-f2c --with-g77
--with-f77=F77'
In all cases a similar 'Error code' and 'Stop in /usr/local/gcc-3.2.3.'
resulted

Could someone point out the error and suggest corrective steps

Thanks

--  Joe  --



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