-
Notifications
You must be signed in to change notification settings - Fork 24
Fix linker errors related to Abseil library in Makefile #48
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
Conversation
|
Thanks. I don't exactly understand what they are for, but I see they are used for the CHECK runtime assertions. |
|
Sorry, I had to revert this. There is no apt package for absl that I can include in the readme, so I will have to add compiling it to the build process. I'm working on a cmake branch, so I'll consider adding it to that. What are you using it for? My toolchain doesn't require it to build the project as is, but perhaps yours does. |
|
No problem. |
|
Hello. I have made a new PR concerning this issue. Perhaps you could test it out for me! |
didn't work here's the output : |
|
Hmm. What is the output of |
Hey there sorry went asleep. Yeah my output isn't arch actually. I think I have a better approach btw use this instead : |
|
How far did you go with cmake by the way & I think you should make a discord. Much better to deal with issue & stuffs |
|
That is good code. Thanks. Will get the arch makefile merged. As far as CMake, I'm having some difficulties that I wrote about in the issue on CMake. |
Ok let me see If I can help you with that |
|
This is also an issue in Void Linux, and I'm on the musl edition. I also had to set |
This pull request addresses linker errors encountered during compilation due to missing symbols from the Abseil library. The errors were caused by the linker not being instructed to include all necessary Abseil libraries.
To resolve the issue, I have updated the Makefile to include the missing Abseil libraries explicitly. Specifically, I added -labsl_log_internal_check_op and -labsl_log_internal_message to the linker flags. These changes ensure that the linker can find the required symbols (_ZN4absl12lts_2024011612log_internal17MakeCheckOpStringIPKvS4_EEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEET_T0_PKc and _ZN4absl12lts_2024011612log_internal17MakeCheckOpStringIPKvS4_EEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEET_T0_PKc) and successfully link the program.
This fix resolves the compilation issue and ensures that the project can be built without encountering linker errors related to Abseil dependencies.