Description
When doing a
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_DEBUG=0 .. && make -j4
there are some strange transient errors that pop up:
Scanning dependencies of target boost-1.53.0
/usr/local/Cellar/cmake/3.8.1/bin/cmake -E make_directory /Users/myusername/Code/src/mesos/src
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/make_bin_include_dir.dir/build.make CMakeFiles/make_bin_include_dir.dir/build
make[1]: /Applications/Xcode.app/Contents/Developer/usr/bin/make: Permission denied
make[1]: *** [3rdparty/CMakeFiles/protobuf-2.6.1.dir/all] Error 1
make[1]: *** Waiting for unfinished jobs....
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f 3rdparty/CMakeFiles/boost-1.53.0.dir/build.make 3rdparty/CMakeFiles/boost-1.53.0.dir/build
make[1]: /Applications/Xcode.app/Contents/Developer/usr/bin/make: Permission denied
make[1]: *** [CMakeFiles/make_bin_include_dir.dir/all] Error 1
make[1]: *** [3rdparty/CMakeFiles/boost-1.53.0.dir/all] Error 1
[ 0%] Built target make_bin_src_dir
make: *** [all] Error 2
/usr/include/assert.h:93:25: note: expanded from macro 'assert' (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0) ^ 29 warnings generated. libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/Users/myusername/Code/src/mesos/build/3rdparty/libev-4.22/src/libev-4.22 -g -O3 -MT ev.lo -MD -MP -MF .deps/ev.Tpo -c /Users/myusername/Code/src/mesos/build/3rdparty/libev-4.22/src/libev-4.22/ev.c -o ev.o >/dev/null 2>&1 mv -f .deps/ev.Tpo .deps/ev.Plo /bin/sh ./libtool --tag=CC --mode=link gcc -g -O3 -version-info 4:0:0 -o libev.la -rpath /Users/myusername/Code/src/mesos/build/3rdparty/libev-4.22/src/libev-4.22-lib/lib ev.lo event.lo libtool: link: gcc -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -o .libs/libev.4.dylib .libs/ev.o .libs/event.o -O3 -install_name /Users/myusername/Code/src/mesos/build/3rdparty/libev-4.22/src/libev-4.22-lib/lib/libev.4.dylib -compatibility_version 5 -current_version 5.0 -Wl,-single_module libtool: link: (cd ".libs" && rm -f "libev.dylib" && ln -s "libev.4.dylib" "libev.dylib") libtool: link: ar cru .libs/libev.a ev.o event.o libtool: link: ranlib .libs/libev.a libtool: link: ( cd ".libs" && rm -f "libev.la" && ln -s "../libev.la" "libev.la" ) cd /Users/myusername/Code/src/mesos/build/3rdparty/libev-4.22/src/libev-4.22-build && /usr/local/Cellar/cmake/3.8.1/bin/cmake -E touch /Users/myusername/Code/src/mesos/build/3rdparty/libev-4.22/src/libev-4.22-stamp/libev-4.22-build [ 4%] Performing install step for 'libev-4.22' cd /Users/myusername/Code/src/mesos/build/3rdparty/libev-4.22/src/libev-4.22-build && mkdir -p /Users/myusername/Code/src/mesos/build/3rdparty/libev-4.22/src/libev-4.22-lib/lib && cp -r /Users/myusername/Code/src/mesos/build/3rdparty/libev-4.22/src/libev-4.22-build/.libs/. /Users/myusername/Code/src/mesos/build/3rdparty/libev-4.22/src/libev-4.22-lib/lib cd /Users/myusername/Code/src/mesos/build/3rdparty/libev-4.22/src/libev-4.22-build && /usr/local/Cellar/cmake/3.8.1/bin/cmake -E touch /Users/myusername/Code/src/mesos/build/3rdparty/libev-4.22/src/libev-4.22-stamp/libev-4.22-install [ 6%] Completed 'libev-4.22' cd /Users/myusername/Code/src/mesos/build/3rdparty && /usr/local/Cellar/cmake/3.8.1/bin/cmake -E make_directory /Users/myusername/Code/src/mesos/build/3rdparty/CMakeFiles cd /Users/myusername/Code/src/mesos/build/3rdparty && /usr/local/Cellar/cmake/3.8.1/bin/cmake -E touch /Users/myusername/Code/src/mesos/build/3rdparty/CMakeFiles/libev-4.22-complete cd /Users/myusername/Code/src/mesos/build/3rdparty && /usr/local/Cellar/cmake/3.8.1/bin/cmake -E touch /Users/myusername/Code/src/mesos/build/3rdparty/libev-4.22/src/libev-4.22-stamp/libev-4.22-done [ 6%] Built target libev-4.22 make: *** [all] Error 2
And there seems to be an impassable error further along:
[ 27%] Completed 'glog-0.3.3' cd /Users/myusername/Code/src/mesos/build/3rdparty && /usr/local/Cellar/cmake/3.8.1/bin/cmake -E make_directory /Users/myusername/Code/src/mesos/build/3rdparty/CMakeFiles cd /Users/myusername/Code/src/mesos/build/3rdparty && /usr/local/Cellar/cmake/3.8.1/bin/cmake -E touch /Users/myusername/Code/src/mesos/build/3rdparty/CMakeFiles/glog-0.3.3-complete cd /Users/myusername/Code/src/mesos/build/3rdparty && /usr/local/Cellar/cmake/3.8.1/bin/cmake -E touch /Users/myusername/Code/src/mesos/build/3rdparty/glog-0.3.3/src/glog-0.3.3-stamp/glog-0.3.3-done gmake[2]: Leaving directory '/Users/myusername/Code/src/mesos/build' [ 27%] Built target glog-0.3.3 gmake[1]: Leaving directory '/Users/myusername/Code/src/mesos/build' gmake: *** [Makefile:120: all] Error 2