* gcc-g77 install problem [reposting for improved readability and additional notes]
@ 2003-04-26 20:18 Joseph Maxwell
0 siblings, 0 replies; 2+ messages in thread
From: Joseph Maxwell @ 2003-04-26 20:18 UTC (permalink / raw)
To: gcc-help
{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 --
^ permalink raw reply [flat|nested] 2+ messages in thread
* gcc-g77 install problem [reposting for improved readability and additional notes]
@ 2003-04-26 20:09 Joseph Maxwell
0 siblings, 0 replies; 2+ messages in thread
From: Joseph Maxwell @ 2003-04-26 20:09 UTC (permalink / raw)
To: gcc-help
{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 --
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-04-26 20:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-26 20:18 gcc-g77 install problem [reposting for improved readability and additional notes] Joseph Maxwell
-- strict thread matches above, loose matches on Subject: below --
2003-04-26 20:09 Joseph Maxwell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).