[Dune] Building dune 2.1

Sreejith Pulloor Kuttanikkad sreejithpk at gmail.com
Sun Dec 25 18:51:25 CET 2011


On Sun, Dec 25, 2011 at 18:02, Jayesh Badwaik <jayesh.badwaik90 at gmail.com>wrote:

> On Sun, Dec 25, 2011 at 10:25 PM, Sreejith Pulloor Kuttanikkad
> <sreejithpk at gmail.com> wrote:
> > Hello dune,
> >
> > First of all wish you all a happy and healthy new year 2012.
> >
> > 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
> > sreejith at Ananya:~/dune$ ./dune-common-2.1.1/bin/dunecontrol all
> > and this ended with an error as follows:
> >
> > --- calling make for dune-istl ---
> > make
> > make  all-recursive
> > make[4]: Entering directory
> > `/home/sreejith/dune/dune-istl-2.1.0/dune/istl/tutorial'
> > 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
> > In file included from
> > /home/sreejith/dune/dune-common-2.1.1/dune/common/shared_ptr.hh:17:0,
> >                  from ../../../dune/istl/bcrsmatrix.hh:17,
> >                  from example.cc:21:
> > /home/sreejith/dune/dune-common-2.1.1/dune/common/nullptr.hh:27:1: error:
> > expected ‘;’ after class definition
> > /home/sreejith/dune/dune-common-2.1.1/dune/common/nullptr.hh:27:1: error:
> > qualifiers can only be specified for objects and functions
> > /home/sreejith/dune/dune-common-2.1.1/dune/common/nullptr.hh:27:3: error:
> > expected unqualified-id before ‘nullptr’
> > make[4]: *** [example-example.o] Error 1
> > make[4]: Leaving directory
> > `/home/sreejith/dune/dune-istl-2.1.0/dune/istl/tutorial'
> > make[3]: *** [all-recursive] Error 1
> > make[3]: Leaving directory
> `/home/sreejith/dune/dune-istl-2.1.0/dune/istl'
> > make[2]: *** [all-recursive] Error 1
> > make[2]: Leaving directory `/home/sreejith/dune/dune-istl-2.1.0/dune'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/home/sreejith/dune/dune-istl-2.1.0'
> > make: *** [all] Error 2
> > --- Failed to build dune-istl ---
> > Terminating dunecontrol due to previous errors!
> >
> >
> > I have attached the build log.
> >
> > system information:
> >
> > sreejith at Ananya:~/dune$ ls
> > dune-common-2.1.1         dune-grid-2.1.0         dune-istl-2.1.0
> > dune-localfunctions-2.1.0
> > 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
> >
> > sreejith at Ananya:~/dune$ uname -a
> > Linux Ananya 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC
> > 2011 i686 i686 i386 GNU/Linux
> >
> >
> > sreejith at Ananya:~/dune$ g++ -v
> > Using built-in specs.
> > COLLECT_GCC=g++
> > COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.6.1/lto-wrapper
> > Target: i686-linux-gnu
> > 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
> > Thread model: posix
> > gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)
> >
> >
> >
> > Thank you for your help
> > Sreejith
> >
> >
> >
> > _______________________________________________
> > Dune mailing list
> > Dune at dune-project.org
> > http://lists.dune-project.org/mailman/listinfo/dune
> >
>
> You have most probably run into bug #904 . The bug is caused by
> redefinition of nullptr in the
> c++0x (now c++11) standards and the corresponding change in the
> implementation in gcc.
>
> Please check
> http://www.dune-project.org/flyspray/index.php?do=details&task_id=904
> where a patch has been provided for the same by Steffen Muthing. Apply
> the patch, and
>  then, the program should compile just fine.
>
>
>
Thanks Jayesh. However, It seems like there is still something wrong. I
cant apply the patch correctly.

sreejith at Ananya:~/dune$ patch -p1 -d dune-common-2.1.1 < nullptr.patch
patching file dune/common/nullptr.hh
Hunk #1 succeeded at 50 with fuzz 1 (offset 10 lines).
patching file m4/cxx0x_nullptr.m4
Hunk #1 FAILED at 3.
1 out of 1 hunk FAILED -- saving rejects to file m4/cxx0x_nullptr.m4.rej

upon building again, it continue to fails.


Sreejith
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20111225/dcd8dd07/attachment.htm>


More information about the Dune mailing list