Hello dune,<br><br>First of all wish you all a happy and healthy new year 2012. <br><br>Now to the problem, I am facing difficulty to compile dune 2.1 (downloaded tarballs from dune website) version in my newly installed ubuntu. I tried to build via command<br>
<i>sreejith@Ananya:~/dune$ ./dune-common-2.1.1/bin/dunecontrol all</i><br>and this ended with an error as follows:<br><br><i>--- calling make for dune-istl ---<br>make <br>make all-recursive<br>make[4]: Entering directory `/home/sreejith/dune/dune-istl-2.1.0/dune/istl/tutorial'<br>
g++ -std=c++0x -DHAVE_CONFIG_H -I. -I../../.. -I/home/sreejith/dune/dune-common-2.1.1 -I../../.. -I/usr/include -I/home/sreejith/dune/dune-common-2.1.1 -I/usr/include -g -O2 -MT example-example.o -MD -MP -MF .deps/example-example.Tpo -c -o example-example.o `test -f 'example.cc' || echo './'`example.cc<br>
In file included from /home/sreejith/dune/dune-common-2.1.1/dune/common/shared_ptr.hh:17:0,<br> from ../../../dune/istl/bcrsmatrix.hh:17,<br> from example.cc:21:<br>/home/sreejith/dune/dune-common-2.1.1/dune/common/nullptr.hh:27:1: error: expected ‘;’ after class definition<br>
/home/sreejith/dune/dune-common-2.1.1/dune/common/nullptr.hh:27:1: error: qualifiers can only be specified for objects and functions<br>/home/sreejith/dune/dune-common-2.1.1/dune/common/nullptr.hh:27:3: error: expected unqualified-id before ‘nullptr’<br>
make[4]: *** [example-example.o] Error 1<br>make[4]: Leaving directory `/home/sreejith/dune/dune-istl-2.1.0/dune/istl/tutorial'<br>make[3]: *** [all-recursive] Error 1<br>make[3]: Leaving directory `/home/sreejith/dune/dune-istl-2.1.0/dune/istl'<br>
make[2]: *** [all-recursive] Error 1<br>make[2]: Leaving directory `/home/sreejith/dune/dune-istl-2.1.0/dune'<br>make[1]: *** [all-recursive] Error 1<br>make[1]: Leaving directory `/home/sreejith/dune/dune-istl-2.1.0'<br>
make: *** [all] Error 2<br>--- Failed to build dune-istl ---<br>Terminating dunecontrol due to previous errors!</i><br><br><br>I have attached the build log. <br><br>system information:<br><br>sreejith@Ananya:~/dune$ ls<br>
dune-common-2.1.1 dune-grid-2.1.0 dune-istl-2.1.0 dune-localfunctions-2.1.0<br>dune-common-2.1.1.tar.gz dune-grid-2.1.0.tar.gz dune-istl-2.1.0.tar.gz dune-localfunctions-2.1.0.tar.gz<br><br>sreejith@Ananya:~/dune$ uname -a<br>
Linux Ananya 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686 i686 i386 GNU/Linux<br><br><br>sreejith@Ananya:~/dune$ g++ -v<br>Using built-in specs.<br>COLLECT_GCC=g++<br>COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.6.1/lto-wrapper<br>
Target: i686-linux-gnu<br>Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.1-9ubuntu3' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu<br>
Thread model: posix<br>gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)<br><br><br><br>Thank you for your help<br>Sreejith<br><br><br>