Coder Social home page Coder Social logo

Comments (38)

yuhangwang avatar yuhangwang commented on July 22, 2024

Here is the complete installation log file:

Searching for ghc in path.
Found ghc at D:\install\ghc\8.0.2\bin\ghc.exe
("D:\\install\\ghc\\8.0.2\\bin\\ghc.exe",["--numeric-version"])
D:\install\ghc\8.0.2\bin\ghc.exe is version 8.0.2
looking for tool ghc-pkg near compiler in D:\install\ghc\8.0.2\bin
candidate locations: ["D:\\install\\ghc\\8.0.2\\bin\\ghc-pkg.exe"]
found ghc-pkg in D:\install\ghc\8.0.2\bin\ghc-pkg.exe
("D:\\install\\ghc\\8.0.2\\bin\\ghc-pkg.exe",["--version"])
D:\install\ghc\8.0.2\bin\ghc-pkg.exe is version 8.0.2
("D:\\install\\ghc\\8.0.2\\bin\\ghc.exe",["--supported-languages"])
("D:\\install\\ghc\\8.0.2\\bin\\ghc.exe",["--info"])
Searching for alex in path.
Cannot find alex on the path
Searching for ar.exe in path.
Found ar.exe at D:\install\ghc\8.0.2\mingw\bin\ar.exe
Searching for c2hs in path.
Found c2hs at C:\Users\Steven\AppData\Roaming\cabal\bin\c2hs.exe
("C:\\Users\\Steven\\AppData\\Roaming\\cabal\\bin\\c2hs.exe",["--numeric-version"])
C:\Users\Steven\AppData\Roaming\cabal\bin\c2hs.exe is version 0.28.1
Searching for cpphs in path.
Found cpphs at C:\Users\Steven\AppData\Roaming\cabal\bin\cpphs.exe
("C:\\Users\\Steven\\AppData\\Roaming\\cabal\\bin\\cpphs.exe",["--version"])
C:\Users\Steven\AppData\Roaming\cabal\bin\cpphs.exe is version 1.20.2
Searching for gcc.exe in path.
Found gcc.exe at D:\install\ghc\8.0.2\mingw\bin\gcc.exe
("D:\\install\\ghc\\8.0.2\\mingw\\bin\\gcc.exe",["-dumpversion"])
D:\install\ghc\8.0.2\mingw\bin\gcc.exe is version 5.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 D:\install\ghc\8.0.2\bin
candidate locations: ["D:\\install\\ghc\\8.0.2\\bin\\haddock.exe"]
found haddock in D:\install\ghc\8.0.2\bin\haddock.exe
("D:\\install\\ghc\\8.0.2\\bin\\haddock.exe",["--version"])
D:\install\ghc\8.0.2\bin\haddock.exe is version 2.17.3
Searching for happy in path.
Cannot find happy on the path
Searching for hmake in path.
Cannot find hmake on the path
Searching for hpc in path.
Found hpc at D:\install\ghc\8.0.2\bin\hpc.exe
("D:\\install\\ghc\\8.0.2\\bin\\hpc.exe",["version"])
D:\install\ghc\8.0.2\bin\hpc.exe is version 0.67
looking for tool hsc2hs near compiler in D:\install\ghc\8.0.2\bin
candidate locations: ["D:\\install\\ghc\\8.0.2\\bin\\hsc2hs.exe"]
found hsc2hs in D:\install\ghc\8.0.2\bin\hsc2hs.exe
("D:\\install\\ghc\\8.0.2\\bin\\hsc2hs.exe",["--version"])
D:\install\ghc\8.0.2\bin\hsc2hs.exe is version 0.68.1
Searching for HsColour in path.
Cannot find HsColour on the path
Searching for jhc in path.
Cannot find jhc on the path
Searching for ld.exe in path.
Found ld.exe at D:\install\ghc\8.0.2\mingw\bin\ld.exe
Environment: [("","::=::\\"),("ADSK_CLM_WPAD_PROXY_CHECK","FALSE"),("ALLUSERSPROFILE","C:\\ProgramData"),("ANSICON","94x1000 (94x44)"),("ANSICON_DEF","7"),("APPDATA","C:\\Users\\Steven\\AppData\\Roaming"),("ASL.LOG","Destination=file"),("COMMONPROGRAMFILES","C:\\Program Files\\Common Files"),("COMMONPROGRAMFILES(X86)","C:\\Program Files (x86)\\Common Files"),("COMMONPROGRAMW6432","C:\\Program Files\\Common Files"),("COMPUTERNAME","JUPITER"),("COMSPEC","C:\\WINDOWS\\system32\\cmd.exe"),("CONEMUANSI","ON"),("CONEMUANSILOG",""),("CONEMUARGS",""),("CONEMUARGS2",""),("CONEMUBACKHWND","0x000D05A2"),("CONEMUBASEDIR","D:\\install\\ConEmu\\ConEmu"),("CONEMUBUILD","160619"),("CONEMUCONFIG",""),("CONEMUDIR","D:\\install\\ConEmu"),("CONEMUDRAWHWND","0x000A0726"),("CONEMUDRIVE","D:"),("CONEMUHOOKS","Enabled"),("CONEMUHWND","0x00080566"),("CONEMUPALETTE","<ConEmu>"),("CONEMUPID","12256"),("CONEMUSERVERPID","11464"),("CONEMUTASK","{Shells::PowerShell}"),("CONEMUWORKDIR","C:\\Users\\Steven"),("CONEMUWORKDRIVE","C:"),("CONFIGSETROOT","C:\\WINDOWS\\ConfigSetRoot"),("CUDA_PATH","D:\\install\\cuda\\8.0\\toolkit"),("CUDA_PATH_V8_0","D:\\install\\cuda\\8.0\\toolkit"),("C_EM64T_REDIST11","c:\\Program Files (x86)\\Common Files\\Intel\\Shared Files\\cpp\\"),("DOCKER_TOOLBOX_INSTALL_PATH","D:\\install\\DockerToolbox"),("EASYPLUSSDK","\"C:\\Program Files (x86)\\Common Files\\lenovo\\easyplussdk\\bin\""),("FP_NO_HOST_CHECK","NO"),("GOBIN","D:\\install\\Go\\1.8.1\\packages\\bin"),("GOPATH","D:\\install\\Go\\1.8.1\\packages"),("GOROOT","D:\\install\\Go\\1.8.1"),("GTK_BASEPATH","C:\\Program Files (x86)\\GtkSharp\\2.12\\"),("HOMEDRIVE","C:"),("HOMEPATH","\\Users\\Steven"),("INTEL_LICENSE_FILE","C:\\Program Files (x86)\\Common Files\\Intel\\Licenses"),("I_MPI_ROOT","D:\\install\\intel\\tbb\\2017.6.210\\compilers_and_libraries_2017.4.210\\windows\\mpi"),("LOCALAPPDATA","C:\\Users\\Steven\\AppData\\Local"),("LOGONSERVER","\\\\JUPITER"),("LUA_CPATH","?.dll;D:\\install\\luarocks\\2.4.2\\systree\\lib\\lua\\5.2\\?.dll"),("LUA_PATH","D:\\install\\luarocks\\2.4.2\\lua\\?.lua;D:\\install\\luarocks\\2.4.2\\lua\\?\\init.lua; C:\\Users\\Steven\\AppData\\Roaming\\LuaRocks\\share\\lua\\5.2.4\\?.lua; C:\\Users\\Steven\\AppData\\Roaming\\LuaRocks\\share\\lua\\5.2.4\\?\\init.lua;D:\\install\\luarocks\\2.4.2\\systree\\share\\lua\\5.2\\?.lua;D:\\install\\luarocks\\2.4.2\\systree\\share\\lua\\5.2\\?\\init.lua"),("NUMBER_OF_PROCESSORS","4"),("NVCUDASAMPLES8_0_ROOT","D:\\install\\cuda\\8.0\\examples"),("NVCUDASAMPLES_ROOT","D:\\install\\cuda\\8.0\\examples"),("NVTOOLSEXT_PATH","C:\\Program Files\\NVIDIA Corporation\\NvToolsExt\\"),("OS","Windows_NT"),("PATH",".;D:\\install\\ConEmu\\ConEmu\\Scripts;D:\\install\\ConEmu;D:\\install\\ConEmu\\ConEmu;D:\\install\\DCV\\lib64;D:\\install\\DCV\\bin64;D:\\install\\DCV\\lib;D:\\install\\DCV\\bin;D:\\install\\cuda\\8.0\\toolkit\\bin;D:\\install\\cuda\\8.0\\toolkit\\libnvvp;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\Common Files\\Intel\\Shared Files\\cpp\\bin\\Intel64;C:\\Program Files (x86)\\Intel\\iCLS Client\\;C:\\Program Files\\Intel\\iCLS Client\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files\\Intel\\WiFi\\bin;C:\\Program Files\\Common Files\\Intel\\WirelessCommon;C:\\Program Files (x86)\\Common Files\\lenovo\\easyplussdk\\bin;C:\\ProgramData\\Lenovo\\ReadyApps;D:\\install\\Git\\2.11.0\\cmd;C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit;C:\\P rogram Files (x86)\\Skype\\Phone;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files (x86)\\GtkSharp\\2.12\\bin;D:\\install\\Calibre\\2.75.0;D:\\install\\QuickTime\\7.7.9\\QTSystem;D:\\install\\Go\\1.7.4\\bin;D:\\install\\MiKTeX\\2.9\\miktex\\bin\\x64;D:\\install\\LLVM\\3.8.0\\bin;D:\\install\\DockerToolboxC:\\Users\\Steven\\bin;D:\\install\\Miniconda;D:\\install\\Miniconda\\Scripts;D:\\install\\Miniconda\\Library\\bin;D:\\install\\7zip;C:\\Users\\Steven\\AppData\\Roaming\\local\\bin;D:\\install\\Terra\\2016-03-25\\bin;D:\\install\\Nim\\0.16.0\\bin;C:\\Users\\Steven\\.nimble\\bin;D:\\install\\TclTk\\8.6.4.1\\bin;D:\\install\\ghc\\8.0.2\\bin;D:\\install\\ghc\\8.0.2\\lib\\extralibs\\bin;C:\\Users\\Steven\\bin;D:\\install\\HaskellStack\\1.2.0\\bin;D:\\install\\cabal\\1.24.0.2;C:\\Users\\Steven\\AppData\\Roaming\\cabal\\bin;D:\\install\\MinGW64\\4.9.3-posix-seh\\mingw64\\bin;D:\\install\\LOVE\\0.10.1;C:\\Users\\Steven\\bin\\decktape;D:\\install\\SublimeText\\3;D:\\install\\swig\\3.0.5;D:\\install\\cmake\\3.9.0\\bin;D:\\install\\Scala\\2.11.8\\bin;D:\\install\\sbt\\0.13.12\\bin;D:\\install\\Java\\jdk\\1.8.0_111\\bin;D:\\install\\R\\3.3.1\\bin;D:\\install\\lua\\5.2.4\\bin;D:\\install\\lua\\5.2.4\\bin; C:\\Users\\Steven\\AppData\\Roaming\\LuaRocks\\bin;D:\\install\\luarocks\\;D:\\install\\luarocks\\\\systree\\bin;D:\\install\\Julia\\0.5.1\\bin;D:\\install\\npm_global;D:\\install\\Rust\\1.10\\bin;D:\\install\\MicrosoftVSCode\\bin;C:\\Program Files\\Docker Toolbox;D:\\install\\Go\\1.8.1\\bin;D:\\install\\Go\\1.8.1\\packages\\bin;D:\\install\\SteelBankCommonLisp\\1.3.8\\;D:\\install\\MiKTeX\\2.9\\miktex\\bin\\x64\\;D:\\install\\Heroku\\bin;D:\\install\\Git\\2.13.1.2\\bin;D:\\install\\Node\\6.3.0\\;D:\\install\\lyx\\Perl\\bin;D:\\install\\LLVM\\4.0\\install\\llvm_dll\\bin;D:\\install\\ninja\\1.7.2;D:\\install\\genie;D:\\install\\tcc\\0.9.26;C:\\Windows\\System32;D:\\install\\cudnn\\5.1\\bin;D:\\install\\cudnn\\5.1\\lib\\x64;D:\\install\\cuda\\8.0\\toolkit\\bin;D:\\install\\cuda\\8.0\\toolkit\\lib\\x64;D:\\install\\moonscript;D:\\install\\lua\\5.2.4\\bin;D:\\install\\lua\\5.2.4\\lib;D:\\install\\lua\\5.2.4\\bin;D:\\install\\lua\\5.2.4\\bin; C:\\Users\\Steven\\AppData\\Roaming\\LuaRocks\\bin;D:\\install\\luarocks\\2.4.2;D:\\install\\luarocks\\2.4.2\\systree\\bin;D:\\install\\VMD;D:\\install\\caffe\\bin;D:\\install\\caffe\\lib;D:\\install\\namd\\2.12\\cuda;C:\\Users\\Steven\\AppData\\Roaming\\cabal\\bin"),("PATHEXT",".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL"),("PROCESSOR_ARCHITECTURE","AMD64"),("PROCESSOR_IDENTIFIER","Intel64 Family 6 Model 61 Stepping 4, GenuineIntel"),("PROCESSOR_LEVEL","6"),("PROCESSOR_REVISION","3d04"),("PROGRAMDATA","C:\\ProgramData"),("PROGRAMFILES","C:\\Program Files"),("PROGRAMFILES(X86)","C:\\Program Files (x86)"),("PROGRAMW6432","C:\\Program Files"),("PSMODULEPATH","C:\\Users\\Steven\\Documents\\WindowsPowerShell\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules\\"),("PUBLIC","C:\\Users\\Public"),("READYAPPS","C:\\ProgramData\\Lenovo\\ReadyApps"),("SESSIONNAME","Console"),("SYSTEMDRIVE","C:"),("SYSTEMROOT","C:\\WINDOWS"),("TEMP","C:\\Users\\Steven\\AppData\\Local\\Temp"),("TMP","C:\\Users\\Steven\\AppData\\Local\\Temp"),("TVT","C:\\Program Files (x86)\\Lenovo"),("USERDOMAIN","Jupiter"),("USERDOMAIN_ROAMINGPROFILE","Jupiter"),("USERNAME","Steven"),("USERPROFILE","C:\\Users\\Steven"),("VBOX_MSI_INSTALL_PATH","C:\\Program Files\\Oracle\\VirtualBox\\"),("VS140COMNTOOLS","C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\"),("WINDIR","C:\\WINDOWS")]
("D:\\install\\ghc\\8.0.2\\bin\\ghc.exe",["-hide-all-packages","-c","C:\\Users\\Steven\\AppData\\Local\\Temp\\4118467.c","-o","C:\\Users\\Steven\\AppData\\Local\\Temp\\633426500.o"])
("D:\\install\\ghc\\8.0.2\\mingw\\bin\\ld.exe",["-x","-r","C:\\Users\\Steven\\AppData\\Local\\Temp\\633426500.o","-o","C:\\Users\\Steven\\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.
Cannot find pkg-config on the path
Searching for strip in path.
Found strip at D:\install\ghc\8.0.2\mingw\bin\strip.exe
("D:\\install\\ghc\\8.0.2\\mingw\\bin\\strip.exe",["--version"])
D:\install\ghc\8.0.2\mingw\bin\strip.exe is version 2.25
Searching for tar in path.
Cannot find tar on the path
Searching for uhc in path.
Cannot find uhc on the path
Reading installed packages...
("D:\\install\\ghc\\8.0.2\\bin\\ghc-pkg.exe",["dump","--global","-v0"])
("D:\\install\\ghc\\8.0.2\\bin\\ghc-pkg.exe",["dump","--user","-v0"])
("D:\\install\\ghc\\8.0.2\\bin\\ghc.exe",["--print-libdir"])
Reading available packages...
Searching for pkg-config in path.
Cannot find pkg-config on the path
Failed to query pkg-config, Cabal will continue without solving for pkg-config
constraints: user error (The program 'pkg-config' is required but it could not
be found.)
Searching for curl in path.
Cannot find curl on the path
Searching for powershell in path.
Found powershell at C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
Searching for wget in path.
Cannot find wget on the path
Selected http transport implementation: powershell
Choosing modular solver.
Resolving dependencies...
targets: cuda
constraints: 
  base installed (non-upgradeable package)
  ghc-prim installed (non-upgradeable package)
  integer-gmp installed (non-upgradeable package)
  stanzas cuda  (config file, command line flag, or user target)
  cuda ==0.8.0.0 (user target)
preferences: 
strategy: PreferLatestForSelected
reorder goals: False
independent goals: False
avoid reinstalls: False
shadow packages: False
strong flags: False
max backjumps: 2000
[__0] trying: cuda-0.8.0.0 (user goal)
[__1] trying: base-4.9.1.0/installed-4.9... (dependency of cuda-0.8.0.0)
[__2] trying: cuda-setup.base~>base-4.9.1.0/installed-4.9... (dependency of cuda-0.8.0.0)
[__3] trying: rts-1.0/installedrts (dependency of base-4.9.1.0/installed-4.9...)
[__4] trying: integer-gmp-1.0.0.1/installed-1.0... (dependency of base-4.9.1.0/installed-4.9...)
[__5] trying: ghc-prim-0.5.0.0/installed-0.5... (dependency of base-4.9.1.0/installed-4.9...)
[__6] trying: pretty-1.1.3.3/installed-1.1... (dependency of cuda-0.8.0.0)
[__7] trying: deepseq-1.4.2.0/installed-1.4... (dependency of pretty-1.1.3.3/installed-1.1...)
[__8] trying: array-0.5.1.1/installed-0.5... (dependency of deepseq-1.4.2.0/installed-1.4...)
[__9] trying: template-haskell-2.11.1.0/installed-2.1... (dependency of cuda-0.8.0.0)
[_10] trying: ghc-boot-th-8.0.2/installed-8.0... (dependency of template-haskell-2.11.1.0/installed-2.1...)
[_11] trying: filepath-1.4.1.1/installed-1.4... (dependency of cuda-0.8.0.0)
[_12] trying: bytestring-0.10.8.1/installed-0.1... (dependency of cuda-0.8.0.0)
[_13] trying: cuda-setup.rts~>rts-1.0/installedrts (dependency of cuda-setup.base-4.9.1.0/installed-4.9...)
[_14] trying: cuda-setup.integer-gmp~>integer-gmp-1.0.0.1/installed-1.0... (dependency of cuda-setup.base-4.9.1.0/installed-4.9...)
[_15] trying: cuda-setup.ghc-prim~>ghc-prim-0.5.0.0/installed-0.5... (dependency of cuda-setup.base-4.9.1.0/installed-4.9...)
[_16] trying: cuda-setup.filepath~>filepath-1.4.1.1/installed-1.4... (dependency of cuda-0.8.0.0)
[_17] trying: cuda-setup.directory-1.3.0.0/installed-1.3... (dependency of cuda-0.8.0.0)
[_18] trying: cuda-setup.time-1.6.0.1/installed-1.6... (dependency of cuda-setup.directory-1.3.0.0/installed-1.3...)
[_19] trying: cuda-setup.deepseq~>deepseq-1.4.2.0/installed-1.4... (dependency of cuda-setup.time-1.6.0.1/installed-1.6...)
[_20] trying: cuda-setup.array~>array-0.5.1.1/installed-0.5... (dependency of cuda-setup.deepseq-1.4.2.0/installed-1.4...)
[_21] trying: cuda-setup.Win32-2.3.1.1/installed-2.3... (dependency of cuda-setup.directory-1.3.0.0/installed-1.3...)
[_22] trying: cuda-setup.bytestring~>bytestring-0.10.8.1/installed-0.1... (dependency of cuda-setup.Win32-2.3.1.1/installed-2.3...)
[_23] trying: cuda-setup.Cabal-1.24.2.0/installed-1.2... (dependency of cuda-0.8.0.0)
[_24] next goal: cuda-setup.process (dependency of cuda-setup.Cabal-1.24.2.0/installed-1.2...)
[_24] rejecting: cuda-setup.process-1.6.0.0/installed-2XX... (conflict: cuda-setup.Cabal => cuda-setup.process==1.4.3.0/installed-1.4...)
[_24] trying: cuda-setup.process-1.4.3.0/installed-1.4...
[_25] trying: cuda-setup.pretty~>pretty-1.1.3.3/installed-1.1... (dependency of cuda-setup.Cabal-1.24.2.0/installed-1.2...)
[_26] trying: cuda-setup.containers-0.5.7.1/installed-0.5... (dependency of cuda-setup.Cabal-1.24.2.0/installed-1.2...)
[_27] next goal: cuda-setup.binary (dependency of cuda-setup.Cabal-1.24.2.0/installed-1.2...)
[_27] trying: cuda-setup.binary-0.8.3.0/installed-0.8...
[_28] done
Ready to install cuda-0.8.0.0
Waiting for install task to finish...
Configuring cuda-0.8.0.0...
Using external setup method with build-type Custom
Using explicit dependencies: True
creating dist\setup
Using Cabal library version 1.24.2.0
Setup executable needs to be updated, compiling...
("D:\\install\\ghc\\8.0.2\\bin\\ghc.exe",["--make","-v","-fbuilding-cabal-package","-odir",".\\dist\\setup","-hidir",".\\dist\\setup","-i","-i.","-optP-include","-optP.\\dist\\setup\\setup_macros.h","-hide-all-packages","-package-id","Cabal-1.24.2.0","-package-id","base-4.9.1.0","-package-id","directory-1.3.0.0","-package-id","filepath-1.4.1.1",".\\dist\\setup\\setup.hs","-o",".\\dist\\setup\\setup.exe","-threaded"])
.\dist\setup\setup.exe configure --verbose=3 --builddir=dist --ghc
--prefix=C:\Users\Steven\AppData\Roaming\cabal
--bindir=C:\Users\Steven\AppData\Roaming\cabal\bin
--libdir=C:\Users\Steven\AppData\Roaming\cabal
--libsubdir=x86_64-windows-ghc-8.0.2\cuda-0.8.0.0-1efm31RIUKxGdrxn5kzVny
--dynlibdir=C:\Users\Steven\AppData\Roaming\cabal\x86_64-windows-ghc-8.0.2
--libexecdir=C:\Users\Steven\AppData\Roaming\cabal\cuda-0.8.0.0-1efm31RIUKxGdrxn5kzVny
--datadir=C:\Users\Steven\AppData\Roaming\cabal
--datasubdir=x86_64-windows-ghc-8.0.2\cuda-0.8.0.0
--docdir=C:\Users\Steven\AppData\Roaming\cabal\doc\x86_64-windows-ghc-8.0.2\cuda-0.8.0.0
--htmldir=C:\Users\Steven\AppData\Roaming\cabal\doc\x86_64-windows-ghc-8.0.2\cuda-0.8.0.0\html
--haddockdir=C:\Users\Steven\AppData\Roaming\cabal\doc\x86_64-windows-ghc-8.0.2\cuda-0.8.0.0\html
--sysconfdir=C:\Users\Steven\AppData\Roaming\cabal\etc --user
--extra-prog-path=C:\Users\Steven\AppData\Roaming\cabal\bin
--dependency=base=base-4.9.1.0 --dependency=bytestring=bytestring-0.10.8.1
--dependency=filepath=filepath-1.4.1.1
--dependency=template-haskell=template-haskell-2.11.1.0
--dependency=base=base-4.9.1.0 --dependency=pretty=pretty-1.1.3.3
--disable-tests --exact-configuration --disable-benchmarks
Redirecting build log to {handle:
C:\Users\Steven\AppData\Roaming\cabal\logs\cuda-0.8.0.0.log}
Building cuda-0.8.0.0...
Using external setup method with build-type Custom
Using explicit dependencies: True
creating dist\setup
Using Cabal library version 1.24.2.0
Setup executable needs to be updated, compiling...
("D:\\install\\ghc\\8.0.2\\bin\\ghc.exe",["--make","-v","-fbuilding-cabal-package","-odir",".\\dist\\setup","-hidir",".\\dist\\setup","-i","-i.","-optP-include","-optP.\\dist\\setup\\setup_macros.h","-hide-all-packages","-package-id","Cabal-1.24.2.0","-package-id","base-4.9.1.0","-package-id","directory-1.3.0.0","-package-id","filepath-1.4.1.1",".\\dist\\setup\\setup.hs","-o",".\\dist\\setup\\setup.exe","-threaded"])
.\dist\setup\setup.exe build --verbose=3 --builddir=dist
Redirecting build log to {handle:
C:\Users\Steven\AppData\Roaming\cabal\logs\cuda-0.8.0.0.log}
Failed to install cuda-0.8.0.0
Build log ( C:\Users\Steven\AppData\Roaming\cabal\logs\cuda-0.8.0.0.log ):
cabal: Entering directory '.'
[1 of 1] Skipping  Main             ( dist\setup\setup.hs, dist\setup\Main.o )
Configuring cuda-0.8.0.0...
creating dist\build
Searching for ghc in path.
Found ghc at D:\install\ghc\8.0.2\bin\ghc.exe
("D:\\install\\ghc\\8.0.2\\bin\\ghc.exe",["--numeric-version"])
D:\install\ghc\8.0.2\bin\ghc.exe is version 8.0.2
looking for tool ghc-pkg near compiler in D:\install\ghc\8.0.2\bin
candidate locations: ["D:\\install\\ghc\\8.0.2\\bin\\ghc-pkg.exe"]
found ghc-pkg in D:\install\ghc\8.0.2\bin\ghc-pkg.exe
("D:\\install\\ghc\\8.0.2\\bin\\ghc-pkg.exe",["--version"])
D:\install\ghc\8.0.2\bin\ghc-pkg.exe is version 8.0.2
("D:\\install\\ghc\\8.0.2\\bin\\ghc.exe",["--supported-languages"])
("D:\\install\\ghc\\8.0.2\\bin\\ghc.exe",["--info"])
Reading installed packages...
("D:\\install\\ghc\\8.0.2\\bin\\ghc-pkg.exe",["dump","--global","-v0"])
("D:\\install\\ghc\\8.0.2\\bin\\ghc-pkg.exe",["dump","--user","-v0"])
("D:\\install\\ghc\\8.0.2\\bin\\ghc.exe",["--print-libdir"])
Dependency base ==4.9.1.0: using base-4.9.1.0
Dependency bytestring ==0.10.8.1: using bytestring-0.10.8.1
Dependency cuda -any: using cuda-0.8.0.0
Dependency filepath ==1.4.1.1: using filepath-1.4.1.1
Dependency pretty ==1.1.3.3: using pretty-1.1.3.3
Dependency template-haskell ==2.11.1.0: using template-haskell-2.11.1.0
Searching for alex in path.
Cannot find alex on the path
Searching for ar.exe in path.
Found ar.exe at D:\install\ghc\8.0.2\mingw\bin\ar.exe
Searching for c2hs in path.
Found c2hs at C:\Users\Steven\AppData\Roaming\cabal\bin\c2hs.exe
("C:\\Users\\Steven\\AppData\\Roaming\\cabal\\bin\\c2hs.exe",["--numeric-version"])
C:\Users\Steven\AppData\Roaming\cabal\bin\c2hs.exe is version 0.28.1
Searching for cpphs in path.
Found cpphs at C:\Users\Steven\AppData\Roaming\cabal\bin\cpphs.exe
("C:\\Users\\Steven\\AppData\\Roaming\\cabal\\bin\\cpphs.exe",["--version"])
C:\Users\Steven\AppData\Roaming\cabal\bin\cpphs.exe is version 1.20.2
Searching for gcc.exe in path.
Found gcc.exe at D:\install\ghc\8.0.2\mingw\bin\gcc.exe
("D:\\install\\ghc\\8.0.2\\mingw\\bin\\gcc.exe",["-dumpversion"])
D:\install\ghc\8.0.2\mingw\bin\gcc.exe is version 5.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 D:\install\ghc\8.0.2\bin
candidate locations: ["D:\\install\\ghc\\8.0.2\\bin\\haddock.exe"]
found haddock in D:\install\ghc\8.0.2\bin\haddock.exe
("D:\\install\\ghc\\8.0.2\\bin\\haddock.exe",["--version"])
D:\install\ghc\8.0.2\bin\haddock.exe is version 2.17.3
Searching for happy in path.
Cannot find happy on the path
Searching for hmake in path.
Cannot find hmake on the path
Searching for hpc in path.
Found hpc at D:\install\ghc\8.0.2\bin\hpc.exe
("D:\\install\\ghc\\8.0.2\\bin\\hpc.exe",["version"])
D:\install\ghc\8.0.2\bin\hpc.exe is version 0.67
looking for tool hsc2hs near compiler in D:\install\ghc\8.0.2\bin
candidate locations: ["D:\\install\\ghc\\8.0.2\\bin\\hsc2hs.exe"]
found hsc2hs in D:\install\ghc\8.0.2\bin\hsc2hs.exe
("D:\\install\\ghc\\8.0.2\\bin\\hsc2hs.exe",["--version"])
D:\install\ghc\8.0.2\bin\hsc2hs.exe is version 0.68.1
Searching for HsColour in path.
Cannot find HsColour on the path
Searching for jhc in path.
Cannot find jhc on the path
Searching for ld.exe in path.
Found ld.exe at D:\install\ghc\8.0.2\mingw\bin\ld.exe
Environment: [("","::=::\\"),("ADSK_CLM_WPAD_PROXY_CHECK","FALSE"),("ALLUSERSPROFILE","C:\\ProgramData"),("ANSICON","94x1000 (94x44)"),("ANSICON_DEF","7"),("APPDATA","C:\\Users\\Steven\\AppData\\Roaming"),("ASL.LOG","Destination=file"),("COMMONPROGRAMFILES","C:\\Program Files\\Common Files"),("COMMONPROGRAMFILES(X86)","C:\\Program Files (x86)\\Common Files"),("COMMONPROGRAMW6432","C:\\Program Files\\Common Files"),("COMPUTERNAME","JUPITER"),("COMSPEC","C:\\WINDOWS\\system32\\cmd.exe"),("CONEMUANSI","ON"),("CONEMUANSILOG",""),("CONEMUARGS",""),("CONEMUARGS2",""),("CONEMUBACKHWND","0x000D05A2"),("CONEMUBASEDIR","D:\\install\\ConEmu\\ConEmu"),("CONEMUBUILD","160619"),("CONEMUCONFIG",""),("CONEMUDIR","D:\\install\\ConEmu"),("CONEMUDRAWHWND","0x000A0726"),("CONEMUDRIVE","D:"),("CONEMUHOOKS","Enabled"),("CONEMUHWND","0x00080566"),("CONEMUPALETTE","<ConEmu>"),("CONEMUPID","12256"),("CONEMUSERVERPID","11464"),("CONEMUTASK","{Shells::PowerShell}"),("CONEMUWORKDIR","C:\\Users\\Steven"),("CONEMUWORKDRIVE","C:"),("CONFIGSETROOT","C:\\WINDOWS\\ConfigSetRoot"),("CUDA_PATH","D:\\install\\cuda\\8.0\\toolkit"),("CUDA_PATH_V8_0","D:\\install\\cuda\\8.0\\toolkit"),("C_EM64T_REDIST11","c:\\Program Files (x86)\\Common Files\\Intel\\Shared Files\\cpp\\"),("DOCKER_TOOLBOX_INSTALL_PATH","D:\\install\\DockerToolbox"),("EASYPLUSSDK","\"C:\\Program Files (x86)\\Common Files\\lenovo\\easyplussdk\\bin\""),("FP_NO_HOST_CHECK","NO"),("GOBIN","D:\\install\\Go\\1.8.1\\packages\\bin"),("GOPATH","D:\\install\\Go\\1.8.1\\packages"),("GOROOT","D:\\install\\Go\\1.8.1"),("GTK_BASEPATH","C:\\Program Files (x86)\\GtkSharp\\2.12\\"),("HOMEDRIVE","C:"),("HOMEPATH","\\Users\\Steven"),("INTEL_LICENSE_FILE","C:\\Program Files (x86)\\Common Files\\Intel\\Licenses"),("I_MPI_ROOT","D:\\install\\intel\\tbb\\2017.6.210\\compilers_and_libraries_2017.4.210\\windows\\mpi"),("LOCALAPPDATA","C:\\Users\\Steven\\AppData\\Local"),("LOGONSERVER","\\\\JUPITER"),("LUA_CPATH","?.dll;D:\\install\\luarocks\\2.4.2\\systree\\lib\\lua\\5.2\\?.dll"),("LUA_PATH","D:\\install\\luarocks\\2.4.2\\lua\\?.lua;D:\\install\\luarocks\\2.4.2\\lua\\?\\init.lua; C:\\Users\\Steven\\AppData\\Roaming\\LuaRocks\\share\\lua\\5.2.4\\?.lua; C:\\Users\\Steven\\AppData\\Roaming\\LuaRocks\\share\\lua\\5.2.4\\?\\init.lua;D:\\install\\luarocks\\2.4.2\\systree\\share\\lua\\5.2\\?.lua;D:\\install\\luarocks\\2.4.2\\systree\\share\\lua\\5.2\\?\\init.lua"),("NUMBER_OF_PROCESSORS","4"),("NVCUDASAMPLES8_0_ROOT","D:\\install\\cuda\\8.0\\examples"),("NVCUDASAMPLES_ROOT","D:\\install\\cuda\\8.0\\examples"),("NVTOOLSEXT_PATH","C:\\Program Files\\NVIDIA Corporation\\NvToolsExt\\"),("OS","Windows_NT"),("PATH",".;D:\\install\\ConEmu\\ConEmu\\Scripts;D:\\install\\ConEmu;D:\\install\\ConEmu\\ConEmu;D:\\install\\DCV\\lib64;D:\\install\\DCV\\bin64;D:\\install\\DCV\\lib;D:\\install\\DCV\\bin;D:\\install\\cuda\\8.0\\toolkit\\bin;D:\\install\\cuda\\8.0\\toolkit\\libnvvp;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\Common Files\\Intel\\Shared Files\\cpp\\bin\\Intel64;C:\\Program Files (x86)\\Intel\\iCLS Client\\;C:\\Program Files\\Intel\\iCLS Client\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files\\Intel\\WiFi\\bin;C:\\Program Files\\Common Files\\Intel\\WirelessCommon;C:\\Program Files (x86)\\Common Files\\lenovo\\easyplussdk\\bin;C:\\ProgramData\\Lenovo\\ReadyApps;D:\\install\\Git\\2.11.0\\cmd;C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit;C:\\P rogram Files (x86)\\Skype\\Phone;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files (x86)\\GtkSharp\\2.12\\bin;D:\\install\\Calibre\\2.75.0;D:\\install\\QuickTime\\7.7.9\\QTSystem;D:\\install\\Go\\1.7.4\\bin;D:\\install\\MiKTeX\\2.9\\miktex\\bin\\x64;D:\\install\\LLVM\\3.8.0\\bin;D:\\install\\DockerToolboxC:\\Users\\Steven\\bin;D:\\install\\Miniconda;D:\\install\\Miniconda\\Scripts;D:\\install\\Miniconda\\Library\\bin;D:\\install\\7zip;C:\\Users\\Steven\\AppData\\Roaming\\local\\bin;D:\\install\\Terra\\2016-03-25\\bin;D:\\install\\Nim\\0.16.0\\bin;C:\\Users\\Steven\\.nimble\\bin;D:\\install\\TclTk\\8.6.4.1\\bin;D:\\install\\ghc\\8.0.2\\bin;D:\\install\\ghc\\8.0.2\\lib\\extralibs\\bin;C:\\Users\\Steven\\bin;D:\\install\\HaskellStack\\1.2.0\\bin;D:\\install\\cabal\\1.24.0.2;C:\\Users\\Steven\\AppData\\Roaming\\cabal\\bin;D:\\install\\MinGW64\\4.9.3-posix-seh\\mingw64\\bin;D:\\install\\LOVE\\0.10.1;C:\\Users\\Steven\\bin\\decktape;D:\\install\\SublimeText\\3;D:\\install\\swig\\3.0.5;D:\\install\\cmake\\3.9.0\\bin;D:\\install\\Scala\\2.11.8\\bin;D:\\install\\sbt\\0.13.12\\bin;D:\\install\\Java\\jdk\\1.8.0_111\\bin;D:\\install\\R\\3.3.1\\bin;D:\\install\\lua\\5.2.4\\bin;D:\\install\\lua\\5.2.4\\bin; C:\\Users\\Steven\\AppData\\Roaming\\LuaRocks\\bin;D:\\install\\luarocks\\;D:\\install\\luarocks\\\\systree\\bin;D:\\install\\Julia\\0.5.1\\bin;D:\\install\\npm_global;D:\\install\\Rust\\1.10\\bin;D:\\install\\MicrosoftVSCode\\bin;C:\\Program Files\\Docker Toolbox;D:\\install\\Go\\1.8.1\\bin;D:\\install\\Go\\1.8.1\\packages\\bin;D:\\install\\SteelBankCommonLisp\\1.3.8\\;D:\\install\\MiKTeX\\2.9\\miktex\\bin\\x64\\;D:\\install\\Heroku\\bin;D:\\install\\Git\\2.13.1.2\\bin;D:\\install\\Node\\6.3.0\\;D:\\install\\lyx\\Perl\\bin;D:\\install\\LLVM\\4.0\\install\\llvm_dll\\bin;D:\\install\\ninja\\1.7.2;D:\\install\\genie;D:\\install\\tcc\\0.9.26;C:\\Windows\\System32;D:\\install\\cudnn\\5.1\\bin;D:\\install\\cudnn\\5.1\\lib\\x64;D:\\install\\cuda\\8.0\\toolkit\\bin;D:\\install\\cuda\\8.0\\toolkit\\lib\\x64;D:\\install\\moonscript;D:\\install\\lua\\5.2.4\\bin;D:\\install\\lua\\5.2.4\\lib;D:\\install\\lua\\5.2.4\\bin;D:\\install\\lua\\5.2.4\\bin; C:\\Users\\Steven\\AppData\\Roaming\\LuaRocks\\bin;D:\\install\\luarocks\\2.4.2;D:\\install\\luarocks\\2.4.2\\systree\\bin;D:\\install\\VMD;D:\\install\\caffe\\bin;D:\\install\\caffe\\lib;D:\\install\\namd\\2.12\\cuda;C:\\Users\\Steven\\AppData\\Roaming\\cabal\\bin;C:\\Users\\Steven\\AppData\\Roaming\\cabal\\bin"),("PATHEXT",".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL"),("PROCESSOR_ARCHITECTURE","AMD64"),("PROCESSOR_IDENTIFIER","Intel64 Family 6 Model 61 Stepping 4, GenuineIntel"),("PROCESSOR_LEVEL","6"),("PROCESSOR_REVISION","3d04"),("PROGRAMDATA","C:\\ProgramData"),("PROGRAMFILES","C:\\Program Files"),("PROGRAMFILES(X86)","C:\\Program Files (x86)"),("PROGRAMW6432","C:\\Program Files"),("PSMODULEPATH","C:\\Users\\Steven\\Documents\\WindowsPowerShell\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules\\"),("PUBLIC","C:\\Users\\Public"),("READYAPPS","C:\\ProgramData\\Lenovo\\ReadyApps"),("SESSIONNAME","Console"),("SYSTEMDRIVE","C:"),("SYSTEMROOT","C:\\WINDOWS"),("TEMP","C:\\Users\\Steven\\AppData\\Local\\Temp"),("TMP","C:\\Users\\Steven\\AppData\\Local\\Temp"),("TVT","C:\\Program Files (x86)\\Lenovo"),("USERDOMAIN","Jupiter"),("USERDOMAIN_ROAMINGPROFILE","Jupiter"),("USERNAME","Steven"),("USERPROFILE","C:\\Users\\Steven"),("VBOX_MSI_INSTALL_PATH","C:\\Program Files\\Oracle\\VirtualBox\\"),("VS140COMNTOOLS","C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\"),("WINDIR","C:\\WINDOWS")]
("D:\\install\\ghc\\8.0.2\\bin\\ghc.exe",["-hide-all-packages","-c","C:\\Users\\Steven\\AppData\\Local\\Temp\\4118467.c","-o","C:\\Users\\Steven\\AppData\\Local\\Temp\\633426500.o"])
("D:\\install\\ghc\\8.0.2\\mingw\\bin\\ld.exe",["-x","-r","C:\\Users\\Steven\\AppData\\Local\\Temp\\633426500.o","-o","C:\\Users\\Steven\\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.
Cannot find pkg-config on the path
Searching for strip in path.
Found strip at D:\install\ghc\8.0.2\mingw\bin\strip.exe
("D:\\install\\ghc\\8.0.2\\mingw\\bin\\strip.exe",["--version"])
D:\install\ghc\8.0.2\mingw\bin\strip.exe is version 2.25
Searching for tar in path.
Cannot find tar on the path
Searching for uhc in path.
Cannot find uhc on the path
Using Cabal-1.24.2.0 compiled by ghc-8.0
Using compiler: ghc-8.0.2
Using install prefix: C:\Users\Steven\AppData\Roaming\cabal
Binaries installed in: C:\Users\Steven\AppData\Roaming\cabal\bin
Libraries installed in:
C:\Users\Steven\AppData\Roaming\cabal\x86_64-windows-ghc-8.0.2\cuda-0.8.0.0-1efm31RIUKxGdrxn5kzVny
Dynamic libraries installed in:
C:\Users\Steven\AppData\Roaming\cabal\x86_64-windows-ghc-8.0.2
Private binaries installed in:
C:\Users\Steven\AppData\Roaming\cabal\cuda-0.8.0.0-1efm31RIUKxGdrxn5kzVny
Data files installed in:
C:\Users\Steven\AppData\Roaming\cabal\x86_64-windows-ghc-8.0.2\cuda-0.8.0.0
Documentation installed in:
C:\Users\Steven\AppData\Roaming\cabal\doc\x86_64-windows-ghc-8.0.2\cuda-0.8.0.0
Configuration files installed in: C:\Users\Steven\AppData\Roaming\cabal\etc
No alex found
Using ar found on system at: D:\install\ghc\8.0.2\mingw\bin\ar.exe
Using c2hs version 0.28.1 found on system at:
C:\Users\Steven\AppData\Roaming\cabal\bin\c2hs.exe
Using cpphs version 1.20.2 found on system at:
C:\Users\Steven\AppData\Roaming\cabal\bin\cpphs.exe
Using gcc version 5.2.0 found on system at:
D:\install\ghc\8.0.2\mingw\bin\gcc.exe
Using ghc version 8.0.2 found on system at: D:\install\ghc\8.0.2\bin\ghc.exe
Using ghc-pkg version 8.0.2 found on system at:
D:\install\ghc\8.0.2\bin\ghc-pkg.exe
No ghcjs found
No ghcjs-pkg found
No greencard found
Using haddock version 2.17.3 found on system at:
D:\install\ghc\8.0.2\bin\haddock.exe
No happy found
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: D:\install\ghc\8.0.2\bin\hpc.exe
Using hsc2hs version 0.68.1 found on system at:
D:\install\ghc\8.0.2\bin\hsc2hs.exe
No hscolour found
No jhc found
Using ld found on system at: D:\install\ghc\8.0.2\mingw\bin\ld.exe
No lhc found
No lhc-pkg found
No pkg-config found
Using strip version 2.25 found on system at:
D:\install\ghc\8.0.2\mingw\bin\strip.exe
No tar found
No uhc found
checking for environment variable CUDA_PATH
Path accepted: D:\install\cuda\8.0\toolkit
Found CUDA toolkit at: D:\install\cuda\8.0\toolkit
Storing parameters to cuda.buildinfo.generated
Presuming ld locationD:\install\ghc\8.0.2\mingw\x86_64-w64-mingw32\bin\ld.exe
Checking if ld.exe at D:\install\ghc\8.0.2\mingw\x86_64-w64-mingw32\bin\ld.exe
is new enough
Found ld.exe version: [2,25,1]
Using build information from 'cuda.buildinfo.generated'.
Provide a 'cuda.buildinfo' file to override this behaviour.
("D:\\install\\ghc\\8.0.2\\mingw\\bin\\gcc.exe",["-fno-stack-protector","C:\\Users\\Steven\\AppData\\Local\\Temp\\570528145.c","-o","C:\\Users\\Steven\\AppData\\Local\\Temp\\2328116827","-D__GLASGOW_HASKELL__=800","-Dmingw32_BUILD_OS=1","-Dx86_64_BUILD_ARCH=1","-Dmingw32_HOST_OS=1","-Dx86_64_HOST_ARCH=1","-Idist\\build\\autogen","-I.","-I.","-DCUDA_INSTALL_PATH=\"D:\\install\\cuda\\8.0\\toolkit\"","-DCUDA_LIBRARY_PATH=\"D:\\install\\cuda\\8.0\\toolkit\\lib/x64\"","-ID:\\install\\cuda\\8.0\\toolkit\\include","-ID:\\install\\ghc\\8.0.2\\lib\\bytestring-0.10.8.1\\include","-ID:\\install\\ghc\\8.0.2\\lib\\base-4.9.1.0\\include","-ID:\\install\\ghc\\8.0.2\\lib\\integer-gmp-1.0.0.1\\include","-ID:\\install\\ghc\\8.0.2\\lib/include","-DCUDA_INSTALL_PATH=\"D:\\install\\cuda\\8.0\\toolkit\"","-DCUDA_LIBRARY_PATH=\"D:\\install\\cuda\\8.0\\toolkit\\lib/x64\"","-ID:\\install\\cuda\\8.0\\toolkit\\include","-lcudart","-lcuda","-LD:\\install\\cuda\\8.0\\toolkit\\lib/x64","-LD:\\install\\cuda\\8.0\\toolkit\\lib/x64","-LD:\\install\\ghc\\8.0.2\\lib\\template-haskell-2.11.1.0","-LD:\\install\\ghc\\8.0.2\\lib\\pretty-1.1.3.3","-LD:\\install\\ghc\\8.0.2\\lib\\ghc-boot-th-8.0.2","-LD:\\install\\ghc\\8.0.2\\lib\\filepath-1.4.1.1","-LD:\\install\\ghc\\8.0.2\\lib\\bytestring-0.10.8.1","-LD:\\install\\ghc\\8.0.2\\lib\\deepseq-1.4.2.0","-LD:\\install\\ghc\\8.0.2\\lib\\array-0.5.1.1","-LD:\\install\\ghc\\8.0.2\\lib\\base-4.9.1.0","-LD:\\install\\ghc\\8.0.2\\lib\\integer-gmp-1.0.0.1","-LD:\\install\\ghc\\8.0.2\\lib\\ghc-prim-0.5.0.0","-LD:\\install\\ghc\\8.0.2\\lib/rts"])
[1 of 1] Skipping  Main             ( dist\setup\setup.hs, dist\setup\Main.o )
Using build information from 'cuda.buildinfo.generated'.
Provide a 'cuda.buildinfo' file to override this behaviour.
Component build order: library, executable 'nvidia-device-query'
creating dist\build
creating dist\build\autogen
Building cuda-0.8.0.0...
Environment: [("","::=::\\"),("ADSK_CLM_WPAD_PROXY_CHECK","FALSE"),("ALLUSERSPROFILE","C:\\ProgramData"),("ANSICON","94x1000 (94x44)"),("ANSICON_DEF","7"),("APPDATA","C:\\Users\\Steven\\AppData\\Roaming"),("ASL.LOG","Destination=file"),("COMMONPROGRAMFILES","C:\\Program Files\\Common Files"),("COMMONPROGRAMFILES(X86)","C:\\Program Files (x86)\\Common Files"),("COMMONPROGRAMW6432","C:\\Program Files\\Common Files"),("COMPUTERNAME","JUPITER"),("COMSPEC","C:\\WINDOWS\\system32\\cmd.exe"),("CONEMUANSI","ON"),("CONEMUANSILOG",""),("CONEMUARGS",""),("CONEMUARGS2",""),("CONEMUBACKHWND","0x000D05A2"),("CONEMUBASEDIR","D:\\install\\ConEmu\\ConEmu"),("CONEMUBUILD","160619"),("CONEMUCONFIG",""),("CONEMUDIR","D:\\install\\ConEmu"),("CONEMUDRAWHWND","0x000A0726"),("CONEMUDRIVE","D:"),("CONEMUHOOKS","Enabled"),("CONEMUHWND","0x00080566"),("CONEMUPALETTE","<ConEmu>"),("CONEMUPID","12256"),("CONEMUSERVERPID","11464"),("CONEMUTASK","{Shells::PowerShell}"),("CONEMUWORKDIR","C:\\Users\\Steven"),("CONEMUWORKDRIVE","C:"),("CONFIGSETROOT","C:\\WINDOWS\\ConfigSetRoot"),("CUDA_PATH","D:\\install\\cuda\\8.0\\toolkit"),("CUDA_PATH_V8_0","D:\\install\\cuda\\8.0\\toolkit"),("C_EM64T_REDIST11","c:\\Program Files (x86)\\Common Files\\Intel\\Shared Files\\cpp\\"),("DOCKER_TOOLBOX_INSTALL_PATH","D:\\install\\DockerToolbox"),("EASYPLUSSDK","\"C:\\Program Files (x86)\\Common Files\\lenovo\\easyplussdk\\bin\""),("FP_NO_HOST_CHECK","NO"),("GOBIN","D:\\install\\Go\\1.8.1\\packages\\bin"),("GOPATH","D:\\install\\Go\\1.8.1\\packages"),("GOROOT","D:\\install\\Go\\1.8.1"),("GTK_BASEPATH","C:\\Program Files (x86)\\GtkSharp\\2.12\\"),("HOMEDRIVE","C:"),("HOMEPATH","\\Users\\Steven"),("INTEL_LICENSE_FILE","C:\\Program Files (x86)\\Common Files\\Intel\\Licenses"),("I_MPI_ROOT","D:\\install\\intel\\tbb\\2017.6.210\\compilers_and_libraries_2017.4.210\\windows\\mpi"),("LOCALAPPDATA","C:\\Users\\Steven\\AppData\\Local"),("LOGONSERVER","\\\\JUPITER"),("LUA_CPATH","?.dll;D:\\install\\luarocks\\2.4.2\\systree\\lib\\lua\\5.2\\?.dll"),("LUA_PATH","D:\\install\\luarocks\\2.4.2\\lua\\?.lua;D:\\install\\luarocks\\2.4.2\\lua\\?\\init.lua; C:\\Users\\Steven\\AppData\\Roaming\\LuaRocks\\share\\lua\\5.2.4\\?.lua; C:\\Users\\Steven\\AppData\\Roaming\\LuaRocks\\share\\lua\\5.2.4\\?\\init.lua;D:\\install\\luarocks\\2.4.2\\systree\\share\\lua\\5.2\\?.lua;D:\\install\\luarocks\\2.4.2\\systree\\share\\lua\\5.2\\?\\init.lua"),("NUMBER_OF_PROCESSORS","4"),("NVCUDASAMPLES8_0_ROOT","D:\\install\\cuda\\8.0\\examples"),("NVCUDASAMPLES_ROOT","D:\\install\\cuda\\8.0\\examples"),("NVTOOLSEXT_PATH","C:\\Program Files\\NVIDIA Corporation\\NvToolsExt\\"),("OS","Windows_NT"),("PATH",".;D:\\install\\ConEmu\\ConEmu\\Scripts;D:\\install\\ConEmu;D:\\install\\ConEmu\\ConEmu;D:\\install\\DCV\\lib64;D:\\install\\DCV\\bin64;D:\\install\\DCV\\lib;D:\\install\\DCV\\bin;D:\\install\\cuda\\8.0\\toolkit\\bin;D:\\install\\cuda\\8.0\\toolkit\\libnvvp;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\Common Files\\Intel\\Shared Files\\cpp\\bin\\Intel64;C:\\Program Files (x86)\\Intel\\iCLS Client\\;C:\\Program Files\\Intel\\iCLS Client\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files\\Intel\\WiFi\\bin;C:\\Program Files\\Common Files\\Intel\\WirelessCommon;C:\\Program Files (x86)\\Common Files\\lenovo\\easyplussdk\\bin;C:\\ProgramData\\Lenovo\\ReadyApps;D:\\install\\Git\\2.11.0\\cmd;C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit;C:\\P rogram Files (x86)\\Skype\\Phone;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files (x86)\\GtkSharp\\2.12\\bin;D:\\install\\Calibre\\2.75.0;D:\\install\\QuickTime\\7.7.9\\QTSystem;D:\\install\\Go\\1.7.4\\bin;D:\\install\\MiKTeX\\2.9\\miktex\\bin\\x64;D:\\install\\LLVM\\3.8.0\\bin;D:\\install\\DockerToolboxC:\\Users\\Steven\\bin;D:\\install\\Miniconda;D:\\install\\Miniconda\\Scripts;D:\\install\\Miniconda\\Library\\bin;D:\\install\\7zip;C:\\Users\\Steven\\AppData\\Roaming\\local\\bin;D:\\install\\Terra\\2016-03-25\\bin;D:\\install\\Nim\\0.16.0\\bin;C:\\Users\\Steven\\.nimble\\bin;D:\\install\\TclTk\\8.6.4.1\\bin;D:\\install\\ghc\\8.0.2\\bin;D:\\install\\ghc\\8.0.2\\lib\\extralibs\\bin;C:\\Users\\Steven\\bin;D:\\install\\HaskellStack\\1.2.0\\bin;D:\\install\\cabal\\1.24.0.2;C:\\Users\\Steven\\AppData\\Roaming\\cabal\\bin;D:\\install\\MinGW64\\4.9.3-posix-seh\\mingw64\\bin;D:\\install\\LOVE\\0.10.1;C:\\Users\\Steven\\bin\\decktape;D:\\install\\SublimeText\\3;D:\\install\\swig\\3.0.5;D:\\install\\cmake\\3.9.0\\bin;D:\\install\\Scala\\2.11.8\\bin;D:\\install\\sbt\\0.13.12\\bin;D:\\install\\Java\\jdk\\1.8.0_111\\bin;D:\\install\\R\\3.3.1\\bin;D:\\install\\lua\\5.2.4\\bin;D:\\install\\lua\\5.2.4\\bin; C:\\Users\\Steven\\AppData\\Roaming\\LuaRocks\\bin;D:\\install\\luarocks\\;D:\\install\\luarocks\\\\systree\\bin;D:\\install\\Julia\\0.5.1\\bin;D:\\install\\npm_global;D:\\install\\Rust\\1.10\\bin;D:\\install\\MicrosoftVSCode\\bin;C:\\Program Files\\Docker Toolbox;D:\\install\\Go\\1.8.1\\bin;D:\\install\\Go\\1.8.1\\packages\\bin;D:\\install\\SteelBankCommonLisp\\1.3.8\\;D:\\install\\MiKTeX\\2.9\\miktex\\bin\\x64\\;D:\\install\\Heroku\\bin;D:\\install\\Git\\2.13.1.2\\bin;D:\\install\\Node\\6.3.0\\;D:\\install\\lyx\\Perl\\bin;D:\\install\\LLVM\\4.0\\install\\llvm_dll\\bin;D:\\install\\ninja\\1.7.2;D:\\install\\genie;D:\\install\\tcc\\0.9.26;C:\\Windows\\System32;D:\\install\\cudnn\\5.1\\bin;D:\\install\\cudnn\\5.1\\lib\\x64;D:\\install\\cuda\\8.0\\toolkit\\bin;D:\\install\\cuda\\8.0\\toolkit\\lib\\x64;D:\\install\\moonscript;D:\\install\\lua\\5.2.4\\bin;D:\\install\\lua\\5.2.4\\lib;D:\\install\\lua\\5.2.4\\bin;D:\\install\\lua\\5.2.4\\bin; C:\\Users\\Steven\\AppData\\Roaming\\LuaRocks\\bin;D:\\install\\luarocks\\2.4.2;D:\\install\\luarocks\\2.4.2\\systree\\bin;D:\\install\\VMD;D:\\install\\caffe\\bin;D:\\install\\caffe\\lib;D:\\install\\namd\\2.12\\cuda;C:\\Users\\Steven\\AppData\\Roaming\\cabal\\bin;C:\\Users\\Steven\\AppData\\Roaming\\cabal\\bin"),("PATHEXT",".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL"),("PROCESSOR_ARCHITECTURE","AMD64"),("PROCESSOR_IDENTIFIER","Intel64 Family 6 Model 61 Stepping 4, GenuineIntel"),("PROCESSOR_LEVEL","6"),("PROCESSOR_REVISION","3d04"),("PROGRAMDATA","C:\\ProgramData"),("PROGRAMFILES","C:\\Program Files"),("PROGRAMFILES(X86)","C:\\Program Files (x86)"),("PROGRAMW6432","C:\\Program Files"),("PSMODULEPATH","C:\\Users\\Steven\\Documents\\WindowsPowerShell\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules\\"),("PUBLIC","C:\\Users\\Public"),("READYAPPS","C:\\ProgramData\\Lenovo\\ReadyApps"),("SESSIONNAME","Console"),("SYSTEMDRIVE","C:"),("SYSTEMROOT","C:\\WINDOWS"),("TEMP","C:\\Users\\Steven\\AppData\\Local\\Temp"),("TMP","C:\\Users\\Steven\\AppData\\Local\\Temp"),("TVT","C:\\Program Files (x86)\\Lenovo"),("USERDOMAIN","Jupiter"),("USERDOMAIN_ROAMINGPROFILE","Jupiter"),("USERNAME","Steven"),("USERPROFILE","C:\\Users\\Steven"),("VBOX_MSI_INSTALL_PATH","C:\\Program Files\\Oracle\\VirtualBox\\"),("VS140COMNTOOLS","C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\"),("WINDIR","C:\\WINDOWS")]
("D:\\install\\ghc\\8.0.2\\bin\\ghc-pkg.exe",["init","dist\\package.conf.inplace","-v2"])
GHC package manager version 8.0.2
writing cache dist\package.conf.inplace\package.cache
Preprocessing library cuda-0.8.0.0...
Building library...
creating dist\build
Environment: [("","::=::\\"),("ADSK_CLM_WPAD_PROXY_CHECK","FALSE"),("ALLUSERSPROFILE","C:\\ProgramData"),("ANSICON","94x1000 (94x44)"),("ANSICON_DEF","7"),("APPDATA","C:\\Users\\Steven\\AppData\\Roaming"),("ASL.LOG","Destination=file"),("COMMONPROGRAMFILES","C:\\Program Files\\Common Files"),("COMMONPROGRAMFILES(X86)","C:\\Program Files (x86)\\Common Files"),("COMMONPROGRAMW6432","C:\\Program Files\\Common Files"),("COMPUTERNAME","JUPITER"),("COMSPEC","C:\\WINDOWS\\system32\\cmd.exe"),("CONEMUANSI","ON"),("CONEMUANSILOG",""),("CONEMUARGS",""),("CONEMUARGS2",""),("CONEMUBACKHWND","0x000D05A2"),("CONEMUBASEDIR","D:\\install\\ConEmu\\ConEmu"),("CONEMUBUILD","160619"),("CONEMUCONFIG",""),("CONEMUDIR","D:\\install\\ConEmu"),("CONEMUDRAWHWND","0x000A0726"),("CONEMUDRIVE","D:"),("CONEMUHOOKS","Enabled"),("CONEMUHWND","0x00080566"),("CONEMUPALETTE","<ConEmu>"),("CONEMUPID","12256"),("CONEMUSERVERPID","11464"),("CONEMUTASK","{Shells::PowerShell}"),("CONEMUWORKDIR","C:\\Users\\Steven"),("CONEMUWORKDRIVE","C:"),("CONFIGSETROOT","C:\\WINDOWS\\ConfigSetRoot"),("CUDA_PATH","D:\\install\\cuda\\8.0\\toolkit"),("CUDA_PATH_V8_0","D:\\install\\cuda\\8.0\\toolkit"),("C_EM64T_REDIST11","c:\\Program Files (x86)\\Common Files\\Intel\\Shared Files\\cpp\\"),("DOCKER_TOOLBOX_INSTALL_PATH","D:\\install\\DockerToolbox"),("EASYPLUSSDK","\"C:\\Program Files (x86)\\Common Files\\lenovo\\easyplussdk\\bin\""),("FP_NO_HOST_CHECK","NO"),("GOBIN","D:\\install\\Go\\1.8.1\\packages\\bin"),("GOPATH","D:\\install\\Go\\1.8.1\\packages"),("GOROOT","D:\\install\\Go\\1.8.1"),("GTK_BASEPATH","C:\\Program Files (x86)\\GtkSharp\\2.12\\"),("HOMEDRIVE","C:"),("HOMEPATH","\\Users\\Steven"),("INTEL_LICENSE_FILE","C:\\Program Files (x86)\\Common Files\\Intel\\Licenses"),("I_MPI_ROOT","D:\\install\\intel\\tbb\\2017.6.210\\compilers_and_libraries_2017.4.210\\windows\\mpi"),("LOCALAPPDATA","C:\\Users\\Steven\\AppData\\Local"),("LOGONSERVER","\\\\JUPITER"),("LUA_CPATH","?.dll;D:\\install\\luarocks\\2.4.2\\systree\\lib\\lua\\5.2\\?.dll"),("LUA_PATH","D:\\install\\luarocks\\2.4.2\\lua\\?.lua;D:\\install\\luarocks\\2.4.2\\lua\\?\\init.lua; C:\\Users\\Steven\\AppData\\Roaming\\LuaRocks\\share\\lua\\5.2.4\\?.lua; C:\\Users\\Steven\\AppData\\Roaming\\LuaRocks\\share\\lua\\5.2.4\\?\\init.lua;D:\\install\\luarocks\\2.4.2\\systree\\share\\lua\\5.2\\?.lua;D:\\install\\luarocks\\2.4.2\\systree\\share\\lua\\5.2\\?\\init.lua"),("NUMBER_OF_PROCESSORS","4"),("NVCUDASAMPLES8_0_ROOT","D:\\install\\cuda\\8.0\\examples"),("NVCUDASAMPLES_ROOT","D:\\install\\cuda\\8.0\\examples"),("NVTOOLSEXT_PATH","C:\\Program Files\\NVIDIA Corporation\\NvToolsExt\\"),("OS","Windows_NT"),("PATH",".;D:\\install\\ConEmu\\ConEmu\\Scripts;D:\\install\\ConEmu;D:\\install\\ConEmu\\ConEmu;D:\\install\\DCV\\lib64;D:\\install\\DCV\\bin64;D:\\install\\DCV\\lib;D:\\install\\DCV\\bin;D:\\install\\cuda\\8.0\\toolkit\\bin;D:\\install\\cuda\\8.0\\toolkit\\libnvvp;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\Common Files\\Intel\\Shared Files\\cpp\\bin\\Intel64;C:\\Program Files (x86)\\Intel\\iCLS Client\\;C:\\Program Files\\Intel\\iCLS Client\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files\\Intel\\WiFi\\bin;C:\\Program Files\\Common Files\\Intel\\WirelessCommon;C:\\Program Files (x86)\\Common Files\\lenovo\\easyplussdk\\bin;C:\\ProgramData\\Lenovo\\ReadyApps;D:\\install\\Git\\2.11.0\\cmd;C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit;C:\\P rogram Files (x86)\\Skype\\Phone;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files (x86)\\GtkSharp\\2.12\\bin;D:\\install\\Calibre\\2.75.0;D:\\install\\QuickTime\\7.7.9\\QTSystem;D:\\install\\Go\\1.7.4\\bin;D:\\install\\MiKTeX\\2.9\\miktex\\bin\\x64;D:\\install\\LLVM\\3.8.0\\bin;D:\\install\\DockerToolboxC:\\Users\\Steven\\bin;D:\\install\\Miniconda;D:\\install\\Miniconda\\Scripts;D:\\install\\Miniconda\\Library\\bin;D:\\install\\7zip;C:\\Users\\Steven\\AppData\\Roaming\\local\\bin;D:\\install\\Terra\\2016-03-25\\bin;D:\\install\\Nim\\0.16.0\\bin;C:\\Users\\Steven\\.nimble\\bin;D:\\install\\TclTk\\8.6.4.1\\bin;D:\\install\\ghc\\8.0.2\\bin;D:\\install\\ghc\\8.0.2\\lib\\extralibs\\bin;C:\\Users\\Steven\\bin;D:\\install\\HaskellStack\\1.2.0\\bin;D:\\install\\cabal\\1.24.0.2;C:\\Users\\Steven\\AppData\\Roaming\\cabal\\bin;D:\\install\\MinGW64\\4.9.3-posix-seh\\mingw64\\bin;D:\\install\\LOVE\\0.10.1;C:\\Users\\Steven\\bin\\decktape;D:\\install\\SublimeText\\3;D:\\install\\swig\\3.0.5;D:\\install\\cmake\\3.9.0\\bin;D:\\install\\Scala\\2.11.8\\bin;D:\\install\\sbt\\0.13.12\\bin;D:\\install\\Java\\jdk\\1.8.0_111\\bin;D:\\install\\R\\3.3.1\\bin;D:\\install\\lua\\5.2.4\\bin;D:\\install\\lua\\5.2.4\\bin; C:\\Users\\Steven\\AppData\\Roaming\\LuaRocks\\bin;D:\\install\\luarocks\\;D:\\install\\luarocks\\\\systree\\bin;D:\\install\\Julia\\0.5.1\\bin;D:\\install\\npm_global;D:\\install\\Rust\\1.10\\bin;D:\\install\\MicrosoftVSCode\\bin;C:\\Program Files\\Docker Toolbox;D:\\install\\Go\\1.8.1\\bin;D:\\install\\Go\\1.8.1\\packages\\bin;D:\\install\\SteelBankCommonLisp\\1.3.8\\;D:\\install\\MiKTeX\\2.9\\miktex\\bin\\x64\\;D:\\install\\Heroku\\bin;D:\\install\\Git\\2.13.1.2\\bin;D:\\install\\Node\\6.3.0\\;D:\\install\\lyx\\Perl\\bin;D:\\install\\LLVM\\4.0\\install\\llvm_dll\\bin;D:\\install\\ninja\\1.7.2;D:\\install\\genie;D:\\install\\tcc\\0.9.26;C:\\Windows\\System32;D:\\install\\cudnn\\5.1\\bin;D:\\install\\cudnn\\5.1\\lib\\x64;D:\\install\\cuda\\8.0\\toolkit\\bin;D:\\install\\cuda\\8.0\\toolkit\\lib\\x64;D:\\install\\moonscript;D:\\install\\lua\\5.2.4\\bin;D:\\install\\lua\\5.2.4\\lib;D:\\install\\lua\\5.2.4\\bin;D:\\install\\lua\\5.2.4\\bin; C:\\Users\\Steven\\AppData\\Roaming\\LuaRocks\\bin;D:\\install\\luarocks\\2.4.2;D:\\install\\luarocks\\2.4.2\\systree\\bin;D:\\install\\VMD;D:\\install\\caffe\\bin;D:\\install\\caffe\\lib;D:\\install\\namd\\2.12\\cuda;C:\\Users\\Steven\\AppData\\Roaming\\cabal\\bin;C:\\Users\\Steven\\AppData\\Roaming\\cabal\\bin"),("PATHEXT",".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL"),("PROCESSOR_ARCHITECTURE","AMD64"),("PROCESSOR_IDENTIFIER","Intel64 Family 6 Model 61 Stepping 4, GenuineIntel"),("PROCESSOR_LEVEL","6"),("PROCESSOR_REVISION","3d04"),("PROGRAMDATA","C:\\ProgramData"),("PROGRAMFILES","C:\\Program Files"),("PROGRAMFILES(X86)","C:\\Program Files (x86)"),("PROGRAMW6432","C:\\Program Files"),("PSMODULEPATH","C:\\Users\\Steven\\Documents\\WindowsPowerShell\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules\\"),("PUBLIC","C:\\Users\\Public"),("READYAPPS","C:\\ProgramData\\Lenovo\\ReadyApps"),("SESSIONNAME","Console"),("SYSTEMDRIVE","C:"),("SYSTEMROOT","C:\\WINDOWS"),("TEMP","C:\\Users\\Steven\\AppData\\Local\\Temp"),("TMP","C:\\Users\\Steven\\AppData\\Local\\Temp"),("TVT","C:\\Program Files (x86)\\Lenovo"),("USERDOMAIN","Jupiter"),("USERDOMAIN_ROAMINGPROFILE","Jupiter"),("USERNAME","Steven"),("USERPROFILE","C:\\Users\\Steven"),("VBOX_MSI_INSTALL_PATH","C:\\Program Files\\Oracle\\VirtualBox\\"),("VS140COMNTOOLS","C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\"),("WINDIR","C:\\WINDOWS")]
("D:\\install\\ghc\\8.0.2\\bin\\ghc.exe",["--make","-v","-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\\autogen","-Idist\\build","-I.","-optP-include","-optPdist\\build\\autogen\\cabal_macros.h","-this-unit-id","cuda-0.8.0.0-1efm31RIUKxGdrxn5kzVny","-hide-all-packages","-package-db","dist\\package.conf.inplace","-package-id","base-4.9.1.0","-package-id","bytestring-0.10.8.1","-package-id","filepath-1.4.1.1","-package-id","template-haskell-2.11.1.0","-XHaskell98","Foreign.CUDA","Foreign.CUDA.Path","Foreign.CUDA.Ptr","Foreign.CUDA.Types","Foreign.CUDA.Analysis","Foreign.CUDA.Analysis.Device","Foreign.CUDA.Analysis.Occupancy","Foreign.CUDA.Driver","Foreign.CUDA.Driver.Context","Foreign.CUDA.Driver.Context.Base","Foreign.CUDA.Driver.Context.Config","Foreign.CUDA.Driver.Context.Peer","Foreign.CUDA.Driver.Context.Primary","Foreign.CUDA.Driver.Device","Foreign.CUDA.Driver.Error","Foreign.CUDA.Driver.Event","Foreign.CUDA.Driver.Exec","Foreign.CUDA.Driver.IPC.Event","Foreign.CUDA.Driver.IPC.Marshal","Foreign.CUDA.Driver.Marshal","Foreign.CUDA.Driver.Module","Foreign.CUDA.Driver.Module.Base","Foreign.CUDA.Driver.Module.Link","Foreign.CUDA.Driver.Module.Query","Foreign.CUDA.Driver.Profiler","Foreign.CUDA.Driver.Stream","Foreign.CUDA.Driver.Texture","Foreign.CUDA.Driver.Unified","Foreign.CUDA.Driver.Utils","Foreign.CUDA.Runtime","Foreign.CUDA.Runtime.Device","Foreign.CUDA.Runtime.Error","Foreign.CUDA.Runtime.Event","Foreign.CUDA.Runtime.Exec","Foreign.CUDA.Runtime.Marshal","Foreign.CUDA.Runtime.Stream","Foreign.CUDA.Runtime.Texture","Foreign.CUDA.Runtime.Utils","Foreign.CUDA.Internal.C2HS","Text.Show.Describe","-Wall","-O2","-funbox-strict-fields","-fwarn-tabs","-fno-warn-unused-imports"])
Glasgow Haskell Compiler, Version 8.0.2, stage 2 booted by GHC version 8.0.1
Using binary package database: D:\install\ghc\8.0.2\lib\package.conf.d\package.cache
Using binary package database: C:\Users\Steven\AppData\Roaming\ghc\x86_64-mingw32-8.0.2\package.conf.d\package.cache
Using binary package database: dist\package.conf.inplace\package.cache
loading package database D:\install\ghc\8.0.2\lib\package.conf.d
loading package database C:\Users\Steven\AppData\Roaming\ghc\x86_64-mingw32-8.0.2\package.conf.d
loading package database dist\package.conf.inplace
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.9.1.0
wired-in package rts mapped to rts
wired-in package template-haskell mapped to template-haskell-2.11.1.0
wired-in package ghc mapped to ghc-8.0.2
wired-in package dph-seq not found.
wired-in package dph-par not found.
Hsc static flags: 
loading package database D:\install\ghc\8.0.2\lib\package.conf.d
loading package database C:\Users\Steven\AppData\Roaming\ghc\x86_64-mingw32-8.0.2\package.conf.d
loading package database dist\package.conf.inplace
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.9.1.0
wired-in package rts mapped to rts-1.0
wired-in package template-haskell mapped to template-haskell-2.11.1.0
wired-in package ghc mapped to ghc-8.0.2
wired-in package dph-seq not found.
wired-in package dph-par not found.
*** Chasing dependencies:
Chasing modules from: *Foreign.CUDA,*Foreign.CUDA.Path,*Foreign.CUDA.Ptr,*Foreign.CUDA.Types,*Foreign.CUDA.Analysis,*Foreign.CUDA.Analysis.Device,*Foreign.CUDA.Analysis.Occupancy,*Foreign.CUDA.Driver,*Foreign.CUDA.Driver.Context,*Foreign.CUDA.Driver.Context.Base,*Foreign.CUDA.Driver.Context.Config,*Foreign.CUDA.Driver.Context.Peer,*Foreign.CUDA.Driver.Context.Primary,*Foreign.CUDA.Driver.Device,*Foreign.CUDA.Driver.Error,*Foreign.CUDA.Driver.Event,*Foreign.CUDA.Driver.Exec,*Foreign.CUDA.Driver.IPC.Event,*Foreign.CUDA.Driver.IPC.Marshal,*Foreign.CUDA.Driver.Marshal,*Foreign.CUDA.Driver.Module,*Foreign.CUDA.Driver.Module.Base,*Foreign.CUDA.Driver.Module.Link,*Foreign.CUDA.Driver.Module.Query,*Foreign.CUDA.Driver.Profiler,*Foreign.CUDA.Driver.Stream,*Foreign.CUDA.Driver.Texture,*Foreign.CUDA.Driver.Unified,*Foreign.CUDA.Driver.Utils,*Foreign.CUDA.Runtime,*Foreign.CUDA.Runtime.Device,*Foreign.CUDA.Runtime.Error,*Foreign.CUDA.Runtime.Event,*Foreign.CUDA.Runtime.Exec,*Foreign.CUDA.Runtime.Marshal,*Foreign.CUDA.Runtime.Stream,*Foreign.CUDA.Runtime.Texture,*Foreign.CUDA.Runtime.Utils,*Foreign.CUDA.Internal.C2HS,*Text.Show.Describe
Created temporary directory: C:\Users\Steven\AppData\Local\Temp\ghc10696_0
*** C pre-processor:
"D:\install\ghc\8.0.2\lib/../mingw/bin/gcc.exe" "-E" "-undef" "-traditional" "-include" "dist\build\autogen\cabal_macros.h" "-I" "dist\build" "-I" "dist\build" "-I" "dist\build\autogen" "-I" "dist\build" "-I" "." "-I" "D:\install\ghc\8.0.2\lib\bytestring-0.10.8.1\include" "-I" "D:\install\ghc\8.0.2\lib\base-4.9.1.0\include" "-I" "D:\install\ghc\8.0.2\lib\integer-gmp-1.0.0.1\include" "-I" "D:\install\ghc\8.0.2\lib/include" "-D__GLASGOW_HASKELL__=800" "-include" "D:\install\ghc\8.0.2\lib/include\ghcversion.h" "-Dmingw32_BUILD_OS=1" "-Dx86_64_BUILD_ARCH=1" "-Dmingw32_HOST_OS=1" "-Dx86_64_HOST_ARCH=1" "-D__GLASGOW_HASKELL_TH__=1" "-D__SSE__=1" "-D__SSE2__=1" "-includeC:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_2.h" "-x" "assembler-with-cpp" "dist\build\Foreign\CUDA\Types.hs" "-o" "C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_1.hscpp"
*** C pre-processor:
"D:\install\ghc\8.0.2\lib/../mingw/bin/gcc.exe" "-E" "-undef" "-traditional" "-include" "dist\build\autogen\cabal_macros.h" "-I" "dist\build" "-I" "dist\build" "-I" "dist\build\autogen" "-I" "dist\build" "-I" "." "-I" "D:\install\ghc\8.0.2\lib\bytestring-0.10.8.1\include" "-I" "D:\install\ghc\8.0.2\lib\base-4.9.1.0\include" "-I" "D:\install\ghc\8.0.2\lib\integer-gmp-1.0.0.1\include" "-I" "D:\install\ghc\8.0.2\lib/include" "-D__GLASGOW_HASKELL__=800" "-include" "D:\install\ghc\8.0.2\lib/include\ghcversion.h" "-Dmingw32_BUILD_OS=1" "-Dx86_64_BUILD_ARCH=1" "-Dmingw32_HOST_OS=1" "-Dx86_64_HOST_ARCH=1" "-D__GLASGOW_HASKELL_TH__=1" "-D__SSE__=1" "-D__SSE2__=1" "-includeC:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_4.h" "-x" "assembler-with-cpp" "dist\build\Foreign\CUDA\Driver\Context\Base.hs" "-o" "C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_3.hscpp"
*** C pre-processor:
"D:\install\ghc\8.0.2\lib/../mingw/bin/gcc.exe" "-E" "-undef" "-traditional" "-include" "dist\build\autogen\cabal_macros.h" "-I" "dist\build" "-I" "dist\build" "-I" "dist\build\autogen" "-I" "dist\build" "-I" "." "-I" "D:\install\ghc\8.0.2\lib\bytestring-0.10.8.1\include" "-I" "D:\install\ghc\8.0.2\lib\base-4.9.1.0\include" "-I" "D:\install\ghc\8.0.2\lib\integer-gmp-1.0.0.1\include" "-I" "D:\install\ghc\8.0.2\lib/include" "-D__GLASGOW_HASKELL__=800" "-include" "D:\install\ghc\8.0.2\lib/include\ghcversion.h" "-Dmingw32_BUILD_OS=1" "-Dx86_64_BUILD_ARCH=1" "-Dmingw32_HOST_OS=1" "-Dx86_64_HOST_ARCH=1" "-D__GLASGOW_HASKELL_TH__=1" "-D__SSE__=1" "-D__SSE2__=1" "-includeC:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_6.h" "-x" "assembler-with-cpp" "dist\build\Foreign\CUDA\Driver\Context\Config.hs" "-o" "C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_5.hscpp"
*** C pre-processor:
"D:\install\ghc\8.0.2\lib/../mingw/bin/gcc.exe" "-E" "-undef" "-traditional" "-include" "dist\build\autogen\cabal_macros.h" "-I" "dist\build" "-I" "dist\build" "-I" "dist\build\autogen" "-I" "dist\build" "-I" "." "-I" "D:\install\ghc\8.0.2\lib\bytestring-0.10.8.1\include" "-I" "D:\install\ghc\8.0.2\lib\base-4.9.1.0\include" "-I" "D:\install\ghc\8.0.2\lib\integer-gmp-1.0.0.1\include" "-I" "D:\install\ghc\8.0.2\lib/include" "-D__GLASGOW_HASKELL__=800" "-include" "D:\install\ghc\8.0.2\lib/include\ghcversion.h" "-Dmingw32_BUILD_OS=1" "-Dx86_64_BUILD_ARCH=1" "-Dmingw32_HOST_OS=1" "-Dx86_64_HOST_ARCH=1" "-D__GLASGOW_HASKELL_TH__=1" "-D__SSE__=1" "-D__SSE2__=1" "-includeC:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_8.h" "-x" "assembler-with-cpp" "dist\build\Foreign\CUDA\Driver\Context\Peer.hs" "-o" "C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_7.hscpp"
*** C pre-processor:
"D:\install\ghc\8.0.2\lib/../mingw/bin/gcc.exe" "-E" "-undef" "-traditional" "-include" "dist\build\autogen\cabal_macros.h" "-I" "dist\build" "-I" "dist\build" "-I" "dist\build\autogen" "-I" "dist\build" "-I" "." "-I" "D:\install\ghc\8.0.2\lib\bytestring-0.10.8.1\include" "-I" "D:\install\ghc\8.0.2\lib\base-4.9.1.0\include" "-I" "D:\install\ghc\8.0.2\lib\integer-gmp-1.0.0.1\include" "-I" "D:\install\ghc\8.0.2\lib/include" "-D__GLASGOW_HASKELL__=800" "-include" "D:\install\ghc\8.0.2\lib/include\ghcversion.h" "-Dmingw32_BUILD_OS=1" "-Dx86_64_BUILD_ARCH=1" "-Dmingw32_HOST_OS=1" "-Dx86_64_HOST_ARCH=1" "-D__GLASGOW_HASKELL_TH__=1" "-D__SSE__=1" "-D__SSE2__=1" "-includeC:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_10.h" "-x" "assembler-with-cpp" "dist\build\Foreign\CUDA\Driver\Context\Primary.hs" "-o" "C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_9.hscpp"
*** C pre-processor:
"D:\install\ghc\8.0.2\lib/../mingw/bin/gcc.exe" "-E" "-undef" "-traditional" "-include" "dist\build\autogen\cabal_macros.h" "-I" "dist\build" "-I" "dist\build" "-I" "dist\build\autogen" "-I" "dist\build" "-I" "." "-I" "D:\install\ghc\8.0.2\lib\bytestring-0.10.8.1\include" "-I" "D:\install\ghc\8.0.2\lib\base-4.9.1.0\include" "-I" "D:\install\ghc\8.0.2\lib\integer-gmp-1.0.0.1\include" "-I" "D:\install\ghc\8.0.2\lib/include" "-D__GLASGOW_HASKELL__=800" "-include" "D:\install\ghc\8.0.2\lib/include\ghcversion.h" "-Dmingw32_BUILD_OS=1" "-Dx86_64_BUILD_ARCH=1" "-Dmingw32_HOST_OS=1" "-Dx86_64_HOST_ARCH=1" "-D__GLASGOW_HASKELL_TH__=1" "-D__SSE__=1" "-D__SSE2__=1" "-includeC:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_12.h" "-x" "assembler-with-cpp" "dist\build\Foreign\CUDA\Driver\Device.hs" "-o" "C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_11.hscpp"
*** C pre-processor:
"D:\install\ghc\8.0.2\lib/../mingw/bin/gcc.exe" "-E" "-undef" "-traditional" "-include" "dist\build\autogen\cabal_macros.h" "-I" "dist\build" "-I" "dist\build" "-I" "dist\build\autogen" "-I" "dist\build" "-I" "." "-I" "D:\install\ghc\8.0.2\lib\bytestring-0.10.8.1\include" "-I" "D:\install\ghc\8.0.2\lib\base-4.9.1.0\include" "-I" "D:\install\ghc\8.0.2\lib\integer-gmp-1.0.0.1\include" "-I" "D:\install\ghc\8.0.2\lib/include" "-D__GLASGOW_HASKELL__=800" "-include" "D:\install\ghc\8.0.2\lib/include\ghcversion.h" "-Dmingw32_BUILD_OS=1" "-Dx86_64_BUILD_ARCH=1" "-Dmingw32_HOST_OS=1" "-Dx86_64_HOST_ARCH=1" "-D__GLASGOW_HASKELL_TH__=1" "-D__SSE__=1" "-D__SSE2__=1" "-includeC:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_14.h" "-x" "assembler-with-cpp" "dist\build\Foreign\CUDA\Driver\Event.hs" "-o" "C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_13.hscpp"
*** C pre-processor:
"D:\install\ghc\8.0.2\lib/../mingw/bin/gcc.exe" "-E" "-undef" "-traditional" "-include" "dist\build\autogen\cabal_macros.h" "-I" "dist\build" "-I" "dist\build" "-I" "dist\build\autogen" "-I" "dist\build" "-I" "." "-I" "D:\install\ghc\8.0.2\lib\bytestring-0.10.8.1\include" "-I" "D:\install\ghc\8.0.2\lib\base-4.9.1.0\include" "-I" "D:\install\ghc\8.0.2\lib\integer-gmp-1.0.0.1\include" "-I" "D:\install\ghc\8.0.2\lib/include" "-D__GLASGOW_HASKELL__=800" "-include" "D:\install\ghc\8.0.2\lib/include\ghcversion.h" "-Dmingw32_BUILD_OS=1" "-Dx86_64_BUILD_ARCH=1" "-Dmingw32_HOST_OS=1" "-Dx86_64_HOST_ARCH=1" "-D__GLASGOW_HASKELL_TH__=1" "-D__SSE__=1" "-D__SSE2__=1" "-includeC:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_16.h" "-x" "assembler-with-cpp" "dist\build\Foreign\CUDA\Driver\Exec.hs" "-o" "C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_15.hscpp"
*** C pre-processor:
"D:\install\ghc\8.0.2\lib/../mingw/bin/gcc.exe" "-E" "-undef" "-traditional" "-include" "dist\build\autogen\cabal_macros.h" "-I" "dist\build" "-I" "dist\build" "-I" "dist\build\autogen" "-I" "dist\build" "-I" "." "-I" "D:\install\ghc\8.0.2\lib\bytestring-0.10.8.1\include" "-I" "D:\install\ghc\8.0.2\lib\base-4.9.1.0\include" "-I" "D:\install\ghc\8.0.2\lib\integer-gmp-1.0.0.1\include" "-I" "D:\install\ghc\8.0.2\lib/include" "-D__GLASGOW_HASKELL__=800" "-include" "D:\install\ghc\8.0.2\lib/include\ghcversion.h" "-Dmingw32_BUILD_OS=1" "-Dx86_64_BUILD_ARCH=1" "-Dmingw32_HOST_OS=1" "-Dx86_64_HOST_ARCH=1" "-D__GLASGOW_HASKELL_TH__=1" "-D__SSE__=1" "-D__SSE2__=1" "-includeC:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_18.h" "-x" "assembler-with-cpp" "dist\build\Foreign\CUDA\Driver\IPC\Event.hs" "-o" "C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_17.hscpp"
*** C pre-processor:
"D:\install\ghc\8.0.2\lib/../mingw/bin/gcc.exe" "-E" "-undef" "-traditional" "-include" "dist\build\autogen\cabal_macros.h" "-I" "dist\build" "-I" "dist\build" "-I" "dist\build\autogen" "-I" "dist\build" "-I" "." "-I" "D:\install\ghc\8.0.2\lib\bytestring-0.10.8.1\include" "-I" "D:\install\ghc\8.0.2\lib\base-4.9.1.0\include" "-I" "D:\install\ghc\8.0.2\lib\integer-gmp-1.0.0.1\include" "-I" "D:\install\ghc\8.0.2\lib/include" "-D__GLASGOW_HASKELL__=800" "-include" "D:\install\ghc\8.0.2\lib/include\ghcversion.h" "-Dmingw32_BUILD_OS=1" "-Dx86_64_BUILD_ARCH=1" "-Dmingw32_HOST_OS=1" "-Dx86_64_HOST_ARCH=1" "-D__GLASGOW_HASKELL_TH__=1" "-D__SSE__=1" "-D__SSE2__=1" "-includeC:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_20.h" "-x" "assembler-with-cpp" "dist\build\Foreign\CUDA\Driver\IPC\Marshal.hs" "-o" "C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_19.hscpp"
*** C pre-processor:
"D:\install\ghc\8.0.2\lib/../mingw/bin/gcc.exe" "-E" "-undef" "-traditional" "-include" "dist\build\autogen\cabal_macros.h" "-I" "dist\build" "-I" "dist\build" "-I" "dist\build\autogen" "-I" "dist\build" "-I" "." "-I" "D:\install\ghc\8.0.2\lib\bytestring-0.10.8.1\include" "-I" "D:\install\ghc\8.0.2\lib\base-4.9.1.0\include" "-I" "D:\install\ghc\8.0.2\lib\integer-gmp-1.0.0.1\include" "-I" "D:\install\ghc\8.0.2\lib/include" "-D__GLASGOW_HASKELL__=800" "-include" "D:\install\ghc\8.0.2\lib/include\ghcversion.h" "-Dmingw32_BUILD_OS=1" "-Dx86_64_BUILD_ARCH=1" "-Dmingw32_HOST_OS=1" "-Dx86_64_HOST_ARCH=1" "-D__GLASGOW_HASKELL_TH__=1" "-D__SSE__=1" "-D__SSE2__=1" "-includeC:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_22.h" "-x" "assembler-with-cpp" "dist\build\Foreign\CUDA\Driver\Marshal.hs" "-o" "C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_21.hscpp"
*** C pre-processor:
"D:\install\ghc\8.0.2\lib/../mingw/bin/gcc.exe" "-E" "-undef" "-traditional" "-include" "dist\build\autogen\cabal_macros.h" "-I" "dist\build" "-I" "dist\build" "-I" "dist\build\autogen" "-I" "dist\build" "-I" "." "-I" "D:\install\ghc\8.0.2\lib\bytestring-0.10.8.1\include" "-I" "D:\install\ghc\8.0.2\lib\base-4.9.1.0\include" "-I" "D:\install\ghc\8.0.2\lib\integer-gmp-1.0.0.1\include" "-I" "D:\install\ghc\8.0.2\lib/include" "-D__GLASGOW_HASKELL__=800" "-include" "D:\install\ghc\8.0.2\lib/include\ghcversion.h" "-Dmingw32_BUILD_OS=1" "-Dx86_64_BUILD_ARCH=1" "-Dmingw32_HOST_OS=1" "-Dx86_64_HOST_ARCH=1" "-D__GLASGOW_HASKELL_TH__=1" "-D__SSE__=1" "-D__SSE2__=1" "-includeC:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_24.h" "-x" "assembler-with-cpp" "dist\build\Foreign\CUDA\Driver\Module\Base.hs" "-o" "C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_23.hscpp"
*** C pre-processor:
"D:\install\ghc\8.0.2\lib/../mingw/bin/gcc.exe" "-E" "-undef" "-traditional" "-include" "dist\build\autogen\cabal_macros.h" "-I" "dist\build" "-I" "dist\build" "-I" "dist\build\autogen" "-I" "dist\build" "-I" "." "-I" "D:\install\ghc\8.0.2\lib\bytestring-0.10.8.1\include" "-I" "D:\install\ghc\8.0.2\lib\base-4.9.1.0\include" "-I" "D:\install\ghc\8.0.2\lib\integer-gmp-1.0.0.1\include" "-I" "D:\install\ghc\8.0.2\lib/include" "-D__GLASGOW_HASKELL__=800" "-include" "D:\install\ghc\8.0.2\lib/include\ghcversion.h" "-Dmingw32_BUILD_OS=1" "-Dx86_64_BUILD_ARCH=1" "-Dmingw32_HOST_OS=1" "-Dx86_64_HOST_ARCH=1" "-D__GLASGOW_HASKELL_TH__=1" "-D__SSE__=1" "-D__SSE2__=1" "-includeC:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_26.h" "-x" "assembler-with-cpp" "dist\build\Foreign\CUDA\Driver\Module\Link.hs" "-o" "C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_25.hscpp"
*** C pre-processor:
"D:\install\ghc\8.0.2\lib/../mingw/bin/gcc.exe" "-E" "-undef" "-traditional" "-include" "dist\build\autogen\cabal_macros.h" "-I" "dist\build" "-I" "dist\build" "-I" "dist\build\autogen" "-I" "dist\build" "-I" "." "-I" "D:\install\ghc\8.0.2\lib\bytestring-0.10.8.1\include" "-I" "D:\install\ghc\8.0.2\lib\base-4.9.1.0\include" "-I" "D:\install\ghc\8.0.2\lib\integer-gmp-1.0.0.1\include" "-I" "D:\install\ghc\8.0.2\lib/include" "-D__GLASGOW_HASKELL__=800" "-include" "D:\install\ghc\8.0.2\lib/include\ghcversion.h" "-Dmingw32_BUILD_OS=1" "-Dx86_64_BUILD_ARCH=1" "-Dmingw32_HOST_OS=1" "-Dx86_64_HOST_ARCH=1" "-D__GLASGOW_HASKELL_TH__=1" "-D__SSE__=1" "-D__SSE2__=1" "-includeC:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_28.h" "-x" "assembler-with-cpp" "dist\build\Foreign\CUDA\Driver\Unified.hs" "-o" "C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_27.hscpp"
*** C pre-processor:
"D:\install\ghc\8.0.2\lib/../mingw/bin/gcc.exe" "-E" "-undef" "-traditional" "-include" "dist\build\autogen\cabal_macros.h" "-I" "dist\build" "-I" "dist\build" "-I" "dist\build\autogen" "-I" "dist\build" "-I" "." "-I" "D:\install\ghc\8.0.2\lib\bytestring-0.10.8.1\include" "-I" "D:\install\ghc\8.0.2\lib\base-4.9.1.0\include" "-I" "D:\install\ghc\8.0.2\lib\integer-gmp-1.0.0.1\include" "-I" "D:\install\ghc\8.0.2\lib/include" "-D__GLASGOW_HASKELL__=800" "-include" "D:\install\ghc\8.0.2\lib/include\ghcversion.h" "-Dmingw32_BUILD_OS=1" "-Dx86_64_BUILD_ARCH=1" "-Dmingw32_HOST_OS=1" "-Dx86_64_HOST_ARCH=1" "-D__GLASGOW_HASKELL_TH__=1" "-D__SSE__=1" "-D__SSE2__=1" "-includeC:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_30.h" "-x" "assembler-with-cpp" "dist\build\Foreign\CUDA\Runtime\Device.hs" "-o" "C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_29.hscpp"
*** C pre-processor:
"D:\install\ghc\8.0.2\lib/../mingw/bin/gcc.exe" "-E" "-undef" "-traditional" "-include" "dist\build\autogen\cabal_macros.h" "-I" "dist\build" "-I" "dist\build" "-I" "dist\build\autogen" "-I" "dist\build" "-I" "." "-I" "D:\install\ghc\8.0.2\lib\bytestring-0.10.8.1\include" "-I" "D:\install\ghc\8.0.2\lib\base-4.9.1.0\include" "-I" "D:\install\ghc\8.0.2\lib\integer-gmp-1.0.0.1\include" "-I" "D:\install\ghc\8.0.2\lib/include" "-D__GLASGOW_HASKELL__=800" "-include" "D:\install\ghc\8.0.2\lib/include\ghcversion.h" "-Dmingw32_BUILD_OS=1" "-Dx86_64_BUILD_ARCH=1" "-Dmingw32_HOST_OS=1" "-Dx86_64_HOST_ARCH=1" "-D__GLASGOW_HASKELL_TH__=1" "-D__SSE__=1" "-D__SSE2__=1" "-includeC:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_32.h" "-x" "assembler-with-cpp" "dist\build\Foreign\CUDA\Runtime\Event.hs" "-o" "C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_31.hscpp"
*** C pre-processor:
"D:\install\ghc\8.0.2\lib/../mingw/bin/gcc.exe" "-E" "-undef" "-traditional" "-include" "dist\build\autogen\cabal_macros.h" "-I" "dist\build" "-I" "dist\build" "-I" "dist\build\autogen" "-I" "dist\build" "-I" "." "-I" "D:\install\ghc\8.0.2\lib\bytestring-0.10.8.1\include" "-I" "D:\install\ghc\8.0.2\lib\base-4.9.1.0\include" "-I" "D:\install\ghc\8.0.2\lib\integer-gmp-1.0.0.1\include" "-I" "D:\install\ghc\8.0.2\lib/include" "-D__GLASGOW_HASKELL__=800" "-include" "D:\install\ghc\8.0.2\lib/include\ghcversion.h" "-Dmingw32_BUILD_OS=1" "-Dx86_64_BUILD_ARCH=1" "-Dmingw32_HOST_OS=1" "-Dx86_64_HOST_ARCH=1" "-D__GLASGOW_HASKELL_TH__=1" "-D__SSE__=1" "-D__SSE2__=1" "-includeC:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_34.h" "-x" "assembler-with-cpp" "dist\build\Foreign\CUDA\Runtime\Exec.hs" "-o" "C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_33.hscpp"

<no location info>: error:
    module `Foreign.CUDA.Path' is a package module
*** Deleting temp files:
Deleting: C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_34.h C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_33.hscpp C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_32.h C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_31.hscpp C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_30.h C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_29.hscpp C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_28.h C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_27.hscpp C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_26.h C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_25.hscpp C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_24.h C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_23.hscpp C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_22.h C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_21.hscpp C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_20.h C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_19.hscpp C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_18.h C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_17.hscpp C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_16.h C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_15.hscpp C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_14.h C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_13.hscpp C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_12.h C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_11.hscpp C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_10.h C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_9.hscpp C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_8.h C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_7.hscpp C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_6.h C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_5.hscpp C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_4.h C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_3.hscpp C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_2.h C:\Users\Steven\AppData\Local\Temp\ghc10696_0\ghc_1.hscpp
*** Deleting temp dirs:
Deleting: C:\Users\Steven\AppData\Local\Temp\ghc10696_0
D:\install\ghc\8.0.2\bin\ghc.exe returned ExitFailure 1
cabal: Leaving directory '.'

from cuda.

tmcdonell avatar tmcdonell commented on July 22, 2024

I have not seen this error before actually.

  • What is cabal --version?

  • Make sure this is from a clean build (delete the dist directory etc.; I saw one bug report which implied it might be related to a previously failed phase (e.g. c2hs) and then rebuilding)

  • You could try building with stack (as a bit of a long shot...)

from cuda.

tmcdonell avatar tmcdonell commented on July 22, 2024

Might also be worth checking if that file got generated correctly. After cabal new-build it lives at ./dist-newstyle/build/cuda-0.8.0.0/build/Foreign/CUDA/Path.hs for me.

from cuda.

yuhangwang avatar yuhangwang commented on July 22, 2024

I am using the latest cabal (version 1.24.0.2)

PS C:\Users\Steven> cabal --version
cabal-install version 1.24.0.2
compiled using version 1.24.2.0 of the Cabal library

from cuda.

yuhangwang avatar yuhangwang commented on July 22, 2024

Path.hs wasn't generated. I only got Path.chs.h and Path.i under .\dist-newstyle\build\cuda-0.8.0.0\build\Foreign\CUDA.

Here is Path.chs.h.

PS G:\DEVElop\haskell-cuda> Get-Content .\dist-newstyle\build\cuda-0.8.0.0\build\Foreign\CUDA\
Path.chs.h                                                                                    
#define C2HS_MIN_VERSION(mj,mn,rv) ((mj)<=C2HS_VERSION_MAJOR && (mn)<=C2HS_VERSION_MINOR && ( 
rv)<=C2HS_VERSION_REV)                                                                        
int __c2hs__const__0 = CUDA_INSTALL_PATH;                                                     
int __c2hs__const__1 = CUDA_LIBRARY_PATH;                                                     

Here is Path.i.

PS G:\DEVElop\haskell-cuda> Get-Content .\dist-newstyle\build\cuda-0.8.0.0\build\Foreign\CUDA\
Path.i                                                                                        
# 1 "G:\\DEVElop\\haskell-cuda\\dist-newstyle\\build\\cuda-0.8.0.0\\build\\Foreign\\CUDA\\Pat 
h.chs.h"                                                                                      
# 1 "<built-in>"                                                                              
# 1 "<command-line>"                                                                          
# 1 "G:\\DEVElop\\haskell-cuda\\dist-newstyle\\build\\cuda-0.8.0.0\\build\\Foreign\\CUDA\\Pat 
h.chs.h"                                                                                      
                                                                                              
int __c2hs__const__0 = "D:\install\cuda\8.0\toolkit";                                         
int __c2hs__const__1 = "D:\install\cuda\8.0\toolkit\lib/x64";                                 

from cuda.

yuhangwang avatar yuhangwang commented on July 22, 2024

Here is the output of stack.

PS G:\DEVElop\haskell-cuda> stack build
Cabal file warning in G:\DEVElop\haskell-cuda\cuda.cabal: Ignoring unknown section type: custom-setup
cuda-0.8.0.0: configure
[1 of 1] Compiling Main             ( G:\DEVElop\haskell-cuda\Setup.hs, G:\DEVElop\haskell-cuda\.stack-work\dist\ca59d0ab\setup\Main.o )
Linking G:\DEVElop\haskell-cuda\.stack-work\dist\ca59d0ab\setup\setup.exe ...
Configuring cuda-0.8.0.0...
Found CUDA toolkit at: D:\install\cuda\8.0\toolkit
Storing parameters to cuda.buildinfo.generated
Using build information from 'cuda.buildinfo.generated'.
Provide a 'cuda.buildinfo' file to override this behaviour.
cuda-0.8.0.0: build
Using build information from 'cuda.buildinfo.generated'.
Provide a 'cuda.buildinfo' file to override this behaviour.
Preprocessing library cuda-0.8.0.0...
c2hs.exe: C header contains errors:

.stack-work\\dist\\ca59d0ab\\build\\Foreign\\CUDA\\Path.chs.h:2: (column 24) [ERROR]  >>> Lexical error !
  The character '"' does not fit here.


--  While building package cuda-0.8.0.0 using:
      G:\DEVElop\haskell-cuda\.stack-work\dist\ca59d0ab\setup\setup --builddir=.stack-work\dist\ca59d0ab build lib:cuda exe:nvidia-device-query --ghc-options " -ddump-hi -ddump-to-file"
    Process exited with code: ExitFailure 1

And here is the content of Path.chs.h.

PS G:\DEVElop\haskell-cuda> Get-Content .stack-work\\dist\\ca59d0ab\\build\\Foreign\\CUDA\\Path.chs.h
#define C2HS_MIN_VERSION(mj,mn,rv) ((mj)<=C2HS_VERSION_MAJOR && (mn)<=C2HS_VERSION_MINOR && ( rv)<=C2HS_VERSION_REV)
int __c2hs__const__0 = CUDA_INSTALL_PATH;
int __c2hs__const__1 = CUDA_LIBRARY_PATH;

By the way, I don't have CUDA_INSTALL_PATH or CUDA_LIBRARY_PATH in my environment variables, but I have CUDA_PATH and CUDA_PATH_V8_0.

PS G:\DEVElop\haskell-cuda> $env:CUDA_PATH
D:\install\cuda\8.0\toolkit
PS G:\DEVElop\haskell-cuda> $env:CUDA_PATH_V8_0
D:\install\cuda\8.0\toolkit

from cuda.

tmcdonell avatar tmcdonell commented on July 22, 2024

I don't have Path.i, but I think that gets deleted once c2hs completes successfully. The Path.chs.h file is the same as mine.

The CUDA_LIBRARY_PATH and CUDA_INSTALL_PATH variables are generated by the Setup.hs script.

What is the contents of the cuda.buldinfo.generated file (should be generated by the configure phase, which it looks like you get through successfully)? If anything in there looks wrong, you can edit the file and save it as cuda.buildinfo and it will use that instead. Here is mine (macOS):

buildable: True
cc-options: -DCUDA_INSTALL_PATH="/usr/local/cuda-versions/8.0"
            -DCUDA_LIBRARY_PATH="/usr/local/cuda-versions/8.0/lib"
            -I/usr/local/cuda-versions/8.0/include
ld-options: -L/usr/local/cuda-versions/8.0/lib
frameworks: CUDA
extra-libraries:
    cudadevrt
    cudart_static
extra-ghci-libraries: cudart
extra-lib-dirs: /usr/local/cuda-versions/8.0/lib
ghc-options: -optc-DCUDA_INSTALL_PATH="/usr/local/cuda-versions/8.0" -optc-DCUDA_LIBRARY_PATH="/usr/local/cuda-versions/8.0/lib" -optc-I/usr/local/cuda-versions/8.0/include -optl-L/usr/local/cuda-versions/8.0/lib -optl-Wl,-rpath,/usr/local/cuda-versions/8.0/lib
x-extra-c2hs-options: --cppopts=-E --cppopts=-m64 --cppopts=-DUSE_EMPTY_CASE --cppopts=-U__BLOCKS__

from cuda.

yuhangwang avatar yuhangwang commented on July 22, 2024

Here is my cuda.buildinfo.generated.

buildable: True
cc-options: -DCUDA_INSTALL_PATH="D:\install\cuda\8.0\toolkit"
            -DCUDA_LIBRARY_PATH="D:\install\cuda\8.0\toolkit\lib/x64"
            -ID:\install\cuda\8.0\toolkit\include
ld-options: -LD:\install\cuda\8.0\toolkit\lib/x64
extra-libraries:
    cudart
    cuda
extra-ghci-libraries: cudart64_80
                      nvcuda
extra-lib-dirs: D:\install\cuda\8.0\toolkit\lib/x64
x-extra-c2hs-options: --cppopts=-E --cppopts=-m64 --cppopts=-DUSE_EMPTY_CASE

from cuda.

tmcdonell avatar tmcdonell commented on July 22, 2024

does it make a difference if you copy that to cuda.buildinfo and put all of the paths into quotes? e.g. -I"D:\install\cuda\8.0\toolkit\include" etc.

from cuda.

yuhangwang avatar yuhangwang commented on July 22, 2024

Here is the content of my cuda.buildinfo.

buildable: True
cc-options: -DCUDA_INSTALL_PATH="D:\install\cuda\8.0\toolkit"
            -DCUDA_LIBRARY_PATH="D:\install\cuda\8.0\toolkit\lib\x64"
            -I"D:\install\cuda\8.0\toolkit\include"
ld-options: -L"D:\install\cuda\8.0\toolkit\lib\x64"
extra-libraries:
    cudart
    cuda
extra-ghci-libraries: cudart64_80
                      nvcuda

extra-lib-dirs: "D:\install\cuda\8.0\toolkit\lib\x64"
x-extra-c2hs-options: --cppopts=-E --cppopts=-m64 --cppopts=-DUSE_EMPTY_CASE

And here is the output of cabal install.

Resolving dependencies...
Configuring cuda-0.8.0.0...
Failed to install cuda-0.8.0.0
Build log ( C:\Users\Steven\AppData\Roaming\cabal\logs\cuda-0.8.0.0.log ):
cabal: Entering directory '.'
[1 of 1] Compiling Main             ( dist\setup\setup.hs, dist\setup\Main.o )
Linking .\dist\setup\setup.exe ...
Configuring cuda-0.8.0.0...
Found CUDA toolkit at: D:\install\cuda\8.0\toolkit
Storing parameters to cuda.buildinfo.generated
The user-provided buildinfo from file cuda.buildinfo will be used. To use
default settings, delete this file.
setup.exe: Missing dependencies on foreign libraries:
* Missing C libraries: cudart, cuda
This problem can usually be solved by installing the system packages that
provide these libraries (you may need the "-dev" versions). If the libraries
are already installed but in a non-standard location then you can use the
flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.
cabal: Leaving directory '.'
cabal.exe: Error: some packages failed to install:
cuda-0.8.0.0 failed during the configure step. The exception was:
ExitFailure 1

from cuda.

yuhangwang avatar yuhangwang commented on July 22, 2024

Here is the result of removing the double quotes from extra-lib-dirs.

buildable: True
cc-options: -DCUDA_INSTALL_PATH="D:\install\cuda\8.0\toolkit"
            -DCUDA_LIBRARY_PATH="D:\install\cuda\8.0\toolkit\lib\x64"
            -I"D:\install\cuda\8.0\toolkit\include"
ld-options: -L"D:\install\cuda\8.0\toolkit\lib\x64"
extra-libraries:
    cudart
    cuda
extra-ghci-libraries: cudart64_80
                      nvcuda

extra-lib-dirs: D:\install\cuda\8.0\toolkit\lib\x64
x-extra-c2hs-options: --cppopts=-E --cppopts=-m64 --cppopts=-DUSE_EMPTY_CASE

output:

PS G:\DEVELOP\haskell-cuda> cabal install
Resolving dependencies...
Configuring cuda-0.8.0.0...
Building cuda-0.8.0.0...
Failed to install cuda-0.8.0.0
Build log ( C:\Users\Steven\AppData\Roaming\cabal\logs\cuda-0.8.0.0.log ):
The user-provided buildinfo from file cuda.buildinfo will be used. To use
default settings, delete this file.
Building cuda-0.8.0.0...
Preprocessing library cuda-0.8.0.0...
c2hs.exe: C header contains errors:

dist\\build\\Foreign\\CUDA\\Path.chs.h:2: (column 24) [ERROR]  >>> Lexical error !
  The character '"' does not fit here.

 To use
default settings, delete this file.
cabal: Leaving directory '.'
cabal.exe: Error: some packages failed to install:
cuda-0.8.0.0 failed during the building phase. The exception was:
ExitFailure 1

from cuda.

tmcdonell avatar tmcdonell commented on July 22, 2024

Try removing all the double quotes?

from cuda.

yuhangwang avatar yuhangwang commented on July 22, 2024

Here is another version using your cuda.buildinfo as template.

buildable: True
cc-options: -DCUDA_INSTALL_PATH="D:\install\cuda\8.0\toolkit"
            -DCUDA_LIBRARY_PATH="D:\install\cuda\8.0\toolkit\lib\x64"
            -I"D:\install\cuda\8.0\toolkit\include"
ld-options: -L"D:\install\cuda\8.0\toolkit\lib\x64"
frameworks: CUDA
extra-libraries:
    cudart_static
    cudadevrt
extra-ghci-libraries: cudart

ghc-options: -optc-DCUDA_INSTALL_PATH="D:\install\cuda\8.0\toolkit" -optc-DCUDA_LIBRARY_PATH="D:\install\cuda\8.0\toolkit\lib" -optc-ID:\install\cuda\8.0\toolkit/include -optl-LD:\install\cuda\8.0\toolkit\lib -optl-Wl,-rpath,D:\install\cuda\8.0\toolkit\lib

extra-lib-dirs: D:\install\cuda\8.0\toolkit\lib\x64
x-extra-c2hs-options: --cppopts=-E --cppopts=-m64 --cppopts=-DUSE_EMPTY_CASE --cppopts=-U__BLOCKS__

I still got the same error.

PS G:\DEVELOP\haskell-cuda> cabal install
Resolving dependencies...
Configuring cuda-0.8.0.0...
Building cuda-0.8.0.0...
Failed to install cuda-0.8.0.0
Build log ( C:\Users\Steven\AppData\Roaming\cabal\logs\cuda-0.8.0.0.log ):
The user-provided buildinfo from file cuda.buildinfo will be used. To use
default settings, delete this file.
Building cuda-0.8.0.0...
Preprocessing library cuda-0.8.0.0...
c2hs.exe: C header contains errors:

dist\\build\\Foreign\\CUDA\\Path.chs.h:2: (column 24) [ERROR]  >>> Lexical error !
  The character '"' does not fit here.

 To use
default settings, delete this file.
cabal: Leaving directory '.'
cabal.exe: Error: some packages failed to install:
cuda-0.8.0.0 failed during the building phase. The exception was:
ExitFailure 1

from cuda.

yuhangwang avatar yuhangwang commented on July 22, 2024

I cannot remove all the double quotes due to the restriction of yaml-ish syntax of the cuda.buildinfo file.

buildable: True
cc-options: -DCUDA_INSTALL_PATH=D:\install\cuda\8.0\toolkit
            -DCUDA_LIBRARY_PATH=D:\install\cuda\8.0\toolkit\lib\x64
            -ID:\install\cuda\8.0\toolkit\include
ld-options: -LD:\install\cuda\8.0\toolkit\lib\x64
frameworks: CUDA
extra-libraries:
    cudart_static
    cudadevrt
extra-ghci-libraries: cudart

ghc-options: -optc-DCUDA_INSTALL_PATH=D:\install\cuda\8.0\toolkit -optc-DCUDA_LIBRARY_PATH=D:\install\cuda\8.0\toolkit\lib -optc-ID:\install\cuda\8.0\toolkit/include -optl-LD:\install\cuda\8.0\toolkit\lib -optl-Wl,-rpath,D:\install\cuda\8.0\toolkit\lib

extra-lib-dirs: D:\install\cuda\8.0\toolkit\lib\x64
x-extra-c2hs-options: --cppopts=-E --cppopts=-m64 --cppopts=-DUSE_EMPTY_CASE --cppopts=-U__BLOCKS__
PS G:\DEVELOP\haskell-cuda> cabal install
Resolving dependencies...
Configuring cuda-0.8.0.0...
Building cuda-0.8.0.0...
Failed to install cuda-0.8.0.0
Build log ( C:\Users\Steven\AppData\Roaming\cabal\logs\cuda-0.8.0.0.log ):
The user-provided buildinfo from file cuda.buildinfo will be used. To use
default settings, delete this file.
Building cuda-0.8.0.0...
Preprocessing library cuda-0.8.0.0...
c2hs.exe: C header contains errors:

dist\\build\\Foreign\\CUDA\\Path.chs.h:2: (column 25) [ERROR]  >>> Syntax error !
  The symbol `:' does not fit here.

sed. To use
default settings, delete this file.
cabal: Leaving directory '.'
cabal.exe: Error: some packages failed to install:
cuda-0.8.0.0 failed during the building phase. The exception was:
ExitFailure 1

from cuda.

tmcdonell avatar tmcdonell commented on July 22, 2024

Try this?

buildable: True
cc-options: -DCUDA_INSTALL_PATH="D:\install\cuda\8.0\toolkit"
            -DCUDA_LIBRARY_PATH="D:\install\cuda\8.0\toolkit\lib\x64"
            -I"D:\install\cuda\8.0\toolkit\include"
ld-options: -L"D:\install\cuda\8.0\toolkit\lib\x64"
extra-libraries:
    cudart
    cuda
extra-ghci-libraries: cudart64_80
                      nvcuda

extra-lib-dirs: D:\install\cuda\8.0\toolkit\lib\x64
x-extra-c2hs-options: --cppopts=-E --cppopts=-m64 --cppopts=-DUSE_EMPTY_CASE --cppopts=-DCUDA_INSTALL_PATH="D:\install\cuda\8.0\toolkit" --cppopts=-DCUDA_LIBRARY_PATH="D:\install\cuda\8.0\toolkit\lib\x64"

(it just adds the CUDA_INSTALL_PATH and CUDA_LIBRARY_PATH options to x-extra-c2hs-options)

from cuda.

yuhangwang avatar yuhangwang commented on July 22, 2024

Same error :(

buildable: True
cc-options: -DCUDA_INSTALL_PATH="D:\install\cuda\8.0\toolkit"
            -DCUDA_LIBRARY_PATH="D:\install\cuda\8.0\toolkit\lib\x64"
            -I"D:\install\cuda\8.0\toolkit\include"
ld-options: -L"D:\install\cuda\8.0\toolkit\lib\x64"
extra-libraries:
    cudart
    cuda
extra-ghci-libraries: cudart64_80
                      nvcuda

extra-lib-dirs: D:\install\cuda\8.0\toolkit\lib\x64
x-extra-c2hs-options: --cppopts=-E --cppopts=-m64 --cppopts=-DUSE_EMPTY_CASE --cppopts=-DCUDA_INSTALL_PATH="D:\install\cuda\8.0\toolkit" --cppopts=-DCUDA_LIBRARY_PATH="D:\install\cuda\8.0\toolkit\lib\x64"
PS G:\DEVELOP\haskell-cuda> cabal install
Resolving dependencies...
Configuring cuda-0.8.0.0...
Building cuda-0.8.0.0...
Failed to install cuda-0.8.0.0
Build log ( C:\Users\Steven\AppData\Roaming\cabal\logs\cuda-0.8.0.0.log ):
The user-provided buildinfo from file cuda.buildinfo will be used. To use
default settings, delete this file.
Building cuda-0.8.0.0...
Preprocessing library cuda-0.8.0.0...
c2hs.exe: C header contains errors:

dist\\build\\Foreign\\CUDA\\Path.chs.h:2: (column 24) [ERROR]  >>> Lexical error !
  The character '"' does not fit here.

 To use
default settings, delete this file.
cabal: Leaving directory '.'
cabal.exe: Error: some packages failed to install:
cuda-0.8.0.0 failed during the building phase. The exception was:
ExitFailure 1

from cuda.

yuhangwang avatar yuhangwang commented on July 22, 2024

I also tried using Git Bash. No luck there, although the error is different.

buildable: True
cc-options: -DCUDA_INSTALL_PATH=/d/install/cuda/8.0/toolkit
            -DCUDA_LIBRARY_PATH=/d/install/cuda/8.0/toolkit/lib/x64
            -I/d/install/cuda/8.0/toolkit/include
ld-options: -L/d/install/cuda/8.0/toolkit/lib/x64
extra-libraries:
    cudart
    cuda
extra-ghci-libraries: cudart64_80
                      nvcuda

extra-lib-dirs: /d/install/cuda/8.0/toolkit/lib/x64
x-extra-c2hs-options: --cppopts=-E --cppopts=-m64 --cppopts=-DUSE_EMPTY_CASE
$ cabal install
Resolving dependencies...
Configuring cuda-0.8.0.0...
Failed to install cuda-0.8.0.0
Build log ( C:\Users\Steven\AppData\Roaming\cabal\logs\cuda-0.8.0.0.log ):
cabal: Entering directory '.'
[1 of 1] Compiling Main             ( dist\setup\setup.hs, dist\setup\Main.o )
Linking .\dist\setup\setup.exe ...
Configuring cuda-0.8.0.0...
Found CUDA toolkit at: D:\install\cuda\8.0\toolkit
Storing parameters to cuda.buildinfo.generated
The user-provided buildinfo from file cuda.buildinfo will be used. To use
default settings, delete this file.
setup.exe: Missing dependencies on foreign libraries:
* Missing C libraries: cudart, cuda
This problem can usually be solved by installing the system packages that
provide these libraries (you may need the "-dev" versions). If the libraries
are already installed but in a non-standard location then you can use the
flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.
cabal: Leaving directory '.'
cabal.exe: Error: some packages failed to install:
cuda-0.8.0.0 failed during the configure step. The exception was:
ExitFailure 1

from cuda.

yuhangwang avatar yuhangwang commented on July 22, 2024

Can I bypass the auto-generation of Path.chs.h and write the correct version out by hand?

from cuda.

tmcdonell avatar tmcdonell commented on July 22, 2024

Yes, just edit "Foreign/CUDA/Path.chs" to have the right paths and it should all work fine.

(I'm really not sure what is going on here; cpp / c2hs might have different behaviour on windows??)

from cuda.

tmcdonell avatar tmcdonell commented on July 22, 2024

e.g. just replace this line with:

cudaInstallPath :: FilePath
cudaInstallPath = "D:\install\cuda\8.0\toolkit"

from cuda.

yuhangwang avatar yuhangwang commented on July 22, 2024

Thanks. How do I change Setup.hs to avoid calling c2hs.exe? The build process stops because of this error.

c2hs.exe: C header contains errors:

dist\\build\\Foreign\\CUDA\\Path.chs.h:2: (column 24) [ERROR]  >>> Lexical error !
  The character '"' does not fit here.

from cuda.

tmcdonell avatar tmcdonell commented on July 22, 2024

Try a clean build first, or delete the dist directory. It is probably picking up an old (broken) version.

Otherwise, rename the file to "Path.hs", rather than "Path.chs"

from cuda.

yuhangwang avatar yuhangwang commented on July 22, 2024

Opps! I forgot to rename that file.

from cuda.

yuhangwang avatar yuhangwang commented on July 22, 2024

I still can't do a clean build without being stopped by the Lexcial error I mentioned earlier. I wrote the dist\build\Foreign\CUDA\Path.hs file by hand and did cabal build again. There were some ugly warnings, but the build process finished. Here is the log.

PS G:\DEVELOP\haskell-cuda> cabal build
Package has never been configured. Configuring with default flags. If this
fails, please run configure manually.
Resolving dependencies...
[1 of 1] Compiling Main             ( dist\setup\setup.hs, dist\setup\Main.o )
Linking .\dist\setup\setup.exe ...
Configuring cuda-0.8.0.0...
Found CUDA toolkit at: D:\install\cuda\8.0\toolkit
Storing parameters to cuda.buildinfo.generated
The user-provided buildinfo from file cuda.buildinfo will be used. To use
default settings, delete this file.
The user-provided buildinfo from file cuda.buildinfo will be used. To use
default settings, delete this file.
Building cuda-0.8.0.0...
Preprocessing library cuda-0.8.0.0...
c2hs.exe: C header contains errors:

dist\\build\\Foreign\\CUDA\\Path.chs.h:2: (column 24) [ERROR]  >>> Lexical error !
  The character '"' does not fit here.

PS G:\DEVELOP\haskell-cuda> cabal build
The user-provided buildinfo from file cuda.buildinfo will be used. To use
default settings, delete this file.
Building cuda-0.8.0.0...
Preprocessing library cuda-0.8.0.0...
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Types.chs.h:5:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Analysis\Device.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Context\Base.chs.h:5:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Context\Config.chs.h:5:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Context\Peer.chs.h:5:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Context\Primary.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Device.chs.h:5:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Error.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Event.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Exec.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\IPC\Event.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\IPC\Marshal.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Marshal.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Module\Base.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Module\Link.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Module\Query.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Profiler.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Stream.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Texture.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Unified.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Utils.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Runtime\Device.chs.h:5:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Runtime\Error.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Runtime\Event.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Runtime\Exec.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Runtime\Marshal.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Runtime\Stream.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Runtime\Texture.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Runtime\Utils.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
[ 1 of 40] Compiling Text.Show.Describe ( src\Text\Show\Describe.hs, dist\build\Text\Show\Describe.o )
[ 2 of 40] Compiling Foreign.CUDA.Types ( dist\build\Foreign\CUDA\Types.hs, dist\build\Foreign\CUDA\Types.o )
[ 3 of 40] Compiling Foreign.CUDA.Ptr ( src\Foreign\CUDA\Ptr.hs, dist\build\Foreign\CUDA\Ptr.o )
[ 4 of 40] Compiling Foreign.CUDA.Path ( dist\build\Foreign\CUDA\Path.hs, dist\build\Foreign\CUDA\Path.o )

dist\build\Foreign\CUDA\Path.hs:23:19: error:
    parse error on input `{'
[ 5 of 40] Compiling Foreign.CUDA.Internal.C2HS ( src\Foreign\CUDA\Internal\C2HS.hs, dist\build\Foreign\CUDA\Internal\C2HS.o )

src\Foreign\CUDA\Internal\C2HS.hs:202:3: warning: [-Winline-rule-shadowing]
    Rule "cFloatConv/CFloat->Float" may never fire
      because `Foreign.C.Types.CFloat' might inline first
    Probable fix: add an INLINE[n] or NOINLINE[n] pragma for `Foreign.C.Types.CFloat'

src\Foreign\CUDA\Internal\C2HS.hs:204:3: warning: [-Winline-rule-shadowing]
    Rule "cFloatConv/CDouble->Double" may never fire
      because `Foreign.C.Types.CDouble' might inline first
    Probable fix: add an INLINE[n] or NOINLINE[n] pragma for `Foreign.C.Types.CDouble'
[ 6 of 40] Compiling Foreign.CUDA.Runtime.Error ( dist\build\Foreign\CUDA\Runtime\Error.hs, dist\build\Foreign\CUDA\Runtime\Error.o )
[ 7 of 40] Compiling Foreign.CUDA.Runtime.Event ( dist\build\Foreign\CUDA\Runtime\Event.hs, dist\build\Foreign\CUDA\Runtime\Event.o )
[ 8 of 40] Compiling Foreign.CUDA.Runtime.Stream ( dist\build\Foreign\CUDA\Runtime\Stream.hs, dist\build\Foreign\CUDA\Runtime\Stream.o )
[ 9 of 40] Compiling Foreign.CUDA.Runtime.Exec ( dist\build\Foreign\CUDA\Runtime\Exec.hs, dist\build\Foreign\CUDA\Runtime\Exec.o )
[10 of 40] Compiling Foreign.CUDA.Runtime.Marshal ( dist\build\Foreign\CUDA\Runtime\Marshal.hs, dist\build\Foreign\CUDA\Runtime\Marshal.o )
[11 of 40] Compiling Foreign.CUDA.Runtime.Texture ( dist\build\Foreign\CUDA\Runtime\Texture.hs, dist\build\Foreign\CUDA\Runtime\Texture.o )
[12 of 40] Compiling Foreign.CUDA.Runtime.Utils ( dist\build\Foreign\CUDA\Runtime\Utils.hs, dist\build\Foreign\CUDA\Runtime\Utils.o )
[13 of 40] Compiling Foreign.CUDA.Driver.Error ( dist\build\Foreign\CUDA\Driver\Error.hs, dist\build\Foreign\CUDA\Driver\Error.o )
[14 of 40] Compiling Foreign.CUDA.Driver.Event ( dist\build\Foreign\CUDA\Driver\Event.hs, dist\build\Foreign\CUDA\Driver\Event.o )
[15 of 40] Compiling Foreign.CUDA.Driver.IPC.Event ( dist\build\Foreign\CUDA\Driver\IPC\Event.hs, dist\build\Foreign\CUDA\Driver\IPC\Event.o )
[16 of 40] Compiling Foreign.CUDA.Driver.Profiler ( dist\build\Foreign\CUDA\Driver\Profiler.hs, dist\build\Foreign\CUDA\Driver\Profiler.o )
[17 of 40] Compiling Foreign.CUDA.Driver.Stream ( dist\build\Foreign\CUDA\Driver\Stream.hs, dist\build\Foreign\CUDA\Driver\Stream.o )
[18 of 40] Compiling Foreign.CUDA.Driver.Utils ( dist\build\Foreign\CUDA\Driver\Utils.hs, dist\build\Foreign\CUDA\Driver\Utils.o )
[19 of 40] Compiling Foreign.CUDA.Analysis.Device ( dist\build\Foreign\CUDA\Analysis\Device.hs, dist\build\Foreign\CUDA\Analysis\Device.o )
[20 of 40] Compiling Foreign.CUDA.Analysis.Occupancy ( src\Foreign\CUDA\Analysis\Occupancy.hs, dist\build\Foreign\CUDA\Analysis\Occupancy.o )
[21 of 40] Compiling Foreign.CUDA.Driver.Device ( dist\build\Foreign\CUDA\Driver\Device.hs, dist\build\Foreign\CUDA\Driver\Device.o )
[22 of 40] Compiling Foreign.CUDA.Driver.Context.Base ( dist\build\Foreign\CUDA\Driver\Context\Base.hs, dist\build\Foreign\CUDA\Driver\Context\Base.o )
[23 of 40] Compiling Foreign.CUDA.Driver.Context.Config ( dist\build\Foreign\CUDA\Driver\Context\Config.hs, dist\build\Foreign\CUDA\Driver\Context\Config.o )
[24 of 40] Compiling Foreign.CUDA.Driver.Context.Peer ( dist\build\Foreign\CUDA\Driver\Context\Peer.hs, dist\build\Foreign\CUDA\Driver\Context\Peer.o )
[25 of 40] Compiling Foreign.CUDA.Driver.Context ( src\Foreign\CUDA\Driver\Context.hs, dist\build\Foreign\CUDA\Driver\Context.o )
[26 of 40] Compiling Foreign.CUDA.Driver.Exec ( dist\build\Foreign\CUDA\Driver\Exec.hs, dist\build\Foreign\CUDA\Driver\Exec.o )
[27 of 40] Compiling Foreign.CUDA.Driver.Context.Primary ( dist\build\Foreign\CUDA\Driver\Context\Primary.hs, dist\build\Foreign\CUDA\Driver\Context\Primary.o )
[28 of 40] Compiling Foreign.CUDA.Driver.Marshal ( dist\build\Foreign\CUDA\Driver\Marshal.hs, dist\build\Foreign\CUDA\Driver\Marshal.o )
[29 of 40] Compiling Foreign.CUDA.Driver.IPC.Marshal ( dist\build\Foreign\CUDA\Driver\IPC\Marshal.hs, dist\build\Foreign\CUDA\Driver\IPC\Marshal.o )
[30 of 40] Compiling Foreign.CUDA.Driver.Texture ( dist\build\Foreign\CUDA\Driver\Texture.hs, dist\build\Foreign\CUDA\Driver\Texture.o )
[31 of 40] Compiling Foreign.CUDA.Driver.Unified ( dist\build\Foreign\CUDA\Driver\Unified.hs, dist\build\Foreign\CUDA\Driver\Unified.o )
[32 of 40] Compiling Foreign.CUDA.Driver.Module.Base ( dist\build\Foreign\CUDA\Driver\Module\Base.hs, dist\build\Foreign\CUDA\Driver\Module\Base.o )
[33 of 40] Compiling Foreign.CUDA.Driver.Module.Link ( dist\build\Foreign\CUDA\Driver\Module\Link.hs, dist\build\Foreign\CUDA\Driver\Module\Link.o )
[34 of 40] Compiling Foreign.CUDA.Driver.Module.Query ( dist\build\Foreign\CUDA\Driver\Module\Query.hs, dist\build\Foreign\CUDA\Driver\Module\Query.o )
[35 of 40] Compiling Foreign.CUDA.Driver.Module ( src\Foreign\CUDA\Driver\Module.hs, dist\build\Foreign\CUDA\Driver\Module.o )
[36 of 40] Compiling Foreign.CUDA.Driver ( src\Foreign\CUDA\Driver.hs, dist\build\Foreign\CUDA\Driver.o )
[37 of 40] Compiling Foreign.CUDA.Runtime.Device ( dist\build\Foreign\CUDA\Runtime\Device.hs, dist\build\Foreign\CUDA\Runtime\Device.o )
[38 of 40] Compiling Foreign.CUDA.Runtime ( src\Foreign\CUDA\Runtime.hs, dist\build\Foreign\CUDA\Runtime.o )
[39 of 40] Compiling Foreign.CUDA.Analysis ( src\Foreign\CUDA\Analysis.hs, dist\build\Foreign\CUDA\Analysis.o )
[40 of 40] Compiling Foreign.CUDA     ( src\Foreign\CUDA.hs, dist\build\Foreign\CUDA.o )

from cuda.

yuhangwang avatar yuhangwang commented on July 22, 2024

Thanks again for being so helpful! Is there a way to prevent c2hs.exe from getting in the way? I mean letting c2hs.exe proceed even when the Lexcial error occurs?

from cuda.

tmcdonell avatar tmcdonell commented on July 22, 2024

Glad you got it to build! I am really sorry that it has been so difficult for you \:

I'm not sure where that lexical error comes from, even after you manually edited the Path.hs file; it really shouldn't be doing anything to that file at all.

The windows build configuration has been contributed by others, as I really don't have much experience with windows, so not sure if all of those warnings are to be expected or not.

I'm not sure why you got this as well, even though it seems to complete?

dist\build\Foreign\CUDA\Path.hs:23:19: error:
    parse error on input `{'

maybe c2hs on windows doesn't correctly handle the {# const ... #} syntax ?

from cuda.

yuhangwang avatar yuhangwang commented on July 22, 2024

I think c2hs.exe doesn't check whether Path.hs exists or not. It always try to generate Path.chs.h which contains the Lexical error. The dist\build\Foreign\CUDA\Path.hs:23:19: error: was caused by this line

cudaInstallPath :: FilePath
cudaInstallPath = {#const CUDA_INSTALL_PATH#}

That was due to my error because I modified another line instead:

cudaLibraryPath :: FilePath
cudaLibraryPath = "D:\install\cuda\8.0\toolkit"

I will build again.

from cuda.

yuhangwang avatar yuhangwang commented on July 22, 2024

Here is the result of the new build with this Path.hs.

{-# LANGUAGE CPP #-}
--------------------------------------------------------------------------------
-- |
-- Module    : Foreign.CUDA.Path
-- Copyright : [2017] Trevor L. McDonell
-- License   : BSD
--
--------------------------------------------------------------------------------

module Foreign.CUDA.Path (

  cudaInstallPath,
  cudaBinPath, cudaLibraryPath, cudaIncludePath,

) where

import System.FilePath

-- | The base path to the CUDA toolkit installation that this package was
-- compiled against.
--
cudaInstallPath :: FilePath
cudaInstallPath = "D:\\install\\cuda\\8.0\\toolkit"

-- | The path where the CUDA toolkit executables, such as @nvcc@ and @ptxas@,
-- can be found.
--
cudaBinPath :: FilePath
cudaBinPath = cudaInstallPath </> "bin"

-- | The path where the CUDA libraries this package was linked against are
-- located
--
cudaLibraryPath :: FilePath
cudaLibraryPath = "D:\\install\\cuda\\8.0\\toolkit"

-- | The path where the CUDA headers this package was built against are located
--
cudaIncludePath :: FilePath
cudaIncludePath = cudaInstallPath </> "include"

Here is the terminal output. Not sure what the error means.

PS G:\DEVELOP\haskell-cuda> cabal build | Tee-Object -file build.log
The user-provided buildinfo from file cuda.buildinfo will be used. To use
default settings, delete this file.
Building cuda-0.8.0.0...
Preprocessing library cuda-0.8.0.0...
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Types.chs.h:5:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Analysis\Device.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Context\Base.chs.h:5:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Context\Config.chs.h:5:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Context\Peer.chs.h:5:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Context\Primary.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Device.chs.h:5:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Error.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Event.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Exec.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\IPC\Event.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\IPC\Marshal.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Marshal.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Module\Base.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Module\Link.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Module\Query.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Profiler.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Stream.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Texture.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Unified.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Utils.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Runtime\Device.chs.h:5:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Runtime\Error.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Runtime\Event.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Runtime\Exec.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Runtime\Marshal.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Runtime\Stream.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Runtime\Texture.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Runtime\Utils.chs.h:2:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
[ 1 of 40] Compiling Text.Show.Describe ( src\Text\Show\Describe.hs, dist\build\Text\Show\D escribe.o )
[ 2 of 40] Compiling Foreign.CUDA.Types ( dist\build\Foreign\CUDA\Types.hs, dist\build\Fore ign\CUDA\Types.o )
[ 3 of 40] Compiling Foreign.CUDA.Ptr ( src\Foreign\CUDA\Ptr.hs, dist\build\Foreign\CUDA\Pt r.o )

src\Foreign\CUDA\Internal\C2HS.hs:202:3: warning: [-Winline-rule-shadowing]
    Rule "cFloatConv/CFloat->Float" may never fire
      because `Foreign.C.Types.CFloat' might inline first
    Probable fix: add an INLINE[n] or NOINLINE[n] pragma for `Foreign.C.Types.CFloat'

src\Foreign\CUDA\Internal\C2HS.hs:204:3: warning: [-Winline-rule-shadowing]
    Rule "cFloatConv/CDouble->Double" may never fire
      because[ 4 of 40] Compiling Foreign.CUDA.Path ( dist\build\Foreign\CUDA\Path.hs, dist\build\Foreig `Foreign.C.Types.CDouble' might inline first

    Probable fix: add an INLINE[n] or NOINLINE[n] pragma forn\CUDA\Path.o ) `Foreign.C.Types

.CDouble'
[ 5 of 40] Compiling Foreign.CUDA.Internal.C2HS ( src\Foreign\CUDA\Internal\C2HS.hs, dist\b uild\Foreign\CUDA\Internal\C2HS.o )
[ 6 of 40] Compiling Foreign.CUDA.Runtime.Error ( dist\build\Foreign\CUDA\Runtime\Error.hs,  dist\build\Foreign\CUDA\Runtime\Error.o )
[ 7 of 40] Compiling Foreign.CUDA.Runtime.Event ( dist\build\Foreign\CUDA\Runtime\Event.hs,  dist\build\Foreign\CUDA\Runtime\Event.o )
[ 8 of 40] Compiling Foreign.CUDA.Runtime.Stream ( dist\build\Foreign\CUDA\Runtime\Stream.h s, dist\build\Foreign\CUDA\Runtime\Stream.o )
[ 9 of 40] Compiling Foreign.CUDA.Runtime.Exec ( dist\build\Foreign\CUDA\Runtime\Exec.hs, d ist\build\Foreign\CUDA\Runtime\Exec.o )
[10 of 40] Compiling Foreign.CUDA.Runtime.Marshal ( dist\build\Foreign\CUDA\Runtime\Marshal .hs, dist\build\Foreign\CUDA\Runtime\Marshal.o )
[11 of 40] Compiling Foreign.CUDA.Runtime.Texture ( dist\build\Foreign\CUDA\Runtime\Texture .hs, dist\build\Foreign\CUDA\Runtime\Texture.o )
[12 of 40] Compiling Foreign.CUDA.Runtime.Utils ( dist\build\Foreign\CUDA\Runtime\Utils.hs,  dist\build\Foreign\CUDA\Runtime\Utils.o )
[13 of 40] Compiling Foreign.CUDA.Driver.Error ( dist\build\Foreign\CUDA\Driver\Error.hs, d ist\build\Foreign\CUDA\Driver\Error.o )
[14 of 40] Compiling Foreign.CUDA.Driver.Event ( dist\build\Foreign\CUDA\Driver\Event.hs, d ist\build\Foreign\CUDA\Driver\Event.o )
[15 of 40] Compiling Foreign.CUDA.Driver.IPC.Event ( dist\build\Foreign\CUDA\Driver\IPC\Eve nt.hs, dist\build\Foreign\CUDA\Driver\IPC\Event.o )
[16 of 40] Compiling Foreign.CUDA.Driver.Profiler ( dist\build\Foreign\CUDA\Driver\Profiler .hs, dist\build\Foreign\CUDA\Driver\Profiler.o )
[17 of 40] Compiling Foreign.CUDA.Driver.Stream ( dist\build\Foreign\CUDA\Driver\Stream.hs,  dist\build\Foreign\CUDA\Driver\Stream.o )
[18 of 40] Compiling Foreign.CUDA.Driver.Utils ( dist\build\Foreign\CUDA\Driver\Utils.hs, d ist\build\Foreign\CUDA\Driver\Utils.o )
[19 of 40] Compiling Foreign.CUDA.Analysis.Device ( dist\build\Foreign\CUDA\Analysis\Device .hs, dist\build\Foreign\CUDA\Analysis\Device.o )
[20 of 40] Compiling Foreign.CUDA.Analysis.Occupancy ( src\Foreign\CUDA\Analysis\Occupancy. hs, dist\build\Foreign\CUDA\Analysis\Occupancy.o )
[21 of 40] Compiling Foreign.CUDA.Driver.Device ( dist\build\Foreign\CUDA\Driver\Device.hs,  dist\build\Foreign\CUDA\Driver\Device.o )
[22 of 40] Compiling Foreign.CUDA.Driver.Context.Base ( dist\build\Foreign\CUDA\Driver\Cont ext\Base.hs, dist\build\Foreign\CUDA\Driver\Context\Base.o )
[23 of 40] Compiling Foreign.CUDA.Driver.Context.Config ( dist\build\Foreign\CUDA\Driver\Co ntext\Config.hs, dist\build\Foreign\CUDA\Driver\Context\Config.o )
[24 of 40] Compiling Foreign.CUDA.Driver.Context.Peer ( dist\build\Foreign\CUDA\Driver\Cont ext\Peer.hs, dist\build\Foreign\CUDA\Driver\Context\Peer.o )
[25 of 40] Compiling Foreign.CUDA.Driver.Context ( src\Foreign\CUDA\Driver\Context.hs, dist \build\Foreign\CUDA\Driver\Context.o )
[26 of 40] Compiling Foreign.CUDA.Driver.Exec ( dist\build\Foreign\CUDA\Driver\Exec.hs, dis t\build\Foreign\CUDA\Driver\Exec.o )
[27 of 40] Compiling Foreign.CUDA.Driver.Context.Primary ( dist\build\Foreign\CUDA\Driver\C ontext\Primary.hs, dist\build\Foreign\CUDA\Driver\Context\Primary.o )
[28 of 40] Compiling Foreign.CUDA.Driver.Marshal ( dist\build\Foreign\CUDA\Driver\Marshal.h s, dist\build\Foreign\CUDA\Driver\Marshal.o )
[29 of 40] Compiling Foreign.CUDA.Driver.IPC.Marshal ( dist\build\Foreign\CUDA\Driver\IPC\M arshal.hs, dist\build\Foreign\CUDA\Driver\IPC\Marshal.o )
[30 of 40] Compiling Foreign.CUDA.Driver.Texture ( dist\build\Foreign\CUDA\Driver\Texture.h s, dist\build\Foreign\CUDA\Driver\Texture.o )
[31 of 40] Compiling Foreign.CUDA.Driver.Unified ( dist\build\Foreign\CUDA\Driver\Unified.h s, dist\build\Foreign\CUDA\Driver\Unified.o )
[32 of 40] Compiling Foreign.CUDA.Driver.Module.Base ( dist\build\Foreign\CUDA\Driver\Modul e\Base.hs, dist\build\Foreign\CUDA\Driver\Module\Base.o )
[33 of 40] Compiling Foreign.CUDA.Driver.Module.Link ( dist\build\Foreign\CUDA\Driver\Modul e\Link.hs, dist\build\Foreign\CUDA\Driver\Module\Link.o )
[34 of 40] Compiling Foreign.CUDA.Driver.Module.Query ( dist\build\Foreign\CUDA\Driver\Modu le\Query.hs, dist\build\Foreign\CUDA\Driver\Module\Query.o )
[35 of 40] Compiling Foreign.CUDA.Driver.Module ( src\Foreign\CUDA\Driver\Module.hs, dist\b uild\Foreign\CUDA\Driver\Module.o )
[36 of 40] Compiling Foreign.CUDA.Driver ( src\Foreign\CUDA\Driver.hs, dist\build\Foreign\C UDA\Driver.o )
[37 of 40] Compiling Foreign.CUDA.Runtime.Device ( dist\build\Foreign\CUDA\Runtime\Device.h s, dist\build\Foreign\CUDA\Runtime\Device.o )
[38 of 40] Compiling Foreign.CUDA.Runtime ( src\Foreign\CUDA\Runtime.hs, dist\build\Foreign \CUDA\Runtime.o )
[39 of 40] Compiling Foreign.CUDA.Analysis ( src\Foreign\CUDA\Analysis.hs, dist\build\Forei gn\CUDA\Analysis.o )
[40 of 40] Compiling Foreign.CUDA     ( src\Foreign\CUDA.hs, dist\build\Foreign\CUDA.o )

In file included from .\cbits\stubs.h:9:0: error:
    0,
                     from cbits\init.c:1:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition

In file included from .\cbits\stubs.h:9:0: error:
    0,
                     from cbits\stubs.c:5:
D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
Preprocessing executable 'nvidia-device-query' for cuda-0.8.0.0...
[1 of 1] Compiling Main             ( examples\src\deviceQueryDrv\DeviceQuery.hs, dist\buil d\nvidia-device-query\nvidia-device-query-tmp\Main.o )
Linking dist\build\nvidia-device-query\nvidia-device-query.exe ...

from cuda.

yuhangwang avatar yuhangwang commented on July 22, 2024

Here is the header part of .\cbits\stubs.h.

/*
 * Extra bits for CUDA bindings
 */

#ifndef C_STUBS_H
#define C_STUBS_H

#ifdef __MINGW32__
#include <host_defines.h>
#undef CUDARTAPI
#define CUDARTAPI __stdcall
#endif

Line-9 is:

#include <host_defines.h>

Probably harmless, because I only got this error (see below) when building with a previously created dist folder.

D:\install\cuda\8.0\toolkit\include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl

from cuda.

tmcdonell avatar tmcdonell commented on July 22, 2024

It looks like it finished building the executable nvidia-device-query.exe, does that run correctly?

from cuda.

yuhangwang avatar yuhangwang commented on July 22, 2024

I think so. Here is output.

PS G:\DEVELOP\haskell-cuda> .\dist\build\nvidia-device-query\nvidia-device-query.exe
CUDA device query (Driver API, statically linked)
CUDA driver version 8.0
Detected 1 CUDA capable device

Device 0: GeForce 840M
  CUDA capability:                    5.0
  CUDA cores:                         384 cores in 3 multiprocessors (128 cores/MP)
  Global memory:                      2 GB
  Constant memory:                    64 kB
  Shared memory per block:            48 kB
  Registers per block:                65536
  Warp size:                          32
  Maximum threads per multiprocessor: 2048
  Maximum threads per block:          1024
  Maximum grid dimensions:            2147483647 x 65535 x 65535
  Maximum block dimensions:           1024 x 1024 x 64
  GPU clock rate:                     1.124 GHz
  Memory clock rate:                  1.001 GHz
  Memory bus width:                   64-bit
  L2 cache size:                      1 MB
  Maximum texture dimensions
    1D:                               65536
    2D:                               65536 x 65536
    3D:                               4096 x 4096 x 4096
  Texture alignment:                  512 B
  Maximum memory pitch:               2 GB
  Concurrent kernel execution:        Yes
  Concurrent copy and execution:      Yes, with 1 copy engine
  Runtime limit on kernel execution:  Yes
  Integrated GPU sharing host memory: No
  Host page-locked memory mapping:    Yes
  ECC memory support:                 No
  Unified addressing (UVA):           Yes
  PCI bus/location:                   6/0
  Compute mode:                       Default
    Multiple contexts are allowed on the device simultaneously

from cuda.

yuhangwang avatar yuhangwang commented on July 22, 2024

I have to sleep now. Will take a better look later.

from cuda.

tmcdonell avatar tmcdonell commented on July 22, 2024

That looks like it should all work now (:

from cuda.

yuhangwang avatar yuhangwang commented on July 22, 2024

Solution

It turns out the problem was due to unescaped "" in the windows path. With the following cuda.buildinfo, I don't need any hacking.

buildable: True
cc-options: -DCUDA_INSTALL_PATH="D:\\install\\cuda\\8.0\\toolkit"
            -DCUDA_LIBRARY_PATH="D:\\install\\cuda\\8.0\\toolkit\\lib\\x64"
            -ID:\\install\\cuda\\8.0\\toolkit\\include
ld-options: -LD:\\install\\cuda\\8.0\\toolkit\\lib\\x64
extra-libraries:
    cudart
    cuda
extra-ghci-libraries: cudart64_80
                      nvcuda
extra-lib-dirs: D:\\install\\cuda\\8.0\\toolkit\\lib\\x64
x-extra-c2hs-options: --cppopts=-E --cppopts=-m64 --cppopts=-DUSE_EMPTY_CASE

Here is the log.

PS G:\DEVELOP\haskell-cuda> cabal build
Package has never been configured. Configuring with default flags. If this
fails, please run configure manually.
Resolving dependencies...
[1 of 1] Compiling Main             ( dist\setup\setup.hs, dist\setup\Main.o )
Linking .\dist\setup\setup.exe ...
Configuring cuda-0.8.0.0...
Found CUDA toolkit at: D:\install\cuda\8.0\toolkit
Storing parameters to cuda.buildinfo.generated
The user-provided buildinfo from file cuda.buildinfo will be used. To use
default settings, delete this file.
The user-provided buildinfo from file cuda.buildinfo will be used. To use
default settings, delete this file.
Building cuda-0.8.0.0...
Preprocessing library cuda-0.8.0.0...
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Types.chs.h:5:
D:/install/cuda/8.0/toolkit/include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Analysis\Device.chs.h:2:
D:/install/cuda/8.0/toolkit/include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Context\Base.chs.h:5:
D:/install/cuda/8.0/toolkit/include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Context\Config.chs.h:5:
D:/install/cuda/8.0/toolkit/include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Context\Peer.chs.h:5:
D:/install/cuda/8.0/toolkit/include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Context\Primary.chs.h:2:
D:/install/cuda/8.0/toolkit/include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Device.chs.h:5:
D:/install/cuda/8.0/toolkit/include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Error.chs.h:2:
D:/install/cuda/8.0/toolkit/include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Event.chs.h:2:
D:/install/cuda/8.0/toolkit/include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Exec.chs.h:2:
D:/install/cuda/8.0/toolkit/include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\IPC\Event.chs.h:2:
D:/install/cuda/8.0/toolkit/include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\IPC\Marshal.chs.h:2:
D:/install/cuda/8.0/toolkit/include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Marshal.chs.h:2:
D:/install/cuda/8.0/toolkit/include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Module\Base.chs.h:2:
D:/install/cuda/8.0/toolkit/include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Module\Link.chs.h:2:
D:/install/cuda/8.0/toolkit/include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Module\Query.chs.h:2:
D:/install/cuda/8.0/toolkit/include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Profiler.chs.h:2:
D:/install/cuda/8.0/toolkit/include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Stream.chs.h:2:
D:/install/cuda/8.0/toolkit/include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Texture.chs.h:2:
D:/install/cuda/8.0/toolkit/include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Unified.chs.h:2:
D:/install/cuda/8.0/toolkit/include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Driver\Utils.chs.h:2:
D:/install/cuda/8.0/toolkit/include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Runtime\Device.chs.h:5:
D:/install/cuda/8.0/toolkit/include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Runtime\Error.chs.h:2:
D:/install/cuda/8.0/toolkit/include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Runtime\Event.chs.h:2:
D:/install/cuda/8.0/toolkit/include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Runtime\Exec.chs.h:2:
D:/install/cuda/8.0/toolkit/include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Runtime\Marshal.chs.h:2:
D:/install/cuda/8.0/toolkit/include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Runtime\Stream.chs.h:2:
D:/install/cuda/8.0/toolkit/include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Runtime\Texture.chs.h:2:
D:/install/cuda/8.0/toolkit/include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
In file included from ./cbits/stubs.h:9:0,
                 from dist\build\Foreign\CUDA\Runtime\Utils.chs.h:2:
D:/install/cuda/8.0/toolkit/include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
[ 1 of 40] Compiling Text.Show.Describe ( src\Text\Show\Describe.hs, dist\build\Text\Show\Describe.o )
[ 2 of 40] Compiling Foreign.CUDA.Types ( dist\build\Foreign\CUDA\Types.hs, dist\build\Foreign\CUDA\Types.o )
[ 3 of 40] Compiling Foreign.CUDA.Ptr ( src\Foreign\CUDA\Ptr.hs, dist\build\Foreign\CUDA\Ptr.o )
[ 4 of 40] Compiling Foreign.CUDA.Path ( dist\build\Foreign\CUDA\Path.hs, dist\build\Foreign\CUDA\Path.o )
[ 5 of 40] Compiling Foreign.CUDA.Internal.C2HS ( src\Foreign\CUDA\Internal\C2HS.hs, dist\build\Foreign\CUDA\Internal\C2HS.o )

src\Foreign\CUDA\Internal\C2HS.hs:202:3: warning: [-Winline-rule-shadowing]
    Rule "cFloatConv/CFloat->Float" may never fire
      because `Foreign.C.Types.CFloat' might inline first
    Probable fix: add an INLINE[n] or NOINLINE[n] pragma for `Foreign.C.Types.CFloat'

src\Foreign\CUDA\Internal\C2HS.hs:204:3: warning: [-Winline-rule-shadowing]
    Rule "cFloatConv/CDouble->Double" may never fire
      because `Foreign.C.Types.CDouble' might inline first
    Probable fix: add an INLINE[n] or NOINLINE[n] pragma for `Foreign.C.Types.CDouble'
[ 6 of 40] Compiling Foreign.CUDA.Runtime.Error ( dist\build\Foreign\CUDA\Runtime\Error.hs, dist\build\Foreign\CUDA\Runtime\Error.o )
[ 7 of 40] Compiling Foreign.CUDA.Runtime.Event ( dist\build\Foreign\CUDA\Runtime\Event.hs, dist\build\Foreign\CUDA\Runtime\Event.o )
[ 8 of 40] Compiling Foreign.CUDA.Runtime.Stream ( dist\build\Foreign\CUDA\Runtime\Stream.hs, dist\build\Foreign\CUDA\Runtime\Stream.o )
[ 9 of 40] Compiling Foreign.CUDA.Runtime.Exec ( dist\build\Foreign\CUDA\Runtime\Exec.hs, dist\build\Foreign\CUDA\Runtime\Exec.o )
[10 of 40] Compiling Foreign.CUDA.Runtime.Marshal ( dist\build\Foreign\CUDA\Runtime\Marshal.hs, dist\build\Foreign\CUDA\Runtime\Marshal.o )
[11 of 40] Compiling Foreign.CUDA.Runtime.Texture ( dist\build\Foreign\CUDA\Runtime\Texture.hs, dist\build\Foreign\CUDA\Runtime\Texture.o )
[12 of 40] Compiling Foreign.CUDA.Runtime.Utils ( dist\build\Foreign\CUDA\Runtime\Utils.hs, dist\build\Foreign\CUDA\Runtime\Utils.o )
[13 of 40] Compiling Foreign.CUDA.Driver.Error ( dist\build\Foreign\CUDA\Driver\Error.hs, dist\build\Foreign\CUDA\Driver\Error.o )
[14 of 40] Compiling Foreign.CUDA.Driver.Event ( dist\build\Foreign\CUDA\Driver\Event.hs, dist\build\Foreign\CUDA\Driver\Event.o )
[15 of 40] Compiling Foreign.CUDA.Driver.IPC.Event ( dist\build\Foreign\CUDA\Driver\IPC\Event.hs, dist\build\Foreign\CUDA\Driver\IPC\Event.o )
[16 of 40] Compiling Foreign.CUDA.Driver.Profiler ( dist\build\Foreign\CUDA\Driver\Profiler.hs, dist\build\Foreign\CUDA\Driver\Profiler.o )
[17 of 40] Compiling Foreign.CUDA.Driver.Stream ( dist\build\Foreign\CUDA\Driver\Stream.hs, dist\build\Foreign\CUDA\Driver\Stream.o )
[18 of 40] Compiling Foreign.CUDA.Driver.Utils ( dist\build\Foreign\CUDA\Driver\Utils.hs, dist\build\Foreign\CUDA\Driver\Utils.o )
[19 of 40] Compiling Foreign.CUDA.Analysis.Device ( dist\build\Foreign\CUDA\Analysis\Device.hs, dist\build\Foreign\CUDA\Analysis\Device.o )
[20 of 40] Compiling Foreign.CUDA.Analysis.Occupancy ( src\Foreign\CUDA\Analysis\Occupancy.hs, dist\build\Foreign\CUDA\Analysis\Occupancy.o )
[21 of 40] Compiling Foreign.CUDA.Driver.Device ( dist\build\Foreign\CUDA\Driver\Device.hs, dist\build\Foreign\CUDA\Driver\Device.o )
[22 of 40] Compiling Foreign.CUDA.Driver.Context.Base ( dist\build\Foreign\CUDA\Driver\Context\Base.hs, dist\build\Foreign\CUDA\Driver\Context\Base.o )
[23 of 40] Compiling Foreign.CUDA.Driver.Context.Config ( dist\build\Foreign\CUDA\Driver\Context\Config.hs, dist\build\Foreign\CUDA\Driver\Context\Config.o )
[24 of 40] Compiling Foreign.CUDA.Driver.Context.Peer ( dist\build\Foreign\CUDA\Driver\Context\Peer.hs, dist\build\Foreign\CUDA\Driver\Context\Peer.o )
[25 of 40] Compiling Foreign.CUDA.Driver.Context ( src\Foreign\CUDA\Driver\Context.hs, dist\build\Foreign\CUDA\Driver\Context.o )
[26 of 40] Compiling Foreign.CUDA.Driver.Exec ( dist\build\Foreign\CUDA\Driver\Exec.hs, dist\build\Foreign\CUDA\Driver\Exec.o )
[27 of 40] Compiling Foreign.CUDA.Driver.Context.Primary ( dist\build\Foreign\CUDA\Driver\Context\Primary.hs, dist\build\Foreign\CUDA\Driver\Context\Primary.o )
[28 of 40] Compiling Foreign.CUDA.Driver.Marshal ( dist\build\Foreign\CUDA\Driver\Marshal.hs, dist\build\Foreign\CUDA\Driver\Marshal.o )
[29 of 40] Compiling Foreign.CUDA.Driver.IPC.Marshal ( dist\build\Foreign\CUDA\Driver\IPC\Marshal.hs, dist\build\Foreign\CUDA\Driver\IPC\Marshal.o )
[30 of 40] Compiling Foreign.CUDA.Driver.Texture ( dist\build\Foreign\CUDA\Driver\Texture.hs, dist\build\Foreign\CUDA\Driver\Texture.o )
[31 of 40] Compiling Foreign.CUDA.Driver.Unified ( dist\build\Foreign\CUDA\Driver\Unified.hs, dist\build\Foreign\CUDA\Driver\Unified.o )
[32 of 40] Compiling Foreign.CUDA.Driver.Module.Base ( dist\build\Foreign\CUDA\Driver\Module\Base.hs, dist\build\Foreign\CUDA\Driver\Module\Base.o )
[33 of 40] Compiling Foreign.CUDA.Driver.Module.Link ( dist\build\Foreign\CUDA\Driver\Module\Link.hs, dist\build\Foreign\CUDA\Driver\Module\Link.o )
[34 of 40] Compiling Foreign.CUDA.Driver.Module.Query ( dist\build\Foreign\CUDA\Driver\Module\Query.hs, dist\build\Foreign\CUDA\Driver\Module\Query.o )
[35 of 40] Compiling Foreign.CUDA.Driver.Module ( src\Foreign\CUDA\Driver\Module.hs, dist\build\Foreign\CUDA\Driver\Module.o )
[36 of 40] Compiling Foreign.CUDA.Driver ( src\Foreign\CUDA\Driver.hs, dist\build\Foreign\CUDA\Driver.o )
[37 of 40] Compiling Foreign.CUDA.Runtime.Device ( dist\build\Foreign\CUDA\Runtime\Device.hs, dist\build\Foreign\CUDA\Runtime\Device.o )
[38 of 40] Compiling Foreign.CUDA.Runtime ( src\Foreign\CUDA\Runtime.hs, dist\build\Foreign\CUDA\Runtime.o )
[39 of 40] Compiling Foreign.CUDA.Analysis ( src\Foreign\CUDA\Analysis.hs, dist\build\Foreign\CUDA\Analysis.o )
[40 of 40] Compiling Foreign.CUDA     ( src\Foreign\CUDA.hs, dist\build\Foreign\CUDA.o )

In file included from .\cbits\stubs.h:9:0: error:
    0,
                     from cbits\init.c:1:
D:/install/cuda/8.0/toolkit/include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition

In file included from .\cbits\stubs.h:9:0: error:
    0,
                     from cbits\stubs.c:5:
D:/install/cuda/8.0/toolkit/include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition
Preprocessing executable 'nvidia-device-query' for cuda-0.8.0.0...
[1 of 1] Compiling Main             ( examples\src\deviceQueryDrv\DeviceQuery.hs, dist\build\nvidia-device-query\nvidia-device-query-tmp\Main.o )

from cuda.

yuhangwang avatar yuhangwang commented on July 22, 2024

The only minor problem right now is the warning(a bug?). The include file D:/install/cuda/8.0/toolkit/include/host_defines. only has a single definition of macro __cdel at line 84. Not sure what is causing this.

In file included from .\cbits\stubs.h:9:0: error:
    0,
                     from cbits\init.c:1:
D:/install/cuda/8.0/toolkit/include/host_defines.h:84:0: warning: "__cdecl" redefined
 #define __cdecl
 ^
<built-in>: note: this is the location of the previous definition

from cuda.

tmcdonell avatar tmcdonell commented on July 22, 2024

What do you get if you (in ghci say) run the following:

ghci> import System.FilePath
ghci> normalise "D:\install\cuda\8.0\toolkit\lib/x64"

from cuda.

yuhangwang avatar yuhangwang commented on July 22, 2024

Here is what I got.

PS C:\Users\Steven> ghci
GHCi, version 8.0.2: http://www.haskell.org/ghc/  :? for help
Prelude> import System.FilePath
Prelude System.FilePath> normalise "D:\install\cuda\8.0\toolkit\lib/x64"

<interactive>:2:15: error:
    lexical error in string/character literal at character 'i'
Prelude System.FilePath>

from cuda.

tmcdonell avatar tmcdonell commented on July 22, 2024

I guess this has been fixed now by #50. Please reopen if you still have problems with cuda-0.8.0.1!

from cuda.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.