Skip to content

Issue with GTest linkage #189

@follow39

Description

@follow39

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 //...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions