<div dir="ltr"><div><div>The commit you mention is not really triggering the error but rather surfacing it:<br><br></div>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.<br><br></div><div>I have no clue on what is wrong there, though.<br></div><div><br></div>Dominic<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 1, 2015 at 3:35 PM, Carsten Gräser <span dir="ltr"><<a href="mailto:graeser@mi.fu-berlin.de" target="_blank">graeser@mi.fu-berlin.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Jö,<br>
<div><div class="h5"><br>
Am 01.07.2015 um 15:14 schrieb Jö Fahlke:<br>
> Am Wed, 1. Jul 2015, 14:53:22 +0200 schrieb Carsten Gräser:<br>
>> Date: Wed, 01 Jul 2015 14:53:22 +0200<br>
>> From: Carsten Gräser <<a href="mailto:graeser@mi.fu-berlin.de">graeser@mi.fu-berlin.de</a>><br>
>> To: "<a href="mailto:dune-devel@dune-project.org">dune-devel@dune-project.org</a>" <<a href="mailto:dune-devel@dune-project.org">dune-devel@dune-project.org</a>><br>
>> Subject: [Dune-devel] Building dune-common with gcc-4.8 fails<br>
>><br>
>> Dear all,<br>
>> when testing the release I noticed that building dune-common<br>
>> with gcc-4.8 (and below) on ubuntu 15.04, 64bit, currently<br>
>> fails with the following error:<br>
>><br>
>> g++-4.8: error: unrecognized command line option ‘-fstack-protector-strong’<br>
>> doc/comm/CMakeFiles/indexset.dir/build.make:54: recipe for target 'doc/comm/CMakeFiles/indexset.dir/indexset.cc.o' failed<br>
>> make[2]: *** [doc/comm/CMakeFiles/indexset.dir/indexset.cc.o] Error 1<br>
>><br>
>> I don't have any idea where this flag is added. It's not present<br>
>> in my options file and grep does not find it in dune-common.<br>
>><br>
>> I'm building with cmake and the option file just contains<br>
>><br>
>> CMAKE_FLAGS="-DCMAKE_CXX_COMPILER='/usr/bin/g++-4.8'"<br>
>><br>
>> Any ideas? Can someone confirm this on another distribution<br>
><br>
> I cannot reproduce this behaviour on Debian Jessie.<br>
><br>
> I cloned a fresh dune-common, switched to the realease branch, recreated your<br>
> opts-file and and ran dunecontrol all and make test. indexset.cc seems to be<br>
> compiled successfully.<br>
><br>
> However, I did notice the following<br>
> ======================================================================<br>
> -- The C compiler identification is GNU 4.9.2<br>
> -- The CXX compiler identification is GNU 4.8.4<br>
> ======================================================================<br>
> Maybe your problem has something to do with that? What is your C compiler?<br>
<br>
</div></div>I manually set the CXX compiler which results in g++-4.8.4. Whereas<br>
the default C compiler which is gcc-4.9.2 is used. Providing gcc-4.8.4<br>
as C compiler does not fix the problem.<br>
<br>
CMakeCache shows that this flag is also present in MPI_CXX_COMPILE_FLAGS<br>
and MPI_C_COMPILE_FLAGS.<br>
<span class="HOEnZb"><font color="#888888"><br>
Carsten<br>
<br>
<br>
</font></span><br>_______________________________________________<br>
Dune-devel mailing list<br>
<a href="mailto:Dune-devel@dune-project.org">Dune-devel@dune-project.org</a><br>
<a href="http://lists.dune-project.org/mailman/listinfo/dune-devel" rel="noreferrer" target="_blank">http://lists.dune-project.org/mailman/listinfo/dune-devel</a><br>
<br></blockquote></div><br></div>