This is the mail archive of the gcc-bugs@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]

DTIME/ETIME support under G77


Sir/Ma'am:

	I have g77 v0.5.24 (I know, I Know, but its what came w/ my system)
running under Caldera Open-Linux 2.2, kernel 2.2.5. I had been having
link problems which I recently resolved. Now when I run the little
benchmark code I was trying to compile, I get all 0's (zero's) back from
DTIME. The code is mixed language, w/ C main & utilities, & F77
utilities, which I have used mostly on SGI's for benchmarking. I tried
to use it under Windows NT 4.0, DEC F77 & got the same problem, i.e.
null output from DTIME/ETIME. I enclose the makefile & output from "G77
-v" to identify my compiler & illustrate how everything is compiled &
linked. Is there a known problem w/ DTIME/ETIME in this version of G77 ?
if so, has it been fixed & if so, in what later version of the compiler?
If not, can you estimate when it might be fixed ? Thanks in advance.



	Bill Mahaffey
g77 version egcs-2.91.60 19981201 (egcs-1.1.1 release) (from FSF-g77 version 0.5.24-19980804)
Driving: g77 -v -c -xf77-version /dev/null -xnone
Reading specs from /usr/lib/gcc-lib/i386-linux/egcs-2.91.60/specs
gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release)
 /usr/lib/gcc-lib/i386-linux/egcs-2.91.60/cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=91 -D__ELF__ -D__unix__ -D__i386__ -D__i386__ -D__linux__ -D__unix -D__i386 -D__linux -Asystem(posix) -D_LANGUAGE_FORTRAN -traditional -Asystem(unix) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ /dev/null /dev/null
GNU CPP version egcs-2.91.60 19981201 (egcs-1.1.1 release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/lib/gcc-lib/i386-linux/egcs-2.91.60/include
 /usr/include
End of search list.
 /usr/lib/gcc-lib/i386-linux/egcs-2.91.60/f771 -fnull-version -quiet -dumpbase g77-version.f -version -fversion -o /tmp/ccLtB4zu.s /dev/null
GNU F77 version egcs-2.91.60 19981201 (egcs-1.1.1 release) (i386-linux) compiled by GNU C version egcs-2.91.60 19981201 (egcs-1.1.1 release).
GNU Fortran Front End version 0.5.24-19980804
 /usr/i386-linux/bin/as -V -Qy -o /tmp/ccCtCwCQ.o /tmp/ccLtB4zu.s
GNU assembler version 2.9.1 (i386-linux), using BFD version 2.9.1.0.21
 /usr/i386-linux/bin/ld -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o /tmp/ccl7nJsd /tmp/ccCtCwCQ.o /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/gcc-lib/i386-linux/egcs-2.91.60/crtbegin.o -L/usr/lib/gcc-lib/i386-linux/egcs-2.91.60 -L/usr/i386-linux/lib -lg2c -lm -lgcc -lc -lgcc /usr/lib/gcc-lib/i386-linux/egcs-2.91.60/crtend.o /usr/lib/crtn.o
/tmp/ccCtCwCQ.o: In function `MAIN__':
/tmp/ccCtCwCQ.o(.text+0x4): undefined reference to `g77__fvers__'
/tmp/ccCtCwCQ.o(.text+0x9): undefined reference to `g77__ivers__'
/tmp/ccCtCwCQ.o(.text+0xe): undefined reference to `g77__uvers__'

SHELL = /bin/csh -f
NAME = Vector_Exe
EXE = ~/bin/$(NAME)
INDIGO = /indigo/usr/people/wam/Cnx/benchmark/flex
#  VPATH = $(INDIGO)/Vector

vpath %.c $(INDIGO)/Vector
vpath %.f $(INDIGO)/Vector

CSRC = Main.c Work.c dtime.c
CSRC = Main.c Work.c
COBJS = $(CSRC:.c=.o)
CFLAGS = -O2 -DUNDER_SCORE_SYS

FSRC = junk.f
FOBJS = $(FSRC:.f=.o)
FFLAGS = -O2 -extend_source

OBJS = $(COBJS) $(FOBJS)

all: Dtime
	@cd objs; make -f ../Makefile $(EXE)

Dtime:
	cc -c $(CFLAGS) dtime.c
	@mv dtime.o objs

$(EXE): $(OBJS)
	cc -o $@ $(OBJS) -lg2c -lm
	@echo $(EXE) up to date.

.f.o:
	f77 -c $(FFLAGS) $^
##	@mv $*.o objs

.c.o:
	cc -c $(CFLAGS) $^
##	@mv $*.o objs


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