环境搭建:执行build_release.sh脚本时报错(centos7)
执行build_release.sh脚本,编译chainmaker-go模块,并打包生成安装,存于路径chainmaker-go/build/release中时报错 下面是执行及输出过程: [root@localhost scripts]# ./build_release.sh
build chainmaker /home/root-co/chainmaker-go...
build for linux or mac
chainmaker.org/chainmaker/vm-wasmer/v2/wasmer-go /tmp/go-build1610553613/b1027/_x002.o:在函数‘assertions’中: /root/go/pkg/mod/chainmaker.org/chainmaker/vm-wasmer/v2@v2.3.2/wasmer-go/packaged/include/wasm.h:30: assertions 的多重定义 /tmp/go-build1610553613/b1027/_x001.o:/root/go/pkg/mod/chainmaker.org/chainmaker/vm-wasmer/v2@v2.3.2/wasmer-go/packaged/include/wasm.h:30:第一次在此定义
.......(省略号代替部分)
/tmp/go-build1610553613/b1027/_x001.o:在函数‘assertions’中:
/root/go/pkg/mod/chainmaker.org/chainmaker/vm-wasmer/v2@v2.3.2/wasmer-go/packaged/include/wasm.h:32:对‘static_assert’未定义的引用 /tmp/go-build1610553613/b1027/_x002.o:在函数‘assertions’中: /root/go/pkg/mod/chainmaker.org/chainmaker/vm-wasmer/v2@v2.3.2/wasmer-go/packaged/include/wasm.h:30:对‘static_assert’未定义的引用 /root/go/pkg/mod/chainmaker.org/chainmaker/vm-wasmer/v2@v2.3.2/wasmer-go/packaged/include/wasm.h:31:对‘static_assert’未定义的引用 /tmp/go-build1610553613/b1027/_x002.o:/root/go/pkg/mod/chainmaker.org/chainmaker/vm-wasmer/v2@v2.3.2/wasmer-go/packaged/include/wasm.h:32: 跟着更多未定义的参考到 static_assert collect2: 错误:ld 返回 1 make: *** [chainmaker] 错误 2