-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Building tests on macos results in linker warnings #1010
Comments
@sergiud can you take a look please. |
That's strange. How can this be reproduced? Our macOS 13 runner does not seem to show this problem. |
I am happy to provide whatever details/logs from my mac you would like, say the word. |
I looked at the link script being used and here is one instance of it and there are duplicates here
|
here is what cmake output looks like when I configure
|
@sergiud thoughts? |
So this seems to be an issue with the new linker that ships with XCode 15. |
There's a related CMake discussion which provides a possible workaround. At this point, however, it does not seem to be easy to reliably identify the linker being used. Therefore, applying the workaround is not straightforward. Since the warnings are non-fatal, I suggest we leave them as is. Users can suppress the warnings by passing |
CMake 3.29 introduced policy CMP0156 (https://cmake.org/cmake/help/v3.29/policy/CMP0156.html) allowing to avoid linker warnings such as ld: warning: ignoring duplicate libraries: '-ldl', '-lm', 'lib/libceres.a', 'lib/libgtest.a' Fixes #1010 Change-Id: I6c3cf15382c5de4c005bcb28ac6931196f00fe48
The text was updated successfully, but these errors were encountered: