webminer icon indicating copy to clipboard operation
webminer copied to clipboard

Build fails on Arch Linux

Open makew0rld opened this issue 3 years ago • 3 comments

➤ bazel build -c opt webminer
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
INFO: Analyzed target //:webminer (71 packages loaded, 14099 targets configured).
INFO: Found 1 target...
ERROR: /home/makeworld/.cache/bazel/_bazel_makeworld/73ec761bd8930c492aa91478ba343dfd/external/boringssl/BUILD:165:11: Compiling src/crypto/x509v3/v3_utl.c failed: (Exit 1): gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 37 arguments skipped)

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
In file included from /usr/include/string.h:535,
                 from external/boringssl/src/crypto/x509v3/v3_utl.c:63:
In function 'memset',
    inlined from 'OPENSSL_memset' at external/boringssl/src/crypto/x509v3/../internal.h:840:10,
    inlined from 'ipv6_from_asc' at external/boringssl/src/crypto/x509v3/v3_utl.c:1281:9,
    inlined from 'x509v3_a2i_ipadd' at external/boringssl/src/crypto/x509v3/v3_utl.c:1193:14:
/usr/include/bits/string_fortified.h:59:10: error: '__builtin_memset' forming offset 16 is out of the bounds [0, 16] [-Werror=array-bounds]
   59 |   return __builtin___memset_chk (__dest, __ch, __len,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   60 |                                  __glibc_objsize0 (__dest));
      |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Target //:webminer failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 114.547s, Critical Path: 14.05s
INFO: 284 processes: 17 internal, 267 linux-sandbox.
FAILED: Build did NOT complete successfully

Not sure why this happening. I'm trying the latest commit 04fbd1677077a473becea275aec4f0ae6ec6e7fe

makew0rld avatar Jul 31 '22 20:07 makew0rld

amd64 ?

kanzure avatar Jul 31 '22 20:07 kanzure

Yep, sorry for not specifying. Kernel 5.18.14-arch1-1, gcc 12.1.0, bazel 5.2.0.

makew0rld avatar Jul 31 '22 20:07 makew0rld

Same on WSL Arch, Linux leviathan 5.10.102.1-microsoft-standard-WSL2 #1 SMP Wed Mar 2 00:30:59 UTC 2022 x86_64 GNU/Linux commit 8a3359e

edit: built the binary via the included Dockerfile and copied to host, seems to be running fine ;)

xstefen avatar Aug 21 '22 15:08 xstefen