data-glue icon indicating copy to clipboard operation
data-glue copied to clipboard

Missing files during stack build

Open dleprovost opened this issue 7 years ago • 0 comments

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.

dleprovost avatar Aug 31 '18 13:08 dleprovost