secretflow/psi

build as release编译报错问题

muyixi315 opened this issue · 2 comments

centos执行build as release报错
最新branchtag:v0.4.0.dev240401在执行bazel build //... -c opt报错问题
image
examples/pir/BUILD.bazel 缺少配置:linkopts = ["-ldl"],添加后build通过

但是拉起secretflow/ubuntu-base-ci:latest,直接执行bazel build //... -c opt可以正常结束
请问该镜像中有什么关键配置是影响编译链接选项-ldl

同时dev docker命令好像有误
CapAdd and privileged are mutually exclusive options

Stale issue message. Please comment to remove stale tag. Otherwise this issue will be closed soon.

1、examples/pir/BUILD.bazel 缺少配置:linkopts = ["-ldl"],添加后build通过;请问该镜像中有什么关键配置是影响编译链接选项-ldl?
---这块跟gcc的版本有关系
2、CapAdd and privileged are mutually exclusive options
---CapAdd 和 privileged 不是互斥选项。它们都是 Docker 中控制容器权限的设置,但用途不同。CapAdd 用于添加特定的 Linux 能力,而 privileged 则赋予容器所有能力。它们可以独立使用或结合使用