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

Version of gcc compiler effects correctness of patchelf 0.18 #557

Open
dragon512 opened this issue Jun 5, 2024 · 1 comment
Open

Version of gcc compiler effects correctness of patchelf 0.18 #557

dragon512 opened this issue Jun 5, 2024 · 1 comment
Labels

Comments

@dragon512
Copy link

Describe the bug

When moving from 0.15 to 0.18 all my builds broke on rhel7/8/9.
The issue shows up as traffic_server: error while loading shared libraries: libhwloc.so.15: ELF load command address/offset not properly aligned

Steps To Reproduce

compile code with a compiler less than gcc 12 ( which is common on rhel system) and run patchelf to change the run path. running the program will result in the aligned error from above.

The workaround is to recompile the code gcc 12 ( available on rhel with devtool )
If using the older compile I found I had to move back to 0.15

Expected behavior

It should not break the binary based on the compiler

Additional context

This is more of a note as many issues here may have the same problem. just using a newer compiler fixed the problem with patchelf.

@dragon512 dragon512 added the bug label Jun 5, 2024
@adam-azarchs
Copy link

Seems like this is possibly a duplicate of #528? The thing about alignment issues is that there are a lot of things that can affect whether or not one hits the bug.

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

No branches or pull requests

2 participants