-
Notifications
You must be signed in to change notification settings - Fork 117
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
Linking error when building //oak_containers/syslogd:syslogd #5050
Comments
I am unable to reproduce this locally using the latest commit. The missing references should all be in the sysroot of the toolchain, so I am not sure what is causing this on your side. What version of Bazel are you using? Also, if you have Docker installed could you try running the following to see whether that works for you? ./scripts/docker_pull
./scripts/docker_run nix develop .#githubBuildShell --command bazel build //oak_containers/syslogd:syslogd |
Bazel version:
Running this via docker still gives the same result:
The lib files are indeed there, it just seems like the linker isn't finding them. |
I did a clean checkout and then the docker build worked, using "nix develop .#githubBuildShell --command bazel build //oak_containers/syslogd:syslogd" without docker still shows the error. |
Based on the warning above ( What version of nix are you using? What OS are you using on your development machine? Did you follow the nix installation instructions on https://github.com/project-oak/oak/blob/main/docs/development.md#install-nix? |
I tried this on two machines:
|
That is suprising. My best guess is that something from the host OS is leaking into the build process because of |
The docker build works as a workaround but it's very strange. The files exist, it's just the linker doesn't find them. See my initial comment. If you mess with the BUILD file it finds them (but I don't think that should be necessary). Bazel versions are the same and I don't see how OS environment via nix develop would influence the linker arguments/env - but that does seem to be what is happening. |
Based on latest checkout from today:
(or)
This can be fixed by applying:
Is there a better way of fixing this?
The text was updated successfully, but these errors were encountered: