[
https://issues.apache.org/jira/browse/MESOS-8175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gavin updated MESOS-8175:
-------------------------
Comment: was deleted
(was: www.rtat.net)
> CMake build fails to build debug mode
> -------------------------------------
>
> Key: MESOS-8175
> URL: https://issues.apache.org/jira/browse/MESOS-8175
> Project: Mesos
> Issue Type: Bug
> Components: cmake
> Affects Versions: 1.4.0
> Reporter: Alexander Rojas
> Priority: Major
> Labels: cmake, mesosphere
>
> Trying to build Mesos with the following command:
> {noformat}
> cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_LIBEVENT=TRUE -DENABLE_SSL=TRUE ..
> {noformat}
> Yields:
> {noformat}
> 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
> {noformat}
> Listing the directory for protobuf shows the following:
> {noformat}
> $ 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
> {noformat}
> 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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)