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

Carsten Gräser graeser at mi.fu-berlin.de
Wed Jul 1 15:35:12 CEST 2015


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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune-devel/attachments/20150701/a40dc53a/attachment.sig>


More information about the Dune-devel mailing list