Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

c++ make failing on forward declaration - running in docker #9

Open
Raycoms opened this issue Feb 1, 2021 · 1 comment
Open

c++ make failing on forward declaration - running in docker #9

Raycoms opened this issue Feb 1, 2021 · 1 comment

Comments

@Raycoms
Copy link
Contributor

Raycoms commented Feb 1, 2021

FROM alpine:latest
RUN apk update
RUN apk add --no-cache git gcc g++ make cmake libuv-dev openssl-dev gmp-dev libsodium-dev autoconf
RUN git clone https://github.com/hot-stuff/libhotstuff.git && cd libhotstuff/ && git submodule update --init --recursive
RUN cd libhotstuff && cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED=ON -DHOTSTUFF_PROTO_LOG=ON && make

When running it in docker like this, I get:

In file included from /libhotstuff/include/hotstuff/util.h:21,
                 from /libhotstuff/src/util.cpp:17:
/libhotstuff/salticidae/include/salticidae/util.h:244:20: error: field 't0' has incomplete type 'salticidae::timeval'
  244 |     struct timeval t0;
      |                    ^~
/libhotstuff/salticidae/include/salticidae/util.h:71:30: note: forward declaration of 'struct salticidae::timeval'
   71 | void sec2tv(double t, struct timeval &tv);
      |                              ^~~~~~~
make[2]: *** [CMakeFiles/hotstuff.dir/build.make:82: CMakeFiles/hotstuff.dir/src/util.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:289: CMakeFiles/hotstuff.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
@Raycoms
Copy link
Contributor Author

Raycoms commented Feb 1, 2021

The problem seems to be an incompatibility with musl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant