Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build as release编译报错问题 #113

Open
muyixi315 opened this issue Apr 18, 2024 · 2 comments
Open

build as release编译报错问题 #113

muyixi315 opened this issue Apr 18, 2024 · 2 comments
Assignees

Comments

@muyixi315
Copy link

muyixi315 commented Apr 18, 2024

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

@muyixi315 muyixi315 changed the title 执行build as release报错问题 build as release编译报错问题 Apr 18, 2024
Copy link

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

@lq0404510
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants