[Haskell-cafe] Problem with publishing project/packages

Henning Thielemann lemming at henning-thielemann.de
Tue Apr 28 12:04:11 UTC 2020


On Tue, 28 Apr 2020, Dominik Schrempf wrote:

> By the way, I just failed building the documentation. This is all wrong :|.
>
>    Resolving dependencies...
>    Build profile: -w ghc-8.8.3 -O1
>    In order, the following will be built (use -v for more details):
>     - matrices-0.5.0 (lib) (requires build)
>     - storable-complex-0.2.3.0 (lib:storable-complex) (requires build)
>     - hmatrix-0.20.0.0 (lib) (requires build)
>     - elynx-tools-0.2.2 (lib) (first run)
>    Starting     storable-complex-0.2.3.0 (all, legacy fallback)
>    Starting     matrices-0.5.0 (lib)
>    Building     storable-complex-0.2.3.0 (all, legacy fallback)
>    Building     matrices-0.5.0 (lib)
>
>    Failed to build matrices-0.5.0.
>    Build log (
>    /home/dominik/.cabal/logs/ghc-8.8.3/matrices-0.5.0-fad3378ef6f4b9b628fbbd797b7c85b4d66179cdfbce76fdac9c0e095f6cd439.log
>    ):
>    Configuring library for matrices-0.5.0..
>    Preprocessing library for matrices-0.5.0..
>    Building library for matrices-0.5.0..
>    [ 1 of 13] Compiling Data.Matrix.Class.Mutable ( src/Data/Matrix/Class/Mutable.hs, dist/build/Data/Matrix/Class/Mutable.o )
>
>    src/Data/Matrix/Class/Mutable.hs:10:1: error:
>        Could not find module ‘Control.Monad.Primitive’
>        There are files missing in the ‘primitive-0.7.0.1’ package,
>        try running 'ghc-pkg check'.
>        Use -v (or `:set -v` in ghci) to see a list of the files searched for.
>       |
>    10 | import           Control.Monad.Primitive     (PrimMonad, PrimState)
>       | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>


What cabal-install version did you use for this build and what 'build' 
method did you use, v1-build or v2-build?

The message could mean that you are building with profiling but some 
'primitive' was installed without profiling. With 'cabal v2-build' 
(new-build) there should not be a problem, because Cabal should simply 
build profiling objects when needed. However, for building the 
documentation you do not need profiling. But then again, profiling was 
just a guess.

It's best you show us your actual command-line and used Cabal version and 
the package (e.g. repository) that you try to upload.


More information about the Haskell-Cafe mailing list