#5921: Two GHC linkers running in parallel on Windows goes wrong
---------------------------------+------------------------------------------
    Reporter:  NeilMitchell      |       Owner:                    
        Type:  bug               |      Status:  new               
    Priority:  normal            |   Milestone:                    
   Component:  Compiler          |     Version:  7.4.1             
    Keywords:                    |          Os:  Windows           
Architecture:  Unknown/Multiple  |     Failure:  Compile-time crash
  Difficulty:  Unknown           |    Testcase:                    
   Blockedby:                    |    Blocking:                    
     Related:                    |  
---------------------------------+------------------------------------------
Changes (by simonmar):

  * difficulty:  => Unknown


Comment:

 This is slightly amusing.  It turns out the script has a bug:
 "-o2/Main.exe" is wrong, it should be "-o 2/Main.exe".  Why isn't there an
 error about an unrecognised flag?  Well, GHC passes anything that looks
 like a filename along to the linker, and it decided that "-o2/Main.exe"
 looked like a filename because it contains ".".  You might expect `gcc` to
 complain about "-o2/Main.exe", but it appears to ignore it (it's probably
 a valid flag, I haven't trawled the gcc man page).  The upshot is that the
 command appears to work, but produces "Main.exe" instead of "2/Main.exe".

 I'll change GHC to not pass args beginning with "-" to the linker and emit
 an error instead.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5921#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to