-
Notifications
You must be signed in to change notification settings - Fork 30
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: link tests with --no-as-needed due to JANA #255 #1130
Conversation
@bleaktwig This should fix the issue you were seeing. Can you verify, and approve if it does? Then we can merge this before too many others run into the same issue. |
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.
We should be patching JANA2, but this is probably a fine stopgap.
Sorry for being late to the party. This fix is not solving the issue between libJANA and podio on my machine, even after upgrading eic-shell, re-cloning the repository, and building from scratch. It can still be "solved" by leaving The exact error thrown by cmake is:
|
It seems to me that the problem is in this conditional statement. Taking the |
### Briefly, what does this PR introduce? This fixes an issue in the linking of algorithms_test which popped up today (and likely was always there...). Until JeffersonLab/JANA2#255 is included, we install a libJANA.so with undefined references to podio because it doesn't include it in the NEEDED section. By passing `--no-as-needed` we don't strip the podio calls from the algorithms_test executables where they are unused. ### What kind of change does this PR introduce? - [x] Bug fix (issue #__) - [ ] New feature (issue #__) - [ ] Documentation update - [ ] Other: __ ### Please check if this PR fulfills the following: - [ ] Tests for the changes have been added - [ ] Documentation has been added / updated - [ ] Changes have been communicated to collaborators ### Does this PR introduce breaking changes? What changes might users need to make to their code? No. ### Does this PR change default behavior? No. --------- Co-authored-by: Dmitry Kalinkin <[email protected]>
Briefly, what does this PR introduce?
This fixes an issue in the linking of algorithms_test which popped up today (and likely was always there...). Until JeffersonLab/JANA2#255 is included, we install a libJANA.so with undefined references to podio because it doesn't include it in the NEEDED section. By passing
--no-as-needed
we don't strip the podio calls from the algorithms_test executables where they are unused.What kind of change does this PR introduce?
Please check if this PR fulfills the following:
Does this PR introduce breaking changes? What changes might users need to make to their code?
No.
Does this PR change default behavior?
No.