malcolmwallace / cpphs

The C pre-processor, implemented in Haskell.
2 stars 0 forks source link

cpphs 1.20.9 fails to build on GHC 7.8.4 because of time library #22

Open vmchale opened 4 years ago

vmchale commented 4 years ago

Log of the build failure:

vanessa@vanessa-desktop ~/git-builds/junk/cpphs-1.20.9 🌸 cabal build -w ghc-7.8.4
Build profile: -w ghc-7.8.4 -O1
In order, the following will be built (use -v for more details):
 - cpphs-1.20.9 (lib:cpphs, exe:cpphs) (first run)
Preprocessing executable 'cpphs' for cpphs-1.20.9..
Building executable 'cpphs' for cpphs-1.20.9..
[ 7 of 12] Compiling Language.Preprocessor.Cpphs.MacroPass ( Language/Preprocessor/Cpphs/MacroPass.hs, /home/vanessa/git-builds/junk/cpphs-1.20.9/dist-newstyle/build/x86_64-linux/ghc-7.8.4/cpphs-1.20.9/build/cpphs/cpphs-tmp/Language/Preprocessor/Cpphs/MacroPass.o )

Language/Preprocessor/Cpphs/MacroPass.hs:35:38:
    Module ‘Data.Time.Format’ does not export ‘defaultTimeLocale’

It seems to be building against time 1.4.2, perhaps a lower bound would fix that?

malcolmwallace commented 4 years ago

Since the only difference between 1.20.8 and 1.20.9 is an update to enable building with a newer ghc, I think the solution is for you to downgrade cpphs back to 1.20.8