common 包cgo编译失败 openssl
请问 编译的 openssl 版本号依赖是多少? 官方文档未找到相关版本说明 版本号:chainmaker.org/chainmaker/common/v2 v2.2.1
报错日志:
fatal: [10.200.xx.xx]: FAILED! => {"changed": true, "cmd": "go build -o /home/huyinghuan/ansible-workspace//build/xxxxx_transcation_statistics_latest src/main.go\n", "delta": "0:00:00.526180", "end": "2022-08-05 08:51:31.824920", "msg": "non-zero return code", "rc": 2, "start": "2022-08-05 08:51:31.298740", "stderr": "# chainmaker.org/chainmaker/common/v2/opencrypto/tencentsm/tencentsm\nvendor/chainmaker.org/chainmaker/common/v2/opencrypto/tencentsm/tencentsm/base.go:11:16: fatal error: sm.h: No such file or directory\n #include \"sm.h\"\n ^\ncompilation terminated.\n# chainmaker.org/chainmaker/common/v2/opencrypto/gmssl/gmssl\nvendor/chainmaker.org/chainmaker/common/v2/opencrypto/gmssl/gmssl/certificate.go:58:25: fatal error: openssl/sm2.h: No such file or directory\n #include <openssl/sm2.h>\n ^\ncompilation terminated.", "stderr_lines": ["# chainmaker.org/chainmaker/common/v2/opencrypto/tencentsm/tencentsm", "vendor/chainmaker.org/chainmaker/common/v2/opencrypto/tencentsm/tencentsm/base.go:11:16: fatal error: sm.h: No such file or directory", " #include \"sm.h\"", " ^", "compilation terminated.", "# chainmaker.org/chainmaker/common/v2/opencrypto/gmssl/gmssl", "vendor/chainmaker.org/chainmaker/common/v2/opencrypto/gmssl/gmssl/certificate.go:58:25: fatal error: openssl/sm2.h: No such file or directory", " #include <openssl/sm2.h>", " ^", "compilation terminated."], "stdout": "", "stdout_lines": []}
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information