MantisBT - CMake
View Issue Details
0015028CMakeCMakepublic2014-07-17 06:232015-01-05 08:39
Bob E. 
Brad King 
highminoralways
closedfixed 
x86QNX6.5.0
CMake 2.8.12.2 
CMake 3.0.1CMake 3.0.1 
0015028: CMake build error on QNX
cmake-2.8.12.2/Source/kwsys/SystemInformation.cxx:3682: error: 'SA_RESTART' was not declared in this scope
cc: /usr/qnx650/host/qnx6/x86/usr/lib/gcc/i486-pc-nto-qnx6.5.0/4.4.2/cc1plus error 1
make[2]: *** [Source/kwsys/CMakeFiles/cmsys.dir/SystemInformation.cxx.o] Error 1
Make Cmake from sources.
QNX not support SA_RESTART signal:

qnx6\usr\include\signal.h
/* #define SA_RESTART 0x0040 (not supported yet) */ /* Restart the kernel call on signal return */

In ProcessUNIX.c this error was resolved earlier.
Patch correct it in SystemInformation.cxx
No tags attached.
? SystemInformation.cxx.QNX.path (468) 2014-07-17 06:23
https://public.kitware.com/Bug/file/5194/SystemInformation.cxx.QNX.path
Issue History
2014-07-17 06:23Bob E.New Issue
2014-07-17 06:23Bob E.File Added: SystemInformation.cxx.QNX.path
2014-07-17 08:15Brad KingNote Added: 0036406
2014-07-17 08:15Brad KingAssigned To => Brad King
2014-07-17 08:15Brad KingStatusnew => assigned
2014-07-17 08:15Brad KingTarget Version => CMake 3.1
2014-07-17 08:49Brad KingNote Added: 0036407
2014-07-18 12:49Brad KingNote Added: 0036410
2014-07-21 10:51Brad KingNote Added: 0036424
2014-07-21 10:51Brad KingStatusassigned => resolved
2014-07-21 10:51Brad KingResolutionopen => fixed
2014-07-21 10:51Brad KingFixed in Version => CMake 3.0.1
2014-07-21 10:51Brad KingTarget VersionCMake 3.1 => CMake 3.0.1
2015-01-05 08:39Robert MaynardNote Added: 0037591
2015-01-05 08:39Robert MaynardStatusresolved => closed

Notes
(0036406)
Brad King   
2014-07-17 08:15   
Thanks. I've submitted the change to upstream KWSys for testing:

 http://review.source.kitware.com/#/c/16252/ [^]

Once it is there it will be integrated into CMake.
(0036407)
Brad King   
2014-07-17 08:49   
Our upstream policy is that only platforms with nightly testing are officially supported. We used to have nightly testing on QNX but the submitter is no longer available. Since then we've accumulated a few problems on the platform. Would you be able to run testing? Instructions are here:

 http://www.cmake.org/Wiki/CMake/Git/Dashboard [^]
(0036410)
Brad King   
2014-07-18 12:49   
The change is being integrated into CMake here:

 KWSys 2014-07-18 (65b36ede)
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=d4d1b7f7 [^]
(0036424)
Brad King   
2014-07-21 10:51   
I've backported the change for inclusion in 3.0.1:

 KWSys SystemInformation: No SA_RESTART on QNX
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=cc3248f4 [^]
(0037591)
Robert Maynard   
2015-01-05 08:39   
Closing resolved issues that have not been updated in more than 4 months