Skip to content
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

compilation problem with msgpack #179

Open
smilesun opened this issue Mar 29, 2024 · 2 comments
Open

compilation problem with msgpack #179

smilesun opened this issue Mar 29, 2024 · 2 comments

Comments

@smilesun
Copy link

I am using rivet as a submodule of my project, I upgraded gcc to version 10 (the same error when working with version 9), when compiling rivet using cmake, i got the following error:
My GLIBCXX has highest version 3.4.28, lower than the required 3.4.29.
What I did not get is how msgpack requires libgtest.so.1.11.0 below? Is there a way to circumsvent this error?

-- Generating done
-- Build files have been written to: /workspaces/multi_parameter_persistence_homology_path_learning/submodules/rivet/build/msgpack/src/msgpack_project-build
[  3%] Performing build step for 'msgpack_project'
[  6%] Built target msgpackc-static
[ 12%] Built target msgpackc
[ 15%] Built target multi_file
[ 16%] Linking CXX executable msgpack_c
/usr/bin/ld: /opt/conda/lib/libgtest.so.1.11.0: undefined reference to `std::__throw_bad_array_new_length()@GLIBCXX_3.4.29'
collect2: error: ld returned 1 exit status
make[5]: *** [test/CMakeFiles/msgpack_c.dir/build.make:88: test/msgpack_c] Error 1
make[4]: *** [CMakeFiles/Makefile2:1170: test/CMakeFiles/msgpack_c.dir/all] Error 2
make[3]: *** [Makefile:141: all] Error 2
make[2]: *** [CMakeFiles/msgpack_project.dir/build.make:112: msgpack/src/msgpack_project-stamp/msgpack_project-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:166: CMakeFiles/msgpack_project.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
@smilesun
Copy link
Author

smilesun commented Mar 29, 2024

Actually the problem is msgpack-c only support gtest up to 1.7.0, but their latest version does not require libgtest anymore.

see msgpack/msgpack-c#915

Shall rivet update the version there?

at
https://github.com/rivetTDA/rivet/blob/32ce9e80b06353ed24f1e4e24469bdc6968cc52f/CMakeLists.txt#L24C17-L24C26

@smilesun
Copy link
Author

since 2022-1-13, msgpack has the release that does not require gtest

https://github.com/msgpack/msgpack-c/releases?page=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant