[Haskell-beginners] fclabels-2.0.3.3 build hangs on ghc-8.6.3/cabal-2.4.1.0 under Windows 10

Graham Gill math.simplex at gmail.com
Thu Dec 27 05:57:17 UTC 2018


While trying to build the haskell-ide-engine project 
(https://github.com/haskell/haskell-ide-engine) on Windows 10, using my 
system global install of ghc-8.6.3, the process seems to hang while 
building fclabels-2.0.3.3. (I followed the project build instructions, 
using command

 > .\build-all.ps1 8.6.3

in the project root folder, which uses stack resolver lts-13.0 and 
ghc-8.6.3.)

I get the same result (process never finishes) trying to build fclabels 
by itself:

 > stack install fclabels --stack-yaml .\stack-8.6.3.yaml

in the haskell-ide-engine root folder.

To simplify, I tried to build fclabels with cabal install 
(cabal-2.4.1.0) in my home folder (where there are no .cabal files present):

 > cabal -v -j1 v2-install fclabels

Output is attached. The process hangs at compiling Data.Label.Base 
source to object file. Windows task manager shows ghc working merrily 
away (overnight, on my first attempt) without finishing.

On the other hand, if I run

 > stack install fclabels --stack-yaml .\stack-8.4.4.yaml

in the haskell-ide-engine root folder, which uses stack resolver 
lts-12.20 and ghc-8.4.4, fclabels-2.0.3.3 builds successfully.

Because of the complexity of cabal and stack package management I don't 
know where to pin the blame, perhaps it's on my own system setup, hence 
don't know where/whether to file a bug report.

Regards,
Graham



-------------- next part --------------
C:\Users\Graham>cabal list fclabels
* fclabels
    Synopsis: First class accessor labels implemented as lenses.
    Default available version: 2.0.3.3
    Installed versions: [ Not installed ]
    Homepage: https://github.com/sebastiaanvisser/fclabels
    License:  BSD3

* fclabels-monadlib
    Synopsis: MonadLib monadic interface for the "fclabels" package.
    Default available version: 0.2.1
    Installed versions: [ Not installed ]
    License:  BSD3


C:\Users\Graham>cabal -v -j1 v2-install fclabels
Reading available packages of hackage.haskell.org...
Using most recent state specified from most recent cabal update
index-state(hackage.haskell.org) = 2018-12-27T03:04:10Z
"C:\Program Files\Haskell Platform\8.6.3\bin\ghc.exe" "--numeric-version"
looking for tool ghc-pkg near compiler in C:\Program Files\Haskell
Platform\8.6.3\bin
found ghc-pkg in C:\Program Files\Haskell Platform\8.6.3\bin\ghc-pkg.exe
"C:\Program Files\Haskell Platform\8.6.3\bin\ghc-pkg.exe" "--version"
"C:\Program Files\Haskell Platform\8.6.3\bin\ghc.exe" "--supported-languages"
"C:\Program Files\Haskell Platform\8.6.3\bin\ghc.exe" "--info"
creating C:\Users\Graham\AppData\Local\Temp\cabal-install.-4532\dist-newstyle
creating
C:\Users\Graham\AppData\Local\Temp\cabal-install.-4532\dist-newstyle\cache
Compiler settings changed, reconfiguring...
"C:\Program Files\Haskell Platform\8.6.3\bin\ghc.exe" "--numeric-version"
looking for tool ghc-pkg near compiler in C:\Program Files\Haskell
Platform\8.6.3\bin
found ghc-pkg in C:\Program Files\Haskell Platform\8.6.3\bin\ghc-pkg.exe
"C:\Program Files\Haskell Platform\8.6.3\bin\ghc-pkg.exe" "--version"
"C:\Program Files\Haskell Platform\8.6.3\bin\ghc.exe" "--supported-languages"
"C:\Program Files\Haskell Platform\8.6.3\bin\ghc.exe" "--info"
"C:\Program Files\Haskell Platform\8.6.3\bin\ghc.exe" "--print-global-package-db"
Reading available packages of hackage.haskell.org...
Using most recent state specified from most recent cabal update
index-state(hackage.haskell.org) = 2018-12-27T03:04:10Z
"C:\local\gtk\bin\pkg-config.exe" "--version"
"C:\local\gtk\bin\pkg-config.exe" "--variable" "pc_path" "pkg-config"
"C:\local\gtk\bin\pkg-config.exe" "--version"
"C:\local\gtk\bin\pkg-config.exe" "--list-all"
"C:\local\gtk\bin\pkg-config.exe" "--modversion" "libpng14" "cairo-win32" "cairo" "fontconfig" "gail" "gtk+-win32-2.0" "cairo-pdf" "pangowin32" "gio-2.0" "freetype2" "cairo-gobject" "cairo-ps" "gdk-win32-2.0" "libpng" "gobject-2.0" "pixman-1" "pangocairo" "cairo-win32-font" "cairo-svg" "cairo-fc" "cairo-png" "glib-2.0" "gmodule-2.0" "pango" "gthread-2.0" "gio-windows-2.0" "gdk-2.0" "gtk+-2.0" "cairo-ft" "atk" "gdk-pixbuf-2.0" "gmodule-no-export-2.0" "pangoft2"
Resolving dependencies...
Component graph for fclabels-2.0.3.3: component lib
component fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279
    include base-4.12.0.0
    include mtl-2.2.2
    include template-haskell-2.14.0.0
    include transformers-0.5.5.0
unit fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279
    include base-4.12.0.0
    include mtl-2.2.2
    include template-haskell-2.14.0.0
    include transformers-0.5.5.0
    Data.Label=fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279:Data.Label,Data.Label.Base=fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279:Data.Label.Base,Data.Label.Derive=fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279:Data.Label.Derive,Data.Label.Failing=fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279:Data.Label.Failing,Data.Label.Monadic=fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279:Data.Label.Monadic,Data.Label.Mono=fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279:Data.Label.Mono,Data.Label.Partial=fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279:Data.Label.Partial,Data.Label.Point=fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279:Data.Label.Point,Data.Label.Poly=fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279:Data.Label.Poly,Data.Label.Total=fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279:Data.Label.Total
Build profile: -w ghc-8.6.3 -O1
In order, the following will be built:
 - fclabels-2.0.3.3 (lib) (requires build)
creating
C:\Users\Graham\AppData\Local\Temp\cabal-install.-4532\dist-newstyle\build
creating
C:\Users\Graham\AppData\Local\Temp\cabal-install.-4532\dist-newstyle\tmp
Extracting
C:\Users\Graham\AppData\Roaming\cabal\packages\hackage.haskell.org\fclabels\2.0.3.3\fclabels-2.0.3.3.tar.gz
to
C:\Users\Graham\AppData\Local\Temp\cabal-install.-4532\dist-newstyle\tmp\src-4532...
Updating fclabels.cabal with the latest revision from the index.
creating dist
Using internal setup method with build-type Simple and args:
["configure","--verbose=2","--builddir=dist","--ghc","--prefix=C:\\Users\\Graham\\AppData\\Roaming\\cabal\\store\\ghc-8.6.3\\fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279","--bindir=C:\\Users\\Graham\\AppData\\Roaming\\cabal\\store\\ghc-8.6.3\\fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279\\bin","--libdir=C:\\Users\\Graham\\AppData\\Roaming\\cabal\\store\\ghc-8.6.3\\fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279\\lib","--libsubdir=","--dynlibdir=C:\\Users\\Graham\\AppData\\Roaming\\cabal\\store\\ghc-8.6.3\\fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279\\lib","--libexecdir=C:\\Users\\Graham\\AppData\\Roaming\\cabal\\store\\ghc-8.6.3\\fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279\\libexec","--libexecsubdir=","--datadir=C:\\Users\\Graham\\AppData\\Roaming\\cabal\\store\\ghc-8.6.3\\fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279\\share","--datasubdir=","--docdir=C:\\Users\\Graham\\AppData\\Roaming\\cabal\\store\\ghc-8.6.3\\fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279\\share\\doc","--htmldir=C:\\Users\\Graham\\AppData\\Roaming\\cabal\\store\\ghc-8.6.3\\fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279\\share\\doc\\html","--haddockdir=C:\\Users\\Graham\\AppData\\Roaming\\cabal\\store\\ghc-8.6.3\\fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279\\share\\doc\\html","--sysconfdir=C:\\Users\\Graham\\AppData\\Roaming\\cabal\\store\\ghc-8.6.3\\fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279\\etc","--enable-library-vanilla","--disable-library-profiling","--disable-shared","--disable-static","--disable-executable-dynamic","--disable-profiling","--profiling-detail=default","--library-profiling-detail=default","--enable-optimization","--disable-debug-info","--disable-library-for-ghci","--disable-split-sections","--disable-split-objs","--disable-executable-stripping","--disable-library-stripping","--package-db=clear","--package-db=global","--package-db=C:\\Users\\Graham\\AppData\\Roaming\\cabal\\store\\ghc-8.6.3\\package.db","--extra-include-dirs=C:\\Program
Files\\Haskell
Platform\\8.6.3\\mingw\\include","--extra-include-dirs=C:\\Program
Files\\Haskell
Platform\\8.6.3\\mingw\\include","--cid=fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279","--extra-lib-dirs=C:\\Program
Files\\Haskell Platform\\8.6.3\\mingw\\lib","--extra-lib-dirs=C:\\Program
Files\\Haskell Platform\\8.6.3\\mingw\\lib","--extra-prog-path=C:\\Program
Files\\Haskell
Platform\\8.6.3\\msys\\usr\\bin,\nC:\\Users\\Graham\\AppData\\Roaming\\cabal\\bin","--dependency=base=base-4.12.0.0","--dependency=mtl=mtl-2.2.2","--dependency=template-haskell=template-haskell-2.14.0.0","--dependency=transformers=transformers-0.5.5.0","--disable-coverage","--exact-configuration","--with-ghc=C:\\Program
Files\\Haskell Platform\\8.6.3\\bin\\ghc.exe","--with-ghc-pkg=C:\\Program
Files\\Haskell
Platform\\8.6.3\\bin\\ghc-pkg.exe","--ghc-option=-hide-all-packages","lib:fclabels"]
Using Parsec parser
Configuring library for fclabels-2.0.3.3..
Dependency base ==4.12.0.0: using base-4.12.0.0
Dependency mtl ==2.2.2: using mtl-2.2.2
Dependency template-haskell ==2.14.0.0: using template-haskell-2.14.0.0
Dependency transformers ==0.5.5.0: using transformers-0.5.5.0
Source component graph: component lib
Configured component graph:
    component fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279
        include base-4.12.0.0
        include mtl-2.2.2
        include template-haskell-2.14.0.0
        include transformers-0.5.5.0
Linked component graph:
    unit fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279
        include base-4.12.0.0
        include mtl-2.2.2
        include template-haskell-2.14.0.0
        include transformers-0.5.5.0
        Data.Label=fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279:Data.Label,Data.Label.Base=fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279:Data.Label.Base,Data.Label.Derive=fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279:Data.Label.Derive,Data.Label.Failing=fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279:Data.Label.Failing,Data.Label.Monadic=fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279:Data.Label.Monadic,Data.Label.Mono=fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279:Data.Label.Mono,Data.Label.Partial=fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279:Data.Label.Partial,Data.Label.Point=fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279:Data.Label.Point,Data.Label.Poly=fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279:Data.Label.Poly,Data.Label.Total=fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279:Data.Label.Total
Ready component graph:
    definite fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279
        depends base-4.12.0.0
        depends mtl-2.2.2
        depends template-haskell-2.14.0.0
        depends transformers-0.5.5.0
Using Cabal-2.4.1.0 compiled by ghc-8.6
Using compiler: ghc-8.6.3
Using install prefix:
C:\Users\Graham\AppData\Roaming\cabal\store\ghc-8.6.3\fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279
Executables installed in:
C:\Users\Graham\AppData\Roaming\cabal\store\ghc-8.6.3\fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279\bin
Libraries installed in:
C:\Users\Graham\AppData\Roaming\cabal\store\ghc-8.6.3\fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279\lib
Dynamic Libraries installed in:
C:\Users\Graham\AppData\Roaming\cabal\store\ghc-8.6.3\fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279\lib
Private executables installed in:
C:\Users\Graham\AppData\Roaming\cabal\store\ghc-8.6.3\fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279\libexec
Data files installed in:
C:\Users\Graham\AppData\Roaming\cabal\store\ghc-8.6.3\fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279\share
Documentation installed in:
C:\Users\Graham\AppData\Roaming\cabal\store\ghc-8.6.3\fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279\share\doc
Configuration files installed in:
C:\Users\Graham\AppData\Roaming\cabal\store\ghc-8.6.3\fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279\etc
Using alex version 3.2.4 found on system at: C:\Program Files\Haskell
Platform\8.6.3\lib\extralibs\bin\alex.exe
Using ar found on system at: C:\Program Files\Haskell
Platform\8.6.3\lib\../mingw/bin\ar.exe
No c2hs found
No cpphs found
No doctest found
Using gcc version 7.2.0 found on system at: C:\Program Files\Haskell
Platform\8.6.3\lib\../mingw/bin\gcc.exe
Using ghc version 8.6.3 given by user at: C:\Program Files\Haskell
Platform\8.6.3\bin\ghc.exe
Using ghc-pkg version 8.6.3 given by user at: C:\Program Files\Haskell
Platform\8.6.3\bin\ghc-pkg.exe
No ghcjs found
No ghcjs-pkg found
No greencard found
Using haddock version 2.22.0 found on system at: C:\Program Files\Haskell
Platform\8.6.3\bin\haddock.exe
Using happy version 1.19.9 found on system at: C:\Program Files\Haskell
Platform\8.6.3\lib\extralibs\bin\happy.exe
Using haskell-suite found on system at: haskell-suite-dummy-location
Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location
No hmake found
Using hpc version 0.67 found on system at: C:\Program Files\Haskell
Platform\8.6.3\bin\hpc.exe
Using hsc2hs version 0.68.5 found on system at: C:\Program Files\Haskell
Platform\8.6.3\bin\hsc2hs.exe
Using hscolour version 1.24 found on system at: C:\Program Files\Haskell
Platform\8.6.3\lib\extralibs\bin\HsColour.exe
No jhc found
Using ld found on system at: C:\Program Files\Haskell
Platform\8.6.3\lib\../mingw/bin\ld.exe
Using pkg-config version 0.26 found on system at:
C:\local\gtk\bin\pkg-config.exe
Using runghc version 8.6.3 found on system at: C:\Program Files\Haskell
Platform\8.6.3\bin\runghc.exe
Using strip version 2.29 found on system at: C:\Program Files\Haskell
Platform\8.6.3\mingw\bin\strip.exe
Using tar found on system at: C:\Program Files (x86)\GnuWin32\bin\tar.exe
No uhc found
Using internal setup method with build-type Simple and args:
["build","--verbose=2","--builddir=dist"]
Component build order: library
"C:\Program Files\Haskell Platform\8.6.3\bin\ghc-pkg.exe" "init" "dist\package.conf.inplace"
creating dist\build
creating dist\build\autogen
creating dist\build\autogen
Preprocessing library for fclabels-2.0.3.3..
Building library for fclabels-2.0.3.3..
creating dist\build
"C:\Program Files\Haskell Platform\8.6.3\bin\ghc.exe" "--make" "-fbuilding-cabal-package" "-O" "-outputdir" "dist\build" "-odir" "dist\build" "-hidir" "dist\build" "-stubdir" "dist\build" "-i" "-idist\build" "-isrc" "-idist\build\autogen" "-idist\build\global-autogen" "-Idist\build\autogen" "-Idist\build\global-autogen" "-Idist\build" "-IC:\Program Files\Haskell Platform\8.6.3\mingw\include" "-optP-include" "-optPdist\build\autogen\cabal_macros.h" "-this-unit-id" "fclabels-2.0.3.3-18ed72f15871ca46bf977352c1abdc97eb0c6279" "-hide-all-packages" "-Wmissing-home-modules" "-no-user-package-db" "-package-db" "C:\Users\Graham\AppData\Roaming\cabal\store\ghc-8.6.3\package.db" "-package-db" "dist\package.conf.inplace" "-package-id" "base-4.12.0.0" "-package-id" "mtl-2.2.2" "-package-id" "template-haskell-2.14.0.0" "-package-id" "transformers-0.5.5.0" "-XHaskell98" "Data.Label" "Data.Label.Base" "Data.Label.Derive" "Data.Label.Failing" "Data.Label.Monadic" "Data.Label.Mono" "Data.Label.Partial" "Data.Label.Point" "Data.Label.Poly" "Data.Label.Total" "-Wall" "-hide-all-packages"
[ 1 of 10] Compiling Data.Label.Point ( src\Data\Label\Point.hs, dist\build\Data\Label\Point.o )
[ 2 of 10] Compiling Data.Label.Poly  ( src\Data\Label\Poly.hs, dist\build\Data\Label\Poly.o )
[ 3 of 10] Compiling Data.Label.Partial ( src\Data\Label\Partial.hs, dist\build\Data\Label\Partial.o )
[ 4 of 10] Compiling Data.Label.Mono  ( src\Data\Label\Mono.hs, dist\build\Data\Label\Mono.o )
[ 5 of 10] Compiling Data.Label.Failing ( src\Data\Label\Failing.hs, dist\build\Data\Label\Failing.o )
[ 6 of 10] Compiling Data.Label.Derive ( src\Data\Label\Derive.hs, dist\build\Data\Label\Derive.o )
[ 7 of 10] Compiling Data.Label       ( src\Data\Label.hs, dist\build\Data\Label.o )
[ 8 of 10] Compiling Data.Label.Base  ( src\Data\Label\Base.hs, dist\build\Data\Label\Base.o )


More information about the Beginners mailing list