Closed shuiruge closed 4 years ago
They are warnings. Is the build failing because of warnings? If so turn the warnings off.
@idontgetoutmuch Ah, you are right, the final error is:
src/Data/Random/Internal/TH.hs:21:1: error:
Could not find module ‘Data.Generics’
Perhaps you haven't installed the profiling libraries for package ‘syb-0.7’?
Use -v to see a list of the files searched for.
|
21 | import Data.Generics
| ^^^^^^^^^^^^^^^^^^^^
cabal: Leaving directory '/var/folders/ns/7cfc836x3kg27q5cx7mxzsq80000gn/T/cabal-tmp-48130/random-fu-0.2.7.0'
cabal: Error: some packages failed to install:
random-fu-0.2.7.0-JPrQDbCVRBFABdZ8dT4f3z failed during the building phase. The
exception was:
ExitFailure 1
And then fails.
Oh, this is a year old already. But I think the last error indicates that you needed to build the profiling versions of syb
, which cabal-install doesn't figure out automatically. I'll close this.
I'm new in Haskell, trying to profile my Haskell program using
ghc -prof
. To do so, I have to reinstallrandom-fu
with an extra-p
, likecabal install --reinstall -p random-fu
, but failed. The error message is pretty long. But almost all pieces share the same pattern, like:Can anyone help me?