Message: Re: Compiler check with CMake Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Compiler check with CMake 

Forum: Installation and Configuration
Re: None Compiler check with CMake (Genie Jhang)
Re: Question Re: Compiler check with CMake (Ben Morgan)
Date: 23 Nov, 2015
From: Ben Morgan <Ben Morgan>

Just copying your mail here for info (not sure why it didn't get posted here as it was sent to the correct address!):

Thanks for reply, Ben.

Here's the log files you requested.

For compiling cmake, I used "./bootstrap --prefix=/PATH/"
and for geant4 "cmake ../ -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc"

The log files for cmake is https://gist.github.com/geniejhang/4c205da17ce14bdf42a9
and for geant4 https://gist.github.com/geniejhang/6263f10e35288ed64ce1

After I mailed to this mailing list, I also found that it happens with compiling ROOT as well.
So, I might submit a ticket to CMake support too. 

The same problem happened during cmaking FairRoot while checking compiler. (Highlighed lines)
https://github.com/FairRootGroup/FairRoot/blob/master/cmake/modules/CheckCompiler.cmake#L125-L160

Thank you for your help always.

Bests
Genie

O.k., this is down to a small bug in the Geant4 cmake/Modules/Geant4MakeRules_cxx.cmake file. This tries to identify the Intel compiler by regexing for "icc/icpc" in the path to the CXX compiler. Though you're using the GNU compiler, the path to it contains a string ("ricc") that matches the regex, so CMake ends up trying to test the GNU compiler using flags for Intel, hence the error.

I've attached a patch for this, which will also be in the upcoming 10.2 release (next week).

Cheers,

Ben.

Attachment: http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2015/11/23/01.51-42935-geant4makerules.patch

 Add Message Add Message
to: "Re: Compiler check with CMake"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]