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

ldd command doesn't work in cross-compile #23

Open
2 tasks
kh9sd opened this issue Sep 28, 2023 · 0 comments
Open
2 tasks

ldd command doesn't work in cross-compile #23

kh9sd opened this issue Sep 28, 2023 · 0 comments
Labels
question Further information is requested

Comments

@kh9sd
Copy link
Member

kh9sd commented Sep 28, 2023

in our pi-cross-compile pipeline job, we build the wiringPi library which is a shared library, so it exists outside of the ecs_pi executable

we've had some trouble with this library not being found at runtime, there is a handy Linux tool called ldd that will check the links on an executable [TODO: show example of missing link]. problem is, we can't run it in the Docker cross compiler container, it errors saying that it's not a dynamic executable. we can only check on the actual Pi. if i had to wager, I think it's because of the fact we cross compiling for different OSs and architectures.

  • Determine if we can get ldd to run in our Docker container. If not, so be it
  • If it does work, use it with a piped grep to check for missing links during a pipeline run
@kh9sd kh9sd added the question Further information is requested label Sep 28, 2023
@kh9sd kh9sd assigned kh9sd and unassigned kh9sd Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant