遵循https://hyperledger-fabric.readthedocs.io/en/release-1.4/dev-setup/devenv.html.请告诉我如何在构建时解决错误。我已经安装了所有的先决条件,在ubuntu中,我得到了以下错误。
建筑建造/垃圾箱/订购人GOBIN=/home/cdac/go/src/github.com/harishgithub/fabric/build/bin-go install-tags""-ldflags"-X github.com/hyperledger/fabric/common/metadata.Version=2.5.0-X github.com/shyperledger/wabric/coommon/metadata。CommitSHA=2f2e5aa3f-X github.com/hyperledger/fabric/common/medata.BaseDockerLabel=org.yperledger.fabric-X github.com/hyperledger/fabric/common/matadata.DockerNamespace=hyperledger"github.com/hyperledger/fabric/cmd/order
运行时/内部/sys
/usr/local/go/src/runtime/internal/sys/conts.go:13:7:StackGuardMultiplier在此块中重新声明/usr/local/go/src/runtime/internal/sys/arch.go:27:74:以前的声明/usr/local/go/src/runtime/internal/sys/conts.go:16:7:DefaultPhysPageSize在此块中重新声明/usr/local/go/src/runtime/internal/sys/arch.go:36:29:以前的声明/usr/local/go/src/runtime/internal/sys/conts.go:20:7:PCQuantum在此块中重新声明/usr/local/go/src/runtime/internal/sys/arch.go:40:19:以前的声明/usr/local/go/src/runtime/internal/sys/conts.go:23:7:Int64Align在此块中重新声明/usr/local/go/src/runtime/internal/sys/arch.go:43:20:以前的声明/usr/local/go/src/runtime/internal/sys/conts.go:30:7:MinFrameSize在此块中重新声明/usr/local/go/src/runtime/internal/sys/arch.go:50:22:以前的声明/usr/local/go/src/runtime/internal/sys/conts.go:34:7:StackAlign在此块中重新声明/usr/local/go/src/runtime/internal/sys/arch.go:54:20:以前的声明/usr/local/go/src/runtime/internal/sys/stubs.go:9:7:PtrSize在此块中重新声明/usr/local/go/src/runtime/internal/sys/arch.go:24:38:previor声明/usr/local/go/src/runtime/internal/sys/stubs.go:10:24:未定义:Uintreg/usr/local/go/src/runtime/internal/sys/stubs.go:16:7:StackGuardMultiplier在此块中重新声明/usr/local/go/src/runtime/internal/sys/conts.go:13:77:以前的声明Makefile:227:目标"build/bin/orderer"的配方失败make:***[build/bin/orderer]错误2
当没有正确删除以前的版本,并且在以前的版本之上安装了新版本时,有时会发生这种情况。请尝试重新进行go的干净安装,完全删除当前版本。