rwn@utacfd.UUCP (Ralph Noack) (12/13/88)
I am having problems with GNU make-3.05 running on on a Sun 3/SunOS4.0 (using either the Sun cc or gcc-1.31 to compile make) and on an Alliant (without gcc). (NOTE: to compile with other than gcc required changing names like max and vector to something else) The problem is that xmalloc is returning a pointer to a section of memory already in use. Specifically it is overwriting a section of static struct file *files[FILE_BUCKETS] defined in file.c I have a makefile which includes several other files containing lists and dependencies(a subset of the makefile which still causes the problems is included below). A traceback after the area of memory has been overwritten follows: (dbxtool) where savestring, line 960 in "pd/gnu/make-3.05/make.c" parse_file_seq, line 1082 in "pd/gnu/make-3.05/read.c" read_makefile, line 439 in "pd/gnu/make-3.05/read.c" read_makefile, line 322 in "pd/gnu/make-3.05/read.c" read_all_makefiles, line 146 in "pd/gnu/make-3.05/read.c" main, line 401 in "pd/gnu/make-3.05/make.c" The make command, when not debugging, terminates early with: gmake: target file `dbg/ellipoint.o' has commands specified twice. Stop. This is a result of two entries for ellipoint.o being stored in the files array because of xmalloc returning an erroneous address. Am I encountering the problem with malloc which is dissussed in the gcc installation? If so, why doesn't gcc correct the problem? I recompiled gcc with gcc as per installation so it should be using gnulib. Also if any one has gotten gcc, etc to run on the Alliant I'd appreciate hearing about it. (We had no problems getting GNUemacs running.) Thanks Ralph Noack #---------- makefile ------------------------------------------------------ .SUFFIXES: .f .o OBJS= $(DIR)Ir2d.o $(DIR)adapfn.o $(DIR)agrcntrl.o $(DIR)arctbl.o \ $(DIR)bound.o $(DIR)btri.o $(DIR)cgrid.o $(DIR)chrdst.o \ $(DIR)consvar.o $(DIR)eigmat.o $(DIR)ellipoint.o FFLAGS = -ffpa -g EXENAME = ir2d DIR = ./dbg/ $(EXENAME): $(OBJS) f77 -o $(EXENAME) $(FFLAGS) $(OBJS) $(LDFLAGS) $(DIR)Ir2d.o: Ir2d.f f77 $(FFLAGS) Ir2d.f -c ; mv Ir2d.o $(DIR)Ir2d.o $(DIR)adapfn.o: adapfn.f f77 $(FFLAGS) adapfn.f -c ; mv adapfn.o $(DIR)adapfn.o $(DIR)agrcntrl.o: agrcntrl.f f77 $(FFLAGS) agrcntrl.f -c ; mv agrcntrl.o $(DIR)agrcntrl.o $(DIR)arctbl.o: arctbl.f f77 $(FFLAGS) arctbl.f -c ; mv arctbl.o $(DIR)arctbl.o $(DIR)bound.o: bound.f f77 $(FFLAGS) bound.f -c ; mv bound.o $(DIR)bound.o $(DIR)btri.o: btri.f f77 $(FFLAGS) btri.f -c ; mv btri.o $(DIR)btri.o $(DIR)cgrid.o: cgrid.f f77 $(FFLAGS) cgrid.f -c ; mv cgrid.o $(DIR)cgrid.o $(DIR)chrdst.o: chrdst.f f77 $(FFLAGS) chrdst.f -c ; mv chrdst.o $(DIR)chrdst.o $(DIR)consvar.o: consvar.f f77 $(FFLAGS) consvar.f -c ; mv consvar.o $(DIR)consvar.o $(DIR)eigmat.o: eigmat.f f77 $(FFLAGS) eigmat.f -c ; mv eigmat.o $(DIR)eigmat.o $(DIR)ellipoint.o: ellipoint.f f77 $(FFLAGS) ellipoint.f -c ; mv ellipoint.o $(DIR)ellipoint.o -- Ralph W. Noack (817)-273-2860 Univ. of Tx at Arlington, Aerospace Eng. Dept. Box 19018 Arlington, Tx 76019 ..!{killer,texsun}!utacfd!rwn