Skip to content

build inside docker #114

Description

@quant61

Is it possible to build it with docker?

I tried

  • madduci/docker-linux-cpp
  • teeks99/boost-cpp-docker:clang-14

Dockerfile:

FROM teeks99/boost-cpp-docker:clang-14


RUN apt update
RUN apt upgrade -y
RUN apt install -y cmake libboost-all-dev

RUN git clone --recursive https://github.com/objectcomputing/mFAST.git /mFAST
RUN mkdir /mFAST/build

RUN cd /mFAST/build && cmake -DCMAKE_C_COMPILER=/usr/bin/clang-14 -DCMAKE_CXX_COMPILER=/usr/bin/clang++-14 .. \
    && make

On make I get following error:

In file included from /mFAST/src/mfast/decimal_ref.cpp:12:
/usr/include/boost/multiprecision/cpp_dec_float.hpp:613:12: error: implicit instantiation of undefined template 'boost::serialization::nvp<bool>'
      ar & boost::serialization::make_nvp("sign", neg);
           ^
/usr/include/boost/multiprecision/detail/number_base.hpp:60:14: note: template is declared here
      struct nvp;
             ^
In file included from /mFAST/src/mfast/decimal_ref.cpp:12:
/usr/include/boost/multiprecision/cpp_dec_float.hpp:615:12: error: implicit instantiation of undefined template 'boost::serialization::nvp<int>'
      ar & boost::serialization::make_nvp("precision", prec_elem);
           ^
/usr/include/boost/multiprecision/detail/number_base.hpp:60:14: note: template is declared here
      struct nvp;
             ^
2 errors generated.

Which docker image and which clang++ or g++ version is it better to use?
If possible with std-c++20 or at least std-c++17

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions