-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 xrelfo on ARM(32) & cross-compile #8421
Conversation
ARM (32-bit) needs DT_REL... and here I was hoping I could avoid the trouble. Fixes: FRRouting#8355 Signed-off-by: David Lamparter <equinox@diac24.net>
This was mistakenly using the host platform's pointer size rather than the ELF file's. Only noticeable when cross compiling... Signed-off-by: David Lamparter <equinox@diac24.net>
@lucize can you try this PR? |
Continuous Integration Result: SUCCESSFULContinuous Integration Result: SUCCESSFULCongratulations, this patch passed basic tests Tested-by: NetDEF / OpenSourceRouting.org CI System CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-18247/ This is a comment from an automated CI system. |
Outdated results 💚Basic BGPD CI results: SUCCESS, 0 tests failed
For details, please contact louberger |
@eqvinox |
@lucize awesome, Thanks for testing! |
@eqvinox
|
@lucize those messages aren't from clippy - are you using parallel build & the output is from an earlier command? Also I think the problem is libfrr being linked statically, are you trying to LTO daemons+libfrr in one piece? |
So if I use -j1 it seems that it's working LE: seems that is related to pathd daemon, if it's disabled lto works |
@lucize can you upload the entire (failing) build log somewhere, with |
(either way this seems unrelated to this PR, we should merge this and continue on a new issue) |
Can't have things duplicate in libpath.a and pathd directly, they'll crash into eath other on linking. No idea why this doesn't error out in our CI builds, but it definitely breaks LTO builds. Signed-off-by: David Lamparter <equinox@diac24.net>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution to FRR!
Pylint found errors in source files changed by this PR:
Pylint report for my_frr/python/clippy/elf.py:
************* Module clippy.elf
my_frr/python/clippy/elf.py:146:31: E1101: Instance of 'ELFDissectData' has no '_data' member (no-member)
my_frr/python/clippy/elf.py:146:66: E1101: Instance of 'ELFDissectData' has no '_data' member (no-member)
my_frr/python/clippy/elf.py:162:37: E1101: Instance of 'ELFDissectData' has no 'elfclass' member (no-member)
my_frr/python/clippy/elf.py:167:30: E1101: Instance of 'ELFDissectData' has no 'elfclass' member (no-member)
my_frr/python/clippy/elf.py:172:22: E1101: Instance of 'ELFDissectData' has no '_data' member (no-member)
my_frr/python/clippy/elf.py:388:31: E1101: Class 'ELFDissectUnion' has no 'members' member (no-member)
my_frr/python/clippy/elf.py:398:66: E1101: Class 'ELFDissectUnion' has no 'members' member (no-member)
my_frr/python/clippy/elf.py:415:20: E1101: Instance of 'ELFSubset' has no 'name' member (no-member)
my_frr/python/clippy/elf.py:429:15: E1101: Instance of 'ELFSubset' has no '_obj' member (no-member)
my_frr/python/clippy/elf.py:435:15: E1101: Instance of 'ELFSubset' has no '_obj' member (no-member)
my_frr/python/clippy/elf.py:444:29: E1101: Instance of 'ELFSubset' has no '_elffile' member (no-member)
my_frr/python/clippy/elf.py:447:30: E1101: Instance of 'ELFSubset' has no '_obj' member (no-member)
my_frr/python/clippy/elf.py:449:19: E1101: Instance of 'ELFSubset' has no '_obj' member (no-member)
my_frr/python/clippy/elf.py:468:34: E1101: Instance of 'ELFSubset' has no 'ptrtype' member (no-member)
my_frr/python/clippy/elf.py:469:29: E1101: Instance of 'ELFSubset' has no 'endian' member (no-member)
my_frr/python/clippy/elf.py:469:43: E1101: Instance of 'ELFSubset' has no 'ptrtype' member (no-member)
my_frr/python/clippy/elf.py:498:15: E1101: Instance of 'ELFSubset' has no '_wrap_data' member (no-member)
-----------------------------------
Your code has been rated at 6.84/10
If you are a new contributor to FRR, please see our contributing guidelines.
After making changes, you do not need to create a new PR. You should perform an amend or interactive rebase followed by a force push.
@qlyoung erm. I can look at fixing these but that definitely does not belong in this PR. Can we please limit pylint to |
Bot's not blocking the PR, I'd rather leave it turned on |
K. |
endian.h supplies be*toh() and htobe*() functions. This fixes the build on musl libc. On other systems it seems endian.h comes in transitively from some other header. (Also, all .c files should have config.h or zebra.h as the first include, even if it works without that it's b0rked and only works due to luck.) Tested-by: Lucian Cristian <lucian.cristian@gmail.com> Signed-off-by: David Lamparter <equinox@diac24.net>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution to FRR!
Pylint found errors in source files changed by this PR:
Pylint report for my_frr/python/clippy/elf.py:
************* Module clippy.elf
my_frr/python/clippy/elf.py:146:31: E1101: Instance of 'ELFDissectData' has no '_data' member (no-member)
my_frr/python/clippy/elf.py:146:66: E1101: Instance of 'ELFDissectData' has no '_data' member (no-member)
my_frr/python/clippy/elf.py:162:37: E1101: Instance of 'ELFDissectData' has no 'elfclass' member (no-member)
my_frr/python/clippy/elf.py:167:30: E1101: Instance of 'ELFDissectData' has no 'elfclass' member (no-member)
my_frr/python/clippy/elf.py:172:22: E1101: Instance of 'ELFDissectData' has no '_data' member (no-member)
my_frr/python/clippy/elf.py:388:31: E1101: Class 'ELFDissectUnion' has no 'members' member (no-member)
my_frr/python/clippy/elf.py:398:66: E1101: Class 'ELFDissectUnion' has no 'members' member (no-member)
my_frr/python/clippy/elf.py:415:20: E1101: Instance of 'ELFSubset' has no 'name' member (no-member)
my_frr/python/clippy/elf.py:429:15: E1101: Instance of 'ELFSubset' has no '_obj' member (no-member)
my_frr/python/clippy/elf.py:435:15: E1101: Instance of 'ELFSubset' has no '_obj' member (no-member)
my_frr/python/clippy/elf.py:444:29: E1101: Instance of 'ELFSubset' has no '_elffile' member (no-member)
my_frr/python/clippy/elf.py:447:30: E1101: Instance of 'ELFSubset' has no '_obj' member (no-member)
my_frr/python/clippy/elf.py:449:19: E1101: Instance of 'ELFSubset' has no '_obj' member (no-member)
my_frr/python/clippy/elf.py:468:34: E1101: Instance of 'ELFSubset' has no 'ptrtype' member (no-member)
my_frr/python/clippy/elf.py:469:29: E1101: Instance of 'ELFSubset' has no 'endian' member (no-member)
my_frr/python/clippy/elf.py:469:43: E1101: Instance of 'ELFSubset' has no 'ptrtype' member (no-member)
my_frr/python/clippy/elf.py:498:15: E1101: Instance of 'ELFSubset' has no '_wrap_data' member (no-member)
-----------------------------------
Your code has been rated at 6.84/10
If you are a new contributor to FRR, please see our contributing guidelines.
After making changes, you do not need to create a new PR. You should perform an amend or interactive rebase followed by a force push.
💚 Basic BGPD CI results: SUCCESS, 0 tests failedResults table
For details, please contact louberger |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Continuous Integration Result: SUCCESSFULCongratulations, this patch passed basic tests Tested-by: NetDEF / OpenSourceRouting.org CI System CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-18300/ This is a comment from an automated CI system. |
Fixes: #8355