Closed yesudeep closed 4 years ago
Here's the error (used with BoringSSL):
Windows 10 (MS VC 2019):
❯ bazel test ... ... ERROR: C:/tmp/yhlvxsm5/external/usockets/BUILD.bazel:35:11: C++ compilation of rule '@usockets//:usockets' failed (Exit 2): cl.exe failed: error executing command ... C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.27.29110/bin/HostX64/x64/cl.exe /nologo /DCOMPILER_MSVC /DNOMINMAX /D_WIN32_WINNT =0x0601 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS /bigobj /Zm500 /EHsc /wd4351 /wd4291 /wd4250 /wd4996 /Iexternal/usockets /Ibazel-out/x64_windows-fast build/bin/external/usockets /Iexternal/boringssl /Ibazel-out/x64_windows-fastbuild/bin/external/boringssl /Iexternal/libuv /Ibazel-out/x64_windows-fastbuild/bin/e xternal/libuv /Iexternal/pthread_windows /Ibazel-out/x64_windows-fastbuild/bin/external/pthread_windows /Ibazel-out/x64_windows-fastbuild/bin/external/usockets/_v irtual_includes/usockets /Iexternal/usockets/src /Ibazel-out/x64_windows-fastbuild/bin/external/usockets/src /Iexternal/boringssl/src/include /Ibazel-out/x64_wind ows-fastbuild/bin/external/boringssl/src/include /Iexternal/libuv/include /Ibazel-out/x64_windows-fastbuild/bin/external/libuv/include /Iexternal/libuv/src /Ibaze l-out/x64_windows-fastbuild/bin/external/libuv/src /Iexternal/libuv/src/unix /Ibazel-out/x64_windows-fastbuild/bin/external/libuv/src/unix /DPTW32_STATIC_LIB=1 /D LIBUS_USE_OPENSSL=1 /DLIBUS_USE_LIBUV=1 /DWIN32_LEAN_AND_MEAN=1 /showIncludes /MD /Od /Z7 /wd4117 -D__DATE__="redacted" -D__TIMESTAMP__="redacted" -D__TIME__="red acted" -DHAVE_BAZEL_BUILD /DHAVE_BAZEL_BUILD_WINDOWS /D_HAS_DEPRECATED_RESULT_OF=1 /D_HAS_DEPRECATED_UNCAUGHT_EXCEPTION=1 /Fobazel-out/x64_windows-fastbuild/bin/e xternal/usockets/_objs/usockets/openssl.obj /c external/usockets/src/crypto/openssl.c Execution platform: @local_config_platform//:host external/usockets/src/crypto/openssl.c(491): error C2065: 'context': undeclared identifier external/usockets/src/crypto/openssl.c(491): error C2223: left of '->ssl_context' must point to struct/union external/usockets/src/crypto/openssl.c(491): warning C4133: 'function': incompatible types - from 'DH *' to 'SSL_CTX *' external/usockets/src/crypto/openssl.c(491): error C2198: 'SSL_CTX_set_tmp_dh': too few arguments for call INFO: Elapsed time: 70.412s, Critical Path: 50.47s INFO: 575 processes: 575 local. FAILED: Build did NOT complete successfully
Linux (GCC 10):
❯ bazel test ... ... /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -MD -MF bazel-out/k8-fastbuil d/bin/external/usockets/_objs/usockets/openssl.pic.d '-frandom-seed=bazel-out/k8-fastbuild/bin/external/usockets/_objs/usockets/openssl.pic.o' -fPIC '-DLIBUS_USE_ OPENSSL=1' '-DLIBUS_USE_EPOLL=1' -iquote external/usockets -iquote bazel-out/k8-fastbuild/bin/external/usockets -iquote external/boringssl -iquote bazel-out/k8-fa stbuild/bin/external/boringssl -Ibazel-out/k8-fastbuild/bin/external/usockets/_virtual_includes/usockets -isystem external/usockets/src -isystem bazel-out/k8-fast build/bin/external/usockets/src -isystem external/boringssl/src/include -isystem bazel-out/k8-fastbuild/bin/external/boringssl/src/include -DHAVE_BAZEL_BUILD '-st d=c11' -flto -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/u sockets/src/crypto/openssl.c -o bazel-out/k8-fastbuild/bin/external/usockets/_objs/usockets/openssl.pic.o) Execution platform: @local_config_platform//:host Use --sandbox_debug to see verbose messages from the sandbox external/usockets/src/crypto/openssl.c: In function 'ssl_on_end': external/usockets/src/crypto/openssl.c:186:46: warning: unused variable 'context' [-Wunused-variable] 186 | struct us_internal_ssl_socket_context_t *context = (struct us_internal_ssl_socket_context_t *) us_socket_context(0, &s->s); | ^~~~~~~ external/usockets/src/crypto/openssl.c: In function 'create_ssl_context_from_options': external/usockets/src/crypto/openssl.c:491:52: error: 'context' undeclared (first use in this function); did you mean 'connect'? 491 | const long set_tmp_dh = SSL_CTX_set_tmp_dh(context->ssl_context, dh_2048); | ^~~~~~~ | connect external/usockets/src/crypto/openssl.c:491:52: note: each undeclared identifier is reported only once for each function it appears in INFO: Elapsed time: 7.113s, Critical Path: 2.25s INFO: 6 processes: 6 linux-sandbox. FAILED: Build did NOT complete successfully
Mac OS 11 beta (Clang 10):
❯ bazel test ... ... external/local_config_cc/wrapped_clang '-D_FORTIFY_SOURCE=1' -fstack-protector -fcolor-diagnostics -Wall -Wthread-safety -Wself-assign -fno-omit-frame-pointer -O0 -DDEBUG -iquote external/usockets -iquote bazel-out/darwin-fastbuild/bin/external/usockets -iquote external/boringssl -iquote bazel-out/darwin-fastbuild/bin/external/boringssl -Ibazel-out/darwin-fastbuild/bin/external/usockets/_virtual_includes/usockets -isystem external/usockets/src -isystem bazel-out/darwin-fastbuild/bin/external/usockets/src -isystem external/boringssl/src/include -isystem bazel-out/darwin-fastbuild/bin/external/boringssl/src/include -MD -MF bazel-out/darwin-fastbuild/bin/external/usockets/_objs/usockets/openssl.d '-DLIBUS_USE_OPENSSL=1' '-DLIBUS_USE_KQUEUE=1' '-frandom-seed=bazel-out/darwin-fastbuild/bin/external/usockets/_objs/usockets/openssl.o' -isysroot __BAZEL_XCODE_SDKROOT__ -F__BAZEL_XCODE_SDKROOT__/System/Library/Frameworks -F__BAZEL_XCODE_DEVELOPER_DIR__/Platforms/MacOSX.platform/Developer/Library/Frameworks '-mmacosx-version-min=10.15' -DHAVE_BAZEL_BUILD '-std=c11' -flto -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/usockets/src/crypto/openssl.c -o bazel-out/darwin-fastbuild/bin/external/usockets/_objs/usockets/openssl.o) Execution platform: @local_config_platform//:host Use --sandbox_debug to see verbose messages from the sandbox external/usockets/src/crypto/openssl.c:186:46: warning: unused variable 'context' [-Wunused-variable] struct us_internal_ssl_socket_context_t *context = (struct us_internal_ssl_socket_context_t *) us_socket_context(0, &s->s); ^ external/usockets/src/crypto/openssl.c:491:52: error: use of undeclared identifier 'context' const long set_tmp_dh = SSL_CTX_set_tmp_dh(context->ssl_context, dh_2048); ^ 1 warning and 1 error generated. INFO: Elapsed time: 9.624s, Critical Path: 0.46s INFO: 6 processes: 6 darwin-sandbox. FAILED: Build did NOT complete successfully ``
👍
Here's the error (used with BoringSSL):
Windows 10 (MS VC 2019):
Linux (GCC 10):
Mac OS 11 beta (Clang 10):