d2iq-archive / serenity

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

Added Clang++-3.5 as a optional compiler for Serenity. #97

Closed bwplotka closed 9 years ago

bwplotka commented 9 years ago

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

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

EDIT: On CI and some other machines compilation runs smoothly.

bwplotka commented 9 years ago

Includes https://github.com/mesosphere/serenity/pull/100

nqn commented 9 years ago

Can we change the title from 'compilator' to 'compiler'? :)

nqn commented 9 years ago

LGTM - but seems like you need to rebase.

bwplotka commented 9 years ago

@nqn Were you able to compile it using on this branch? :>