From owner-bug-octave at bevo dot che dot wisc dot edu Wed Dec 18 07:52:03 1996 Subject: 2.0 compilation problem From: Francesco Potorti` To: Octave bugs list Date: Wed, 18 Dec 96 14:42 MET Hi, I just installed gcc 2.7.2 under my home directory, because my sysadmin is not very responsive. I try to compile octave 2.0 under Alpha, but after the compilation goes on flawlessly for a while, I get file not found errors. Indeed, g++ does not look in the include dirs it has set up under my home directory. That's why I have added this to the gcc specs file: -isystem /usr/users/pot/lib/gcc-lib/alpha-dec-osf3.0/2.7.2/include -isystem /usr/users/pot/alpha-dec-osf3.0/include -isystem /usr/users/pot/lib/gcc-lib/alpha-dec-osf3.0/2.7.2/include/g++ -isystem /usr/users/pot/lib/gcc-lib/alpha-dec-osf3.0/2.7.2/include/g++/std -isystem /usr/include/g++ -isystem /usr/include/g++/std This makes the compilation proceed futher, but then it stops with an error which I don't know how to handle. I am stuck, because I suspect a gcc installation problem. Can you confirm this? Here is the error, obtained with a make all in liboctave: sable$ make all c++ -c -I. -I.. -I../liboctave -I../src -I../glob -I../libcruft/misc -DHAVE_CONFIG_H -fno-implicit-templates -g -O2 -Wall CollocWt.cc In file included from /usr/users/pot/lib/gcc-lib/alpha-dec-osf3.0/2.7.2/include/g++/std/bastring.h:35, from /usr/users/pot/lib/gcc-lib/alpha-dec-osf3.0/2.7.2/include/g++/std/string.h:6, from /usr/include/g++/string:5, from mach-info.h:26, from data-conv.h:28, from dMatrix.h:35, from CollocWt.h:32, from CollocWt.cc:33: /usr/users/pot/lib/gcc-lib/alpha-dec-osf3.0/2.7.2/include/g++/std/stddef.h:15: parse error before `::' /usr/users/pot/lib/gcc-lib/alpha-dec-osf3.0/2.7.2/include/g++/std/straits.h: In function `static char * string_char_traits::move(char *, const char *, long unsigned int)': In file included from /usr/users/pot/lib/gcc-lib/alpha-dec-osf3.0/2.7.2/include/g++/std/bastring.h:36, from /usr/users/pot/lib/gcc-lib/alpha-dec-osf3.0/2.7.2/include/g++/std/string.h:6, from /usr/include/g++/string:5, from mach-info.h:26, from data-conv.h:28, from dMatrix.h:35, from CollocWt.h:32, from CollocWt.cc:33: /usr/users/pot/lib/gcc-lib/alpha-dec-osf3.0/2.7.2/include/g++/std/straits.h:129: warning: implicit declaration of function `int memmove(...)' /usr/users/pot/lib/gcc-lib/alpha-dec-osf3.0/2.7.2/include/g++/std/straits.h: In function `static char * string_char_traits::set(char *, const char &, long unsigned int)': /usr/users/pot/lib/gcc-lib/alpha-dec-osf3.0/2.7.2/include/g++/std/straits.h:131: warning: implicit declaration of function `int memset(...)' /usr/users/pot/lib/gcc-lib/alpha-dec-osf3.0/2.7.2/include/g++/std/sinst.h: At top level: In file included from /usr/users/pot/lib/gcc-lib/alpha-dec-osf3.0/2.7.2/include/g++/std/bastring.h:571, from /usr/users/pot/lib/gcc-lib/alpha-dec-osf3.0/2.7.2/include/g++/std/string.h:6, from /usr/include/g++/string:5, from mach-info.h:26, from data-conv.h:28, from dMatrix.h:35, from CollocWt.h:32, from CollocWt.cc:33: /usr/users/pot/lib/gcc-lib/alpha-dec-osf3.0/2.7.2/include/g++/std/sinst.h:53: parse error before `/' make: *** [CollocWt.o] Error 1 The strange thing is that there is no `::' in stddef.h. Here is the file: /* The -*- C++ -*- standard definitions header.*/ /* This file is part of the GNU ANSI C++ Library.*/ #ifndef __STDDEF__ #define __STDDEF__ #ifdef __GNUG__ #pragma interface "std/stddef.h" #endif #include <_G_config.h> #include extern "C++" { const size_t NPOS = (size_t)(-1); typedef void fvoid_t(); #ifndef _WINT_T #define _WINT_T typedef _G_wint_t wint_t; #endif } /* extern "C++"*/ #endif