Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Jan 2016 23:00:56 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 206546] devel/cmake - Cmake 3.4.1 fails to build using "make install"
Message-ID:  <bug-206546-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206546

            Bug ID: 206546
           Summary: devel/cmake - Cmake 3.4.1 fails to build using "make
                    install"
           Product: Ports & Packages
           Version: Latest
          Hardware: i386
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: kde@FreeBSD.org
          Reporter: byronkatz@gmail.com
             Flags: maintainer-feedback?(kde@FreeBSD.org)
          Assignee: kde@FreeBSD.org

Discovered during build of Gnu Octave.  There are two problems I see happen=
ing.=20
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 mess=
age
"Signal 11".

My system:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

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


port svn info
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

[root@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
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

[root@laser /usr/ports/devel/cmake]# make install
=3D=3D=3D>  Staging for cmake-3.4.1
=3D=3D=3D>   cmake-3.4.1 depends on file: /usr/local/share/cmake/Modules/CM=
ake.cmake
- found
=3D=3D=3D>   cmake-3.4.1 depends on shared library: libcurl.so - found
(/usr/local/lib/libcurl.so)
=3D=3D=3D>   cmake-3.4.1 depends on shared library: libexpat.so - found
(/usr/local/lib/libexpat.so)
=3D=3D=3D>   cmake-3.4.1 depends on shared library: libjsoncpp.so - found
(/usr/local/lib/libjsoncpp.so)
=3D=3D=3D>   cmake-3.4.1 depends on shared library: libarchive.so.13 - found
(/usr/local/lib/libarchive.so.13)
=3D=3D=3D>   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@laser /usr/ports/devel/cmake]#



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

[root@laser /usr/ports/devel/cmake]# find . -type f -exec grep -InH "Instal=
ling
the project stripped" {} \;
./work/cmake-3.4.1/Auxiliary/bash-completion/Makefile:95:=20=20=20=20=20=20
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=3D$(COLOR) --cyan "Installin=
g the
project stripped..."
./work/cmake-3.4.1/Auxiliary/Makefile:95:       @$(CMAKE_COMMAND) -E
cmake_echo_color --switch=3D$(COLOR) --cyan "Installing the project strippe=
d..."
./work/cmake-3.4.1/Source/cmGlobalGenerator.cxx:2447:          install_stri=
p,
"Installing the project stripped...",
./work/cmake-3.4.1/Source/kwsys/Makefile:95:    @$(CMAKE_COMMAND) -E
cmake_echo_color --switch=3D$(COLOR) --cyan "Installing the project strippe=
d..."
./work/cmake-3.4.1/Source/Makefile:95:  @$(CMAKE_COMMAND) -E cmake_echo_col=
or
--switch=3D$(COLOR) --cyan "Installing the project stripped..."
./work/cmake-3.4.1/Tests/Makefile:95:   @$(CMAKE_COMMAND) -E cmake_echo_col=
or
--switch=3D$(COLOR) --cyan "Installing the project stripped..."
./work/cmake-3.4.1/Utilities/cmcompress/Makefile:95:    @$(CMAKE_COMMAND) -E
cmake_echo_color --switch=3D$(COLOR) --cyan "Installing the project strippe=
d..."
./work/cmake-3.4.1/Utilities/Doxygen/Makefile:95:       @$(CMAKE_COMMAND) -E
cmake_echo_color --switch=3D$(COLOR) --cyan "Installing the project strippe=
d..."
./work/cmake-3.4.1/Utilities/KWIML/Makefile:95: @$(CMAKE_COMMAND) -E
cmake_echo_color --switch=3D$(COLOR) --cyan "Installing the project strippe=
d..."
./work/cmake-3.4.1/Utilities/KWStyle/Makefile:95:       @$(CMAKE_COMMAND) -E
cmake_echo_color --switch=3D$(COLOR) --cyan "Installing the project strippe=
d..."
./work/cmake-3.4.1/Utilities/Sphinx/Makefile:95:        @$(CMAKE_COMMAND) -E
cmake_echo_color --switch=3D$(COLOR) --cyan "Installing the project strippe=
d..."
./work/cmake-3.4.1/Utilities/Makefile:95:       @$(CMAKE_COMMAND) -E
cmake_echo_color --switch=3D$(COLOR) --cyan "Installing the project strippe=
d..."
./work/cmake-3.4.1/Makefile:95: @$(CMAKE_COMMAND) -E cmake_echo_color
--switch=3D$(COLOR) --cyan "Installing the project stripped..."



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

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



Looking into that file
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
[root@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 =3D in1.tv_sec - in2.tv_sec;
  out.tv_usec =3D in1.tv_usec - in2.tv_usec;
  if(out.tv_usec < 0)
    {
    out.tv_usec +=3D 1000000;
    out.tv_sec -=3D 1;
    }
  return out;
}

/*-------------------------------------------------------------------------=
-*/
#define KWSYSPE_CASE(type, str) \
  cp->ExitException =3D 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 !=3D 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=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20
         [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 !=3D 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 !=3D 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 !=3D SIGSYS
    case SIGUNUSED: KWSYSPE_CASE(Other, "SIGUNUSED"); break;
# endif
#endif
    default:
      cp->ExitException =3D kwsysProcess_Exception_Other;
      sprintf(cp->ExitExceptionString, "Signal %d", sig);
      break;
    }
}
#undef KWSYSPE_CASE

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-206546-13>