secretflow / psi

The repo of Private Set Intersection(PSI) and Private Information Retrieval(PIR) from SecretFlow.
https://www.secretflow.org.cn/docs/psi
Apache License 2.0
21 stars 16 forks source link

build as release编译报错问题 #113

Open muyixi315 opened 3 months ago

muyixi315 commented 3 months ago

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

github-actions[bot] commented 2 months ago

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

lq0404510 commented 2 months ago

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