CI failure on GHC 8.6.5 only (`libz.so: cannot open shared object file: No such file or directory`)
RyanGlScott opened this issue · 4 comments
RyanGlScott commented
The GHC 8.6.5 job (and only the 8.6.5 job) is failing on master
currently due to zlib
-related issues (example):
[ 2 of 76] Compiling What4.BaseTypes ( src/What4/BaseTypes.hs, /home/runner/work/what4/what4/dist-newstyle/build/x86_64-linux/ghc-8.6.5/what4-1.2.1.0.99/build/What4/BaseTypes.o )
<command line>: can't load .so/.DLL for: libz.so (libz.so: cannot open shared object file: No such file or directory)
RyanGlScott commented
I suspected that this might due to a stale build cache, but even after bumping the cache number in #170, the problem still persists.
RyanGlScott commented
Some searching leads me to this, which suggests that this is an issue with Nix's zlib
. This answer suggests that a possible fix is to explicitly set the LD_LIBRARY_PATH
so that GHC can find zlib
.
RyanGlScott commented
RyanGlScott commented
Fixed in #171.