bytedance / Elkeid

Elkeid is an open source solution that can meet the security requirements of various workloads such as hosts, containers and K8s, and serverless. It is derived from ByteDance's internal best practices.
https://elkeid.bytedance.com
2.23k stars 432 forks source link

tlinux24 docker批量编译部分ko编译失败 #561

Closed moashenbak closed 3 months ago

moashenbak commented 10 months ago

Describe the bug Dockerfile.tlinux24在执行批量ko bash ./build_script/x86_64/batch_compile_tencentos.sh 时,多个ko编译失败。

Screenshots 进入docker,手动编译,查看错误如下。

image image

OS information (please complete the following information):

shenping-bd commented 10 months ago

gcc版本问题,建议安装并使用内核编译时的gcc版本,可通过cat /proc/version查看

moashenbak commented 10 months ago

gcc版本问题,建议安装并使用内核编译时的gcc版本,可通过cat /proc/version查看

img_v3_025u_ea4e5382-1f5f-4b8d-a75c-a8d0f93ef3eh 目前使用的tencentos/tencentos_server24:latest镜像

kulukami commented 6 months ago

gcc版本问题,建议安装并使用内核编译时的gcc版本,可通过cat /proc/version查看

img_v3_025u_ea4e5382-1f5f-4b8d-a75c-a8d0f93ef3eh 目前使用的tencentos/tencentos_server24:latest镜像

有了 /proc/version ,检查下 编译使用 的 gcc -v 是否与其 一致呢