Hello all,
I'm stumped on this error message after
Checked out revision 16762.
$ make distclean
(Not necessary I know, but I do it from time-to-time).
$ ./configure --with-petsc=../petsc-2.3.3-p6
--with-petsc-arch=linux-gnu-c-debug
--with-metis=../metis-4.0
Configure runs and looks good.
$ make debug (Here comes the error).
[....]
=====lac============================= block_vector.inst
terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string::erase
/bin/sh: line 1: 14476
Aborted
/home/tyoung/fem/deal.II/common/scripts/expand_instantiations
/home/tyoung/fem/deal.II/common/template-arguments
< source/block_vector.inst.in > source/block_vector.inst make[1]: ***
[source/block_vector.inst] Error 134 make[1]: Leaving directory
`/home/tyoung/fem/deal.II/lac' make: *** [deps] Error 2
The only other information I can think to provide is that by running $
make debug again causes the system to stop at the *next* .inst file. By
repeating the process (entering $ make debug ~20 times) dealii
eventually appears to compile cleanly. Sadly, compiling the examples
fails while trying to link:
$ cd examples/step-1 && make
[....]
============================ Linking step-1
/home/tyoung/fem/deal.II/lib/libdeal_II_2d.g.so: undefined reference to
`void
dealii::FEValuesBase<2>::get_function_hessians<dealii::BlockVector<double>
>(dealii::BlockVector<double> const&,
>std::vector<std::vector<dealii::Tensor<2, 2>,
>std::allocator<dealii::Tensor<2, 2> > >,
>std::allocator<std::vector<dealii::Tensor<2, 2>,
>std::allocator<dealii::Tensor<2, 2> > > > >&, bool) const'
In fact, undefined reference to just about everything in the library!
I'm guessing that dealii has compiled itself without
instants of functions(?) I'm stumped on this one!
Does anyone please have a fix for this, or can indicate to me where to
start looking for making a fix. In fact any suggestion as to what is
going on at all with my system would be great!
Thanks in advance.
Best,
Toby
$ gcc -v
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured
with: /var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/configure
--prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu
--disable-altivec --enable-nls --without-included-gettext
--with-system-zlib --disable-checking --disable-werror
--enable-secureplt --enable-multilib --enable-libmudflap
--disable-libssp --disable-libgcj
--enable-languages=c,c++,treelang,fortran --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix gcc version 4.1.2 (Gentoo 4.1.2 p1.1)
--
Toby D. Young - Adiunkt (Assistant Professor)
Department of Computational Science
Institute of Fundamental Technological Research
Polish Academy of Sciences
Room 206, ul. Swietokrzyska 21
00-049 Warszawa, Polska
+48 22 826 12 81 ext. 184
http://rav.ippt.gov.pl/~tyoung
_______________________________________________