clang-pure icon indicating copy to clipboard operation
clang-pure copied to clipboard

Build error

Open Ckaf opened this issue 2 years ago • 5 comments

Hi, I'm trying to build clang-pure into my project and I get this:

clang-pure  > /private/var/folders/gt/vldsywv513jgcg3vf4ynfyw40000gn/T/stack-3c9bb5133b4445a3/clang-pure-0.2.0.6/src/Language/C/Clang/Internal/Types.hs:25:1: error:
clang-pure  >     Could not find module ‘Data.Singletons.TH’
clang-pure  >     Perhaps you meant
clang-pure  >       Data.Singletons (from singletons-3.0.1)
clang-pure  >       Data.Singletons.Sigma (from singletons-3.0.1)
clang-pure  >     Use -v (or `:set -v` in ghci) to see a list of the files searched for.
clang-pure  >    |
clang-pure  > 25 | import Data.Singletons.TH
clang-pure  >    | ^^^^^^^^^^^^^^^^^^^^^^^^^

Ckaf avatar Mar 08 '23 13:03 Ckaf

Hi, could you share what version of GHC/Stack you're using?

chpatrick avatar Mar 08 '23 14:03 chpatrick

stack

Version 2.9.3 aarch64
Compiled with:
- Cabal-3.6.3.0

Ckaf avatar Mar 08 '23 14:03 Ckaf

And which snapshot?

chpatrick avatar Mar 08 '23 14:03 chpatrick

resolver:
  url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/20/6.yaml

Ckaf avatar Mar 08 '23 14:03 Ckaf

I also had build failures. I use Cabal 3.10 and GHC 9.6. I was able to get this building again with the following patch – a few unused import warnings remain:

diff --git a/clang-pure.cabal b/clang-pure.cabal index 837b271..3b37d0e 100644 --- a/clang-pure.cabal +++ b/clang-pure.cabal @@ -48,6 +48,8 @@ library LambdaCase, NamedFieldPuns, StandaloneDeriving,

  •                   StandaloneKindSignatures,
    
  •                   TypeOperators,
                      FlexibleContexts
    
    build-depends: base >=4.8 && <5, contravariant >= 1.3.3, @@ -58,6 +60,7 @@ library bytestring >= 0.10.6, stm >= 2.4.4, singletons >= 2.0.1,
  •                   singletons-th >= 3.2,
                      microlens >= 0.4.2.1,
                      microlens-contra >= 0.1.0.1
    
    hs-source-dirs: src/

Merivuokko avatar Oct 04 '23 17:10 Merivuokko