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
zlib is required even if pci and libxml2 are disabled #646
Comments
Hello. Building with |
I'm compiling a library on Ubuntu 22.04 and not sure if there is a way to disable lstopo on Linux (on Windows with CMake When compiled in a container with minimal dependencies, Maybe the solution here would be to have I initially reached out to |
First, can you check with ldd on lstopo and libhwloc.so that libz is only needed for lstopo? |
I build this stuff in CI and don't build shared library either. The compiled executable (native x86-64) where static library was linked ended up with these dynamic libraries:
And cross-compiled aarch64 looked like this:
Neither of them ended up linking
So I think it is fair to assume |
What version of hwloc are you using?
2.10.0
Which operating system and hardware are you running on?
Ubuntu 22.04
Details of the problem
According to
hwloc/contrib/hwloc-valgrind.supp
Line 7 in 8b82269
--disable-io --disable-libxml2
), zlib will not be necessary, but turned out it is still linked for some reason.I'm wondering if this is expected behavior, right now it is hard to understand whether that is the case because right now by default random libraries are required depending on what other packages are found on the system at compile time and it is very hard to give someone exact list of dependencies with which hwloc is guaranteed to compile, especially when only minimal version with CPU support is needed.
The text was updated successfully, but these errors were encountered: