Skip to content

Docker fails to build on OSX (both main and ziggy branches) #7

@illuzen

Description

@illuzen

Changed image line to

FROM --platform=linux/amd64 ubuntu:20.04

and change CPPLINT.cfg filter command to

filter=-legal/copyright,-build/c++11,-whitespace/indent_namespace,-build/include_what_you_use,-readability/casting

but still getting errors in the commitment scheme tests.

67.21 [ 77%] Building CXX object src/starkware/commitment_scheme/CMakeFiles/packaging_commitment_scheme.dir/packaging_commitment_scheme.cc.o
69.04 In file included from /app/src/starkware/commitment_scheme/salted_commitment_scheme_test.cc:7:
69.04 In file included from /usr/local/include/gmock/gmock.h:62:
69.04 /usr/local/include/gmock/gmock-generated-nice-strict.h:276:3: error: call to implicitly-deleted default constructor of 'starkware::VerifierChannelMock'
69.04 StrictMock() {
69.04 ^
69.04 /app/src/starkware/commitment_scheme/salted_commitment_scheme_test.cc:114:35: note: in instantiation of member function 'testing::StrictMockstarkware::VerifierChannelMock::StrictMock' requested here
69.04 StrictMock verifier_channel;
69.04 ^
69.04 /app/src/starkware/channel/verifier_channel_mock.h:13:29: note: default constructor of 'VerifierChannelMock' is implicitly deleted because base class 'starkware::VerifierChannel' has a deleted default constructor
69.04 class VerifierChannelMock : public VerifierChannel {
69.04 ^
69.04 /app/src/starkware/channel/verifier_channel.h:26:3: note: explicitly defaulted function was implicitly deleted here
69.04 VerifierChannel() = default;
69.04 ^
69.04 /app/src/starkware/channel/verifier_channel.h:170:32: note: default constructor of 'VerifierChannel' is implicitly deleted because field 'proof_' of const-qualified type 'const std::vectorstd::byte' would not be initialized
69.04 const std::vectorstd::byte proof_;
69.04 ^
69.09 1 error generated.
69.10 make[2]: *** [src/starkware/commitment_scheme/CMakeFiles/salted_commitment_scheme_test.dir/build.make:63: src/starkware/commitment_scheme/CMakeFiles/salted_commitment_scheme_test.dir/salted_commitment_scheme_test.cc.o] Error 1

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