Closed yurivict closed 1 year ago
That output suggests you may be building sv2v in a non-standard way. Those errors are in compiling sv2v's dependencies, rather than sv2v itself. The "officially supported" method is to install Haskell Stack (https://docs.haskellstack.org/en/stable/), and then just run make
. Can you give that a shot?
Can you give that a shot?
I need to build it as part of the FreeBSD port build process, which means no downloads are allowed. Unfortunately, Stack downloads files during build. So I use a standard Haskell-based pipeline, which uses cabal and all the same dependencies that Stack would download.
I think the GHC and dependency versions referenced in the error message don't match the versions that stack is using.
ghc-9.4.5
, but I'm using GHC 8.10.7
.alex-3.3.0.0
, but I'm using alex-3.2.7.1
.You could try using the Hackage tarball from https://hackage.haskell.org/package/sv2v-0.0.10 rather than the latest git HEAD from GitHub. That tarball contains an sv2v.cabal with more autogenerated more specific version requirements. During the release process, I generate that tarball using stack sdist
.
I'm also open to patches if, e.g., the upper bound on the version of alex
is too loose. I'm also not opposed to upgrading to GHC 9.2.7 using the latest LTS Stackage.
ghc-9.4.5 builds sv2v fine. I reported the error/warning because it looks weird, but it isn't fatal.
I am able to create the port the way how it is now.
Please feel free to close it.
The Haskell compiler prints errors or warnings:
Version: 2023-06-01 ghc-9.4.5 FreeBSD 13.2