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

Math library not found #504

Open
teknohog opened this issue Jan 29, 2025 · 0 comments
Open

Math library not found #504

teknohog opened this issue Jan 29, 2025 · 0 comments

Comments

@teknohog
Copy link

-- Looking for __gcov_flush in gcov
-- Looking for __gcov_flush in gcov - not found
-- Looking for C++ include valgrind/memcheck.h
-- Looking for C++ include valgrind/memcheck.h - not found
-- Looking for pow
-- Looking for pow - not found
-- Looking for pow
-- Looking for pow - not found
CMake Error at contrib/db/libmdbx/CMakeLists.txt:164 (message):
No libm found for math support

My cmake command includes a few custom settings so that I can use my system libraries (boost, openssl) with dynamic linking:

cmake -DBoost_NO_BOOST_CMAKE=TRUE -DBoost_USE_STATIC_LIBS=FALSE -DDISABLE_TOR=TRUE -DBUILD_GUI=FALSE -DOPENSSL_INCLUDE_DIR:FILEPATH=/usr/include/openssl -DOPENSSL_CRYPTO_LIBRARY:FILEPATH=/usr/lib64/libcrypto.so -DOPENSSL_SSL_LIBRARY:FILEPATH=/usr/lib64/libssl.so -DBOOST_ROOT:PATHNAME=/usr ..

However, the math library error seems unrelated to these. I'm also using

gcc 12.4.1
cmake 3.31.5
boost 1.87.0

but I get the same issue with gcc 11.5.0 or 13.3.1, and boost 1.84.0.

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