We've since disabled perftools by default as a result of these kinds of compilation issues.
To disable perftools in 0.12.0, configure with --disable-perftools: ../configure --disable-perftools On Thu, Jun 20, 2013 at 5:38 PM, Gary Malouf <[email protected]> wrote: > Hi everyone, > > In order, to run chronos in our production environment, we are trying to > first compile and install mesos. The steps I've taken are the following: > > > 1. Clone incubating-mesos > 2. checkout the 0.12.0 tag required for chronos > 3. run ./bootstrap > 4. mkdir build > 5. cd build > 6. ../configure > 7. make > > > The build breaks while trying to compile gperftools: > > > mv -f .deps/libtcmalloc_internal_la-memory_region_map.Tpo > .deps/libtcmalloc_internal_la-memory_region_map.Plo > /bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. > -I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual > -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free > -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree > -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc > -fno-builtin-pvalloc -Wno-unused-result -DNO_FRAME_POINTER -g -O2 -MT > stacktrace.lo -MD -MP -MF .deps/stacktrace.Tpo -c -o stacktrace.lo `test -f > 'src/stacktrace.cc' || echo './'`src/stacktrace.cc > libtool: compile: g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall > -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc > -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc > -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign > -fno-builtin-valloc -fno-builtin-pvalloc -Wno-unused-result > -DNO_FRAME_POINTER -g -O2 -MT stacktrace.lo -MD -MP -MF > .deps/stacktrace.Tpo -c src/stacktrace.cc -fPIC -DPIC -o stacktrace.o > In file included from src/stacktrace.cc:57: > src/stacktrace_config.h:58:5: error: #error Cannnot calculate stack trace: > need either libunwind or frame-pointers (see INSTALL file) > src/stacktrace.cc:109:3: error: #error Cannot calculate stack trace: will > need to write for your environment > cc1plus: warning: unrecognized command line option "-Wno-unused-result" > make[6]: *** [stacktrace.lo] Error 1 > make[6]: Leaving directory > > `/home/vagrant/incubator-mesos/build/third_party/libprocess/third_party/gperftools-2.0' > make[5]: *** [gperftools-2.0-build-stamp] Error 2 > make[5]: Leaving directory > `/home/vagrant/incubator-mesos/build/third_party/libprocess/third_party' > make[4]: *** [all] Error 2 > make[4]: Leaving directory > `/home/vagrant/incubator-mesos/build/third_party/libprocess/third_party' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory > `/home/vagrant/incubator-mesos/build/third_party/libprocess' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory > `/home/vagrant/incubator-mesos/build/third_party' > make[1]: *** [all] Error 2 > make[1]: Leaving directory > `/home/vagrant/incubator-mesos/build/third_party' > make: *** [all-recursive] Error 1 > > > I was able to quickly build it on my mac, but I've been battling a lot of > these types of issues all evening trying to get this running. > > > Thanks for any assistance, > Gary >
