#2889: Compilation fails - Can't open temporary ---------------------------+------------------------------------------------ Reporter: fobrock | Owner: igloo Type: bug | Status: new Priority: high | Milestone: 6.14.1 Component: Compiler | Version: 6.12.2 Resolution: | Keywords: Difficulty: Unknown | Os: Windows Testcase: | Architecture: x86 Failure: None/Unknown | ---------------------------+------------------------------------------------
Comment(by atnnn): I had the same problem when running ghc from the cygwin shell, but it works from cmd.exe. First failed build: {{{ $ uname -a CYGWIN_NT-5.1 XP-2043 1.7.5(0.225/5/3) 2010-04-12 19:07 i686 Cygwin $ ghc -v hw.hs Glasgow Haskell Compiler, Version 6.12.1, for Haskell 98, stage 2 booted by GHC version 6.10.4 Using binary package database: C:\Program Files\Haskell Platform\2010.1.0.0\lib\package.conf.d\package.cache Using binary package database: C:\Documents and Settings\clapres\Application Data\ghc\i386-mingw32-6.12.1\package.conf.d\package.cache hiding package base-3.0.3.2 to avoid conflict with later version base-4.2.0.0 wired-in package ghc-prim mapped to ghc- prim-0.2.0.0-d062610a70b26dce7f0809a3a984e0b8 wired-in package integer-gmp mapped to integer- gmp-0.2.0.0-fa82a0df93dc30b4a7c5654dd7c68cf4 wired-in package base mapped to base-4.2.0.0-f9f9ffe572130b994c2080b74a5b4e68 wired-in package rts mapped to builtin_rts wired-in package haskell98 mapped to haskell98-1.0.1.1-0fdaf3b26bc38c43ce8371edf538dbf6 wired-in package template-haskell mapped to template- haskell-2.4.0.0-4e889e188d5d6909681d875bc63a59f2 wired-in package dph-seq mapped to dph- seq-0.4.0-1f5167ea371010387123b68e975177b2 wired-in package dph-par mapped to dph- par-0.4.0-6be3d558b460028d063187e304761859 Hsc static flags: -static Created temporary directory: C:\Documents and Settings\clapres\/ghc9972_0 *** Checking old interface for main:Main: *** Parser: *** Renamer/typechecker: *** Desugar: Result size = 10 *** Simplifier Phase 0 [final]: Result size = 8 *** Tidy Core: Result size = 8 writeBinIface: 1 Names writeBinIface: 13 dict entries *** CorePrep: Result size = 10 *** Stg2Stg: *** CodeGen: *** CodeOutput: *** Assembler: C:\Program Files\Haskell Platform\2010.1.0.0\lib\..\mingw\bin\gcc -I. -c C:\Documents and Settings\clapres\/ghc9972_0/ghc9972_0.s -o hw.o -DDONT_WANT_WIN32_DLL_SUPPORT *** Windres: C:\Program Files\Haskell Platform\2010.1.0.0\lib\..\mingw\bin\windres --preprocessor="C:\Program Files\Haskell Platform\2010.1.0.0\lib\..\mingw\bin\gcc" "-E" "-xc" "-DRC_INVOKED" --use- temp-file --input=C:\Documents and Settings\clapres\/ghc9972_0/ghc9972_0.rc --output=C:\Documents and Settings\clapres\/ghc9972_0/ghc9972_0.o --output-format=coff C:\Program Files\Haskell Platform\2010.1.0.0\lib\..\mingw\bin\windres: can't open temporary file `\/cca10032.irc': Invalid argument *** Deleting temp files: Deleting: C:\Documents and Settings\clapres\/ghc9972_0/ghc9972_0.o C:\Documents and Settings\clapres\/ghc9972_0/ghc9972_0.rc C:\Documents and Settings\clapres\/ghc9972_0/ghc9972_0.s Warning: deleting non-existent C:\Documents and Settings\clapres\/ghc9972_0/ghc9972_0.o *** Deleting temp dirs: Deleting: C:\Documents and Settings\clapres\/ghc9972_0 }}} Successful build: {{{ C:\Documents and Settings\clapres>ver Microsoft Windows XP [version 5.1.2600] C:\Documents and Settings\clapres>ghc -v hw.hs Glasgow Haskell Compiler, Version 6.12.1, for Haskell 98, stage 2 booted by GHC version 6.10.4 Using binary package database: C:\Program Files\Haskell Platform\2010.1.0.0\lib\package.conf.d\package.cache Using binary package database: C:\Documents and Settings\clapres\Application Data\ghc\i386-mingw32-6.12.1\package.conf.d\package.cache hiding package base-3.0.3.2 to avoid conflict with later version base-4.2.0.0 wired-in package ghc-prim mapped to ghc- prim-0.2.0.0-d062610a70b26dce7f0809a3a984e0b8 wired-in package integer-gmp mapped to integer- gmp-0.2.0.0-fa82a0df93dc30b4a7c5654dd7c68cf4 wired-in package base mapped to base-4.2.0.0-f9f9ffe572130b994c2080b74a5b4e68 wired-in package rts mapped to builtin_rts wired-in package haskell98 mapped to haskell98-1.0.1.1-0fdaf3b26bc38c43ce8371edf538dbf6 wired-in package template-haskell mapped to template- haskell-2.4.0.0-4e889e188d5d6909681d875bc63a59f2 wired-in package dph-seq mapped to dph- seq-0.4.0-1f5167ea371010387123b68e975177b2 wired-in package dph-par mapped to dph- par-0.4.0-6be3d558b460028d063187e304761859 Hsc static flags: -static Created temporary directory: C:\DOCUME~1\clapres\LOCALS~1\Temp\/ghc9048_0 *** Checking old interface for main:Main: *** Parser: *** Renamer/typechecker: *** Desugar: Result size = 10 *** Simplifier Phase 0 [final]: Result size = 8 *** Tidy Core: Result size = 8 writeBinIface: 1 Names writeBinIface: 13 dict entries *** CorePrep: Result size = 10 *** Stg2Stg: *** CodeGen: *** CodeOutput: *** Assembler: C:\Program Files\Haskell Platform\2010.1.0.0\lib\..\mingw\bin\gcc -I. -c C:\DOCUME~1\clapres\LOCALS~1\Temp\/ghc9048_0/ghc9048_0.s -o hw.o -DDONT_WANT_WIN32_DLL_SUPPORT *** Windres: C:\Program Files\Haskell Platform\2010.1.0.0\lib\..\mingw\bin\windres --preprocessor="C:\Program Files\Haskell Platform\2010.1.0.0\lib\..\mingw\bin\gcc" "-E" "-xc" "-DRC_INVOKED" --use- temp-file --input=C:\DOCUME~1\clapres\LOCALS~1\Temp\/ghc9048_0/ghc9048_0.rc --output=C:\DOCUME~1\clapres\LOCALS~1\Temp\/ghc9048_0/ghc9048_0.o --output-format=coff *** Linker: C:\Program Files\Haskell Platform\2010.1.0.0\lib\..\mingw\bin\gcc -v -o main.exe -DDONT_WANT_WIN32_DLL_SUPPORT hw.o C:\DOCUME~1\clapres\LOCALS~1\Temp\/ghc9048_0/ghc9048_0.o -LC:\Program Files\Haskell Platform\2010.1.0.0\lib\haskell98-1.0.1.1 -LC:\Program Files\Haskell Platform\2010.1.0.0\lib\random-1.0.0.2 -LC:\Program Files\Haskell Platform\2010.1.0.0\lib\time-1.1.4 -LC:\Program Files\Haskell Platform\2010.1.0.0\lib\process-1.0.1.2 -LC:\Program Files\Haskell Platform\2010.1.0.0\lib\directory-1.0.1.0 -LC:\Program Files\Haskell Platform\2010.1.0.0\lib\old-time-1.0.0.3 -LC:\Program Files\Haskell Platform\2010.1.0.0\lib\old-locale-1.0.0.2 -LC:\Program Files\Haskell Platform\2010.1.0.0\lib\filepath-1.1.0.3 -LC:\Program Files\Haskell Platform\2010.1.0.0\lib\Win32-2.2.0.1 -LC:\Program Files\Haskell Platform\2010.1.0.0\lib\bytestring-0.9.1.5 -LC:\Program Files\Haskell Platform\2010.1.0.0\lib\array-0.3.0.0 -LC:\Program Files\Haskell Platform\2010.1.0.0\lib\base-4.2.0.0 -LC:\Program Files\Haskell Platform\2010.1.0.0\lib\integer-gmp-0.2.0.0 -LC:\Program Files\Haskell Platform\2010.1.0.0\lib\ghc-prim-0.2.0.0 -LC:\Program Files\Haskell Platform\2010.1.0.0\lib -LC:\Program Files\Haskell Platform\2010.1.0.0\lib/gcc-lib -lHSrtsmain -lHShaskell98-1.0.1.1 -lHSrandom-1.0.0.2 -lHStime-1.1.4 -lHSprocess-1.0.1.2 -lHSdirectory-1.0.1.0 -lHSold-time-1.0.0.3 -lHSold-locale-1.0.0.2 -lHSfilepath-1.1.0.3 -lHSWin32-2.2.0.1 -luser32 -lgdi32 -lwinmm -ladvapi32 -lshell32 -lshfolder -lHSbytestring-0.9.1.5 -lHSarray-0.3.0.0 -lHSbase-4.2.0.0 -lwsock32 -luser32 -lshell32 -lHSinteger-gmp-0.2.0.0 -lHSghc-prim-0.2.0.0 -lHSrts -lm -lwsock32 -u _ghczmprim_GHCziTypes_Izh_static_info -u _ghczmprim_GHCziTypes_Czh_static_info -u _ghczmprim_GHCziTypes_Fzh_static_info -u _ghczmprim_GHCziTypes_Dzh_static_info -u _base_GHCziPtr_Ptr_static_info -u _base_GHCziWord_Wzh_static_info -u _base_GHCziInt_I8zh_static_info -u _base_GHCziInt_I16zh_static_info -u _base_GHCziInt_I32zh_static_info -u _base_GHCziInt_I64zh_static_info -u _base_GHCziWord_W8zh_static_info -u _base_GHCziWord_W16zh_static_info -u _base_GHCziWord_W32zh_static_info -u _base_GHCziWord_W64zh_static_info -u _base_GHCziStable_StablePtr_static_info -u _ghczmprim_GHCziTypes_Izh_con_info -u _ghczmprim_GHCziTypes_Czh_con_info -u _ghczmprim_GHCziTypes_Fzh_con_info -u _ghczmprim_GHCziTypes_Dzh_con_info -u _base_GHCziPtr_Ptr_con_info -u _base_GHCziPtr_FunPtr_con_info -u _base_GHCziStable_StablePtr_con_info -u _ghczmprim_GHCziBool_False_closure -u _ghczmprim_GHCziBool_True_closure -u _base_GHCziPack_unpackCString_closure -u _base_GHCziIOziException_stackOverflow_closure -u _base_GHCziIOziException_heapOverflow_closure -u _base_ControlziExceptionziBase_nonTermination_closure -u _base_GHCziIOziException_blockedIndefinitelyOnMVar_closure -u _base_GHCziIOziException_blockedIndefinitelyOnSTM_closure -u _base_ControlziExceptionziBase_nestedAtomically_closure -u _base_GHCziWeak_runFinalizzerBatch_closure -u _base_GHCziTopHandler_runIO_closure -u _base_GHCziTopHandler_runNonIO_closure -u _base_GHCziConc_ensureIOManagerIsRunning_closure -u _base_GHCziConc_runSparks_closure -u _base_GHCziConc_runHandlers_closure -lHSffi Reading specs from C:/Program Files/Haskell Platform/2010.1.0.0/mingw/bin/../lib/gcc/mingw32/3.4.5/specs Configured with: ../gcc-3.4.5-20060117-3/configure --with-gcc --with-gnu- ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable- threads --disable-nls --enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchronization --enable-libstdcxx-debug Thread model: win32 gcc version 3.4.5 (mingw-vista special r3) C:/Program Files/Haskell Platform/2010.1.0.0/mingw/bin/../libexec/gcc/mingw32/3.4.5/collect2.exe -Bdynamic -o main.exe -u _ghczmprim_GHCziTypes_Izh_static_info -u _ghczmprim_GHCziTypes_Czh_static_info -u _ghczmprim_GHCziTypes_Fzh_static_info -u _ghczmprim_GHCziTypes_Dzh_static_info -u _base_GHCziPtr_Ptr_static_info -u _base_GHCziWord_Wzh_static_info -u _base_GHCziInt_I8zh_static_info -u _base_GHCziInt_I16zh_static_info -u _base_GHCziInt_I32zh_static_info -u _base_GHCziInt_I64zh_static_info -u _base_GHCziWord_W8zh_static_info -u _base_GHCziWord_W16zh_static_info -u _base_GHCziWord_W32zh_static_info -u _base_GHCziWord_W64zh_static_info -u _base_GHCziStable_StablePtr_static_info -u _ghczmprim_GHCziTypes_Izh_con_info -u _ghczmprim_GHCziTypes_Czh_con_info -u _ghczmprim_GHCziTypes_Fzh_con_info -u _ghczmprim_GHCziTypes_Dzh_con_info -u _base_GHCziPtr_Ptr_con_info -u _base_GHCziPtr_FunPtr_con_info -u _base_GHCziStable_StablePtr_con_info -u _ghczmprim_GHCziBool_False_closure -u _ghczmprim_GHCziBool_True_closure -u _base_GHCziPack_unpackCString_closure -u _base_GHCziIOziException_stackOverflow_closure -u _base_GHCziIOziException_heapOverflow_closure -u _base_ControlziExceptionziBase_nonTermination_closure -u _base_GHCziIOziException_blockedIndefinitelyOnMVar_closure -u _base_GHCziIOziException_blockedIndefinitelyOnSTM_closure -u _base_ControlziExceptionziBase_nestedAtomically_closure -u _base_GHCziWeak_runFinalizzerBatch_closure -u _base_GHCziTopHandler_runIO_closure -u _base_GHCziTopHandler_runNonIO_closure -u _base_GHCziConc_ensureIOManagerIsRunning_closure -u _base_GHCziConc_runSparks_closure -u _base_GHCziConc_runHandlers_closure C:/Program Files/Haskell Platform/2010.1.0.0/mingw/bin/../lib/crt2.o C:/Program Files/Haskell Platform/2010.1.0.0/mingw/bin/../lib/gcc/mingw32/3.4.5/crtbegin.o -LC:\Program Files\Haskell Platform\2010.1.0.0\lib\haskell98-1.0.1.1 -LC:\Program Files\Haskell Platform\2010.1.0.0\lib\random-1.0.0.2 -LC:\Program Files\Haskell Platform\2010.1.0.0\lib\time-1.1.4 -LC:\Program Files\Haskell Platform\2010.1.0.0\lib\process-1.0.1.2 -LC:\Program Files\Haskell Platform\2010.1.0.0\lib\directory-1.0.1.0 -LC:\Program Files\Haskell Platform\2010.1.0.0\lib\old-time-1.0.0.3 -LC:\Program Files\Haskell Platform\2010.1.0.0\lib\old-locale-1.0.0.2 -LC:\Program Files\Haskell Platform\2010.1.0.0\lib\filepath-1.1.0.3 -LC:\Program Files\Haskell Platform\2010.1.0.0\lib\Win32-2.2.0.1 -LC:\Program Files\Haskell Platform\2010.1.0.0\lib\bytestring-0.9.1.5 -LC:\Program Files\Haskell Platform\2010.1.0.0\lib\array-0.3.0.0 -LC:\Program Files\Haskell Platform\2010.1.0.0\lib\base-4.2.0.0 -LC:\Program Files\Haskell Platform\2010.1.0.0\lib\integer-gmp-0.2.0.0 -LC:\Program Files\Haskell Platform\2010.1.0.0\lib\ghc-prim-0.2.0.0 -LC:\Program Files\Haskell Platform\2010.1.0.0\lib -LC:\Program Files\Haskell Platform\2010.1.0.0\lib/gcc-lib -LC:/Program Files/Haskell Platform/2010.1.0.0/mingw/bin -LC:/Program Files/Haskell Platform/2010.1.0.0/mingw/bin/../lib -LC:/Program Files/Haskell Platform/2010.1.0.0/mingw/bin/../lib/gcc/mingw32/3.4.5 -LC:/Program Files/Haskell Platform/2010.1.0.0/mingw/bin/../libexec/gcc/mingw32/3.4.5 -LC:/Program Files/Haskell Platform/2010.1.0.0/mingw/bin/../lib/gcc/mingw32/3.4.5 -LC:/Program Files/Haskell Platform/2010.1.0.0/mingw/bin/../lib/gcc -LC:/Program Files/Haskell Platform/2010.1.0.0/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../mingw32/lib -LC:/Program Files/Haskell Platform/2010.1.0.0/mingw/bin/../lib/gcc/mingw32/3.4.5/../../.. hw.o C:\DOCUME~1\clapres\LOCALS~1\Temp\/ghc9048_0/ghc9048_0.o -lHSrtsmain -lHShaskell98-1.0.1.1 -lHSrandom-1.0.0.2 -lHStime-1.1.4 -lHSprocess-1.0.1.2 -lHSdirectory-1.0.1.0 -lHSold-time-1.0.0.3 -lHSold- locale-1.0.0.2 -lHSfilepath-1.1.0.3 -lHSWin32-2.2.0.1 -luser32 -lgdi32 -lwinmm -ladvapi32 -lshell32 -lshfolder -lHSbytestring-0.9.1.5 -lHSarray-0.3.0.0 -lHSbase-4.2.0.0 -lwsock32 -luser32 -lshell32 -lHSinteger-gmp-0.2.0.0 -lHSghc-prim-0.2.0.0 -lHSrts -lm -lwsock32 -lHSffi -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt C:/Program Files/Haskell Platform/2010.1.0.0/mingw/bin/../lib/gcc/mingw32/3.4.5/crtend.o *** Deleting temp files: Deleting: C:\DOCUME~1\clapres\LOCALS~1\Temp\/ghc9048_0/ghc9048_0.o C:\DOCUME~1\clapres\LOCALS~1\Temp\/ghc9048_0/ghc9048_0.rc C:\DOCUME~1\clapres\LOCALS~1\Temp\/ghc9048_0/ghc9048_0.s *** Deleting temp dirs: Deleting: C:\DOCUME~1\clapres\LOCALS~1\Temp\/ghc9048_0 }}} With 6.12.2.20100520: {{{ $ /cygdrive/c/temp/ghc-6.12.2.20100520/bin/ghc -v hw.hs Glasgow Haskell Compiler, Version 6.12.2.20100520, for Haskell 98, stage 2 booted by GHC version 6.10.4 Using binary package database: C:\temp\ghc-6.12.2.20100520\lib\package.conf.d\package.cache hiding package base-3.0.3.2 to avoid conflict with later version base-4.2.0.1 wired-in package ghc-prim mapped to ghc- prim-0.2.0.0-2feb0cb38f65a4827135ada88c34f3ef wired-in package integer-gmp mapped to integer- gmp-0.2.0.1-72436e28c79d056c87cc0d2d2f9f3773 wired-in package base mapped to base-4.2.0.1-0d1804f62045e52b2e806996d84f5318 wired-in package rts mapped to builtin_rts wired-in package haskell98 mapped to haskell98-1.0.1.1-c097d85de0ef1d8aab872d9cd57c03f6 wired-in package template-haskell mapped to template- haskell-2.4.0.1-401621dedd4a5f07bfd8630247358bf5 wired-in package dph-seq mapped to dph- seq-0.4.0-be069f0bb710922a6ddd4ed2b91e3a6c wired-in package dph-par mapped to dph- par-0.4.0-b31a0ce10b7c92126978fcc929077ad6 Hsc static flags: -static Created temporary directory: C:\Documents and Settings\clapres\ghc9328_0 *** Checking old interface for main:Main: *** Parser: *** Renamer/typechecker: *** Desugar: Result size = 10 *** Simplifier Phase 0 [final]: Result size = 8 *** Tidy Core: Result size = 8 writeBinIface: 1 Names writeBinIface: 13 dict entries *** CorePrep: Result size = 10 *** Stg2Stg: *** CodeGen: *** CodeOutput: *** Assembler: C:\temp\ghc-6.12.2.20100520\lib\..\mingw\bin\gcc -I. -c C:\Documents and Settings\clapres\ghc9328_0\ghc9328_0.s -o hw.o -DDONT_WANT_WIN32_DLL_SUPPORT *** Windres: C:\temp\ghc-6.12.2.20100520\lib\..\mingw\bin\windres --preprocessor="C:\temp\ghc-6.12.2.20100520\lib\..\mingw\bin\gcc" "-E" "-xc" "-DRC_INVOKED" --use-temp-file --input=C:\Documents and Settings\clapres\ghc9328_0\ghc9328_0.rc --output=C:\Documents and Settings\clapres\ghc9328_0\ghc9328_0.o --output-format=coff C:\temp\ghc-6.12.2.20100520\lib\..\mingw\bin\windres: can't open temporary file `\/cca09512.irc': Invalid argument *** Deleting temp files: Deleting: C:\Documents and Settings\clapres\ghc9328_0\ghc9328_0.o C:\Documents and Settings\clapres\ghc9328_0\ghc9328_0.rc C:\Documents and Settings\clapres\ghc9328_0\ghc9328_0.s Warning: deleting non-existent C:\Documents and Settings\clapres\ghc9328_0\ghc9328_0.o *** Deleting temp dirs: Deleting: C:\Documents and Settings\clapres\ghc9328_0 }}} {{{ $ echo Q1 ${TMPDIR:-NullOrUnset} Q1 NullOrUnset $ echo Q2 ${TMPDIR-Unset} Q2 Unset $ echo Q3 ${TMP:-NullOrUnset} Q3 NullOrUnset $ echo Q4 ${TMP-Unset} Q4 Unset $ echo Q5 ${TEMP:-NullOrUnset} Q5 NullOrUnset $ echo Q6 ${TEMP-Unset} Q6 Unset $ echo Q7 ${TEMPDIR:-NullOrUnset} Q7 NullOrUnset $ echo Q8 ${TEMPDIR-Unset} Q8 Unset $ ls -ld /var/tmp drwxrwxrwt+ 1 clapres root 0 2010-04-29 16:13 /var/tmp $ ls -ld /usr/tmp drwxrwxrwt+ 1 clapres root 0 2010-04-29 16:13 /usr/tmp $ ls -ld /tmp drwxrwxrwt+ 1 clapres root 0 2010-06-25 13:34 /tmp }}} -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2889#comment:23> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler _______________________________________________ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs