MantisBT - CMake
View Issue Details
0015049CMakeCMakepublic2014-07-30 16:532015-01-05 08:39
Erik Lindahl 
 
normalfeatureN/A
closedsuspended 
Fujitsu Sparc64 (K computer)Linux2.6.18
CMake 3.0 
 
0015049: Add detection for Fujitsu compilers
Fujitsu users their own compilers (based on an old version of Clang) on K. By default the CMake compiler IDs are set to Unknown, but when using the GNU compatibility flags the Fujitsu compiler adds the _GNUC_ define (bad), although it is not really 100% compatible with GCC-4.1.2.

To work around this we manually set the compiler IDs to "Fujitsu", but it is probably a good idea to have this in the default distribution too, which the two attached patches accomplish (tested).

Unfortunately the version cannot be extracted from the source level. If you want that, it can be detected from the output with the -V flag. Examples:

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
No tags attached.
related to 0015050closed  Enable OpenMP flag detection with Fujitsu compilers 
child of 0015051closed  Detect more fujitsu compiler warnings 
patch Fujitsu.patch (756) 2014-07-30 16:53
https://public.kitware.com/Bug/file/5203/Fujitsu.patch
Issue History
2014-07-30 16:53Erik LindahlNew Issue
2014-07-30 16:53Erik LindahlFile Added: Fujitsu.patch
2014-07-31 04:41Rolf Eike BeerRelationship addedrelated to 0015050
2014-07-31 08:48Brad KingRelationship addedchild of 0015051
2014-07-31 08:48Brad KingNote Added: 0036524
2014-07-31 08:55Erik LindahlNote Added: 0036525
2014-07-31 09:05Brad KingNote Added: 0036527
2014-07-31 09:05Brad KingNote Added: 0036528
2014-07-31 09:05Brad KingStatusnew => resolved
2014-07-31 09:05Brad KingResolutionopen => suspended
2015-01-05 08:39Robert MaynardNote Added: 0037599
2015-01-05 08:39Robert MaynardStatusresolved => closed

Notes
(0036524)
Brad King   
2014-07-31 08:48   
Thanks for working on this. We can take this patch here, but for further patches please read CONTRIBUTING.rst and send patches to the mailing list.
(0036525)
Erik Lindahl   
2014-07-31 08:55   
Will do!
(0036527)
Brad King   
2014-07-31 09:05   
Actually this patch does not apply against master. The hard-coded preprocessor blocks in Modules/CMakeCCompilerId.c.in and Modules/CMakeCXXCompilerId.cpp.in have been replaced by content generated by loading information from Modules/Compiler/*-DetermineCompiler.cmake files. Such content is also used by the new Modules/WriteCompilerDetectionHeader.cmake module.

You will need to create

 Modules/Compiler/Fujitsu-C-DetermineCompiler.cmake
 Modules/Compiler/Fujitsu-CXX-DetermineCompiler.cmake

files instead. Then please send the revised patch to the list using "git format-patch". Thanks!
(0036528)
Brad King   
2014-07-31 09:05   
Resolving as "suspended" pending further discussion on the developer list.
(0037599)
Robert Maynard   
2015-01-05 08:39   
Closing resolved issues that have not been updated in more than 4 months