MantisBT - CMake
View Issue Details
0014814CMakeCMakepublic2014-03-19 10:562014-10-06 10:32
Gerhard Grimm 
Brad King 
normalminoralways
closedfixed 
hppaHP-UX11.11
CMake 2.8.12.2 
CMake 3.1CMake 3.1 
0014814: CMake 2.8.12.2 cannot be built on HP-UX 11.11 (hppa)
The compilation fails in file kwsys/SystemInformation.cxx, line 4984. The macro CPU_IA64_ARCHREV_0 is not defined on HP-UX 11.11, since that release does not yet support the Itanium CPU.
Attempt to build CMake on this platform.
There are also some "break" statements missing in the switch (t) block starting at line 4973. I have attached a corrected version of the file below.
No tags attached.
cxx SystemInformation.cxx (147,468) 2014-03-19 10:56
https://public.kitware.com/Bug/file/5097/SystemInformation.cxx
Issue History
2014-03-19 10:56Gerhard GrimmNew Issue
2014-03-19 10:56Gerhard GrimmFile Added: SystemInformation.cxx
2014-03-19 11:02Brad KingNote Added: 0035432
2014-03-19 11:16Brad KingNote Added: 0035433
2014-03-19 11:18Brad KingNote Added: 0035434
2014-03-19 11:23Gerhard GrimmNote Added: 0035435
2014-03-19 14:16Rolf Eike BeerNote Added: 0035436
2014-03-19 14:19Rolf Eike BeerNote Added: 0035437
2014-03-19 14:58Brad KingNote Added: 0035438
2014-03-19 15:22Brad KingNote Added: 0035439
2014-03-20 09:30Brad KingNote Added: 0035452
2014-03-20 09:45Brad KingNote Added: 0035453
2014-03-20 09:48Brad KingAssigned To => Brad King
2014-03-20 09:48Brad KingStatusnew => resolved
2014-03-20 09:48Brad KingResolutionopen => fixed
2014-03-20 09:48Brad KingFixed in Version => CMake 3.1
2014-03-20 09:48Brad KingTarget Version => CMake 3.1
2014-10-06 10:32Robert MaynardNote Added: 0036948
2014-10-06 10:32Robert MaynardStatusresolved => closed

Notes
(0035432)
Brad King   
2014-03-19 11:02   
CMake supports only the set of platforms for which nightly build/test runs are submitted to our dashboard:

 http://open.cdash.org/index.php?project=CMake [^]

Currently there is no HP-UX submission. We've asked for help before:

 http://thread.gmane.org/gmane.comp.programming.tools.cmake.user/47839 [^]

but there is still no one running a build for us. Instructions are here:

 http://www.cmake.org/Wiki/CMake/Git/Dashboard [^]

Would you be able to run one?
(0035433)
Brad King   
2014-03-19 11:16   
The CPU_IA64_ARCHREV_0 macro problem was fixed in upstream KWSys here:

 http://public.kitware.com/gitweb?p=KWSys.git;a=commitdiff;h=a02a1ad2 [^]

has already been integrated into CMake 'master' in Git.
(0035434)
Brad King   
2014-03-19 11:18   
I've submitted the missing 'break' statement fixes to upstream KWSys here:

 http://review.source.kitware.com/14795 [^]
(0035435)
Gerhard Grimm   
2014-03-19 11:23   
Thank you Brad, I'll have a look at the instructions and check if this could be done.
(0035436)
Rolf Eike Beer   
2014-03-19 14:16   
Hm, slightly faster than me ;)
(0035437)
Rolf Eike Beer   
2014-03-19 14:19   
Brad, the code for the Itanium chips is not reachable if neither of the Intel macros is defined. I don't know if it's worths #ifdef'ing the whole case out then as it may create compiler warnings.
(0035438)
Brad King   
2014-03-19 14:58   
Re 0014814:0035437: So far the change is only in the review stage in KWSys. If you want to revise or extend the topic there then please do.
(0035439)
Brad King   
2014-03-19 15:22   
Re 0014814:0035438: Okay, I see what you meant. I added the change for it here:

 http://review.source.kitware.com/14799 [^]
(0035452)
Brad King   
2014-03-20 09:30   
The fixes are now in KWSys upstream master:

 SystemInformation: Fix HP-UX PA-RISC processor detection
 http://public.kitware.com/gitweb?p=KWSys.git;a=commitdiff;h=fa86f1ba [^]

 SystemInformation: Fix HP-UX Intel processor detection
 http://public.kitware.com/gitweb?p=KWSys.git;a=commitdiff;h=a8aa1014 [^]
(0035453)
Brad King   
2014-03-20 09:45   
KWSys changes integrated into CMake here:

 KWSys 2014-03-19 (a8aa1014)
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=12faf00d [^]
(0036948)
Robert Maynard   
2014-10-06 10:32   
Closing resolved issues that have not been updated in more than 4 months.