[kde-freebsd] maintainer-feedback requested: [Bug 206546] devel/cmake - Cmake 3.4.1 fails to build using "make install"

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Jan 23 23:00:56 UTC 2016


byronkatz at gmail.com has reassigned Bugzilla Automation <bugzilla at FreeBSD.org>'s
request for maintainer-feedback to kde at FreeBSD.org:
Bug 206546: devel/cmake - Cmake 3.4.1 fails to build using "make install"
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206546



--- Description ---
Discovered during build of Gnu Octave.	There are two problems I see happening.

1)  the man page isn't being built when/where expected.
2) when Cmake tries to run install/strip, it fails and shows the error message
"Signal 11".

My system:
==========

[root at laser /usr/ports/devel/cmake]# uname -v -a
FreeBSD laser 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r290228: Sun Nov  1 09:33:36
EST 2015     root at laser:/usr/obj/usr/local/share/head/sys/GENERIC  i386


port svn info
=============

[root at laser /usr/ports/devel/cmake]# svn info /usr/ports/devel/cmake
Path: .
Working Copy Root Path: /usr/ports
URL: https://svn.freebsd.org/ports/head/devel/cmake
Relative URL: ^/head/devel/cmake
Repository Root: https://svn.freebsd.org/ports
Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5
Revision: 407046
Node Kind: directory
Schedule: normal
Last Changed Author: rakuco
Last Changed Rev: 403079
Last Changed Date: 2015-12-05 16:16:19 -0500 (Sat, 05 Dec 2015)

running the build
=================

[root at laser /usr/ports/devel/cmake]# make install
===>  Staging for cmake-3.4.1
===>   cmake-3.4.1 depends on file: /usr/local/share/cmake/Modules/CMake.cmake
- found
===>   cmake-3.4.1 depends on shared library: libcurl.so - found
(/usr/local/lib/libcurl.so)
===>   cmake-3.4.1 depends on shared library: libexpat.so - found
(/usr/local/lib/libexpat.so)
===>   cmake-3.4.1 depends on shared library: libjsoncpp.so - found
(/usr/local/lib/libjsoncpp.so)
===>   cmake-3.4.1 depends on shared library: libarchive.so.13 - found
(/usr/local/lib/libarchive.so.13)
===>   Generating temporary packing list
[  7%] Built target cmsys
[ 10%] Built target cmsys_c
[ 11%] Built target cmcompress
[ 62%] Built target CMakeLib
[ 70%] Built target CPackLib
[ 90%] Built target CTestLib
[ 96%] Built target ccmake
[ 97%] Built target cmake
[ 98%] Built target cpack
[ 99%] Built target ctest
[100%] sphinx-build man: see Utilities/Sphinx/build-man.log
/usr/ports/devel/cmake/work/cmake-3.4.1/Help/index.rst:16: WARNING: toctree
contains reference to nonexisting document u'manual/cmake-gui.1'
None:None: WARNING: cmake:manual reference target not found: cmake-gui(1)
None:None: WARNING: cmake:manual reference target not found: cmake-gui(1)
None:None: WARNING: cmake:manual reference target not found: cmake-gui(1)
None:None: WARNING: cmake:manual reference target not found: cmake-gui(1)
None:None: WARNING: cmake:manual reference target not found: cmake-gui(1)
None:None: WARNING: cmake:manual reference target not found: cmake-gui(1)
None:None: WARNING: cmake:manual reference target not found: cmake-gui(1)
None:None: WARNING: cmake:manual reference target not found: cmake-gui(1)
None:None: WARNING: cmake:manual reference target not found: cmake-gui(1)
[100%] Built target documentation
Installing the project stripped...
*** Signal 11

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

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

Stop.
make: stopped in /usr/ports/devel/cmake
[root at laser /usr/ports/devel/cmake]#



Looking into the Makefile in the work directory for info on install/strip 
=========================================================================

