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

platform_transition_test appears to break RUNPATH #1006

Open
molar opened this issue Dec 10, 2024 · 0 comments
Open

platform_transition_test appears to break RUNPATH #1006

molar opened this issue Dec 10, 2024 · 0 comments

Comments

@molar
Copy link
Contributor

molar commented Dec 10, 2024

Hello

I am using platform_transition_test on a C++ test binary.
When executing the test remotely it fails because it cannot find the shared libraries in _solib_aarch64 (referenced in the binary using RUNPATH)

The issue appears to be that the "symlink" action does not guarantee to produce a symlink remotely and therefore
our buildbarn worker gets a copy instead, and this breaks RUNPATH resolution (the RUNPATH uses relative locations)

I can work around it in my case by outputting a wrapper bash script that exec's the test binary. Basically changing the symlink action to be this instead

    ctx.actions.write(
        new_executable,
        content = """#!/bin/bash
exec {} 
""".format(original_executable.short_path),
        is_executable = True,
    

However I would like to discuss what could be a permanent solution to this problem

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