prysmaticlabs / prysm

Go implementation of Ethereum proof of stake
https://www.offchainlabs.com
GNU General Public License v3.0
3.47k stars 1.01k forks source link

Bazel failed to build beacon-chain (_Cfunc_blsVerifyAggregatedHashWithDomain ?) #4691

Closed jdetychey closed 4 years ago

jdetychey commented 4 years ago

Hey there! Hardware: Dell XPS15 16Go RAM, running Ubuntu 16.04 after installing bazel and cmake, running : bazel build //beacon-chain:beacon-chain or bazel build //beacon-chain:beacon-chain --define kafka_enabled=false both return the same error. Short log

INFO: Deleting stale sandbox base /home/jdetychey/.cache/bazel/_bazel_jdetychey/f90b28626577c762b294597de30d529a/sandbox
ERROR: /home/jdetychey/.cache/bazel/_bazel_jdetychey/f90b28626577c762b294597de30d529a/external/com_github_herumi_bls_eth_go_binary/bls/BUILD.bazel:38:1: GoCompilePkg external/com_github_herumi_bls_eth_go_binary/bls/linux_amd64_stripped/go_default_library%/github.com/herumi/bls-eth-go-binary/bls.a failed (Exit 1) builder failed: error executing command bazel-out/host/bin/external/go_sdk/builder compilepkg -sdk external/go_sdk -installsuffix linux_amd64 -src external/com_github_herumi_bls_eth_go_binary/bls/bls.go -src ... (remaining 43 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox
compilepkg: error running subcommand: exit status 2
bls.go:718:105: cannot use _cgo2 (type *[40]_Ctype_uchar) as type unsafe.Pointer in argument to _Cfunc_blsVerifyAggregatedHashWithDomain
Target //beacon-chain:beacon-chain failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 13.493s, Critical Path: 1.33s
INFO: 17 processes: 17 linux-sandbox.
FAILED: Build did NOT complete successfully

Log with --sandbox_debug

INFO: From GoCompilePkg external/com_github_ethereum_go_ethereum/ethdb/leveldb/linux_amd64_stripped/go_default_library%/github.com/ethereum/go-ethereum/ethdb/leveldb.a:
src/main/tools/linux-sandbox.cc:154: linux-sandbox-pid1 has PID 1579
src/main/tools/linux-sandbox-pid1.cc:175: working dir: /home/jdetychey/.cache/bazel/_bazel_jdetychey/f90b28626577c762b294597de30d529a/sandbox/linux-sandbox/52/execroot/prysm
src/main/tools/linux-sandbox-pid1.cc:194: writable: /home/jdetychey/.cache/bazel/_bazel_jdetychey/f90b28626577c762b294597de30d529a/sandbox/linux-sandbox/52/execroot/prysm
src/main/tools/linux-sandbox-pid1.cc:194: writable: /tmp
src/main/tools/linux-sandbox-pid1.cc:194: writable: /dev/shm
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /dev
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /dev/pts
src/main/tools/linux-sandbox-pid1.cc:265: remount rw: /dev/shm
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /dev/mqueue
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /dev/hugepages
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /run
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /run/lock
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /run/user/1000
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /run/user/1000/gvfs
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /run/user/1000/keybase/kbfs
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /sys
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /sys/kernel/security
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /sys/fs/cgroup
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /sys/fs/cgroup/systemd
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /sys/fs/cgroup/perf_event
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /sys/fs/cgroup/freezer
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /sys/fs/cgroup/cpuset
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /sys/fs/cgroup/blkio
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /sys/fs/cgroup/cpu,cpuacct
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /sys/fs/cgroup/hugetlb
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /sys/fs/cgroup/pids
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /sys/fs/cgroup/memory
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /sys/fs/cgroup/net_cls,net_prio
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /sys/fs/cgroup/devices
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /sys/fs/pstore
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /sys/firmware/efi/efivars
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /sys/kernel/debug
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /sys/fs/fuse/connections
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /proc
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /proc/sys/fs/binfmt_misc
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /proc/sys/fs/binfmt_misc
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /snap/parity/16688
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /snap/parity-ui/31
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /snap/parity-ui/38
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /snap/spotify/35
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /snap/core/8268
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /snap/parity/16676
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /snap/core/8213
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /snap/spotify/36
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /snap/parity-ui/25
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /boot/efi
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /keybase
src/main/tools/linux-sandbox-pid1.cc:265: remount rw: /home/jdetychey/.cache/bazel/_bazel_jdetychey/f90b28626577c762b294597de30d529a/sandbox/linux-sandbox/52/execroot/prysm
src/main/tools/linux-sandbox-pid1.cc:265: remount rw: /home/jdetychey/.cache/bazel/_bazel_jdetychey/f90b28626577c762b294597de30d529a/sandbox/linux-sandbox/52/execroot/prysm
src/main/tools/linux-sandbox-pid1.cc:265: remount rw: /tmp
src/main/tools/linux-sandbox-pid1.cc:265: remount rw: /dev/shm
src/main/tools/process-tools.cc:118: sigaction(32, &sa, nullptr) failed
src/main/tools/process-tools.cc:118: sigaction(33, &sa, nullptr) failed
src/main/tools/linux-sandbox-pid1.cc:437: waitpid returned 2
src/main/tools/linux-sandbox-pid1.cc:457: child exited with code 0
src/main/tools/linux-sandbox.cc:204: child exited normally with exitcode 0
ERROR: /home/jdetychey/.cache/bazel/_bazel_jdetychey/f90b28626577c762b294597de30d529a/external/com_github_herumi_bls_eth_go_binary/bls/BUILD.bazel:38:1: GoCompilePkg external/com_github_herumi_bls_eth_go_binary/bls/linux_amd64_stripped/go_default_library%/github.com/herumi/bls-eth-go-binary/bls.a failed (Exit 1) linux-sandbox failed: error executing command 
  (cd /home/jdetychey/.cache/bazel/_bazel_jdetychey/f90b28626577c762b294597de30d529a/sandbox/linux-sandbox/28/execroot/prysm && \
  exec env - \
    CC=/usr/bin/gcc \
    CGO_ENABLED=1 \
    GOARCH=amd64 \
    GOOS=linux \
    GOPATH='' \
    GOROOT=external/go_sdk \
    GOROOT_FINAL=GOROOT \
    PATH=/usr/bin:/bin \
    TMPDIR=/tmp \
  /home/jdetychey/.cache/bazel/_bazel_jdetychey/install/d687aca87a7669724cc958527f2423da/linux-sandbox -t 15 -w /home/jdetychey/.cache/bazel/_bazel_jdetychey/f90b28626577c762b294597de30d529a/sandbox/linux-sandbox/28/execroot/prysm -w /tmp -w /dev/shm -D -- bazel-out/host/bin/external/go_sdk/builder compilepkg -sdk external/go_sdk -installsuffix linux_amd64 -src external/com_github_herumi_bls_eth_go_binary/bls/bls.go -src external/com_github_herumi_bls_eth_go_binary/bls/callback.go -src external/com_github_herumi_bls_eth_go_binary/bls/cast.go -src external/com_github_herumi_bls_eth_go_binary/bls/mcl.go -src external/com_github_herumi_bls_eth_go_binary/bls/include/bls/bls.h -src external/com_github_herumi_bls_eth_go_binary/bls/include/bls/bls384_256.h -src external/com_github_herumi_bls_eth_go_binary/bls/include/mcl/bn.h -src external/com_github_herumi_bls_eth_go_binary/bls/include/mcl/bn_c384_256.h -src external/com_github_herumi_bls_eth_go_binary/bls/include/mcl/curve_type.h -importpath github.com/herumi/bls-eth-go-binary/bls -p github.com/herumi/bls-eth-go-binary/bls -package_list bazel-out/host/bin/external/go_sdk/packages.txt -o bazel-out/k8-fastbuild/bin/external/com_github_herumi_bls_eth_go_binary/bls/linux_amd64_stripped/go_default_library%/github.com/herumi/bls-eth-go-binary/bls.a -nogo bazel-out/host/bin/linux_amd64_stripped/nogo -x bazel-out/k8-fastbuild/bin/external/com_github_herumi_bls_eth_go_binary/bls/linux_amd64_stripped/go_default_library%/github.com/herumi/bls-eth-go-binary/bls.x -gcflags '' -asmflags '' -cppflags '-I external/com_github_herumi_bls_eth_go_binary/bls -iquote external/com_github_herumi_bls_eth_go_binary/bls/include/bls -iquote external/com_github_herumi_bls_eth_go_binary/bls/include/mcl -iquote . -iquote external/com_github_herumi_bls_eth_go_binary -iquote bazel-out/k8-fastbuild/bin/external/com_github_herumi_bls_eth_go_binary' -cflags '-U_FORTIFY_SOURCE -fstack-protector -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -fno-canonical-system-headers -Wno-builtin-macro-redefined -D__DATE__="redacted" -D__TIMESTAMP__="redacted" -D__TIME__="redacted" -Ibls/include -DBLS_ETH -DBLS_SWAP_G -fPIC' -cxxflags '-U_FORTIFY_SOURCE -fstack-protector -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -std=c++0x -fno-canonical-system-headers -Wno-builtin-macro-redefined -D__DATE__="redacted" -D__TIMESTAMP__="redacted" -D__TIME__="redacted" -fPIC' -objcflags '-U_FORTIFY_SOURCE -fstack-protector -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -fno-canonical-system-headers -Wno-builtin-macro-redefined -D__DATE__="redacted" -D__TIMESTAMP__="redacted" -D__TIME__="redacted" -Ibls/include -DBLS_ETH -DBLS_SWAP_G -fPIC' -objcxxflags '-U_FORTIFY_SOURCE -fstack-protector -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -std=c++0x -fno-canonical-system-headers -Wno-builtin-macro-redefined -D__DATE__="redacted" -D__TIMESTAMP__="redacted" -D__TIME__="redacted" -fPIC' -ldflags 'external/com_github_herumi_bls_eth_go_binary/bls/lib/linux/amd64/libbls384_256.a -fuse-ld=gold -Wl,-no-as-needed -Wl,-z,relro,-z,now -B/usr/bin -pass-exit-codes -lstdc++ -lm')
src/main/tools/linux-sandbox-pid1.cc:175: working dir: /home/jdetychey/.cache/bazel/_bazel_jdetychey/f90b28626577c762b294597de30d529a/sandbox/linux-sandbox/28/execroot/prysm
src/main/tools/linux-sandbox-pid1.cc:194: writable: /home/jdetychey/.cache/bazel/_bazel_jdetychey/f90b28626577c762b294597de30d529a/sandbox/linux-sandbox/28/execroot/prysm
src/main/tools/linux-sandbox-pid1.cc:194: writable: /tmp
src/main/tools/linux-sandbox-pid1.cc:194: writable: /dev/shm
src/main/tools/linux-sandbox.cc:154: linux-sandbox-pid1 has PID 890
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /dev
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /dev/pts
src/main/tools/linux-sandbox-pid1.cc:265: remount rw: /dev/shm
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /dev/mqueue
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /dev/hugepages
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /run
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /run/lock
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /run/user/1000
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /run/user/1000/gvfs
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /run/user/1000/keybase/kbfs
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /sys
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /sys/kernel/security
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /sys/fs/cgroup
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /sys/fs/cgroup/systemd
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /sys/fs/cgroup/perf_event
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /sys/fs/cgroup/freezer
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /sys/fs/cgroup/cpuset
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /sys/fs/cgroup/blkio
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /sys/fs/cgroup/cpu,cpuacct
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /sys/fs/cgroup/hugetlb
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /sys/fs/cgroup/pids
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /sys/fs/cgroup/memory
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /sys/fs/cgroup/net_cls,net_prio
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /sys/fs/cgroup/devices
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /sys/fs/pstore
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /sys/firmware/efi/efivars
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /sys/kernel/debug
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /sys/fs/fuse/connections
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /proc
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /proc/sys/fs/binfmt_misc
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /proc/sys/fs/binfmt_misc
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /snap/parity/16688
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /snap/parity-ui/31
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /snap/parity-ui/38
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /snap/spotify/35
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /snap/core/8268
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /snap/parity/16676
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /snap/core/8213
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /snap/spotify/36
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /snap/parity-ui/25
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /boot/efi
src/main/tools/linux-sandbox-pid1.cc:265: remount ro: /keybase
src/main/tools/linux-sandbox-pid1.cc:265: remount rw: /home/jdetychey/.cache/bazel/_bazel_jdetychey/f90b28626577c762b294597de30d529a/sandbox/linux-sandbox/28/execroot/prysm
src/main/tools/linux-sandbox-pid1.cc:265: remount rw: /home/jdetychey/.cache/bazel/_bazel_jdetychey/f90b28626577c762b294597de30d529a/sandbox/linux-sandbox/28/execroot/prysm
src/main/tools/linux-sandbox-pid1.cc:265: remount rw: /tmp
src/main/tools/linux-sandbox-pid1.cc:265: remount rw: /dev/shm
src/main/tools/process-tools.cc:118: sigaction(32, &sa, nullptr) failed
src/main/tools/process-tools.cc:118: sigaction(33, &sa, nullptr) failed
compilepkg: error running subcommand: exit status 2
src/main/tools/linux-sandbox-pid1.cc:437: waitpid returned 2
src/main/tools/linux-sandbox-pid1.cc:457: child exited with code 1
src/main/tools/linux-sandbox.cc:204: child exited normally with exitcode 1
bls.go:718:105: cannot use _cgo2 (type *[40]_Ctype_uchar) as type unsafe.Pointer in argument to _Cfunc_blsVerifyAggregatedHashWithDomain
Target //beacon-chain:beacon-chain failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 3.040s, Critical Path: 2.22s
INFO: 26 processes: 26 linux-sandbox.
FAILED: Build did NOT complete successfully
jdetychey commented 4 years ago

Additional information, go version returns go version go1.11.5 linux/amd64

jdetychey commented 4 years ago

Additional information, the build worked on the same machine via a dockerised ubuntu 18.04.

prestonvanloon commented 4 years ago

Can you try building with --config=llvm? This will use clang to build the BLS libraries from source.

rauljordan commented 4 years ago

Please let us know if the llvm config option works @jdetychey, thanks!

jdetychey commented 4 years ago

With --config=llvm: For //beacon-chain:beacon-chain: INFO: Build completed successfully, 1249 total actions For build //validator:validator: INFO: Build completed successfully, 735 total actions

jdetychey commented 4 years ago

But unfortunately, the command: ~/prysm$ bazel run //beacon-chain -- --clear-db --datadir=$HOME/prysm --config=llvm did not complete

Extracting Bazel installation...
Starting local Bazel server and connecting to it...
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1580418511 -0800"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a git_repository (rule definition at /home/jdetychey/.cache/bazel/_bazel_root/f90b28626577c762b294597de30d529a/external/bazel_tools/tools/build_defs/repo/git.bzl:195:18):
 - /home/jdetychey/prysm/WORKSPACE:241:1
 - /home/jdetychey/prysm/WORKSPACE:241:1
DEBUG: /home/jdetychey/.cache/bazel/_bazel_root/f90b28626577c762b294597de30d529a/external/bazel_toolchains/rules/rbe_repo/checked_in.bzl:100:9: rbe_ubuntu_clang_gen not using checked in configs as user set attr to 'False' 
DEBUG: /home/jdetychey/.cache/bazel/_bazel_root/f90b28626577c762b294597de30d529a/external/bazel_toolchains/rules/rbe_repo/checked_in.bzl:100:9: rbe_ubuntu_gcc_gen not using checked in configs as user set attr to 'False' 
DEBUG: /home/jdetychey/.cache/bazel/_bazel_root/f90b28626577c762b294597de30d529a/external/bazel_gazelle/internal/go_repository.bzl:184:13: org_golang_x_exp: gazelle: finding module path for import dmitri.shuralyov.com/gpu/mtl: exit status 1: go: finding module for package dmitri.shuralyov.com/gpu/mtl
go: downloading dmitri.shuralyov.com/gpu/mtl v0.0.0-20191203043605-d42048ed14fd
go: found dmitri.shuralyov.com/gpu/mtl in dmitri.shuralyov.com/gpu/mtl v0.0.0-20191203043605-d42048ed14fd
can't load package: package dmitri.shuralyov.com/gpu/mtl: build constraints exclude all Go files in /home/jdetychey/.cache/bazel/_bazel_root/f90b28626577c762b294597de30d529a/external/bazel_gazelle_go_repository_cache/pkg/mod/dmitri.shuralyov.com/gpu/mtl@v0.0.0-20191203043605-d42048ed14fd
gazelle: finding module path for import dmitri.shuralyov.com/gpu/mtl: exit status 1: go: finding module for package dmitri.shuralyov.com/gpu/mtl
go: downloading dmitri.shuralyov.com/gpu/mtl v0.0.0-20191203043605-d42048ed14fd
go: found dmitri.shuralyov.com/gpu/mtl in dmitri.shuralyov.com/gpu/mtl v0.0.0-20191203043605-d42048ed14fd
can't load package: package dmitri.shuralyov.com/gpu/mtl: build constraints exclude all Go files in /home/jdetychey/.cache/bazel/_bazel_root/f90b28626577c762b294597de30d529a/external/bazel_gazelle_go_repository_cache/pkg/mod/dmitri.shuralyov.com/gpu/mtl@v0.0.0-20191203043605-d42048ed14fd
gazelle: finding module path for import dmitri.shuralyov.com/gpu/mtl: exit status 1: go: finding module for package dmitri.shuralyov.com/gpu/mtl
go: downloading dmitri.shuralyov.com/gpu/mtl v0.0.0-20191203043605-d42048ed14fd
go: found dmitri.shuralyov.com/gpu/mtl in dmitri.shuralyov.com/gpu/mtl v0.0.0-20191203043605-d42048ed14fd
can't load package: package dmitri.shuralyov.com/gpu/mtl: build constraints exclude all Go files in /home/jdetychey/.cache/bazel/_bazel_root/f90b28626577c762b294597de30d529a/external/bazel_gazelle_go_repository_cache/pkg/mod/dmitri.shuralyov.com/gpu/mtl@v0.0.0-20191203043605-d42048ed14fd
gazelle: finding module path for import dmitri.shuralyov.com/gpu/mtl: exit status 1: go: finding module for package dmitri.shuralyov.com/gpu/mtl
go: downloading dmitri.shuralyov.com/gpu/mtl v0.0.0-20191203043605-d42048ed14fd
go: found dmitri.shuralyov.com/gpu/mtl in dmitri.shuralyov.com/gpu/mtl v0.0.0-20191203043605-d42048ed14fd
can't load package: package dmitri.shuralyov.com/gpu/mtl: build constraints exclude all Go files in /home/jdetychey/.cache/bazel/_bazel_root/f90b28626577c762b294597de30d529a/external/bazel_gazelle_go_repository_cache/pkg/mod/dmitri.shuralyov.com/gpu/mtl@v0.0.0-20191203043605-d42048ed14fd
DEBUG: /home/jdetychey/.cache/bazel/_bazel_root/f90b28626577c762b294597de30d529a/external/bazel_gazelle/internal/go_repository.bzl:184:13: com_github_btcsuite_btcd: gazelle: finding module path for import github.com/btcsuite/winsvc/eventlog: exit status 1: go: downloading github.com/btcsuite/winsvc v1.0.0
can't load package: package github.com/btcsuite/winsvc/eventlog: build constraints exclude all Go files in /home/jdetychey/.cache/bazel/_bazel_root/f90b28626577c762b294597de30d529a/external/bazel_gazelle_go_repository_cache/pkg/mod/github.com/btcsuite/winsvc@v1.0.0/eventlog
gazelle: finding module path for import github.com/btcsuite/winsvc/mgr: exit status 1: can't load package: package github.com/btcsuite/winsvc/mgr: build constraints exclude all Go files in /home/jdetychey/.cache/bazel/_bazel_root/f90b28626577c762b294597de30d529a/external/bazel_gazelle_go_repository_cache/pkg/mod/github.com/btcsuite/winsvc@v1.0.0/mgr
gazelle: finding module path for import github.com/btcsuite/winsvc/svc: exit status 1: can't load package: package github.com/btcsuite/winsvc/svc: build constraints exclude all Go files in /home/jdetychey/.cache/bazel/_bazel_root/f90b28626577c762b294597de30d529a/external/bazel_gazelle_go_repository_cache/pkg/mod/github.com/btcsuite/winsvc@v1.0.0/svc
DEBUG: /home/jdetychey/.cache/bazel/_bazel_root/f90b28626577c762b294597de30d529a/external/bazel_gazelle/internal/go_repository.bzl:184:13: com_googlesource_roughtime_roughtime_git: gazelle: unrecognized import path "roughtime.googlesource.com/go/client/monotime"
gazelle: unrecognized import path "roughtime.googlesource.com/go/config"
gazelle: unrecognized import path "roughtime.googlesource.com/go/protocol"
gazelle: unrecognized import path "roughtime.googlesource.com/go/config"
gazelle: unrecognized import path "roughtime.googlesource.com/go/protocol"
gazelle: unrecognized import path "roughtime.googlesource.com/go/config"
gazelle: unrecognized import path "roughtime.googlesource.com/go/protocol"
INFO: Analyzed target //beacon-chain:beacon-chain (679 packages loaded, 11661 targets configured).
INFO: Found 1 target...
INFO: From Generating Descriptor Set proto_library @go_googleapis//google/logging/type:ltype_proto:
google/logging/type/http_request.proto:21:1: warning: Import google/api/annotations.proto is unused.
google/logging/type/log_severity.proto:20:1: warning: Import google/api/annotations.proto is unused.
INFO: From Generating Descriptor Set proto_library @com_github_prysmaticlabs_ethereumapis//eth/v1alpha1:proto:
eth/v1alpha1/beacon_chain.proto:21:1: warning: Import google/protobuf/any.proto is unused.
INFO: From Generating Descriptor Set proto_library //proto/beacon/rpc/v1:v1_proto:
proto/beacon/rpc/v1/services.proto:5:1: warning: Import google/protobuf/empty.proto is unused.
ERROR: /home/jdetychey/.cache/bazel/_bazel_root/f90b28626577c762b294597de30d529a/external/herumi_bls_eth_go_binary/BUILD.bazel:103:1: GoCompilePkg external/herumi_bls_eth_go_binary/linux_amd64_stripped/go_default_library%/github.com/herumi/bls-eth-go-binary/bls.a failed (Exit 1) builder failed: error executing command bazel-out/host/bin/external/go_sdk/builder compilepkg -sdk external/go_sdk -installsuffix linux_amd64 -src external/herumi_bls_eth_go_binary/bls/bls.go -src ... (remaining 33 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox
compilepkg: error running subcommand: exit status 2
bls.go:718:105: cannot use _cgo2 (type *[40]_Ctype_uchar) as type unsafe.Pointer in argument to _Cfunc_blsVerifyAggregatedHashWithDomain
Target //beacon-chain:beacon-chain failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 1983.136s, Critical Path: 12.78s
INFO: 610 processes: 610 processwrapper-sandbox.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully
nisdas commented 4 years ago

@jdetychey you need to use

bazel run --config=llvm //beacon-chain -- --clear-db --datadir=$HOME/prysm 
jdetychey commented 4 years ago

See --verborse_failures below:

DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1580418511 -0800"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a git_repository (rule definition at /home/jdetychey/.cache/bazel/_bazel_root/f90b28626577c762b294597de30d529a/external/bazel_tools/tools/build_defs/repo/git.bzl:195:18):
 - /home/jdetychey/prysm/WORKSPACE:241:1
 - /home/jdetychey/prysm/WORKSPACE:241:1
DEBUG: /home/jdetychey/.cache/bazel/_bazel_root/f90b28626577c762b294597de30d529a/external/bazel_toolchains/rules/rbe_repo/checked_in.bzl:100:9: rbe_ubuntu_clang_gen not using checked in configs as user set attr to 'False' 
DEBUG: /home/jdetychey/.cache/bazel/_bazel_root/f90b28626577c762b294597de30d529a/external/bazel_toolchains/rules/rbe_repo/checked_in.bzl:100:9: rbe_ubuntu_gcc_gen not using checked in configs as user set attr to 'False' 
DEBUG: /home/jdetychey/.cache/bazel/_bazel_root/f90b28626577c762b294597de30d529a/external/bazel_gazelle/internal/go_repository.bzl:184:13: com_googlesource_roughtime_roughtime_git: gazelle: unrecognized import path "roughtime.googlesource.com/go/client/monotime"
gazelle: unrecognized import path "roughtime.googlesource.com/go/config"
gazelle: unrecognized import path "roughtime.googlesource.com/go/protocol"
gazelle: unrecognized import path "roughtime.googlesource.com/go/config"
gazelle: unrecognized import path "roughtime.googlesource.com/go/protocol"
gazelle: unrecognized import path "roughtime.googlesource.com/go/config"
gazelle: unrecognized import path "roughtime.googlesource.com/go/protocol"
DEBUG: /home/jdetychey/.cache/bazel/_bazel_root/f90b28626577c762b294597de30d529a/external/bazel_gazelle/internal/go_repository.bzl:184:13: com_github_btcsuite_btcd: gazelle: finding module path for import github.com/btcsuite/winsvc/eventlog: exit status 1: go: downloading github.com/btcsuite/winsvc v1.0.0
can't load package: package github.com/btcsuite/winsvc/eventlog: build constraints exclude all Go files in /home/jdetychey/.cache/bazel/_bazel_root/f90b28626577c762b294597de30d529a/external/bazel_gazelle_go_repository_cache/pkg/mod/github.com/btcsuite/winsvc@v1.0.0/eventlog
gazelle: finding module path for import github.com/btcsuite/winsvc/mgr: exit status 1: can't load package: package github.com/btcsuite/winsvc/mgr: build constraints exclude all Go files in /home/jdetychey/.cache/bazel/_bazel_root/f90b28626577c762b294597de30d529a/external/bazel_gazelle_go_repository_cache/pkg/mod/github.com/btcsuite/winsvc@v1.0.0/mgr
gazelle: finding module path for import github.com/btcsuite/winsvc/svc: exit status 1: can't load package: package github.com/btcsuite/winsvc/svc: build constraints exclude all Go files in /home/jdetychey/.cache/bazel/_bazel_root/f90b28626577c762b294597de30d529a/external/bazel_gazelle_go_repository_cache/pkg/mod/github.com/btcsuite/winsvc@v1.0.0/svc
DEBUG: /home/jdetychey/.cache/bazel/_bazel_root/f90b28626577c762b294597de30d529a/external/bazel_gazelle/internal/go_repository.bzl:184:13: org_golang_x_exp: gazelle: finding module path for import dmitri.shuralyov.com/gpu/mtl: exit status 1: go: finding module for package dmitri.shuralyov.com/gpu/mtl
go: downloading dmitri.shuralyov.com/gpu/mtl v0.0.0-20191203043605-d42048ed14fd
go: found dmitri.shuralyov.com/gpu/mtl in dmitri.shuralyov.com/gpu/mtl v0.0.0-20191203043605-d42048ed14fd
can't load package: package dmitri.shuralyov.com/gpu/mtl: build constraints exclude all Go files in /home/jdetychey/.cache/bazel/_bazel_root/f90b28626577c762b294597de30d529a/external/bazel_gazelle_go_repository_cache/pkg/mod/dmitri.shuralyov.com/gpu/mtl@v0.0.0-20191203043605-d42048ed14fd
gazelle: finding module path for import dmitri.shuralyov.com/gpu/mtl: exit status 1: go: finding module for package dmitri.shuralyov.com/gpu/mtl
go: downloading dmitri.shuralyov.com/gpu/mtl v0.0.0-20191203043605-d42048ed14fd
go: found dmitri.shuralyov.com/gpu/mtl in dmitri.shuralyov.com/gpu/mtl v0.0.0-20191203043605-d42048ed14fd
can't load package: package dmitri.shuralyov.com/gpu/mtl: build constraints exclude all Go files in /home/jdetychey/.cache/bazel/_bazel_root/f90b28626577c762b294597de30d529a/external/bazel_gazelle_go_repository_cache/pkg/mod/dmitri.shuralyov.com/gpu/mtl@v0.0.0-20191203043605-d42048ed14fd
gazelle: finding module path for import dmitri.shuralyov.com/gpu/mtl: exit status 1: go: finding module for package dmitri.shuralyov.com/gpu/mtl
go: downloading dmitri.shuralyov.com/gpu/mtl v0.0.0-20191203043605-d42048ed14fd
go: found dmitri.shuralyov.com/gpu/mtl in dmitri.shuralyov.com/gpu/mtl v0.0.0-20191203043605-d42048ed14fd
can't load package: package dmitri.shuralyov.com/gpu/mtl: build constraints exclude all Go files in /home/jdetychey/.cache/bazel/_bazel_root/f90b28626577c762b294597de30d529a/external/bazel_gazelle_go_repository_cache/pkg/mod/dmitri.shuralyov.com/gpu/mtl@v0.0.0-20191203043605-d42048ed14fd
gazelle: finding module path for import dmitri.shuralyov.com/gpu/mtl: exit status 1: go: finding module for package dmitri.shuralyov.com/gpu/mtl
go: downloading dmitri.shuralyov.com/gpu/mtl v0.0.0-20191203043605-d42048ed14fd
go: found dmitri.shuralyov.com/gpu/mtl in dmitri.shuralyov.com/gpu/mtl v0.0.0-20191203043605-d42048ed14fd
can't load package: package dmitri.shuralyov.com/gpu/mtl: build constraints exclude all Go files in /home/jdetychey/.cache/bazel/_bazel_root/f90b28626577c762b294597de30d529a/external/bazel_gazelle_go_repository_cache/pkg/mod/dmitri.shuralyov.com/gpu/mtl@v0.0.0-20191203043605-d42048ed14fd
INFO: Analyzed target //beacon-chain:beacon-chain (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
INFO: From Generating into bazel-out/k8-fastbuild/bin/external/com_github_prysmaticlabs_ethereumapis/eth/v1alpha1/linux_amd64_stripped/go_grpc_gateway_library%/github.com/prysmaticlabs/ethereumapis/eth/v1alpha1_gateway:
eth/v1alpha1/beacon_chain.proto: warning: Import google/protobuf/any.proto is unused.
INFO: From Generating into bazel-out/k8-fastbuild/bin/external/go_googleapis/google/logging/type/linux_amd64_stripped/ltype_go_proto%/google.golang.org/genproto/googleapis/logging/type:
google/logging/type/http_request.proto: warning: Import google/api/annotations.proto is unused.
google/logging/type/log_severity.proto: warning: Import google/api/annotations.proto is unused.
ERROR: /home/jdetychey/.cache/bazel/_bazel_root/f90b28626577c762b294597de30d529a/external/herumi_bls_eth_go_binary/BUILD.bazel:103:1: GoCompilePkg external/herumi_bls_eth_go_binary/linux_amd64_stripped/go_default_library%/github.com/herumi/bls-eth-go-binary/bls.a failed (Exit 1) builder failed: error executing command bazel-out/host/bin/external/go_sdk/builder compilepkg -sdk external/go_sdk -installsuffix linux_amd64 -src external/herumi_bls_eth_go_binary/bls/bls.go -src ... (remaining 33 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox
compilepkg: error running subcommand: exit status 2
bls.go:718:105: cannot use _cgo2 (type *[40]_Ctype_uchar) as type unsafe.Pointer in argument to _Cfunc_blsVerifyAggregatedHashWithDomain
Target //beacon-chain:beacon-chain failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 7.777s, Critical Path: 6.65s
INFO: 212 processes: 212 processwrapper-sandbox.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully
jdetychey commented 4 years ago

Thx a lot everyone, I am syncing :+1: