Solved Can't compile cmake-3.7.1

Hello,

I can't compile cmake-3.7.1:
Code:
# /usr/ports/devel/cmake
# make

##########
Scanning dependencies of target cmake
[ 73%] Building CXX object Source/CMakeFiles/cmake.dir/cmakemain.cxx.o
[ 74%] Building CXX object Source/CMakeFiles/CPackLib.dir/CPack/IFW/cmCPackIFWGenerator.cxx.o
[ 74%] Building CXX object Source/CMakeFiles/ccmake.dir/CursesDialog/cmCursesStringWidget.cxx.o
[ 75%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestConfigureHandler.cxx.o
[ 75%] Building CXX object Source/CMakeFiles/cmake.dir/cmcmd.cxx.o
[ 76%] Building CXX object Source/CMakeFiles/ccmake.dir/CursesDialog/cmCursesWidget.cxx.o
[ 76%] Building CXX object Source/CMakeFiles/CPackLib.dir/CPack/cmCPackSTGZGenerator.cxx.o
[ 76%] Building CXX object Source/CMakeFiles/ccmake.dir/CursesDialog/ccmake.cxx.o
[ 76%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestCoverageCommand.cxx.o
[ 76%] Building CXX object Source/CMakeFiles/CPackLib.dir/CPack/cmCPackTGZGenerator.cxx.o
[ 77%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestCoverageHandler.cxx.o
[ 77%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestCurl.cxx.o
[ 77%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmParseMumpsCoverage.cxx.o
[ 78%] Building CXX object Source/CMakeFiles/CPackLib.dir/CPack/cmCPackTXZGenerator.cxx.o
[ 79%] Linking CXX executable ../bin/ccmake
[ 79%] Building CXX object Source/CMakeFiles/CPackLib.dir/CPack/cmCPackTarBZip2Generator.cxx.o
/usr/local/lib/libuv.so: undefined reference to `kvm_close'
/usr/local/lib/libuv.so: undefined reference to `kvm_open'
/usr/local/lib/libuv.so: undefined reference to `kvm_getprocs'
c++: error: linker command failed with exit code 1 (use -v to see invocation)
--- bin/ccmake ---
*** [bin/ccmake] Error code 1

make[4]: stopped in /usr/ports/devel/cmake/work/cmake-3.7.1
1 error

make[4]: stopped in /usr/ports/devel/cmake/work/cmake-3.7.1
--- Source/CMakeFiles/ccmake.dir/all ---
*** [Source/CMakeFiles/ccmake.dir/all] Error code 2

make[3]: stopped in /usr/ports/devel/cmake/work/cmake-3.7.1
A failure has been detected in another branch of the parallel make

make[4]: stopped in /usr/ports/devel/cmake/work/cmake-3.7.1
--- Source/CMakeFiles/CPackLib.dir/all ---
*** [Source/CMakeFiles/CPackLib.dir/all] Error code 2

make[3]: stopped in /usr/ports/devel/cmake/work/cmake-3.7.1
A failure has been detected in another branch of the parallel make

make[4]: stopped in /usr/ports/devel/cmake/work/cmake-3.7.1
--- Source/CMakeFiles/cmake.dir/all ---
*** [Source/CMakeFiles/cmake.dir/all] Error code 2

make[3]: stopped in /usr/ports/devel/cmake/work/cmake-3.7.1
A failure has been detected in another branch of the parallel make

make[4]: stopped in /usr/ports/devel/cmake/work/cmake-3.7.1
--- Source/CMakeFiles/CTestLib.dir/all ---
*** [Source/CMakeFiles/CTestLib.dir/all] Error code 2

make[3]: stopped in /usr/ports/devel/cmake/work/cmake-3.7.1
4 errors

make[3]: stopped in /usr/ports/devel/cmake/work/cmake-3.7.1
*** [all] Error code 2

make[2]: stopped in /usr/ports/devel/cmake/work/cmake-3.7.1
1 error

make[2]: stopped in /usr/ports/devel/cmake/work/cmake-3.7.1
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/cmake
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/cmake
##########

# uname -a
FreeBSD hostname 11.0-RELEASE-p2 FreeBSD 11.0-RELEASE-p2 #0: Mon Oct 24 06:55:27 UTC 2016     [EMAIL]root@amd64-builder.daemonology.net[/EMAIL]:/usr/obj/usr/src/sys/GENERIC  amd64

# freebsd-version
11.0-RELEASE-p5


Any ideas?
 
What does ldd /usr/local/lib/libuv.so.1 | grep libkvm reports. Do you have the /lib/libkvm.so.X library on you system?
 
Thanks! This is the problem.

How i fixed it:

cd /usr/src/lib/libkvm/
make && make install
cd /usr/ports/devel/libuv
make clean reinstall

and than i compiled devel/cmake without any errors.
 
Back
Top