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

bazel build //private_join_and_compute:all fails #44

Open
duki22 opened this issue Sep 9, 2023 · 1 comment
Open

bazel build //private_join_and_compute:all fails #44

duki22 opened this issue Sep 9, 2023 · 1 comment

Comments

@duki22
Copy link

duki22 commented Sep 9, 2023

Hi,
I'm trying to build this repo using bazel.
I use windows 10, and bazel 6.3.2

ERROR: C:/users/duki/desktop/workspace/private-join-and-compute/private_join_and_compute/crypto/BUILD:40:11: Compiling private_join_and_compute/crypto/big_num.cc failed: (Exit 2): cl.exe failed: error executing command (from target //private_join_and_compute/crypto:bn_util) C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\bin\HostX64\x64\cl.exe /nologo /DCOMPILER_MSVC /DNOMINMAX /D_WIN32_WINNT=0x0601 /D_CRT_SECURE_NO_DEPRECATE ... (remaining 36 arguments skipped)
cl : Command line warning D9002 : ignoring unknown option '-std=c++17'
private_join_and_compute/crypto/big_num.cc(102): error C2440: 'reinterpret_cast': cannot convert from 'const _Elem *' to 'unsigned char *'
        with
        [
            _Elem=char
        ]
private_join_and_compute/crypto/big_num.cc(102): note: Conversion loses qualifiers
private_join_and_compute/crypto/big_num.cc(102): error C2660: 'BN_bn2bin': function does not take 1 arguments
external/boringssl/src/include\openssl/bn.h(257): note: see declaration of 'BN_bn2bin'
private_join_and_compute/crypto/big_num.cc(102): note: while trying to match the argument list '(bignum_st *)'
INFO: Elapsed time: 2.691s, Critical Path: 1.90s
INFO: 13 processes: 13 internal.
FAILED: Build did NOT complete successfully
@grujicf
Copy link

grujicf commented Oct 26, 2023

Open .bazelrc and replace -std=c++17 with -std:c++17.

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

2 participants