From bug-octave-request at bevo dot che dot wisc dot edu Mon Nov 2 13:48:27 1998 Subject: Troubles compiling octave From: "John W. Eaton" To: "Pascal A. Dupuis" Cc: bug-octave at bevo dot che dot wisc dot edu Date: Mon, 2 Nov 1998 13:48:00 -0600 (CST) On 2-Nov-1998, Pascal A. Dupuis wrote: | I'm trying to compile octave on my i486 machine, where big compilations | result in a segmentation fault in gcc every hour or every compilation, | whichever is more problematic :-( | Standard cure is to delete the lastly compiled file, and start back again. | Usually, I succeed in compilign big packages this way. Unfortunately, it | seems that there is a bug in one of octave Makefiles. If I restart a | compilation, 'make' tries to rebuild liboctave/pic/*.o and src/pic/*.o | before going further. Please try the following patch. Thanks, jwe *** src/Makefile.in~ Fri May 15 19:18:37 1998 --- src/Makefile.in Mon Nov 2 13:37:39 1998 *************** *** 177,182 **** --- 177,190 ---- $(OCTAVE_LIBS) \ $(FLIBS) $(LEXLIB) $(TERMLIBS) $(LIBS) + stmp-pic: pic + at if [ -f stmp-pic ]; then \ + true; \ + else \ + echo "touch stmp-pic"; \ + touch stmp-pic; \ + fi + pic: at if [ -d pic ]; then \ true; \ *************** *** 207,213 **** liboctinterp.$(SHLEXT): $(PICOBJ) $(SH_LD) $(SH_LDFLAGS) -o $ at $^ ! $(PICOBJ): pic builtins.cc: $(DEF_FILES) mkbuiltins at echo making $@ from $(DEF_FILES) --- 215,221 ---- liboctinterp.$(SHLEXT): $(PICOBJ) $(SH_LD) $(SH_LDFLAGS) -o $ at $^ ! $(PICOBJ): stmp-pic builtins.cc: $(DEF_FILES) mkbuiltins at echo making $@ from $(DEF_FILES) *************** *** 300,305 **** --- 308,314 ---- rm -f *.$(LIBEXT) *.o *.d *.df *.oct pic/*.o rm -f builtins.cc defaults.h oct-conf.h -rmdir pic + rm -f stmp-pic if $(SHARED_LIBS); then rm -f *.$(SHLEXT); fi .PHONY: clean *** liboctave/Makefile.in~ Mon Feb 2 23:33:37 1998 --- liboctave/Makefile.in Mon Nov 2 13:44:57 1998 *************** *** 99,104 **** --- 99,112 ---- all: libraries .PHONY: all + stmp-pic: pic + at if [ -f stmp-pic ]; then \ + true; \ + else \ + echo "touch stmp-pic"; \ + touch stmp-pic; \ + fi + pic: at if [ -d pic ]; then \ true; \ *************** *** 129,135 **** liboctave.$(SHLEXT): $(PICOBJ) $(SH_LD) $(SH_LDFLAGS) -o $ at $^ ! $(PICOBJ): pic check: all .PHONY: check --- 137,143 ---- liboctave.$(SHLEXT): $(PICOBJ) $(SH_LD) $(SH_LDFLAGS) -o $ at $^ ! $(PICOBJ): stmp-pic check: all .PHONY: check *************** *** 177,182 **** --- 185,191 ---- clean: rm -f *.a *.o *.d pic/*.o -rmdir pic + rm -f stmp-pic if $(SHARED_LIBS); then rm -f *.$(SHLEXT); fi .PHONY: clean