[root at laser /usr/ports/devel/cmake]# find . -type f -exec grep -InH "Installing
the project stripped" {} \;
./work/cmake-3.4.1/Auxiliary/bash-completion/Makefile:95:      
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the
project stripped..."
./work/cmake-3.4.1/Auxiliary/Makefile:95:	@$(CMAKE_COMMAND) -E
cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
./work/cmake-3.4.1/Source/cmGlobalGenerator.cxx:2447:	       install_strip,
"Installing the project stripped...",
./work/cmake-3.4.1/Source/kwsys/Makefile:95:	@$(CMAKE_COMMAND) -E
cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
./work/cmake-3.4.1/Source/Makefile:95:	@$(CMAKE_COMMAND) -E cmake_echo_color
--switch=$(COLOR) --cyan "Installing the project stripped..."
./work/cmake-3.4.1/Tests/Makefile:95:	@$(CMAKE_COMMAND) -E cmake_echo_color
--switch=$(COLOR) --cyan "Installing the project stripped..."
./work/cmake-3.4.1/Utilities/cmcompress/Makefile:95:	@$(CMAKE_COMMAND) -E
cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
./work/cmake-3.4.1/Utilities/Doxygen/Makefile:95:	@$(CMAKE_COMMAND) -E
cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
./work/cmake-3.4.1/Utilities/KWIML/Makefile:95: @$(CMAKE_COMMAND) -E
cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
./work/cmake-3.4.1/Utilities/KWStyle/Makefile:95:	@$(CMAKE_COMMAND) -E
cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
./work/cmake-3.4.1/Utilities/Sphinx/Makefile:95:	@$(CMAKE_COMMAND) -E
cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
./work/cmake-3.4.1/Utilities/Makefile:95:	@$(CMAKE_COMMAND) -E
cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
./work/cmake-3.4.1/Makefile:95: @$(CMAKE_COMMAND) -E cmake_echo_color
--switch=$(COLOR) --cyan "Installing the project stripped..."



Looking for info on where the "Signal 11" error message came from
=================================================================

[root at laser /usr/ports/devel/cmake]# find . -type f -exec grep -InH "Signal %d"
{} \;
./work/cmake-3.4.1/Source/kwsys/ProcessUNIX.c:2388:	
sprintf(cp->ExitExceptionString, "Signal %d", sig);



Looking into that file
======================
[root at laser /usr/ports/devel/cmake]# sed -n '2250,2400p'
./work/cmake-3.4.1/Source/kwsys/ProcessUNIX.c
}

/*--------------------------------------------------------------------------*/
static kwsysProcessTime kwsysProcessTimeSubtract(kwsysProcessTime in1,
kwsysProcessTime in2)
{
  kwsysProcessTime out;
  out.tv_sec = in1.tv_sec - in2.tv_sec;
  out.tv_usec = in1.tv_usec - in2.tv_usec;
  if(out.tv_usec < 0)
    {
    out.tv_usec += 1000000;
    out.tv_sec -= 1;
    }
  return out;
}

/*--------------------------------------------------------------------------*/
#define KWSYSPE_CASE(type, str) \
  cp->ExitException = kwsysProcess_Exception_##type; \
  strcpy(cp->ExitExceptionString, str)
