View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015049CMakeCMakepublic2014-07-30 16:532015-01-05 08:39
ReporterErik Lindahl 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusclosedResolutionsuspended 
PlatformFujitsu Sparc64 (K computer)OSLinuxOS Version2.6.18
Product VersionCMake 3.0 
Target VersionFixed in Version 
Summary0015049: Add detection for Fujitsu compilers
DescriptionFujitsu 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
TagsNo tags attached.
Attached Filespatch file icon Fujitsu.patch [^] (756 bytes) 2014-07-30 16:53 [Show Content]

 Relationships
related to 0015050closed Enable OpenMP flag detection with Fujitsu compilers 
child of 0015051closed Detect more fujitsu compiler warnings 

  Notes
(0036524)
Brad King (manager)
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 (reporter)
2014-07-31 08:55

Will do!
(0036527)
Brad King (manager)
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 (manager)
2014-07-31 09:05

Resolving as "suspended" pending further discussion on the developer list.
(0037599)
Robert Maynard (manager)
2015-01-05 08:39

Closing resolved issues that have not been updated in more than 4 months

 Issue History
Date Modified Username Field Change
2014-07-30 16:53 Erik Lindahl New Issue
2014-07-30 16:53 Erik Lindahl File Added: Fujitsu.patch
2014-07-31 04:41 Rolf Eike Beer Relationship added related to 0015050
2014-07-31 08:48 Brad King Relationship added child of 0015051
2014-07-31 08:48 Brad King Note Added: 0036524
2014-07-31 08:55 Erik Lindahl Note Added: 0036525
2014-07-31 09:05 Brad King Note Added: 0036527
2014-07-31 09:05 Brad King Note Added: 0036528
2014-07-31 09:05 Brad King Status new => resolved
2014-07-31 09:05 Brad King Resolution open => suspended
2015-01-05 08:39 Robert Maynard Note Added: 0037599
2015-01-05 08:39 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team