Re: ITL build on gcc 3.2?
Bastian Goldluecke <[email protected]>
| Newsgroups | gmane.comp.lib.mtl.devel |
|---|---|
| Organization | Max-Planck-Institut fuer Informatik |
| Message-ID | <[email protected]> |
Hi, Thanks for the patch. Now I was able to build at least parts of the examples and run a "make install". Only one severe inconvenience remains: "make install" does not install all the required headers. Afterwards, /usr/local/include/itl looks like this: Iteration_concept.h itl.h modified_gram_schmidt.h Matrix_concept.h itl_tags.h number_traits.h Preconditioner_concept.h itl_utils.h givens_rotation.h matrix_free_operator.h You have to copy subdirectories and missing files manually, see below. In addition, not all examples compiled correctly, I got the following error messages during gmake: g++ -DHAVE_CONFIG_H -I/usr/local/include -I../.. -ftemplate-depth-30 -Wall -g -c bratu.cpp bratu.cpp:73:25: blitz/array.h: No such file or directory bratu.cpp:74:31: blitz/array/where.h: No such file or directory bratu.cpp:75:36: blitz/array/stencil-et.h: No such file or directory bratu.cpp:77: error: namespace `blitz' undeclared In file included from bratu.cpp:79: ../../itl/interface/blitz.h:112: error: parse error before `,' token ../../itl/interface/blitz.h:116: error: syntax error before `;' token ../../itl/interface/blitz.h:135: error: parse error before `,' token ../../itl/interface/blitz.h:142: error: parse error before `,' token ../../itl/interface/blitz.h:223: error: syntax error before `::' token ../../itl/interface/blitz.h:232: error: parse error before `,' token ../../itl/interface/blitz.h:317: error: parse error before `}' token bratu.cpp:95: error: `Bratu_stencil' was not declared in this scope bratu.cpp:95: error: `U' was not declared in this scope bratu.cpp:95: error: `F' was not declared in this scope bratu.cpp:96: error: ISO C++ forbids declaration of `BZ_DECLARE_STENCIL2' with no type bratu.cpp:96: error: initializer list being treated as compound expression bratu.cpp:96: error: syntax error before `=' token ... and so on. But my old code now seems to work again, and of course that's what is really important :-) Thanks again for the help, - Bastian. Just for the record, if somebody runs into similar problems: I did the following to build and install ITL: INSTALLING ITL ON SuSE 8.2: 0. Install MTL 1. Untar ITL, apply the patch via patch -p1 <itl-gcc3.2.2.patch (hope that's really the right way to do it, the man pages for the patch command are utterly unreadable). 2. ./configure --with-mtl=/usr/local/include 3. Build using "gmake" instead of the usual "make", otherwise it will not work and look as if the makefiles are broken! 4. cd to /usr/local/include as root and cp -r ITL_INSTALL_DIR/itl ./ 5. Change permissions of all subdirs to r-xr-xr-x (chmod +rx dir) _______________________________________________ This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/