#5010: ghc-asm has a poor shebang
---------------------------------+------------------------------------------
    Reporter:  mcandre           |       Owner:               
        Type:  bug               |      Status:  new          
    Priority:  normal            |   Component:  Compiler     
     Version:  6.12.3            |    Keywords:               
    Testcase:                    |   Blockedby:               
          Os:  MacOS X           |    Blocking:               
Architecture:  Unknown/Multiple  |     Failure:  Runtime crash
---------------------------------+------------------------------------------
 During a cabal install of Snap and its dependency bytestring-mmap, ghc-asm
 complained that it couldn't run.

 {{{
 $ cabal install bytestring-mmap-0.2.1
 Resolving dependencies...
 Configuring bytestring-mmap-0.2.1...
 Preprocessing library bytestring-mmap-0.2.1...
 Building bytestring-mmap-0.2.1...
 [1 of 3] Compiling System.IO.Posix.MMap.Internal (
 System/IO/Posix/MMap/Internal.hs,
 dist/build/System/IO/Posix/MMap/Internal.o )
 ghc: could not execute:
 /Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3/ghc-asm
 cabal: Error: some packages failed to install:
 bytestring-mmap-0.2.1 failed during the building phase. The exception was:
 ExitFailure 1
 }}}

 Upon further investigation, it was determined that ghc-asm wouldn't run
 due to its shebang.

 {{{
 $ less /Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3
 /ghc-asm

 #!/opt/local/bin/perl
 $TARGETPLATFORM  = "i386-apple-darwin";
 }}}

 I installed !MacPorts in ~/macports, not /opt/local. When GHC was
 installed, it should have used the shebang

 {{{
 #!/usr/bin/env perl
 }}}

 which does not depend on !MacPorts being installed in /opt/local, or for
 that matter !MacPorts being installed at all.

 Specs:

  * GHC 6.12.3
  * Haskell Platform 2010.2.0.0
  * Mac OS X 10.6.6
  * !MacBook Pro 5,1

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