Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-8175

CMake build fails to build debug mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.0
    • None
    • cmake

    Description

      Trying to build Mesos with the following command:

      cmake  -DCMAKE_BUILD_TYPE=Debug -DENABLE_LIBEVENT=TRUE -DENABLE_SSL=TRUE ..
      

      Yields:

      cd /home/alexander/workspace/pmesos/cmake-build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/alexander/workspace/pmesos /home/alexander/workspace/pmesos/src /home/alexander/workspace/pmesos/cmake-build /home/alexander/workspace/pmesos/cmake-build/src /home/alexander/workspace/pmesos/cmake-build/src/CMakeFiles/mesos-protobufs.dir/DependInfo.cmake --color=
      make[3]: Leaving directory '/home/alexander/workspace/pmesos/cmake-build'
      make -f src/CMakeFiles/mesos-protobufs.dir/build.make src/CMakeFiles/mesos-protobufs.dir/build
      make[3]: Entering directory '/home/alexander/workspace/pmesos/cmake-build'
      make[3]: *** No rule to make target '3rdparty/protobuf-3.3.0/src/protobuf-3.3.0-build/libprotobuf.so', needed by 'src/libmesos-protobufs.so'.  Stop.
      make[3]: Leaving directory '/home/alexander/workspace/pmesos/cmake-build'
      CMakeFiles/Makefile2:1125: recipe for target 'src/CMakeFiles/mesos-protobufs.dir/all' failed
      make[2]: *** [src/CMakeFiles/mesos-protobufs.dir/all] Error 2
      make[2]: Leaving directory '/home/alexander/workspace/pmesos/cmake-build'
      CMakeFiles/Makefile2:188: recipe for target 'CMakeFiles/check.dir/rule' failed
      make[1]: *** [CMakeFiles/check.dir/rule] Error 2
      make[1]: Leaving directory '/home/alexander/workspace/pmesos/cmake-build'
      Makefile:193: recipe for target 'check' failed
      make: *** [check] Error 2
      

      Listing the directory for protobuf shows the following:

      $ ls -l 3rdparty/protobuf-3.3.0/src/protobuf-3.3.0-build
      -rw-rw-r--.  1 user user    18485 Nov  7 04:35 CMakeCache.txt
      drwxrwxr-x. 10 user user     4096 Nov  7 04:36 CMakeFiles
      -rw-rw-r--.  1 user user    52241 Nov  7 04:35 cmake_install.cmake
      -rwxrwxr-x.  1 user user    35496 Nov  7 04:35 js_embed
      drwxrwxr-x.  3 user user       26 Nov  7 04:35 lib64
      -rwxrwxr-x.  1 user user 21747424 Nov  7 04:35 libprotobufd.so
      -rwxrwxr-x.  1 user user  2020752 Nov  7 04:35 libprotobuf-lited.so
      -rwxrwxr-x.  1 user user 19788608 Nov  7 04:36 libprotocd.so
      -rw-rw-r--.  1 user user   597984 Nov  7 04:35 Makefile
      -rwxrwxr-x.  1 user user   190328 Nov  7 04:36 protoc
      

      From this is easy to infer that protobuf suffixes a d to the debug version of its libraries but when we try to link to them we expect them to not use any suffix.

      Attachments

        Activity

          People

            Unassigned Unassigned
            arojas Alexander Rojas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: