Skip to content

Missing files during stack build #5

@dleprovost

Description

@dleprovost

For unknown reasons, GHC is missing files within fast-math package during the build:

--  While building custom Setup.hs for package cubicbezier-0.6.0.5 using:
      /home/dataglue/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_2.0.1.0_ghc-8.2.2 --builddir=.stack-work/dist/x86_64-linux/Cabal-2.0.1.0 build --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
    Process exited with code: ExitFailure 1
    Logs have been written to: /home/dataglue/.stack-work/logs/cubicbezier-0.6.0.5.log

    Configuring cubicbezier-0.6.0.5...
    Preprocessing library for cubicbezier-0.6.0.5..
    Building library for cubicbezier-0.6.0.5..
    [ 1 of 12] Compiling Geom2D           ( Geom2D.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Geom2D.o )
    
    /tmp/stack11/cubicbezier-0.6.0.5/Geom2D.hs:14:1: error:
        Could not find module ‘Numeric.FastMath’
        There are files missing in the ‘fast-math-1.0.2’ package,
        try running 'ghc-pkg check'.
        Use -v to see a list of the files searched for.
       |
    14 | import Numeric.FastMath
       | ^^^^^^^^^^^^^^^^^^^^^^^
    

I only experience this on docker, not on my personal installation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions