Tests may fail on system without zlib
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Could you explain a bit more about how these tests fail without zlib? I don't think they should rely on it, so if there are failures it means there's either a problem with the test or the implementation.
Sorry for not providing more details.
These tests may fail if zlib is installed on the system, but front end is explicitly disabling LLVM_ENABLE_ZLIB in cmake, then LIT tests will fail with information that LLVM_ENABLE_ZLIB has been disabled.
I'm fairly confident this is the wrong fix for the problem. ZSTD compression shouldn't require ZLIB support (and similarly ZLIB compression shouldn't require ZSTD support). Without looking too hard at the problem, my guess is that there's a bug in the check for whether the --compress-debug-sections option is supported or not. There may also be a lit bug, in that the REQUIRES directive for these compression formats should be based on what happened at cmake configuration time, not (only) on what's installed on the system, but I'm not really sure.
I haven't been involved with the recent compression changes really, so I've added a few people who have.
I agree with the analysis. https://reviews.llvm.org/D135744 is the proper fix.
The test/MC/ELF test works as intended, even if I enable zstd and disable zlib.
Closing this review. This issue will be fixed in review : https://reviews.llvm.org/D135744