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
CMake: macOS: glassnt Library Does Not Link #6607
Comments
Those symbols are associated with protobuf. The cmake build pulls in protobuf via wpiutil, and transitive library dependencies should bring it in (libglassnt -> libglass -> wpiutil -> protobuf::libprotobuf). What libprotobuf is cmake picking up? This looks like the same error with another piece of software, but no response yet: BVLC/caffe#7019 (comment) We also no longer frequently test the "make" build; could you also try the Ninja generator? |
Trying the Ninja generator now: Protobuf is from homebrew:
|
This also seems similar, so it could be a library link order issue in homebrew packaging of protobuf and/or abseil? bincrafters/community#176 |
I was thinking that too, but order of libraries should only matter when linking against static versions. Ninja lists these libraries as part of the Linker command. Only one protobuf* library in here.
But if I check with pkg-config, not *.cmake packages, several libraries are listed including
However, this library doesn't get pulled in with protobuf. I tried adding Detecting protobuf with pkg-config over cmake packages might be the way to go. I don't have this problem in Linux. Otool is showing that this homebrewed protobuf has been itself linked to this spinlock thing.
|
It definitely sounds like something is broken in homebrew if find_package on protobuf isn’t pulling in what it needs to actually work. We can do a workaround but I would recommend you open an issue there as well. |
But I guess that still trickles back to protobuf not bringing it's own deps.... |
Upstream issue previously reported: |
Fixed with #6609 |
Describe the bug
libglassnt.dylib cannot find symbols when linking.
To Reproduce
Steps to reproduce the behavior:
make
Expected behavior
Either libraries be built, or cmake configure throw an error when build cannot finish.
Screenshots
N/A
Desktop (please complete the following information):
main
Additional context
reported build error:
Are these missing symbols something that should be built-in to wpilib or an external dependency?
-- FRC team - 9431
The text was updated successfully, but these errors were encountered: