[Haskell-cafe] Bug in GHC or cabal-install?

Edward Z. Yang ezyang at mit.edu
Sat Jun 10 01:13:11 UTC 2017


Thanks Henk, I know what the problem is.  I've filed
a bug here.  https://github.com/haskell/cabal/issues/4561

In the meantime, you should try giving new-build a try.
I believe it does not suffer from this problem.
http://cabal.readthedocs.io/en/latest/nix-local-build-overview.html

Edward

Excerpts from Henk-Jan van Tuyl's message of 2017-06-09 22:52:47 +0200:
> 
> I have attached the -v3 log.
> 
> Regards,
> Henk-Jan van Tuyl
> 
> On Wed, 07 Jun 2017 13:56:12 +0200, Edward Z. Yang <ezyang at mit.edu> wrote:
> 
> > This sounds like a Cabal bug to me. A few things to try:
> >
> > - Can you post a -v3 log of the second cabal install force
> >   reinstall somewhere?  It sounds like we are incorrectly
> >   attempting to use the wrong version of Cabal to build the
> >   Setup script, and a -v3 log would help confirm.
> >
> > - Are you on Ubuntu?  If you could install and test a cabal-install-head
> >   binary from https://launchpad.net/~hvr/+archive/ubuntu/ghc
> >   that would be helpful to find out if we've fixed this bug
> >   already.
> >
> > - If you want to file a bug, please do so in the Cabal
> >   bug tracker https://github.com/haskell/cabal/issues
> >   Thanks!
> >
> > Cheers,
> > Edward
> >
> > Excerpts from Henk-Jan van Tuyl's message of 2017-06-04 11:45:58 +0200:
> >>
> >> L.S.,
> >>
> >> I am trying the prerelease of GHC, version 8.2.0.20170507
> >>
> >> I adapted wxHaskell to the new packages that come with the new GHC and  
> >> it
> >> compiles now, but only the first time. If I compile it a second time,  
> >> even
> >> if nothing has changed, the information from the custom-setup section of
> >> the wxc.cabal file seems to be forgotten. This section looks like this:
> >>
> >> custom-setup
> >>    setup-depends:
> >>      base,
> >>      Cabal < 2,
> >>      containers,
> >>      bytestring,
> >>      split,
> >>      process,
> >>      directory,
> >>      filepath
> >> (I am using cabal-install 1.24.0.2)
> >>
> >> Output from the second time I try to install wxHaskell:
> >>
> >> > cabal install --force-reinstalls --reinstall wxdirect wxc wxcore wx
> >> [1 of 1] Compiling Main             (
> >> X:\Temp\wxHaskell\wxcore\dist\setup\setup.hs,
> >> X:\Temp\wxHaskell\wxcore\dist\setup\Main.o )
> >> Linking X:\Temp\wxHaskell\wxcore\dist\setup\setup.exe ...
> >> [1 of 1] Compiling Main             (
> >> X:\Temp\wxHaskell\wxc\dist\setup\setup.hs,
> >> X:\Temp\wxHaskell\wxc\dist\setup\Main.o )
> >>
> >> X:\Temp\wxHaskell\wxc\dist\setup\setup.hs:505:61: error:
> >>                        Variable not in scope: versionBranch :: Version  
> >> ->
> >> [a0]
> >>                        |
> >> 505 |           full_ver = (concat . intersperse "." . map show .
> >> versionBranch) ver
> >>                        |
> >> ^^^^^^^^^^^^^
> >>
> >> This error message indicates that the wrong version of Cabal (2.0) is  
> >> used
> >> to compile the wxcore setup.hs
> >> It looks like a cabal-install bug, but this does not happen when I
> >> use GHC 8.0.2; should I write a GHC bug ticket?
> >>
> >> Regards,
> >> Henk-Jan van Tuyl
> 
> 
> 2017-06-07 17:03:12,27
> X:\Temp\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507> Call cbl install -v3 --force-reinstalls --reinstall wxdirect wxc wxcore wx
>  *
>  *** You are now in a sandbox ***
>  *
> Command: cabal install -v3 --force-reinstalls --reinstall wxdirect wxc wxcore wx
> Using a sandbox located at
> X:\Temp\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\.cabal-sandbox
> Searching for ghc in path.
> Found ghc at C:\Progs\Haskell\ghc-8.2.0.20170507\bin\ghc.exe
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\ghc.exe",["--numeric-version"])
> C:\Progs\Haskell\ghc-8.2.0.20170507\bin\ghc.exe is version 8.2.0.20170507
> looking for tool ghc-pkg near compiler in
> C:\Progs\Haskell\ghc-8.2.0.20170507\bin
> candidate locations:
> ["C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\ghc-pkg.exe"]
> found ghc-pkg in C:\Progs\Haskell\ghc-8.2.0.20170507\bin\ghc-pkg.exe
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\ghc-pkg.exe",["--version"])
> C:\Progs\Haskell\ghc-8.2.0.20170507\bin\ghc-pkg.exe is version
> 8.2.0.20170507
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\ghc.exe",["--supported-languages"])
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\ghc.exe",["--info"])
> Searching for alex in path.
> Found alex at C:\Users\X\AppData\Roaming\cabal\bin\alex.exe
> ("C:\\Users\\-\\AppData\\Roaming\\cabal\\bin\\alex.exe",["--version"])
> C:\Users\X\AppData\Roaming\cabal\bin\alex.exe is version 3.2.1
> Searching for ar.exe in path.
> Found ar.exe at C:\Progs\Haskell\ghc-8.2.0.20170507\mingw\bin\ar.exe
> Searching for c2hs in path.
> Found c2hs at C:\Progs\Haskell\c2hs.exe
> ("C:\\Progs\\Haskell\\c2hs.exe",["--numeric-version"])
> C:\Progs\Haskell\c2hs.exe is version 0.17.2
> Searching for cpphs in path.
> Found cpphs at C:\Users\X\AppData\Roaming\cabal\bin\cpphs.exe
> ("C:\\Users\\-\\AppData\\Roaming\\cabal\\bin\\cpphs.exe",["--version"])
> C:\Users\X\AppData\Roaming\cabal\bin\cpphs.exe is version 1.20.5
> Searching for gcc.exe in path.
> Found gcc.exe at C:\Progs\Haskell\ghc-8.2.0.20170507\mingw\bin\gcc.exe
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\mingw\\bin\\gcc.exe",["-dumpversion"])
> C:\Progs\Haskell\ghc-8.2.0.20170507\mingw\bin\gcc.exe is version 6.2.0
> Searching for ghcjs in path.
> Cannot find ghcjs on the path
> Searching for ghcjs-pkg in path.
> Cannot find ghcjs-pkg on the path
> Searching for greencard in path.
> Cannot find greencard on the path
> looking for tool haddock near compiler in
> C:\Progs\Haskell\ghc-8.2.0.20170507\bin
> candidate locations:
> ["C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\haddock.exe"]
> found haddock in C:\Progs\Haskell\ghc-8.2.0.20170507\bin\haddock.exe
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\haddock.exe",["--version"])
> C:\Progs\Haskell\ghc-8.2.0.20170507\bin\haddock.exe is version 2.18.0
> Searching for happy in path.
> Found happy at C:\Users\X\AppData\Roaming\cabal\bin\happy.exe
> ("C:\\Users\\-\\AppData\\Roaming\\cabal\\bin\\happy.exe",["--version"])
> C:\Users\X\AppData\Roaming\cabal\bin\happy.exe is version 1.19.5
> Searching for hmake in path.
> Cannot find hmake on the path
> Searching for hpc in path.
> Found hpc at C:\Progs\Haskell\ghc-8.2.0.20170507\bin\hpc.exe
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\hpc.exe",["version"])
> C:\Progs\Haskell\ghc-8.2.0.20170507\bin\hpc.exe is version 0.67
> looking for tool hsc2hs near compiler in
> C:\Progs\Haskell\ghc-8.2.0.20170507\bin
> candidate locations:
> ["C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\hsc2hs.exe"]
> found hsc2hs in C:\Progs\Haskell\ghc-8.2.0.20170507\bin\hsc2hs.exe
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\hsc2hs.exe",["--version"])
> C:\Progs\Haskell\ghc-8.2.0.20170507\bin\hsc2hs.exe is version 0.68.2
> Searching for HsColour in path.
> Found HsColour at C:\Users\X\AppData\Roaming\cabal\bin\HsColour.exe
> ("C:\\Users\\-\\AppData\\Roaming\\cabal\\bin\\HsColour.exe",["-version"])
> C:\Users\X\AppData\Roaming\cabal\bin\HsColour.exe is version 1.24
> Searching for jhc in path.
> Cannot find jhc on the path
> Searching for ld.exe in path.
> Found ld.exe at C:\Progs\Haskell\ghc-8.2.0.20170507\mingw\bin\ld.exe
> Environment: [("","ExitCode=00000000"),("ALLUSERSPROFILE","C:\\ProgramData"),("APPDATA","C:\\Users\\-\\AppData\\Roaming"),("COMMONPROGRAMFILES","C:\\Program Files\\Common Files"),("COMMONPROGRAMFILES(X86)","C:\\Program Files (x86)\\Common Files"),("COMMONPROGRAMW6432","C:\\Program Files\\Common Files"),("COMPUTERNAME","ALQUANTOR"),("COMSPEC","C:\\Windows\\system32\\cmd.exe"),("CPLUS_INCLUDE_PATH","C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\mingw\\include\\c++\\6.2.0\\;C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\mingw\\x86_64-w64-mingw32\\include"),("C_INCLUDE_PATH","C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\mingw\\x86_64-w64-mingw32\\include"),("FP_NO_HOST_CHECK","NO"),("GHCVERSION","8.2.0.20170507"),("GHC_DIR","C:\\Progs\\Haskell\\ghc-8.2.0.20170507"),("GHC_VERSION","8.2.0.20170507"),("HASKELL_COMPILER_DIR","C:\\Progs\\Haskell\\ghc-8.2.0.20170507"),("HOME","C:\\Users\\-"),("HOMEDRIVE","C:"),("HOMEPATH","\\Users\\-"),("JAVA_HOME","C:\\Progs\\Java\\jdk1.8.0_25"),("LIBDIR","C:\\Libs"),("LIBRARY_PATH","C:\\Progs\\wxWidgets\\3.0.3-GCC6.2.0-64bit\\lib\\gcc_dll;C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\mingw\\lib\\"),("LOCALAPPDATA","C:\\Users\\-\\AppData\\Local"),("LOGONSERVER","\\\\ALQUANTOR"),("NUMBER_OF_PROCESSORS","8"),("OS","Windows_NT"),("PACKAGE","wx"),("PACKAGES","wxdirect wxc wxcore wx"),("PATH","wxdirect\\dist\\build\\wxdirect;C:\\Progs\\Haskell;C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin;C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\mingw\\bin;C:\\Program Files\\Haskell\\bin;C:\\Windows\\system32;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Progs\\Python27\\;C:\\bin\\;C:\\bin\\bin;C:\\Progs\\7-Zip;C:\\Progs\\THE;C:\\Progs\\upx391w;C:\\Progs\\GNU\\GnuPG;C:\\Progs\\Geany\\1.30.1\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\Windows Live\\Shared;C:\\Progs\\GNU\\GnuPG\\pub;C:\\Progs\\rexx.org\\Regina;C:\\Progs\\THE;C:\\Progs\\WinMerge;C:\\Progs\\Windows Kits\\8.1\\Wi!
 ndows Pe
rformance Toolkit\\;C:\\Progs\\SlikSvn\\bin;C:\\Progs\\GitExtensions\\;C:\\Progs\\Stack;C:\\Progs\\MSYS2\\msys64;C:\\Progs\\MSYS2\\msys64\\mingw64\\bin;C:\\Users\\-\\AppData\\Roaming\\cabal\\bin;C:\\Progs\\FAHClient;C:\\Progs\\IrfanView;C:\\Progs\\Graphviz2.38\\bin;C:\\Progs\\Git\\bin;C:\\Progs\\DependencyWalker;C:\\Users\\-\\AppData\\Roaming\\cabal\\bin"),("PATHEXT",".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC"),("PROCESSOR_ARCHITECTURE","AMD64"),("PROCESSOR_IDENTIFIER","Intel64 Family 6 Model 60 Stepping 3, GenuineIntel"),("PROCESSOR_LEVEL","6"),("PROCESSOR_REVISION","3c03"),("PROGRAMDATA","C:\\ProgramData"),("PROGRAMFILES","C:\\Program Files"),("PROGRAMFILES(X86)","C:\\Program Files (x86)"),("PROGRAMW6432","C:\\Program Files"),("PROMPT","$D $T $_$P$G$S"),("PSMODULEPATH","C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\"),("PUBLIC","C:\\Users\\Public"),("REGINA_LANG","en"),("REGINA_LANG_DIR","C:\\Progs\\rexx.org\\Regina"),("RESMURF","If Exist dist Rd /s/q dist"),("SESSIONNAME","Console"),("SMURF","cabal install -v3 --force-reinstalls --reinstall wxdirect wxc wxcore wx"),("STACK_ROOT","C:\\Users\\-\\Documents\\StackRoot"),("SYSTEMDRIVE","C:"),("SYSTEMROOT","C:\\Windows"),("TC_VERSION","3.0.3-GCC6.2.0-64bit-8.2.0.20170507"),("TEMP","C:\\Users\\-\\AppData\\Local\\Temp"),("THE_HELP_FILE","C:\\Progs\\THE\\THE_Help.txt"),("THE_HOME_DIR","C:\\Progs\\THE"),("THE_MACRO_PATH","C:\\Progs\\THE\\extras"),("TMP","C:\\Users\\-\\AppData\\Local\\Temp"),("UNREGISTER","cabal exec ghc-pkg unregister"),("USERDOMAIN","Alquantor"),("USERDOMAIN_ROAMINGPROFILE","Alquantor"),("USERNAME","User"),("USERPROFILE","C:\\Users\\-"),("VBOX_MSI_INSTALL_PATH","C:\\Progs\\Oracle\\VirtualBox\\"),("WINDIR","C:\\Windows"),("WXCFG","gcc_dll\\mswu"),("WXCONFIGURATION","Achelanne"),("WXCONFIGVER","0.1"),("WXHASKELL_TEMP_DIR","wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507"),("WXWIDGETS_VERSION","3.0.3-GCC6.2.0-64bit"),("WXWIDGETS_VERSION_NO_BITNESS","3.0.3-GCC6.2.0"),("WXWIN","C:\\Progs\\wxWidgets\\3.0.3-GCC6.2.0-64bit")]
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\ghc.exe",["-hide-all-packages","-c","C:\\Users\\-\\AppData\\Local\\Temp\\4118467.c","-o","C:\\Users\\-\\AppData\\Local\\Temp\\633426500.o"])
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\mingw\\bin\\ld.exe",["-x","-r","C:\\Users\\-\\AppData\\Local\\Temp\\633426500.o","-o","C:\\Users\\-\\AppData\\Local\\Temp\\1916915724.o"])
> Searching for lhc in path.
> Cannot find lhc on the path
> Searching for lhc-pkg in path.
> Cannot find lhc-pkg on the path
> Searching for pkg-config in path.
> Found pkg-config at C:\bin\pkg-config.exe
> ("C:\\bin\\pkg-config.exe",["--version"])
> C:\bin\pkg-config.exe is version 0.28
> Searching for strip in path.
> Found strip at C:\Progs\Haskell\ghc-8.2.0.20170507\mingw\bin\strip.exe
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\mingw\\bin\\strip.exe",["--version"])
> C:\Progs\Haskell\ghc-8.2.0.20170507\mingw\bin\strip.exe is version 2.27
> Searching for tar in path.
> Cannot find tar on the path
> Searching for uhc in path.
> Cannot find uhc on the path
> The package database already exists:
> X:\Temp\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\.cabal-sandbox\x86_64-windows-ghc-8.2.0.20170507-packages.conf.d
> Reading installed packages...
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\ghc-pkg.exe",["dump","--package-db=X:\\Temp\\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\\.cabal-sandbox\\x86_64-windows-ghc-8.2.0.20170507-packages.conf.d","-v0"])
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\ghc.exe",["--print-libdir"])
> Checking whether the dependency is modified:
> X:\Temp\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\wx
> Using internal setup method with build-type Simple and args:
> ["sdist","--verbose=3","--list-sources=C:\\Users\\-\\AppData\\Local\\Temp\\cabal-list-sources.-1020\\cabal-sdist-list-sources"]
> List of package sources written to file
> 'C:\Users\X\AppData\Local\Temp\cabal-list-sources.-1020\cabal-sdist-list-sources'
> Dependency has a modified source file:
> X:\Temp\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\wx\src\Graphics\UI\WX\Draw.hs
> Checking whether the dependency is modified:
> X:\Temp\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\wxcore
> Using external setup method with build-type Custom
> Using explicit dependencies: False
> creating
> X:\Temp\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\wxcore\dist\setup
> Using Cabal library version 2.0.0.0
> X:\Temp\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\wxcore\dist\setup\setup.exe
> sdist --verbose=3
> --list-sources=C:\Users\X\AppData\Local\Temp\cabal-list-sources.-1020\cabal-sdist-list-sources
> List of package sources written to file
> 'C:\Users\X\AppData\Local\Temp\cabal-list-sources.-1020\cabal-sdist-list-sources'
> Dependency has a modified source file:
> X:\Temp\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\wxcore\src/haskell\Graphics\UI\WXCore.hs
> Checking whether the dependency is modified:
> X:\Temp\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\wxc
> Using external setup method with build-type Custom
> Using explicit dependencies: False
> creating X:\Temp\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\wxc\dist\setup
> Searching for ghc in path.
> Found ghc at C:\Progs\Haskell\ghc-8.2.0.20170507\bin\ghc.exe
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\ghc.exe",["--numeric-version"])
> C:\Progs\Haskell\ghc-8.2.0.20170507\bin\ghc.exe is version 8.2.0.20170507
> looking for tool ghc-pkg near compiler in
> C:\Progs\Haskell\ghc-8.2.0.20170507\bin
> candidate locations:
> ["C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\ghc-pkg.exe"]
> found ghc-pkg in C:\Progs\Haskell\ghc-8.2.0.20170507\bin\ghc-pkg.exe
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\ghc-pkg.exe",["--version"])
> C:\Progs\Haskell\ghc-8.2.0.20170507\bin\ghc-pkg.exe is version
> 8.2.0.20170507
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\ghc.exe",["--supported-languages"])
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\ghc.exe",["--info"])
> Reading installed packages...
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\ghc-pkg.exe",["dump","--global","-v0"])
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\ghc-pkg.exe",["dump","--user","-v0"])
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\ghc.exe",["--print-libdir"])
> Using Cabal library version 2.0.0.0
> Setup executable needs to be updated, compiling...
> Environment: [("","ExitCode=00000000"),("ALLUSERSPROFILE","C:\\ProgramData"),("APPDATA","C:\\Users\\-\\AppData\\Roaming"),("COMMONPROGRAMFILES","C:\\Program Files\\Common Files"),("COMMONPROGRAMFILES(X86)","C:\\Program Files (x86)\\Common Files"),("COMMONPROGRAMW6432","C:\\Program Files\\Common Files"),("COMPUTERNAME","ALQUANTOR"),("COMSPEC","C:\\Windows\\system32\\cmd.exe"),("CPLUS_INCLUDE_PATH","C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\mingw\\include\\c++\\6.2.0\\;C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\mingw\\x86_64-w64-mingw32\\include"),("C_INCLUDE_PATH","C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\mingw\\x86_64-w64-mingw32\\include"),("FP_NO_HOST_CHECK","NO"),("GHCVERSION","8.2.0.20170507"),("GHC_DIR","C:\\Progs\\Haskell\\ghc-8.2.0.20170507"),("GHC_VERSION","8.2.0.20170507"),("HASKELL_COMPILER_DIR","C:\\Progs\\Haskell\\ghc-8.2.0.20170507"),("HOME","C:\\Users\\-"),("HOMEDRIVE","C:"),("HOMEPATH","\\Users\\-"),("JAVA_HOME","C:\\Progs\\Java\\jdk1.8.0_25"),("LIBDIR","C:\\Libs"),("LIBRARY_PATH","C:\\Progs\\wxWidgets\\3.0.3-GCC6.2.0-64bit\\lib\\gcc_dll;C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\mingw\\lib\\"),("LOCALAPPDATA","C:\\Users\\-\\AppData\\Local"),("LOGONSERVER","\\\\ALQUANTOR"),("NUMBER_OF_PROCESSORS","8"),("OS","Windows_NT"),("PACKAGE","wx"),("PACKAGES","wxdirect wxc wxcore wx"),("PATH","wxdirect\\dist\\build\\wxdirect;C:\\Progs\\Haskell;C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin;C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\mingw\\bin;C:\\Program Files\\Haskell\\bin;C:\\Windows\\system32;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Progs\\Python27\\;C:\\bin\\;C:\\bin\\bin;C:\\Progs\\7-Zip;C:\\Progs\\THE;C:\\Progs\\upx391w;C:\\Progs\\GNU\\GnuPG;C:\\Progs\\Geany\\1.30.1\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\Windows Live\\Shared;C:\\Progs\\GNU\\GnuPG\\pub;C:\\Progs\\rexx.org\\Regina;C:\\Progs\\THE;C:\\Progs\\WinMerge;C:\\Progs\\Windows Kits\\8.1\\Wi!
 ndows Pe
rformance Toolkit\\;C:\\Progs\\SlikSvn\\bin;C:\\Progs\\GitExtensions\\;C:\\Progs\\Stack;C:\\Progs\\MSYS2\\msys64;C:\\Progs\\MSYS2\\msys64\\mingw64\\bin;C:\\Users\\-\\AppData\\Roaming\\cabal\\bin;C:\\Progs\\FAHClient;C:\\Progs\\IrfanView;C:\\Progs\\Graphviz2.38\\bin;C:\\Progs\\Git\\bin;C:\\Progs\\DependencyWalker"),("PATHEXT",".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC"),("PROCESSOR_ARCHITECTURE","AMD64"),("PROCESSOR_IDENTIFIER","Intel64 Family 6 Model 60 Stepping 3, GenuineIntel"),("PROCESSOR_LEVEL","6"),("PROCESSOR_REVISION","3c03"),("PROGRAMDATA","C:\\ProgramData"),("PROGRAMFILES","C:\\Program Files"),("PROGRAMFILES(X86)","C:\\Program Files (x86)"),("PROGRAMW6432","C:\\Program Files"),("PROMPT","$D $T $_$P$G$S"),("PSMODULEPATH","C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\"),("PUBLIC","C:\\Users\\Public"),("REGINA_LANG","en"),("REGINA_LANG_DIR","C:\\Progs\\rexx.org\\Regina"),("RESMURF","If Exist dist Rd /s/q dist"),("SESSIONNAME","Console"),("SMURF","cabal install -v3 --force-reinstalls --reinstall wxdirect wxc wxcore wx"),("STACK_ROOT","C:\\Users\\-\\Documents\\StackRoot"),("SYSTEMDRIVE","C:"),("SYSTEMROOT","C:\\Windows"),("TC_VERSION","3.0.3-GCC6.2.0-64bit-8.2.0.20170507"),("TEMP","C:\\Users\\-\\AppData\\Local\\Temp"),("THE_HELP_FILE","C:\\Progs\\THE\\THE_Help.txt"),("THE_HOME_DIR","C:\\Progs\\THE"),("THE_MACRO_PATH","C:\\Progs\\THE\\extras"),("TMP","C:\\Users\\-\\AppData\\Local\\Temp"),("UNREGISTER","cabal exec ghc-pkg unregister"),("USERDOMAIN","Alquantor"),("USERDOMAIN_ROAMINGPROFILE","Alquantor"),("USERNAME","User"),("USERPROFILE","C:\\Users\\-"),("VBOX_MSI_INSTALL_PATH","C:\\Progs\\Oracle\\VirtualBox\\"),("WINDIR","C:\\Windows"),("WXCFG","gcc_dll\\mswu"),("WXCONFIGURATION","Achelanne"),("WXCONFIGVER","0.1"),("WXHASKELL_TEMP_DIR","wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507"),("WXWIDGETS_VERSION","3.0.3-GCC6.2.0-64bit"),("WXWIDGETS_VERSION_NO_BITNESS","3.0.3-GCC6.2.0"),("WXWIN","C:\\Progs\\wxWidgets\\3.0.3-GCC6.2.0-64bit")]
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\ghc.exe",["--make","-v","-odir","X:\\Temp\\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\\wxc\\dist\\setup","-hidir","X:\\Temp\\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\\wxc\\dist\\setup","-i","-iX:\\Temp\\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\\wxc","-package-id","Cabal-2.0.0.0","X:\\Temp\\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\\wxc\\dist\\setup\\setup.hs","-o","X:\\Temp\\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\\wxc\\dist\\setup\\setup.exe","-threaded"])
> Glasgow Haskell Compiler, Version 8.2.0.20170507, stage 2 booted by GHC version 8.0.2
> Using binary package database: C:\Progs\Haskell\ghc-8.2.0.20170507\lib\package.conf.d\package.cache
> Using binary package database: C:\Users\X\AppData\Roaming\ghc\x86_64-mingw32-8.2.0.20170507\package.conf.d\package.cache
> package flags [-package-id Cabal-2.0.0.0{unit Cabal-2.0.0.0 True ([])}]
> loading package database C:\Progs\Haskell\ghc-8.2.0.20170507\lib\package.conf.d
> loading package database C:\Users\X\AppData\Roaming\ghc\x86_64-mingw32-8.2.0.20170507\package.conf.d
> wired-in package ghc-prim mapped to ghc-prim-0.5.0.0
> wired-in package integer-gmp mapped to integer-gmp-1.0.0.1
> wired-in package base mapped to base-4.10.0.0
> wired-in package rts mapped to rts
> wired-in package template-haskell mapped to template-haskell-2.12.0.0
> wired-in package ghc mapped to ghc-8.2.0.20170507
> wired-in package dph-seq not found.
> wired-in package dph-par not found.
> package flags [-package-id Cabal-2.0.0.0{unit Cabal-2.0.0.0 True ([])}]
> loading package database C:\Progs\Haskell\ghc-8.2.0.20170507\lib\package.conf.d
> loading package database C:\Users\X\AppData\Roaming\ghc\x86_64-mingw32-8.2.0.20170507\package.conf.d
> wired-in package ghc-prim mapped to ghc-prim-0.5.0.0
> wired-in package integer-gmp mapped to integer-gmp-1.0.0.1
> wired-in package base mapped to base-4.10.0.0
> wired-in package rts mapped to rts-1.0
> wired-in package template-haskell mapped to template-haskell-2.12.0.0
> wired-in package ghc mapped to ghc-8.2.0.20170507
> wired-in package dph-seq not found.
> wired-in package dph-par not found.
> *** Chasing dependencies:
> Chasing modules from: *X:\Temp\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\wxc\dist\setup\setup.hs
> Created temporary directory: C:\Users\X\AppData\Local\Temp\ghc3688_0
> *** C pre-processor:
> "C:\Progs\Haskell\ghc-8.2.0.20170507\lib/../mingw/bin/gcc.exe" "-E" "-undef" "-traditional" "-I" "C:\Progs\Haskell\ghc-8.2.0.20170507\lib\process-1.6.0.0\include" "-I" "C:\Progs\Haskell\ghc-8.2.0.20170507\lib\directory-1.3.0.2\include" "-I" "C:\Progs\Haskell\ghc-8.2.0.20170507\lib\time-1.8.0.1\include" "-I" "C:\Progs\Haskell\ghc-8.2.0.20170507\lib\Win32-2.5.4.1\include" "-I" "C:\Progs\Haskell\ghc-8.2.0.20170507\lib\bytestring-0.10.8.2\include" "-I" "C:\Progs\Haskell\ghc-8.2.0.20170507\lib\base-4.10.0.0\include" "-I" "C:\Progs\Haskell\ghc-8.2.0.20170507\lib\integer-gmp-1.0.0.1\include" "-I" "C:\Progs\Haskell\ghc-8.2.0.20170507\lib/include" "-include" "C:\Progs\Haskell\ghc-8.2.0.20170507\lib/include\ghcversion.h" "-Dmingw32_BUILD_OS" "-Dx86_64_BUILD_ARCH" "-Dmingw32_HOST_OS" "-Dx86_64_HOST_ARCH" "-D__GLASGOW_HASKELL_TH__" "-D__SSE__" "-D__SSE2__" "-includeC:\Users\X\AppData\Local\Temp\ghc3688_0\ghc_2.h" "-x" "assembler-with-cpp" "X:\Temp\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\wxc\dist\setup\setup.hs" "-o" "C:\Users\X\AppData\Local\Temp\ghc3688_0\ghc_1.hscpp"
> !!! Chasing dependencies: finished in 31.25 milliseconds, allocated 9.007 megabytes
> Stable obj: []
> Stable BCO: []
> Ready for upsweep
>   [NONREC
>       ModSummary {
>          ms_hs_date = 2017-06-07 00:19:41.7814384 UTC
>          ms_mod = Main,
>          ms_textual_imps = [(Nothing, Prelude), (Nothing, System.Process),
>                             (Nothing, System.Process), (Nothing, System.IO.Unsafe),
>                             (Nothing, System.IO.Error), (Nothing, System.IO),
>                             (Nothing, System.FilePath), (Nothing, System.Exit),
>                             (Nothing, System.Environment), (Nothing, System.Directory),
>                             (Nothing, Distribution.Version), (Nothing, Distribution.Verbosity),
>                             (Nothing, Distribution.System),
>                             (Nothing, Distribution.Simple.Utils),
>                             (Nothing, Distribution.Simple.Setup),
>                             (Nothing, Distribution.Simple.Program.Types),
>                             (Nothing, Distribution.Simple.Program),
>                             (Nothing, Distribution.Simple.PackageIndex),
>                             (Nothing, Distribution.Simple.LocalBuildInfo),
>                             (Nothing, Distribution.Simple.InstallDirs),
>                             (Nothing, Distribution.Simple), (Nothing, Distribution.Make),
>                             (Nothing, Distribution.PackageDescription),
>                             (Nothing, Distribution.Compat.Exception), (Nothing, Data.Map),
>                             (Nothing, Data.Maybe), (Nothing, Data.List.Split),
>                             (Nothing, Data.List), (Nothing, Data.Functor),
>                             (Nothing, Data.Char), (Nothing, Data.ByteString.Lazy),
>                             (Nothing, Control.Monad), (Nothing, Control.Exception)]
>          ms_srcimps = []
>       }]
> *** Deleting temp files:
> Deleting: C:\Users\X\AppData\Local\Temp\ghc3688_0\ghc_2.h
> compile: input file C:\Users\X\AppData\Local\Temp\ghc3688_0\ghc_1.hscpp
> *** Checking old interface for Main (use -ddump-hi-diffs for more details):
> [1 of 1] Compiling Main             ( X:\Temp\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\wxc\dist\setup\setup.hs, X:\Temp\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\wxc\dist\setup\Main.o )
> *** Parser [Main]:
> !!! Parser [Main]: finished in 15.63 milliseconds, allocated 17.654 megabytes
> *** Renamer/typechecker [Main]:
> !!! Renamer/typechecker [Main]: finished in 125.00 milliseconds, allocated 50.259 megabytes
> 
> X:\Temp\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\wxc\dist\setup\setup.hs:15:27: error:
>     Module `Distribution.Make' does not export `versionBranch'
>    |
> 15 | import Distribution.Make (versionBranch)
>    |                           ^^^^^^^^^^^^^
> Upsweep partially successful.
> *** Deleting temp files:
> Deleting: C:\Users\X\AppData\Local\Temp\ghc3688_0\ghc_1.hscpp
> link(batch): upsweep (partially) failed OR
>    Main.main not exported; not linking.
> *** Deleting temp files:
> Deleting:
> *** Deleting temp dirs:
> Deleting: C:\Users\X\AppData\Local\Temp\ghc3688_0
> C:\Progs\Haskell\ghc-8.2.0.20170507\bin\ghc.exe returned ExitFailure 1
> 
> 2017-06-07 17:03:22,32
> X:\Temp\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507>


More information about the Haskell-Cafe mailing list