This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Make aborts while building Fortran runtime
- To: egcs-bugs at cygnus dot com
- Subject: Make aborts while building Fortran runtime
- From: Kamil Iskra <kamil at dwd dot interkom dot pl>
- Date: Sun, 21 Sep 1997 11:57:13 +0200 (MET DST)
- Reply-To: Kamil Iskra <iskra at student dot uci dot agh dot edu dot pl>
Building egcs-970917 breaks while making the Fortran runtime under
m68k-amigaos (a target not currently in EGCS sources). Here's the
relevant part of the make log:
make[3]: Leaving directory `/ade-build/egcs-970917/gcc/f/runtime/libU77'
touch stamp-libu77
rm -f stamp-lib
# **** Look at the line below ****
ar rc ../../libf2c.a stamp-libf77 stamp-libi77 stamp-libu77
rm -fr libE77
mkdir libE77
for name in abort derf derfc ef1asc ef1cmc erf erfc exit getarg getenv iargc s
ignal system flush ftell fseek access besj0 besj1 besjn besy0 besy1 besyn chdi
r chmod ctime date dbesj0 dbesj1 dbesjn dbesy0 dbesy1 dbesyn dtime etime fdate
fgetc fget flush1 fnum fputc fput fstat gerror getcwd getgid getlog getpid ge
tuid gmtime hostnm idate ierrno irand isatty itime kill link lnblnk lstat ltim
e mclock perror rand rename secnds second sleep srand stat symlnk sclock time
ttynam umask unlink vxtidt vxttim alarm; \
do \
echo ${name}; \
/ade-build/egcs-970917/gcc/xgcc -B/ade-build/egcs-970917/gcc/ -c -I. -I/ade-
source/my/egcs-970917/gcc/f/runtime -I../../include -DSTDC_HEADERS=1 -D_POSIX_
SOURCE=1 -DRETSIGTYPE=void -DMISSING_FILE_ELEMS=1 -DIEEE_drem=1 -DNO_EOF_CHAR_
CHECK=1 -DSkip_f2c_Undefs=1 -DPad_UDread=1 -DWANT_LEAD_0=1 -O2 -fomit-frame-p
ointer -g0 \
-DL${name} /ade-source/my/egcs-970917/gcc/f/runtime/f2cext.c -o libE77/L${
name}.o; \
if [ $? -eq 0 ] ; then true; else exit 1; fi; \
done
# [snip - not relevant]
alarm
ar rc ../../libf2c.a libE77/*
rm -fr libE77
if true; then ranlib ../../libf2c.a; \
else true; fi
ranlib: ../../libf2c.a: File format not recognized
make[2]: *** [stamp-lib] Error 1
Please look at the fifth line of the log above, the "ar" invocation.
It attempts to put stamp files into the linker library, which is
obviously wrong, and causes problems later.
This bug was introduced by the following patch, which, as far as I can
tell, is completely wrong.
diff -Nrc3p egcs-970910/gcc/f/runtime/Makefile.in egcs-970917/gcc/f/runtime/Makefile.in
*** egcs-970910/gcc/f/runtime/Makefile.in Thu Sep 4 23:16:30 1997
--- egcs-970917/gcc/f/runtime/Makefile.in Sun Sep 14 13:04:20 1997
*************** all: ../../include/f2c.h $(lib)
*** 174,180 ****
$(lib): stamp-lib ; @true
stamp-lib: stamp-libf77 stamp-libi77 stamp-libu77
rm -f stamp-lib
! $(AR) $(AR_FLAGS) $(lib) $(FOBJ) $(IOBJ) $(UOBJ)
rm -fr libE77
mkdir libE77
for name in $(F2CEXT); \
--- 174,180 ----
$(lib): stamp-lib ; @true
stamp-lib: stamp-libf77 stamp-libi77 stamp-libu77
rm -f stamp-lib
! $(AR) $(AR_FLAGS) $(lib) $?
rm -fr libE77
mkdir libE77
for name in $(F2CEXT); \
/ Kamil Iskra - AMIGA 1200, 68030 50MHz, HDD 1.6 GB, 18 MB RAM \
| iskra@student.uci.agh.edu.pl kiskra@ernie.icslab.agh.edu.pl |
| http://student.uci.agh.edu.pl/~iskra |
\ PGP public key available via Finger or WWW /