-
Notifications
You must be signed in to change notification settings - Fork 72
Open
Description
Issue Type
Others
Have you searched for existing issues?
Yes
Link to Relevant Documentation
No response
Question Details
背景
业务基于隐语提供的官方镜像secretflow/scql:0.9.2b1构建新的镜像,但在Hygon C86 7360 CPU上容器无法启动,报错/lib/x86_64-linux-gnu/libc.so.6: CPU ISA level is lower than required。我们推测是GLIBC的版本太高导致的。
我的观察
- 进入
secretflow/scql:0.9.2b1镜像,ldd --version输出ldd (Ubuntu GLIBC 2.35-0ubuntu3.8) 2.35。 - 根据
docker/build.sh,secretflow/scql:0.9.2b1是基于secretflow/scql-ci:latest镜像构建的,secretflow/scql-ci:latest镜像中ldd --version也输出ldd (Ubuntu GLIBC 2.35-0ubuntu3.8) 2.35。 - 根据
docker/build.sh,如果BASE_IMAGE为anolis,在x86_64平台将基于secretflow/release-ci:latest构建,release-ci容器中ldd --version则输出ldd (GNU libc) 2.28。
所以我想基于secretflow/release-ci:latest来重新编译scql,从而获得基于GLIBC 2.28构建的镜像,我执行的命令是:
cd scql-0.9.2.b1
sh build.sh -b anolis -t scql-anolis
编译报错信息
ERROR: /root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/com_github_utf8proc/BUILD.bazel:24:6: output 'external/com_github_utf8proc/utf8proc/lib/libutf8proc.a' was not created
ERROR: /root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/com_github_utf8proc/BUILD.bazel:24:6: Foreign Cc - CMake: Building utf8proc failed: not all outputs were created or valid
Target //engine/exe:scqlengine failed to build
INFO: Elapsed time: 345.721s, Critical Path: 91.81s
INFO: 1640 processes: 218 internal, 1422 processwrapper-sandbox.
FAILED: Build did NOT complete successfully
make: *** [Makefile:34: binary] Error 1
我的问题
- 请教一下上述思路是否可行
- 编译报错应该如何解决呢?您可以提供anolis的scql镜像吗?
Reactions are currently unavailable