d2iq-archive / serenity

Intel:Mesosphere oversubscription technologies for Apache Mesos
Other
69 stars 21 forks source link

Enchanced Cmake for compilation using Clang++-3.5 & updated code for newest Mesos' stout and libprocess #93

Closed bwplotka closed 9 years ago

bwplotka commented 9 years ago

Also updated code with newest stout & libprocess changes.

Signed-off-by: bplotka bwplotka@gmail.com

nqn commented 9 years ago

Would you mind updating the Dockerfile to include clang, so the CI build passes? :)

bwplotka commented 9 years ago

@nqn: I will update Dockerfile, but it is not the reason of the failure. https://hub.docker.com/r/mesosphere/mesos-modules-dev/ docker image is out-of-date (mesos master branch includes now newest stout & libprocess changes). @ConnorDoyle: Could you rebuild this image on docker registry? Thanks!

bwplotka commented 9 years ago

I cannot compile serenity-tests using Clang with linked Serenity, Mesos and glog together. As far as i know Serenity includes glog (Serenity is linked as shared, dynamic lib), Mesos links glog (?) (and Mesos itself is also linked as shared, dynamic lib). 1) Without glog we can compile serenity-tests, however after performing all tests (they are succesfully ran) it ends up with seg fault... 2) On the other hand when i link glog in serenity-tests using Clang i have: ERROR: something wrong with flag 'logtostderr' in file 'src/logging.cc'. One possibility: file 'src/logging.cc' is being linked both statically and dynamically into this executable.. Any ideas? Using Gcc everything works! (with or without glog). See: https://github.com/Bplotka/serenity/blob/clang_option/CMakeLists.txt#L176

I am sure that @jmlvanre could help (:

bwplotka commented 9 years ago

Added updated - more clear version: https://github.com/mesosphere/serenity/pull/97