./build_release.sh 编译错误
【问题分类】
- bug
- P2P网络相关(包含libp2p,liquid)
- 链账户身份与权限相关(证书问题、public、多签投票问题)
- 核心交易引擎相关(交易池、DAG)
- 共识相关
- 智能合约相关
- 存储相关
- SDK相关
- 长安链CMC工具
- 长安链管理台
- 长安链浏览器
- 长安链合约IDE
- 长安链web签名插件
- 跨链相关
- 轻节点相关
- 隐私计算相关
- 密码学相关
- 环境依赖
- 其他补充:
【问题描述】(请对问题进行描述,方便定位问题)
通过官网的文档进行通过命令行工具启动链
具体的现象,操作步骤,前置条件等,尽可能描述清楚,有截图说明更佳 git clone https://git.chainmaker.org.cn/chainmaker/chainmaker-go.git git clone -b v2.2.0 https://git.chainmaker.org.cn/chainmaker/chainmaker-cryptogen.git cd chainmaker-cryptogen make
进入工具目录
$ cd chainmaker-go/tools
软连接chainmaker-cryptogen到tools目录下
$ ln -s ../../chainmaker-cryptogen/ . PermissionedWithCert
进入脚本目录
$ cd ../scripts
生成单链4节点集群的证书和配置
$ ./prepare.sh 4 1
查看生成好的节点证书和配置
$ tree -L 3 ../build/ ../build/ ├── config │ ├── node1 │ │ ├── certs │ │ ├── chainconfi 编译及安装包制作 生成证书(prepare.sh脚本)后执行build_release.sh脚本,将编译chainmaker-go模块,并打包生成安装,存于路径chainmaker-go/build/release中 $ ./build_release.sh /chainmaker/chainmaker-go/scripts$ ./build_release.sh build chainmaker /home/alan/chainmaker/chainmaker-go... go: chainmaker.org/chainmaker/consensus-tbft/v2@v2.2.1: verifying go.mod: checksum mismatch downloaded: h1:SgWwmFxQaKDmQ2Vu5Kim0bbEiiu/pHO9mt1EXNQ8EFs= sum.golang.org: h1:CdydW95iOHOvIMzqal8X2F6TI/kCxW3RQW29vomvGJs=
SECURITY ERROR This download does NOT match the one reported by the checksum server. The bits may have been replaced on the origin server, or an attacker may have intercepted the download attempt.
For more information, see 'go help module-auth'.
go: downloading chainmaker.org/chainmaker/consensus-tbft/v2 v2.2.1 go: chainmaker.org/chainmaker/consensus-tbft/v2@v2.2.1: verifying go.mod: checksum mismatch downloaded: h1:SgWwmFxQaKDmQ2Vu5Kim0bbEiiu/pHO9mt1EXNQ8EFs= sum.golang.org: h1:CdydW95iOHOvIMzqal8X2F6TI/kCxW3RQW29vomvGJs=
SECURITY ERROR This download does NOT match the one reported by the checksum server. The bits may have been replaced on the origin server, or an attacker may have intercepted the download attempt.
For more information, see 'go help module-auth'.
make: *** [Makefile:36: chainmaker] Error 1
【相关日志文件】(如果有报错日志请贴图,或者上传附件)
chainmaker-go 的 log/system.log & bin/panic.log file *
SDK 的 sdk.log file
【系统信息】(请填写系统信息,方便定位问题)
-
chainmaker-go version * : [v2.2.0]
-
**OS & version * :uname -a Linux debian 5.10.0-13-amd64 #1 SMP Debian 5.10.106-1 (2022-03-17) x86_64 GNU/Linux
-
go version: go env GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/home/alan/.cache/go-build" GOENV="/home/alan/.config/go/env" GOEXE="" GOEXPERIMENT="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOINSECURE="" GOMODCACHE="/home/alan/go/pkg/mod" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPATH="/home/alan/go" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/usr/local/go" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64" GOVCS="" GOVERSION="go1.18.3" GCCGO="gccgo" GOAMD64="v1" AR="ar" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="/dev/null" GOWORK="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build3445872900=/tmp/go-build -gno-record-gcc-switches"
-
docker镜像 version:
-
管理台 version:
- 如果是管理台的相关问题,请附带管理台版本,如果不是可忽略。
-
区块浏览器 version:
- 如果是浏览器的相关问题,请附带浏览器版本,如果不是可忽略。
-
合约IDE version:
- 如果是合约IDE的相关问题,请附带合约IDE版本,如果不是可忽略。
-
web签名插件 version:
- 如果是web签名插件的相关问题,请附带web签名插件版本,如果不是可忽略。