Closed serveba closed 3 years ago
Hello, I have followed all the steps in the README.md to run a local net through Docker for interacting with a harmony node for development purposes.
The problem is that, when performing make build, I get the following error:
make build
➜ localnet git:(master) make build docker build -t harmonyone/localnet-test . --no-cache [+] Building 228.8s (9/22) => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 37B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load metadata for docker.io/library/golang:1.15 1.4s => [internal] load build context 0.0s => => transferring context: 969B 0.0s => [ 1/18] FROM docker.io/library/golang:1.15@sha256:a4dbaabb67af3cc2a41168a32cbd7035738692b38bbb5392498ec34dbee9216b 0.0s => CACHED [ 2/18] WORKDIR /go/src/github.com/harmony-one 0.0s => [ 3/18] RUN apt update && apt upgrade -y && apt update -y && apt install unzip libgmp-dev libssl-dev curl git jq make gcc g++ bash sudo python3 python3-pip -y 30.2s => [ 4/18] RUN git clone https://github.com/harmony-one/harmony.git && git clone https://github.com/harmony-one/bls.git && git clone https://github.com/harmony-one/mcl.git 13.4s => ERROR [ 5/18] RUN cd harmony && go get github.com/pborman/uuid && go get github.com/rjeczalik/notify && go get github.com/cespare/cp && go get github.com/libp2p/go-libp2p-crypto && go g 183.6s ------ > [ 5/18] RUN cd harmony && go get github.com/pborman/uuid && go get github.com/rjeczalik/notify && go get github.com/cespare/cp && go get github.com/libp2p/go-libp2p-crypto && go get github.com/kr/pretty && go get github.com/kr/text && go get gopkg.in/check.v1 && bash scripts/install_build_tools.sh && make: #8 8.698 go: github.com/pborman/uuid upgrade => v1.2.1 #8 8.794 go: downloading github.com/pborman/uuid v1.2.1 #8 8.872 go: downloading github.com/google/uuid v1.1.2 #8 10.02 go: downloading github.com/rjeczalik/notify v0.9.2 #8 10.17 go: downloading golang.org/x/sys v0.0.0-20201015000850-e3ed0017c211 #8 11.90 go: downloading github.com/cespare/cp v1.1.1 #8 12.79 go: downloading github.com/libp2p/go-libp2p-crypto v0.1.0 #8 12.87 go: downloading github.com/libp2p/go-libp2p-core v0.8.0 #8 12.99 go: downloading github.com/btcsuite/btcd v0.21.0-beta #8 12.99 go: downloading github.com/libp2p/go-openssl v0.0.7 #8 12.99 go: downloading github.com/minio/sha256-simd v0.1.1 #8 12.99 go: downloading github.com/gogo/protobuf v1.3.1 #8 13.19 go: downloading github.com/spacemonkeygo/spacelog v0.0.0-20180420211403-2296661a0572 #8 15.85 go: github.com/kr/pretty upgrade => v0.2.1 #8 16.06 go: downloading github.com/kr/pretty v0.2.1 #8 16.14 go: downloading github.com/kr/text v0.1.0 #8 17.08 go: github.com/kr/text upgrade => v0.2.0 #8 17.39 go: downloading github.com/kr/text v0.2.0 #8 18.23 go: gopkg.in/check.v1 upgrade => v1.0.0-20201130134442-10cb98267c6c #8 18.59 go: downloading gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c #8 19.38 goget.sh: github.com/golang/mock/mockgen is provided by github.com/golang/mock@v1.4.0 #8 19.63 go: downloading github.com/golang/mock v1.4.0 #8 19.77 go: found github.com/golang/mock/mockgen in github.com/golang/mock v1.4.0 #8 19.86 go: downloading golang.org/x/tools v0.0.0-20200904185747-39188db58858 #8 20.61 go: downloading golang.org/x/mod v0.3.0 #8 20.61 go: downloading golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 #8 22.51 goget.sh: github.com/golang/protobuf/protoc-gen-go is provided by github.com/golang/protobuf@v1.4.3 #8 22.89 go: downloading github.com/golang/protobuf v1.4.3 #8 23.03 go: found github.com/golang/protobuf/protoc-gen-go in github.com/golang/protobuf v1.4.3 #8 23.13 go: downloading google.golang.org/protobuf v1.25.0 #8 27.39 goget.sh: github.com/golangci/golangci-lint/cmd/golangci-lint is provided by github.com/golangci/golangci-lint@v1.22.2 #8 27.70 go: downloading github.com/golangci/golangci-lint v1.22.2 #8 27.90 go: found github.com/golangci/golangci-lint/cmd/golangci-lint in github.com/golangci/golangci-lint v1.22.2 #8 28.01 go: downloading github.com/spf13/viper v1.6.1 #8 28.01 go: downloading github.com/gofrs/flock v0.0.0-20190320160742-5135e617513b #8 28.02 go: downloading github.com/golangci/revgrep v0.0.0-20180526074752-d9c87f5ffaf0 #8 28.02 go: downloading github.com/spf13/cobra v0.0.5 #8 28.02 go: downloading github.com/fatih/color v1.9.0 #8 28.02 go: downloading github.com/pkg/errors v0.9.1 #8 28.02 go: downloading github.com/spf13/pflag v1.0.5 #8 28.02 go: downloading github.com/sirupsen/logrus v1.6.0 #8 28.03 go: downloading github.com/mattn/go-colorable v0.1.7 #8 28.04 go: downloading github.com/stretchr/testify v1.6.1 #8 28.05 go: downloading github.com/tommy-muehle/go-mnd v1.1.1 #8 28.07 go: downloading gopkg.in/ini.v1 v1.51.0 #8 28.07 go: downloading github.com/mitchellh/mapstructure v1.3.3 #8 28.07 go: downloading github.com/golangci/unconvert v0.0.0-20180507085042-28b1c447d1f4 #8 28.08 go: downloading honnef.co/go/tools v0.0.1-2020.1.5 #8 28.13 go: downloading github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a #8 28.14 go: downloading github.com/golangci/gofmt v0.0.0-20190930125516-244bba706f1a #8 28.14 go: downloading github.com/ultraware/whitespace v0.0.4 #8 28.15 go: downloading gopkg.in/yaml.v2 v2.3.0 #8 28.16 go: downloading github.com/OpenPeeDeeP/depguard v1.0.1 #8 28.16 go: downloading github.com/magiconair/properties v1.8.1 #8 28.18 go: downloading github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0 #8 28.18 go: downloading github.com/spf13/afero v1.1.2 #8 28.18 go: downloading github.com/golangci/goconst v0.0.0-20180610141641-041c5f2b40f3 #8 28.19 go: downloading github.com/sourcegraph/go-diff v0.5.1 #8 28.20 go: downloading github.com/bombsimon/wsl v1.2.5 #8 28.20 go: downloading github.com/ultraware/funlen v0.0.2 #8 28.19 go: downloading github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2 #8 28.20 go: downloading golang.org/x/text v0.3.3 #8 28.20 go: downloading github.com/securego/gosec v0.0.0-20191002120514-e680875ea14d #8 28.21 go: downloading github.com/bombsimon/wsl/v2 v2.0.0 #8 28.22 go: downloading github.com/hashicorp/hcl v1.0.0 #8 28.22 go: downloading github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca #8 28.23 go: downloading github.com/mattn/go-isatty v0.0.12 #8 28.24 go: downloading github.com/davecgh/go-spew v1.1.1 #8 28.24 go: downloading github.com/kisielk/gotool v1.0.0 #8 28.29 go: downloading github.com/timakin/bodyclose v0.0.0-20190930140734-f7f2e9bca95e #8 28.31 go: downloading mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed #8 28.44 go: downloading github.com/subosito/gotenv v1.2.0 #8 28.49 go: downloading github.com/fsnotify/fsnotify v1.4.9 #8 28.52 go: downloading github.com/golangci/gocyclo v0.0.0-20180528134321-2becd97e67ee #8 28.53 go: downloading github.com/stretchr/objx v0.2.0 #8 28.54 go: downloading github.com/konsorten/go-windows-terminal-sequences v1.0.3 #8 28.63 go: downloading github.com/spf13/jwalterweatherman v1.0.0 #8 28.64 go: downloading github.com/golangci/misspell v0.0.0-20180809174111-950f5d19e770 #8 28.71 go: downloading mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b #8 28.72 go: downloading github.com/matoous/godox v0.0.0-20190911065817-5d6d842e92eb #8 28.73 go: downloading github.com/go-lintpack/lintpack v0.5.2 #8 28.75 go: downloading github.com/pelletier/go-toml v1.2.0 #8 28.78 go: downloading github.com/mitchellh/go-homedir v1.1.0 #8 28.78 go: downloading github.com/gobwas/glob v0.2.3 #8 28.79 go: downloading github.com/uudashr/gocognit v1.0.1 #8 28.79 go: downloading github.com/golangci/errcheck v0.0.0-20181223084120-ef45e06d44b6 #8 28.81 go: downloading mvdan.cc/unparam v0.0.0-20190720180237-d51796306d8f #8 28.82 go: downloading github.com/golangci/go-misc v0.0.0-20180628070357-927a3d87b613 #8 28.83 go: downloading github.com/BurntSushi/toml v0.3.1 #8 28.83 go: downloading github.com/inconshreveable/mousetrap v1.0.0 #8 28.84 go: downloading sourcegraph.com/sqs/pbtypes v0.0.0-20180604144634-d3ebe8f20ae4 #8 28.86 go: downloading github.com/go-toolsmith/astfmt v1.0.0 #8 28.86 go: downloading github.com/gostaticanalysis/analysisutil v0.0.0-20190318220348-4088753ea4d3 #8 28.86 go: downloading github.com/golangci/prealloc v0.0.0-20180630174525-215b22d4de21 #8 28.89 go: downloading github.com/nbutton23/zxcvbn-go v0.0.0-20180912185939-ae427f1e4c1d #8 28.90 go: downloading github.com/go-critic/go-critic v0.4.0 #8 28.90 go: downloading github.com/spf13/cast v1.3.0 #8 28.91 go: downloading gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c #8 28.91 go: downloading github.com/pmezard/go-difflib v1.0.0 #8 28.91 go: downloading github.com/golangci/ineffassign v0.0.0-20190609212857-42439a7714cc #8 29.02 go: downloading github.com/go-toolsmith/astequal v1.0.0 #8 29.02 go: downloading github.com/go-toolsmith/strparse v1.0.0 #8 29.02 go: downloading github.com/go-toolsmith/astcast v1.0.0 #8 29.02 go: downloading github.com/go-toolsmith/astcopy v1.0.0 #8 29.02 go: downloading github.com/go-toolsmith/astp v1.0.0 #8 29.07 go: downloading github.com/go-toolsmith/typep v1.0.0 #8 43.82 goget.sh: github.com/harmony-ek/gencodec is provided by github.com/harmony-ek/gencodec@v0.0.0-20190215044613-e6740dbdd846 #8 44.71 go: downloading github.com/harmony-ek/gencodec v0.0.0-20190215044613-e6740dbdd846 #8 44.83 go: downloading github.com/garslo/gogen v0.0.0-20170307003452-d6ebae628c7c #8 45.83 goget.sh: golang.org/x/lint/golint is provided by golang.org/x/lint@v0.0.0-20200302205851-738671d3881b #8 46.10 go: downloading golang.org/x/lint v0.0.0-20200302205851-738671d3881b #8 46.22 go: found golang.org/x/lint/golint in golang.org/x/lint v0.0.0-20200302205851-738671d3881b #8 47.14 goget.sh: golang.org/x/tools/cmd/goimports is provided by golang.org/x/tools@v0.0.0-20200904185747-39188db58858 #8 47.54 go: found golang.org/x/tools/cmd/goimports in golang.org/x/tools v0.0.0-20200904185747-39188db58858 #8 48.36 Downloading protoc v3.12.3 for linux-x86_64... #8 49.33 Downloaded as protoc-3.12.3-linux-x86_64.zip; unzipping into /usr/local... #8 49.34 Archive: protoc-3.12.3-linux-x86_64.zip #8 49.34 creating: /usr/local/include/google/ #8 49.34 creating: /usr/local/include/google/protobuf/ #8 49.35 inflating: /usr/local/include/google/protobuf/api.proto #8 49.35 inflating: /usr/local/include/google/protobuf/descriptor.proto #8 49.35 inflating: /usr/local/include/google/protobuf/timestamp.proto #8 49.35 inflating: /usr/local/include/google/protobuf/duration.proto #8 49.35 creating: /usr/local/include/google/protobuf/compiler/ #8 49.35 inflating: /usr/local/include/google/protobuf/compiler/plugin.proto #8 49.35 inflating: /usr/local/include/google/protobuf/field_mask.proto #8 49.35 inflating: /usr/local/include/google/protobuf/source_context.proto #8 49.35 inflating: /usr/local/include/google/protobuf/type.proto #8 49.35 inflating: /usr/local/include/google/protobuf/wrappers.proto #8 49.35 inflating: /usr/local/include/google/protobuf/struct.proto #8 49.35 inflating: /usr/local/include/google/protobuf/any.proto #8 49.35 inflating: /usr/local/include/google/protobuf/empty.proto #8 49.35 inflating: /usr/local/bin/protoc #8 49.40 inflating: /usr/local/readme.txt #8 49.40 protoc v3.12.3 has been installed in /usr/local. #8 49.42 make -C /go/src/github.com/harmony-one/mcl -j8 #8 49.42 make[1]: Entering directory '/go/src/github.com/harmony-one/mcl' #8 49.44 g++ -c src/asm/x86-64.s -o obj/x86-64.o -g3 -Wall -Wextra -Wformat=2 -Wcast-qual -Wcast-align -Wwrite-strings -Wfloat-equal -Wpointer-arith -m64 -I include -I test -fomit-frame-pointer -DNDEBUG -Ofast -fPIC -DMCL_USE_LLVM=1 #8 49.44 g++ -c src/asm/x86-64.bmi2.s -o obj/x86-64.bmi2.o -g3 -Wall -Wextra -Wformat=2 -Wcast-qual -Wcast-align -Wwrite-strings -Wfloat-equal -Wpointer-arith -m64 -I include -I test -fomit-frame-pointer -DNDEBUG -Ofast -fPIC -DMCL_USE_LLVM=1 #8 49.44 g++ -g3 -Wall -Wextra -Wformat=2 -Wcast-qual -Wcast-align -Wwrite-strings -Wfloat-equal -Wpointer-arith -m64 -I include -I test -fomit-frame-pointer -DNDEBUG -Ofast -fPIC -DMCL_USE_LLVM=1 -c src/fp.cpp -o obj/fp.o -MMD -MP -MF obj/fp.d #8 49.44 g++ -g3 -Wall -Wextra -Wformat=2 -Wcast-qual -Wcast-align -Wwrite-strings -Wfloat-equal -Wpointer-arith -m64 -I include -I test -fomit-frame-pointer -DNDEBUG -Ofast -fPIC -DMCL_USE_LLVM=1 -c src/bn_c256.cpp -o obj/bn_c256.o -MMD -MP -MF obj/bn_c256.d #8 49.44 g++ -g3 -Wall -Wextra -Wformat=2 -Wcast-qual -Wcast-align -Wwrite-strings -Wfloat-equal -Wpointer-arith -m64 -I include -I test -fomit-frame-pointer -DNDEBUG -Ofast -fPIC -DMCL_USE_LLVM=1 -c src/bn_c384.cpp -o obj/bn_c384.o -MMD -MP -MF obj/bn_c384.d #8 49.45 g++ -g3 -Wall -Wextra -Wformat=2 -Wcast-qual -Wcast-align -Wwrite-strings -Wfloat-equal -Wpointer-arith -m64 -I include -I test -fomit-frame-pointer -DNDEBUG -Ofast -fPIC -DMCL_USE_LLVM=1 -c src/bn_c384_256.cpp -o obj/bn_c384_256.o -MMD -MP -MF obj/bn_c384_256.d #8 49.45 g++ -g3 -Wall -Wextra -Wformat=2 -Wcast-qual -Wcast-align -Wwrite-strings -Wfloat-equal -Wpointer-arith -m64 -I include -I test -fomit-frame-pointer -DNDEBUG -Ofast -fPIC -DMCL_USE_LLVM=1 -c src/bn_c512.cpp -o obj/bn_c512.o -MMD -MP -MF obj/bn_c512.d #8 49.45 g++ -g3 -Wall -Wextra -Wformat=2 -Wcast-qual -Wcast-align -Wwrite-strings -Wfloat-equal -Wpointer-arith -m64 -I include -I test -fomit-frame-pointer -DNDEBUG -Ofast -fPIC -DMCL_USE_LLVM=1 -c src/she_c256.cpp -o obj/she_c256.o -MMD -MP -MF obj/she_c256.d #8 49.55 g++ -g3 -Wall -Wextra -Wformat=2 -Wcast-qual -Wcast-align -Wwrite-strings -Wfloat-equal -Wpointer-arith -m64 -I include -I test -fomit-frame-pointer -DNDEBUG -Ofast -fPIC -DMCL_USE_LLVM=1 -c src/she_c384.cpp -o obj/she_c384.o -MMD -MP -MF obj/she_c384.d #8 49.56 g++ -g3 -Wall -Wextra -Wformat=2 -Wcast-qual -Wcast-align -Wwrite-strings -Wfloat-equal -Wpointer-arith -m64 -I include -I test -fomit-frame-pointer -DNDEBUG -Ofast -fPIC -DMCL_USE_LLVM=1 -c src/she_c384_256.cpp -o obj/she_c384_256.o -MMD -MP -MF obj/she_c384_256.d #8 170.7 g++: fatal error: Killed signal terminated program cc1plus #8 170.7 compilation terminated. #8 170.7 make[1]: *** [Makefile:270: obj/fp.o] Error 1 #8 170.7 make[1]: *** Waiting for unfinished jobs.... #8 183.3 make[1]: Leaving directory '/go/src/github.com/harmony-one/mcl' #8 183.3 make: *** [Makefile:45: libs] Error 2 ------ executor failed running [/bin/bash -c cd harmony && go get github.com/pborman/uuid && go get github.com/rjeczalik/notify && go get github.com/cespare/cp && go get github.com/libp2p/go-libp2p-crypto && go get github.com/kr/pretty && go get github.com/kr/text && go get gopkg.in/check.v1 && bash scripts/install_build_tools.sh && make]: exit code: 2 make: *** [build] Error 1
Any ideas/suggestion to fix that? Could you confirm the Dockerfile is right?
Thanks in advance for your support.
@serveba I think we can close this issue?
Yes, you can close it, sorry for the inconvenience.
Hello, I have followed all the steps in the README.md to run a local net through Docker for interacting with a harmony node for development purposes.
The problem is that, when performing
make build
, I get the following error:Any ideas/suggestion to fix that? Could you confirm the Dockerfile is right?
Thanks in advance for your support.