JPMoresmau / scion-class-browser

Scion part for EclipseFP Class Browser
16 stars 6 forks source link

Compilation fails (GHC 7.8.2) #19

Open afiskon opened 9 years ago

afiskon commented 9 years ago
eax@fujitsu:~$ cabal install scion-browser
Resolving dependencies...
Downloading derive-2.5.16...
Configuring ghc-pkg-lib-0.3...
Configuring parallel-io-0.3.3...
Configuring persistent-2.1.1.7...
Configuring tar-0.4.1.0...
Configuring terminfo-0.4.0.0...
Configuring derive-2.5.16...
Building tar-0.4.1.0...
Building parallel-io-0.3.3...
Building ghc-pkg-lib-0.3...
Building persistent-2.1.1.7...
Building derive-2.5.16...
Building terminfo-0.4.0.0...
Installed parallel-io-0.3.3
Installed ghc-pkg-lib-0.3
Installed tar-0.4.1.0
Installed terminfo-0.4.0.0
Configuring haskeline-0.7.1.3...
Building haskeline-0.7.1.3...
Installed haskeline-0.7.1.3
Installed persistent-2.1.1.7
Configuring persistent-template-2.1.0.1...
Configuring persistent-sqlite-2.1.1.2...
Building persistent-sqlite-2.1.1.2...
Building persistent-template-2.1.0.1...
Installed derive-2.5.16
Installed persistent-template-2.1.0.1
Installed persistent-sqlite-2.1.1.2
Configuring scion-browser-0.5.0...
Building scion-browser-0.5.0...
Failed to install scion-browser-0.5.0
Build log ( /home/eax/.cabal/logs/scion-browser-0.5.0.log ):
Configuring scion-browser-0.5.0...
Building scion-browser-0.5.0...
Preprocessing library scion-browser-0.5.0...
[ 1 of 18] Compiling Scion.PersistentBrowser.FromMissingH ( src/Scion/PersistentBrowser/FromMissingH.hs, dist/build/Scion/PersistentBrowser/FromMissingH.o )
[ 2 of 18] Compiling Scion.PersistentBrowser.TempFile ( src/Scion/PersistentBrowser/TempFile.hs, dist/build/Scion/PersistentBrowser/TempFile.o )
[ 3 of 18] Compiling Scion.PersistentHoogle.Util ( src/Scion/PersistentHoogle/Util.hs, dist/build/Scion/PersistentHoogle/Util.o )
[ 4 of 18] Compiling Scion.PersistentBrowser.FileUtil ( src/Scion/PersistentBrowser/FileUtil.hs, dist/build/Scion/PersistentBrowser/FileUtil.o )
[ 5 of 18] Compiling Scion.PersistentBrowser.Types ( src/Scion/PersistentBrowser/Types.hs, dist/build/Scion/PersistentBrowser/Types.o )
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package array-0.5.0.0 ... linking ... done.
Loading package deepseq-1.3.0.2 ... linking ... done.
Loading package bytestring-0.10.4.0 ... linking ... done.
Loading package filepath-1.3.0.2 ... linking ... done.
Loading package old-locale-1.0.0.6 ... linking ... done.
Loading package time-1.4.2 ... linking ... done.
Loading package unix-2.7.0.1 ... linking ... done.
Loading package directory-1.2.1.0 ... linking ... done.
Loading package tar-0.4.1.0 ... linking ... done.
Loading package containers-0.5.5.1 ... linking ... done.
Loading package text-1.1.0.1 ... linking ... done.
Loading package hashable-1.2.2.0 ... linking ... done.
Loading package scientific-0.3.2.1 ... linking ... done.
Loading package attoparsec-0.11.3.4 ... linking ... done.
Loading package dlist-0.7.1 ... linking ... done.
Loading package transformers-0.3.0.0 ... linking ... done.
Loading package mtl-2.1.3.1 ... linking ... done.
Loading package syb-0.4.2 ... linking ... done.
Loading package pretty-1.1.1.1 ... linking ... done.
Loading package template-haskell ... linking ... done.
Loading package unordered-containers-0.2.4.0 ... linking ... done.
Loading package primitive-0.5.3.0 ... linking ... done.
Loading package vector-0.10.11.0 ... linking ... done.
Loading package aeson-0.7.0.6 ... linking ... done.
Loading package transformers-base-0.4.2 ... linking ... done.
Loading package monad-control-0.3.3.0 ... linking ... done.
Loading package blaze-builder-0.3.3.2 ... linking ... done.
Loading package exceptions-0.6.1 ... linking ... done.
Loading package lifted-base-0.2.2.2 ... linking ... done.
Loading package mmorph-1.0.3 ... linking ... done.
Loading package resourcet-1.1.2.2 ... linking ... done.
Loading package nats-0.2 ... linking ... done.
Loading package semigroups-0.15.1 ... linking ... done.
Loading package void-0.6.1 ... linking ... done.
Loading package conduit-1.1.6 ... linking ... done.
Loading package parsec-3.1.5 ... linking ... done.
Loading package network-2.5.0.0 ... linking ... done.
Loading package random-1.0.1.1 ... linking ... done.
Loading package zlib-0.5.4.1 ... linking ... done.
Loading package streaming-commons-0.1.3 ... linking ... done.
Loading package conduit-extra-1.1.1 ... linking ... done.
Loading package fast-logger-2.1.5 ... linking ... done.
Loading package monad-loops-0.4.2.1 ... linking ... done.
Loading package stm-2.4.3 ... linking ... done.
Loading package stm-chans-3.0.0.2 ... linking ... done.
Loading package monad-logger-0.3.6.1 ... linking ... done.
Loading package path-pieces-0.1.3.1 ... linking ... done.
Loading package base64-bytestring-1.0.0.1 ... linking ... done.
Loading package blaze-markup-0.6.1.0 ... linking ... done.
Loading package blaze-html-0.7.0.2 ... linking ... done.
Loading package resource-pool-0.2.3.0 ... linking ... done.
Loading package silently-1.2.4.1 ... linking ... done.
Loading package tagged-0.7.2 ... linking ... done.
Loading package persistent-2.1.1.7 ... linking ... done.
Loading package persistent-template-2.1.0.1 ... linking ... done.
Loading package persistent-sqlite-2.1.1.2 ... linking ... done.
Loading package extensible-exceptions-0.1.1.4 ... linking ... done.
Loading package parallel-io-0.3.3 ... linking ... done.
Loading package case-insensitive-1.2.0.0 ... linking ... done.
Loading package data-default-class-0.0.1 ... linking ... done.
Loading package data-default-instances-base-0.0.1 ... linking ... done.
Loading package data-default-instances-containers-0.0.1 ... linking ... done.
Loading package data-default-instances-dlist-0.0.1 ... linking ... done.
Loading package data-default-instances-old-locale-0.0.1 ... linking ... done.
Loading package data-default-0.5.3 ... linking ... done.
Loading package cookie-0.4.1.1 ... linking ... done.
Loading package http-types-0.8.5 ... linking ... done.
Loading package mime-types-0.1.0.4 ... linking ... done.
Loading package cereal-0.4.0.1 ... linking ... done.
Loading package utf8-string-0.3.8 ... linking ... done.
Loading package publicsuffixlist-0.1 ... linking ... done.
Loading package http-client-0.3.4 ... linking ... done.
Loading package byteable-0.1.1 ... linking ... done.
Loading package securemem-0.1.3 ... linking ... done.
Loading package crypto-cipher-types-0.0.9 ... linking ... done.
Loading package cipher-aes-0.2.8 ... linking ... done.
Loading package crypto-random-0.0.7 ... linking ... done.
Loading package cprng-aes-0.5.2 ... linking ... done.
Loading package socks-0.5.4 ... linking ... done.
Loading package asn1-types-0.2.3 ... linking ... done.
Loading package asn1-encoding-0.8.1.3 ... linking ... done.
Loading package cipher-des-0.0.6 ... linking ... done.
Loading package cipher-rc4-0.1.4 ... linking ... done.
Loading package crypto-numbers-0.2.3 ... linking ... done.
Loading package crypto-pubkey-types-0.4.2.2 ... linking ... done.
Loading package cryptohash-0.11.6 ... linking ... done.
Loading package crypto-pubkey-0.2.4 ... linking ... done.
Loading package asn1-parse-0.8.1 ... linking ... done.
Loading package pem-0.2.2 ... linking ... done.
Loading package process-1.2.0.0 ... linking ... done.
Loading package x509-1.4.11 ... linking ... done.
Loading package x509-store-1.4.4 ... linking ... done.
Loading package x509-validation-1.5.0 ... linking ... done.
Loading package tls-1.2.8 ... linking ... done.
Loading package x509-system-1.4.5 ... linking ... done.
Loading package connection-0.2.1 ... linking ... done.
Loading package http-client-tls-0.2.1.2 ... linking ... done.
Loading package http-conduit-2.1.2.3 ... linking ... done.
Loading package Cabal-1.18.1.3 ... linking ... done.
Loading package binary-0.7.1.0 ... linking ... done.
Loading package bin-package-db-0.0.0.0 ... linking ... done.
Loading package hoopl-3.10.0.1 ... linking ... done.
Loading package hpc-0.6.0.1 ... linking ... done.
Loading package ghc-7.8.2 ... linking ... done.
Loading package ghc-paths-0.1.0.9 ... linking ... done.
Loading package ghc-pkg-lib-0.3 ... linking ... done.
Loading package old-time-1.1.0.2 ... linking ... done.
Loading package polyparse-1.9 ... linking ... done.
Loading package cpphs-1.18.4 ... linking ... done.
Loading package haskell-src-exts-1.15.0.1 ... linking ... done.
Loading package uniplate-1.6.12 ... linking ... done.
Loading package derive-2.5.16 ... linking ... done.
[ 6 of 18] Compiling Scion.PersistentBrowser.DbTypes ( src/Scion/PersistentBrowser/DbTypes.hs, dist/build/Scion/PersistentBrowser/DbTypes.o )
[ 7 of 18] Compiling Scion.PersistentBrowser.Query ( src/Scion/PersistentBrowser/Query.hs, dist/build/Scion/PersistentBrowser/Query.o )
[ 8 of 18] Compiling Scion.PersistentHoogle.Types ( src/Scion/PersistentHoogle/Types.hs, dist/build/Scion/PersistentHoogle/Types.o )
[ 9 of 18] Compiling Scion.PersistentBrowser.Instances.Json ( src/Scion/PersistentBrowser/Instances/Json.hs, dist/build/Scion/PersistentBrowser/Instances/Json.o )
[10 of 18] Compiling Scion.PersistentBrowser.ToDb ( src/Scion/PersistentBrowser/ToDb.hs, dist/build/Scion/PersistentBrowser/ToDb.o )

src/Scion/PersistentBrowser/ToDb.hs:49:13:
    Could not deduce (SrcInfo Doc)
      arising from a use of ‘saveConstructorToDb’
    from the context (MonadIO m)
      bound by the type signature for
                 saveDeclToDb :: MonadIO m =>
                                 Key DbModule -> Decl Doc -> ReaderT SqlBackend m ()
      at src/Scion/PersistentBrowser/ToDb.hs:(40,17)-(42,69)
    In the first argument of ‘mapM_’, namely
      ‘(saveConstructorToDb declId)’
    In a stmt of a 'do' block: mapM_ (saveConstructorToDb declId) decls
    In the expression:
      do { let (declName, declVars) = declHeadToDb hd;
           declId <- insert
                     $ DbDecl
                         DbData
                         declName
                         (docToString doc)
                         (fmap singleLinePrettyPrint kind)
                         Nothing
                         Nothing
                         moduleId;
           mapM_ (saveTyVarToDb declId) declVars;
           mapM_
             (saveContextToDb declId) (contextToDb (maybeEmptyContext ctx));
           .... }

Same story with scion-browser 0.4.*

0.3.5 seems to be OK

ghost commented 9 years ago

same problem here, 0.3.5 works