MantisBT - CMake
View Issue Details
0014543CMake(No Category)public2013-11-04 02:302016-06-10 14:31
Modestas Vainius 
Kitware Robot 
normalminorhave not tried
closedmoved 
Gnu/kFreeBSDDebiansid
CMake 2.8.12 
 
0014543: Fails to build on Gnu/kFreeBSD
Hello,

cmake 2.8.12 fails to build on Gnu/kFreeBSD. The simpliest (but probably not 100% perfect) patch along with some explanation within its header is attached to this bug report.

Full build log is available at https://buildd.debian.org/status/fetch.php?pkg=cmake&arch=kfreebsd-amd64&ver=2.8.12-1&stamp=1383507045 [^]
No tags attached.
patch fix-ftbfs-on-kfreebsd.patch (962) 2013-11-04 02:30
https://public.kitware.com/Bug/file/4937/fix-ftbfs-on-kfreebsd.patch
Issue History
2013-11-04 02:30Modestas VainiusNew Issue
2013-11-04 02:30Modestas VainiusFile Added: fix-ftbfs-on-kfreebsd.patch
2013-11-04 09:01Brad KingNote Added: 0034347
2013-11-04 10:37Modestas VainiusNote Added: 0034383
2013-11-04 10:42Brad KingNote Added: 0034384
2013-11-04 10:42Brad KingStatusnew => backlog
2016-06-10 14:29Kitware RobotNote Added: 0042411
2016-06-10 14:29Kitware RobotStatusbacklog => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0034347)
Brad King   
2013-11-04 09:01   
All of this relevant code was contributed so I don't fully understand the #if structure myself.

A similar patch was contributed recently:

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

modifying code in the

 #ifdef __FreeBSD__

block. Does that address this?
(0034383)
Modestas Vainius   
2013-11-04 10:37   
Well, I don't think so because __FreeBSD__ is not defined on kFreeBSD. Sinec kFreeBSD and Hurd userland is closer to Linux so my patch makes more sense probably.

However, I still do believe that the #if structure should be changed. Personally, I don't see why unnesting that if defined(KWSYS_SYSTEMINFORMATION_HAS_BACKTRACE) etc. stuff out of OS specific #ifdefs would not work.
(0034384)
Brad King   
2013-11-04 10:42   
Re 0014543:0034383: Thanks. As I said the logic is contributed and worked on all our officially supported platforms (those with nightly submissions to our dashboard). I don't have time to understand and refactor it myself. We'll have to wait for a contributor to do it.
(0042411)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.