[cmake-developers] Patch: Detect Fujitsu compilers

Erik Lindahl erik.lindahl at gmail.com
Sun Aug 10 17:13:07 EDT 2014


Hi,

The attached patch provides detection for the Fujitsu C/C++ compilers, which in particular are the default ones for K computer. It’s important to detect them correctly, since Fujitsu has the nasty habit of pretending to be gcc-4.1.2 with certain flags, but there are quite a few things that work different from gcc.

Unfortunately this patch ONLY does compiler ID detection, since there is no valid compiler version information provided by the preprocessor (there is a __fcc_version string, but it is always set to “600”).

I don’t think the version information is very important, but if you would like to extract it from the command line, the binaries provide the output below with the “-V” flag. These are the cross-compilers, but the native ones are identical (just remove the “px” component from the name).

klogin9$ fccpx -V
fccpx: Fujitsu C/C++ Compiler Driver Version 1.2.0 P-id: L30000-07 (Jul 30 2013 08:58:18) K-1.2.0-15

klogin9$ FCCpx -V
FCCpx: Fujitsu C/C++ Compiler Driver Version 1.2.0 P-id: L30000-07 (Jul 30 2013 08:58:18) K-1.2.0-15

klogin9$ frtpx -V
frtpx: Fujitsu Fortran Driver Version 1.2.0 P-id: L30000-07 (Jul 30 2013 08:57:22) K-1.2.0-15


Cheers,

Erik

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-Fujitsu-compiler-detection.patch
Type: application/octet-stream
Size: 1301 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20140810/613d5a2c/attachment.obj>
-------------- next part --------------






More information about the cmake-developers mailing list