From owner-bug-octave at bevo dot che dot wisc dot edu Sat Dec 14 12:13:19 1996 Subject: Octave-2.0 won't compile From: Mike Dowling To: bug-octave at bevo dot che dot wisc dot edu Date: Sat, 14 Dec 1996 19:11:33 +0100 -------- Bug report for Octave 2.0 configured for i586-pc-linux-gnu Description: ----------- Octave won't compile. Repeat-By: --------- In order to compile octave, I first had to make the g++ and g77 compilers. This appeared to work, as I could make stage2, and make compare produced no differences. I then tries to make octave. After configure --disable-nls I entered make On reaching liboctave, the c++ compiler exited produced lots of warnings to the effect that cpp could find certain files. For example, I get: data-conv.h:26: warning: No include path in which to find climits In file included from data-conv.h:28, from dMatrix.h:35, from dbleSCHUR.h:34, from dbleSCHUR.cc:33: After countless such errors, I got: c++ -c -I. -I.. -I../liboctave -I../src -I../glob -I../libcruft/misc -DHAVE_CONFIG_H -fno-implicit-templates -mieee-fp -g -O2 -Wall Bounds.cc Bounds.cc:31: iostream.h: No such file or directory In file included from MArray.h:31, from dColVector.h:30, from Bounds.h:32, from Bounds.cc:33: Array.h:31: cassert: No such file or directory Array.h:32: cstdlib: No such file or directory In file included from mx-defs.h:72, from dColVector.h:32, from Bounds.h:32, from Bounds.cc:33: oct-cmplx.h:26: complex: No such file or directory make[2]: *** [Bounds.o] Error 1 make[2]: Leaving directory `/mnt/octave-2.0/liboctave' make[1]: *** [liboctave] Error 2 make[1]: Leaving directory `/mnt/octave-2.0' make: *** [all] Error 2 However, all these headerd like iostream.h live happily in /usr/include/g++. This could be a c++ error; I know nothing about c++. The error comes from the C preprocessor: strings cpp | grep path No include path in which to find %s Any suggestions would be much appreciated as I use octave a lot in preparing lectures. Cheers, Dr. M. Dowling Fix: --- * If possible, replace this item with a description of how to fix the problem (if you don't have a fix for the problem, don't include this section, but please do submit your report anyway). Configuration (please do not edit this section): ----------------------------------------------- uname output: Linux Cowcocky 2.0.27 #89 Mon Dec 2 19:25:55 MET 1996 i586 configure opts: --disable-nls Fortran compiler: g77 FFLAGS: -O F2C: F2CFLAGS: FLIBS: -lf2c -L/usr/lib/gcc-lib/i586-unknown-linux/2.7.2.1 -lgcc CPPFLAGS: INCFLAGS: -I/usr/local/include -I/usr/local/include/octave-2.0 C compiler: gcc, version 2.7.2.1 CFLAGS: -DHAVE_CONFIG_H -mieee-fp -g -O2 -Wall CPICFLAG: -fPIC C++ compiler: c++, version 2.7.2.1 CXXFLAGS: -DHAVE_CONFIG_H -fno-implicit-templates -mieee-fp -g -O2 -Wall CXXPICFLAG: -fPIC LDFLAGS: -g LIBFLAGS: -L/usr/local/lib RLD_FLAG: -Xlinker -rpath -Xlinker /usr/local/lib CXXLIBS: -lstdc++ -lm -L/usr/lib/gcc-lib/i586-unknown-linux/2.7.2.1 -lstdc++ -lm -lgcc -lc -lgcc TERMLIBS: -ltermcap LIBS: LEXLIB: LIBPLPLOT: LIBDLFCN: DEFS: -DOCTAVE_SOURCE=1 -DSEPCHAR=':' -DSEPCHAR_STR=":" -DUSE_GNU_INFO=1 -DUSE_READLINE=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DNPOS=string::npos -DF77_APPEND_UNDERSCORE=1 -DSTDC_HEADERS=1 -DHAVE_DIRENT_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_ASSERT_H=1 -DHAVE_CURSES_H=1 -DHAVE_FCNTL_H=1 -DHAVE_FLOAT_H=1 -DHAVE_GRP_H=1 -DHAVE_LIMITS_H=1 -DHAVE_MEMORY_H=1 -DHAVE_NAN_H=1 -DHAVE_PWD_H=1 -DHAVE_SGTTY_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_RESOURCE_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TIMES_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_UTSNAME_H=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