Closed ocramz closed 3 years ago
I cannot reproduce the problem here. What OS are you on?
I'm on OSX Mavericks (10.9.5)
It may be Mac specific then.
I ran into a similar problem (on macOS 10.14.4, with stack 2.3.1). I'm not sure if it's the exact same, since in my case the linker was complaining about a different symbol, but I think it was due to the system libbz2
being too old, and being used by bzlib-conduit
. (I'm not sure why the bzlib-conduit
build was succeeding, though it was logging an linker warning too.)
My workaround was to install a newer bzip2
via:
brew install bzip2
And then add this to the stack.yaml
in my project directory:
configure-options:`
bzlib-conduit:
- --extra-lib-dirs=/usr/local/opt/bzip2/lib
In the problem @ocramz reported here, it looks like the link failure is related to directory
, so it might be something different.
For anyone else facing this, move to an LTS that has a compiler version LATER than 8.8.3. There was a bug in 8.8.3 related to macos, which was fixed later.
When compiling a project that requires
zip
(both with stack 1.9 and 2.1.3) I get this:Do you know a fix for this, or is there a way to not build the benchmark application if one only needs the
zip
library? Thank you!