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

[BUG] -rpath is being stored in some binaries built by “make image” #5294

Closed
heitbaum opened this issue Apr 5, 2021 · 0 comments · Fixed by #6094
Closed

[BUG] -rpath is being stored in some binaries built by “make image” #5294

heitbaum opened this issue Apr 5, 2021 · 0 comments · Fixed by #6094

Comments

@heitbaum
Copy link
Contributor

heitbaum commented Apr 5, 2021

Describe the bug

Buildhost Hard coded library paths are being included in binaries and libraries (guessing -rpath in some binaries)

To Reproduce

Steps to reproduce the behavior:

  1. Do a make image
  2. boot the image
  3. Run the following in the bin and lib directories find /usr/lib /usr/bin -type f -exec ldd -v {} \; 2>&1 | grep -v -e "not a dynamic executable" -e "you do not have execution permission for" | grep -e storage -e "\t/" > /tmp/ld-errors

Informations

  • LE Version: LE10b1
  • Hardware Platform: x86_64

Log file

Additional context

This was discovered by accident when I rebooted my system (which is the buildhost) with glib2.32 in the build...-Generic directory after doing a test build of HEAD. My dev tree (thus my runtime glibc is normally 2.33) - systemd refused to complete and GLIB_2.33 errors were on the console. A reboot using a recovery image and doing make glibc In the docker container got every thing going again, and set me down the path of checking the hardcoded paths in the /usr/lib and /usr/bin

I believe it only impacts when the build host directories match the runtime environment and the libraries are older in the build host directories.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant