MantisBT - CMake
View Issue Details
0014887CMakeCMakepublic2014-04-18 08:002014-10-06 10:33
cakersq 
Brad King 
normalmajoralways
closedfixed 
amd64FreeBSD10-STABLE
CMake 2.8.12.2 
CMake 3.0CMake 3.0 
0014887: CMake fails to compile - error: use of undeclared identifier 'abi'
When compiling cmake on FreeBSD 10-STABLE, which uses the CLANG compiler, the make step results in the following fatal error. See attached for full output.

[ 5%] Building CXX object Source/kwsys/CMakeFiles/cmsys.dir/SystemInformation.cxx.o
/root/build/cmake/cmake-2.8.12.2/Source/kwsys/SystemInformation.cxx:1460:5: error: use of undeclared identifier 'abi'
    abi::__cxa_demangle(symbol, buffer, &bufferLen, &status);
    ^
/root/build/cmake/cmake-2.8.12.2/Source/kwsys/SystemInformation.cxx:1478:3: error: unknown type name 'Dl_info'
  Dl_info info;
  ^
/root/build/cmake/cmake-2.8.12.2/Source/kwsys/SystemInformation.cxx:3631:15: error: use of undeclared identifier 'backtrace'
  int nFrames=backtrace(stackSymbols,256);
              ^
3 errors generated.
*** Error code 1

Stop.
make[2]: stopped in /root/build/cmake/cmake-2.8.12.2
*** Error code 1

Stop.
make[1]: stopped in /root/build/cmake/cmake-2.8.12.2
*** Error code 1

Stop.
make: stopped in /root/build/cmake/cmake-2.8.12.2
./bootstrap
make
No tags attached.
log cmake.log (87,952) 2014-04-18 08:00
https://public.kitware.com/Bug/file/5131/cmake.log
Issue History
2014-04-18 08:00cakersqNew Issue
2014-04-18 08:00cakersqFile Added: cmake.log
2014-04-18 08:04Brad KingNote Added: 0035737
2014-04-18 17:42cakersqNote Added: 0035746
2014-04-21 11:09Brad KingNote Added: 0035752
2014-04-23 08:55Brad KingAssigned To => Brad King
2014-04-23 08:55Brad KingStatusnew => resolved
2014-04-23 08:55Brad KingResolutionopen => fixed
2014-04-23 08:55Brad KingFixed in Version => CMake 3.0
2014-04-23 08:55Brad KingTarget Version => CMake 3.0
2014-10-06 10:33Robert MaynardNote Added: 0036983
2014-10-06 10:33Robert MaynardStatusresolved => closed

Notes
(0035737)
Brad King   
2014-04-18 08:04   
It is failing in some system-specific APIs. I would appreciate help in correcting the code since I do not have a FreeBSD box handy.

CMake is known to work only on platforms for which we have nightly testing submitted to our dashboard:

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

We used to have extensive FreeBSD testing but the contributor is no longer able to run them. If you are able to run a nightly build, instructions are here:

 http://www.cmake.org/Wiki/CMake/Git/Dashboard [^]
(0035746)
cakersq   
2014-04-18 17:42   
Since I can't build CMake for FreeBSD, I can't run the Dashboard scripts, since they require CMake/CTest ...

I can't run these builds every night, but can run them several times a week if needed.
(0035752)
Brad King   
2014-04-21 11:09   
This has been fixed since 2.8.12.2. The change was made in upstream KWSys here:

 SystemInformation: Include backtrace-related headers on FreeBSD
 http://public.kitware.com/gitweb?p=KWSys.git;a=commitdiff;h=6eab64c3 [^]

and integrated into CMake here:

 KWSys 2013-10-15 (6eab64c3)
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=c01e7445 [^]

It is available in the CMake 3.0 release candidates:

 http://www.cmake.org/files/v3.0/?C=M;O=D [^]
(0036983)
Robert Maynard   
2014-10-06 10:33   
Closing resolved issues that have not been updated in more than 4 months.