This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
g77 install problem on an i386 platform running FreeBSD 4.2.x O/S
- From: Joseph Maxwell <jemaxwell at jaymax dot com>
- To: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Sat, 26 Apr 2003 11:34:42 -0700
- Subject: g77 install problem on an i386 platform running FreeBSD 4.2.x O/S
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.
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 --