You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by Charles Allen <ch...@metamarkets.com> on 2017/11/01 14:59:43 UTC

Re: Static build?

Unfortunately, cmake is not working locally:


CMakeFiles/Makefile2:2748: recipe for target
'src/slave/container_loggers/CMakeFiles/logrotate_container_logger.dir/all'
failed
/usr/bin/ld: ../../libmesos-1.4.0.a(logging.cpp.o): relocation R_X86_64_32
against `.rodata' can not be used when making a shared object; recompile
with -fPIC
../../libmesos-1.4.0.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [src/.libs/liblogrotate_container_logger.so] Error 1
make[1]: ***
[src/slave/container_loggers/CMakeFiles/logrotate_container_logger.dir/all]
Error 2
make[1]: Leaving directory '/usr/src/mesos/build'
make: *** [all] Error 2
Makefile:119: recipe for target 'all' failed
The command '/bin/sh -c set -ex &&   cmake .. -DBUILD_SHARED_LIBS=FALSE
-DCMAKE_INSTALL_PREFIX=/opt/mesos &&   cmake --build . --config Release'
returned a non-zero code: 2


based on a Docker build that looks like

RUN set -ex && \
  cmake .. -DBUILD_SHARED_LIBS=FALSE -DCMAKE_INSTALL_PREFIX=/opt/mesos && \
  cmake --build . --config Release

On Tue, Oct 31, 2017 at 10:25 AM James Peach <jo...@gmail.com> wrote:

>
> > On Oct 31, 2017, at 9:51 AM, Charles Allen <
> charles.allen@metamarkets.com> wrote:
> >
> > Is it possible to statically build mesos?
> >
> > https://issues.apache.org/jira/browse/MESOS-8127 fails for me.
>
> It looks like compiler flags are not propagated through the 3rdparty
> builds very consistently. Depending on your build environment you might be
> able to build against unbundled dependencies?
>
> >
> > Some other related tickets
> > https://issues.apache.org/jira/browse/MESOS-1633
> > https://issues.apache.org/jira/browse/MESOS-144
> >
> > Thank you,
> > Charles Allen
>
>