<br><br><div class="gmail_quote">On Sun, Dec 25, 2011 at 18:02, Jayesh Badwaik <span dir="ltr"><<a href="mailto:jayesh.badwaik90@gmail.com">jayesh.badwaik90@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Sun, Dec 25, 2011 at 10:25 PM, Sreejith Pulloor Kuttanikkad<br>
<<a href="mailto:sreejithpk@gmail.com">sreejithpk@gmail.com</a>> wrote:<br>
</div><div><div class="h5">> 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<br>
> tarballs from dune website) version in my newly installed ubuntu. I tried to<br>
> build via command<br>
> sreejith@Ananya:~/dune$ ./dune-common-2.1.1/bin/dunecontrol all<br>
> and this ended with an error as follows:<br>
><br>
> --- calling make for dune-istl ---<br>
> make<br>
> make  all-recursive<br>
> make[4]: Entering directory<br>
> `/home/sreejith/dune/dune-istl-2.1.0/dune/istl/tutorial'<br>
> g++ -std=c++0x -DHAVE_CONFIG_H -I. -I../../..<br>
> -I/home/sreejith/dune/dune-common-2.1.1 -I../../.. -I/usr/include<br>
> -I/home/sreejith/dune/dune-common-2.1.1 -I/usr/include  -g -O2 -MT<br>
> example-example.o -MD -MP -MF .deps/example-example.Tpo -c -o<br>
> example-example.o `test -f 'example.cc' || echo './'`example.cc<br>
> In file included from<br>
> /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:<br>
> expected ‘;’ after class definition<br>
> /home/sreejith/dune/dune-common-2.1.1/dune/common/nullptr.hh:27:1: error:<br>
> 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:<br>
> expected unqualified-id before ‘nullptr’<br>
> make[4]: *** [example-example.o] Error 1<br>
> make[4]: Leaving directory<br>
> `/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!<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<br>
> 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<br>
> 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<br>
> 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<br>
> 4.6.1-9ubuntu3' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs<br>
> --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr<br>
> --program-suffix=-4.6 --enable-shared --enable-linker-build-id<br>
> --with-system-zlib --libexecdir=/usr/lib --without-included-gettext<br>
> --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6<br>
> --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu<br>
> --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin<br>
> --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i686<br>
> --with-tune=generic --enable-checking=release --build=i686-linux-gnu<br>
> --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>
><br>
</div></div>> _______________________________________________<br>
> Dune mailing list<br>
> <a href="mailto:Dune@dune-project.org">Dune@dune-project.org</a><br>
> <a href="http://lists.dune-project.org/mailman/listinfo/dune" target="_blank">http://lists.dune-project.org/mailman/listinfo/dune</a><br>
<div class="im">><br>
<br>
You have most probably run into bug #904 . The bug is caused by<br>
redefinition of nullptr in the<br>
c++0x (now c++11) standards and the corresponding change in the<br>
implementation in gcc.<br>
<br>
Please check  <a href="http://www.dune-project.org/flyspray/index.php?do=details&task_id=904" target="_blank">http://www.dune-project.org/flyspray/index.php?do=details&task_id=904</a><br>
where a patch has been provided for the same by Steffen Muthing. Apply<br>
the patch, and<br>
 then, the program should compile just fine.<br>
<br><br></div></blockquote><div><br>Thanks Jayesh. However, It seems like there is still something wrong. I cant apply the patch correctly.<br> <br></div></div>sreejith@Ananya:~/dune$ patch -p1 -d dune-common-2.1.1 < nullptr.patch <br>
patching file dune/common/nullptr.hh<br>Hunk #1 succeeded at 50 with fuzz 1 (offset 10 lines).<br>patching file m4/cxx0x_nullptr.m4<br>Hunk #1 FAILED at 3.<br>1 out of 1 hunk FAILED -- saving rejects to file m4/cxx0x_nullptr.m4.rej<br>
<br>upon building again, it continue to fails. <br><br><br>Sreejith<br>