Closed jdetychey closed 4 years ago
Additional information, go version
returns
go version go1.11.5 linux/amd64
Additional information, the build worked on the same machine via a dockerised ubuntu 18.04.
Can you try building with --config=llvm
? This will use clang to build the BLS libraries from source.
Please let us know if the llvm config option works @jdetychey, thanks!
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
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
@jdetychey you need to use
bazel run --config=llvm //beacon-chain -- --clear-db --datadir=$HOME/prysm
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
Thx a lot everyone, I am syncing :+1:
Hey there! Hardware: Dell XPS15 16Go RAM, running Ubuntu 16.04 after installing
bazel
andcmake
, running :bazel build //beacon-chain:beacon-chain
orbazel build //beacon-chain:beacon-chain --define kafka_enabled=false
both return the same error. Short logLog with
--sandbox_debug