#2889: Compilation fails - Can't opne temporary
---------------------------+------------------------------------------------
  Reporter:  fobrock       |          Owner:  igloo  
      Type:  bug           |         Status:  new    
  Priority:  high          |      Milestone:  6.12.3 
 Component:  Compiler      |        Version:  6.12.2 
Resolution:                |       Keywords:         
Difficulty:  Unknown       |             Os:  Windows
  Testcase:                |   Architecture:  x86    
   Failure:  None/Unknown  |  
---------------------------+------------------------------------------------
Changes (by catenate):

  * status:  infoneeded => new


Comment:

 Still seems to fail:

 {{{
 $ ls
 ghc-6.12.2.20100520-i386-windows.exe  guide  hw.lhs  makefile  mkfile
 $ make hw
 /cygdrive/c/ghc/ghc-6.12.2.20100520/bin/ghc-6.12.2.20100520 hw.lhs -o hw
 C:\ghc\GHC-61~1.201\lib\..\mingw\bin\windres: can't open temporary file
 `\/cca03860.irc': Invalid argument
 $ ls
 ghc-6.12.2.20100520-i386-windows.exe  guide  hw.exe.manifest  hw.hi
 hw.lhs  hw.o  makefile  mkfile
 $ cat hw.exe.manifest
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
   <assembly xmlns="urn:schemas-microsoft-com:asm.v1"
 manifestVersion="1.0">
   <assemblyIdentity version="1.0.0.0"
      processorArchitecture="X86"
      name="hw"
      type="win32"/>

   <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
     <security>
       <requestedPrivileges>
         <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
         </requestedPrivileges>
        </security>
   </trustInfo>
 </assembly>
 $ cat hw.lhs
 > module Main where
 > main = do
 >        putStrLn ("Hello, World!")
 }}}

 After cleaning up and running again with -v:

 {{{
 $ ls
 ghc-6.12.2.20100520-i386-windows.exe  guide  hw.lhs  makefile  mkfile
 $ /cygdrive/c/ghc/ghc-6.12.2.20100520/bin/ghc-6.12.2.20100520 hw.lhs -o hw
 -v
 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:\ghc\GHC-61~1.201\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: D:\Profiles\cjc040\ghc4824_0
 *** Literate pre-processor:
 C:\ghc\GHC-61~1.201\lib\unlit.exe -h hw.lhs hw.lhs
 D:\Profiles\cjc040\ghc4824_0\ghc4824_0.lpp
 *** 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:\ghc\GHC-61~1.201\lib\..\mingw\bin\gcc -I. -c
 D:\Profiles\cjc040\ghc4824_0\ghc4824_0.s -o hw.o
 -DDONT_WANT_WIN32_DLL_SUPPORT
 *** Windres:
 C:\ghc\GHC-61~1.201\lib\..\mingw\bin\windres
 --preprocessor="C:\ghc\GHC-61~1.201\lib\..\mingw\bin\gcc" "-E" "-xc"
 "-DRC_INVOKED" --use-temp-file
 --input=D:\Profiles\cjc040\ghc4824_0\ghc4824_0.rc
 --output=D:\Profiles\cjc040\ghc4824_0\ghc4824_0.o --output-format=coff
 C:\ghc\GHC-61~1.201\lib\..\mingw\bin\windres: can't open temporary file
 `\/cca06056.irc': Invalid argument
 *** Deleting temp files:
 Deleting: D:\Profiles\cjc040\ghc4824_0\ghc4824_0.o
 D:\Profiles\cjc040\ghc4824_0\ghc4824_0.rc
 D:\Profiles\cjc040\ghc4824_0\ghc4824_0.s
 D:\Profiles\cjc040\ghc4824_0\ghc4824_0.lpp
 Warning: deleting non-existent D:\Profiles\cjc040\ghc4824_0\ghc4824_0.o
 *** Deleting temp dirs:
 Deleting: D:\Profiles\cjc040\ghc4824_0

 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2889#comment:15>
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

Reply via email to