[Dune-devel] Building dune-common with gcc-4.8 fails

Dominic Kempf dominic.r.kempf at gmail.com
Wed Jul 1 15:37:57 CEST 2015


The commit you mention is not really triggering the error but rather
surfacing it:

Before that commit you had a sequential build by default. You do now have a
parallel build. That just indicates that the problem lies with your MPI
installation and how it is detected.

I have no clue on what is wrong there, though.

Dominic

On Wed, Jul 1, 2015 at 3:35 PM, Carsten Gräser <graeser at mi.fu-berlin.de>
wrote:

> Hi Jö,
>
> Am 01.07.2015 um 15:14 schrieb Jö Fahlke:
> > Am Wed,  1. Jul 2015, 14:53:22 +0200 schrieb Carsten Gräser:
> >> Date: Wed, 01 Jul 2015 14:53:22 +0200
> >> From: Carsten Gräser <graeser at mi.fu-berlin.de>
> >> To: "dune-devel at dune-project.org" <dune-devel at dune-project.org>
> >> Subject: [Dune-devel] Building dune-common with gcc-4.8 fails
> >>
> >> Dear all,
> >> when testing the release I noticed that building dune-common
> >> with gcc-4.8 (and below) on ubuntu 15.04, 64bit, currently
> >> fails with the following error:
> >>
> >>   g++-4.8: error: unrecognized command line option
> ‘-fstack-protector-strong’
> >>   doc/comm/CMakeFiles/indexset.dir/build.make:54: recipe for target
> 'doc/comm/CMakeFiles/indexset.dir/indexset.cc.o' failed
> >>   make[2]: *** [doc/comm/CMakeFiles/indexset.dir/indexset.cc.o] Error 1
> >>
> >> I don't have any idea where this flag is added. It's not present
> >> in my options file and grep does not find it in dune-common.
> >>
> >> I'm building with cmake and the option file just contains
> >>
> >>   CMAKE_FLAGS="-DCMAKE_CXX_COMPILER='/usr/bin/g++-4.8'"
> >>
> >> Any ideas? Can someone confirm this on another distribution
> >
> > I cannot reproduce this behaviour on Debian Jessie.
> >
> > I cloned a fresh dune-common, switched to the realease branch, recreated
> your
> > opts-file and and ran dunecontrol all and make test.  indexset.cc seems
> to be
> > compiled successfully.
> >
> > However, I did notice the following
> > ======================================================================
> > -- The C compiler identification is GNU 4.9.2
> > -- The CXX compiler identification is GNU 4.8.4
> > ======================================================================
> > Maybe your problem has something to do with that?  What is your C
> compiler?
>
> I manually set the CXX compiler which results in g++-4.8.4. Whereas
> the default C compiler which is gcc-4.9.2 is used. Providing gcc-4.8.4
> as C compiler does not fix the problem.
>
> CMakeCache shows that this flag is also present in MPI_CXX_COMPILE_FLAGS
> and MPI_C_COMPILE_FLAGS.
>
> Carsten
>
>
>
> _______________________________________________
> Dune-devel mailing list
> Dune-devel at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune-devel/attachments/20150701/34194efe/attachment.htm>


More information about the Dune-devel mailing list