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

Issue with GTest linkage #189

Open
follow39 opened this issue Jul 8, 2024 · 0 comments
Open

Issue with GTest linkage #189

follow39 opened this issue Jul 8, 2024 · 0 comments

Comments

@follow39
Copy link

follow39 commented Jul 8, 2024

I'm trying to run google tests and facing an issue with linkage. Here is the log:

==================== Test output for //tests/unit_tests:unit_tests:
dyld[48927]: Library not loaded: bazel-out/darwin_arm64-fastbuild/bin/external/googletest~/libgtest_main.dylib
  Referenced from: <C912EEF9-0000-3E27-9EE1-AC730CB78FAD> /private/var/tmp/_bazel_artemivanov/89dcb61ca0709d50b624257b096e9013/execroot/_main/bazel-out/darwin_arm64-fastbuild/bin/tests/unit_tests/unit_tests
  Reason: tried: 'bazel-out/darwin_arm64-fastbuild/bin/external/googletest~/libgtest_main.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSbazel-out/darwin_arm64-fastbuild/bin/external/googletest~/libgtest_main.dylib' (no such file), 'bazel-out/darwin_arm64-fastbuild/bin/external/googletest~/libgtest_main.dylib' (no such file)
================================================================================

The file exists at the bazel-out/darwin_arm64-fastbuild/bin/external/googletest~/libgtest_main.dylib path, but I don't understand where this /System/Volumes/Preboot/Cryptexes/OS coming from?

Commands to reproduce:

git clone https://github.com/follow39/citidi.git -b add_hermetic_build_issue
bazel test //...
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

1 participant