static void kwsysProcessSetExitException(kwsysProcess* cp, int sig)
{
  switch (sig)
    {
#ifdef SIGSEGV
    case SIGSEGV: KWSYSPE_CASE(Fault, "Segmentation fault"); break;
#endif
#ifdef SIGBUS
# if !defined(SIGSEGV) || SIGBUS != SIGSEGV
    case SIGBUS: KWSYSPE_CASE(Fault, "Bus error"); break;
# endif
#endif
#ifdef SIGFPE
    case SIGFPE: KWSYSPE_CASE(Numerical, "Floating-point exception"); break;
#endif
#ifdef SIGILL
    case SIGILL: KWSYSPE_CASE(Illegal, "Illegal instruction"); break;
#endif
#ifdef SIGINT
    case SIGINT: KWSYSPE_CASE(Interrupt, "User interrupt"); break;
#endif
#ifdef SIGABRT
    case SIGABRT: KWSYSPE_CASE(Other, "Child aborted"); break;
#endif
#ifdef SIGKILL								       
									       
	 [53/1279]
    case SIGKILL: KWSYSPE_CASE(Other, "Child killed"); break;
#endif
#ifdef SIGTERM
    case SIGTERM: KWSYSPE_CASE(Other, "Child terminated"); break;
#endif
#ifdef SIGHUP
    case SIGHUP: KWSYSPE_CASE(Other, "SIGHUP"); break;
#endif
#ifdef SIGQUIT
    case SIGQUIT: KWSYSPE_CASE(Other, "SIGQUIT"); break;
#endif
#ifdef SIGTRAP
    case SIGTRAP: KWSYSPE_CASE(Other, "SIGTRAP"); break;
#endif
#ifdef SIGIOT
# if !defined(SIGABRT) || SIGIOT != SIGABRT
    case SIGIOT: KWSYSPE_CASE(Other, "SIGIOT"); break;
# endif
#endif
#ifdef SIGUSR1
    case SIGUSR1: KWSYSPE_CASE(Other, "SIGUSR1"); break;
#endif
#ifdef SIGUSR2
    case SIGUSR2: KWSYSPE_CASE(Other, "SIGUSR2"); break;
#endif
#ifdef SIGPIPE
    case SIGPIPE: KWSYSPE_CASE(Other, "SIGPIPE"); break;
#endif
#ifdef SIGALRM
    case SIGALRM: KWSYSPE_CASE(Other, "SIGALRM"); break;
#endif
#ifdef SIGSTKFLT
    case SIGSTKFLT: KWSYSPE_CASE(Other, "SIGSTKFLT"); break;
#endif
#ifdef SIGCHLD
    case SIGCHLD: KWSYSPE_CASE(Other, "SIGCHLD"); break;
#elif defined(SIGCLD)
    case SIGCLD: KWSYSPE_CASE(Other, "SIGCLD"); break;
#endif
#ifdef SIGCONT
    case SIGCONT: KWSYSPE_CASE(Other, "SIGCONT"); break;
#endif
#ifdef SIGSTOP
    case SIGSTOP: KWSYSPE_CASE(Other, "SIGSTOP"); break;
#endif
#ifdef SIGTSTP
    case SIGTSTP: KWSYSPE_CASE(Other, "SIGTSTP"); break;
#endif
#ifdef SIGTTIN
    case SIGTTIN: KWSYSPE_CASE(Other, "SIGTTIN"); break;
#endif
#ifdef SIGTTOU
    case SIGTTOU: KWSYSPE_CASE(Other, "SIGTTOU"); break;
#endif
#ifdef SIGURG
    case SIGURG: KWSYSPE_CASE(Other, "SIGURG"); break;
#endif
#ifdef SIGXCPU
    case SIGXCPU: KWSYSPE_CASE(Other, "SIGXCPU"); break;
#endif
#ifdef SIGXFSZ
    case SIGXFSZ: KWSYSPE_CASE(Other, "SIGXFSZ"); break;
#endif
#ifdef SIGVTALRM
    case SIGVTALRM: KWSYSPE_CASE(Other, "SIGVTALRM"); break;
#endif
#ifdef SIGPROF
    case SIGPROF: KWSYSPE_CASE(Other, "SIGPROF"); break;
#endif
#ifdef SIGWINCH
    case SIGWINCH: KWSYSPE_CASE(Other, "SIGWINCH"); break;
#endif
#ifdef SIGPOLL
    case SIGPOLL: KWSYSPE_CASE(Other, "SIGPOLL"); break;
#endif
#ifdef SIGIO
# if !defined(SIGPOLL) || SIGIO != SIGPOLL
    case SIGIO: KWSYSPE_CASE(Other, "SIGIO"); break;
# endif
#endif
#ifdef SIGPWR
    case SIGPWR: KWSYSPE_CASE(Other, "SIGPWR"); break;
#endif
#ifdef SIGSYS
    case SIGSYS: KWSYSPE_CASE(Other, "SIGSYS"); break;
#endif
#ifdef SIGUNUSED
# if !defined(SIGSYS) || SIGUNUSED != SIGSYS
    case SIGUNUSED: KWSYSPE_CASE(Other, "SIGUNUSED"); break;
# endif
#endif
    default:
      cp->ExitException = kwsysProcess_Exception_Other;
      sprintf(cp->ExitExceptionString, "Signal %d", sig);
      break;
    }
}
#undef KWSYSPE_CASE


More information about the kde-freebsd mailing list