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

Fix RPATH in p4c-barefoot #51

Open
vgurevich opened this issue Jan 25, 2025 · 0 comments
Open

Fix RPATH in p4c-barefoot #51

vgurevich opened this issue Jan 25, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@vgurevich
Copy link
Contributor

I see that install_batch.sh sets LD_LIBRARY_PATH to $SDE_INSTALL/lib.

This is OK, but was never required with the original SDE and I think it is only needed because we build the compiler from scratch.

It might be better to fix RPATH in the compiler executable and do not require that extra environment variable.

The procedure is:

sudo apt-get install -y patchelf
patchelf --set-rpath $SDE_INSTALL/lib p4c-barefoot
@fruffy fruffy added enhancement New feature or request bug Something isn't working and removed bug Something isn't working labels Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants