#3867: ghc: panic! (linkBCO: >= 64k ptrs)
---------------------------------+------------------------------------------
    Reporter:  archgrove         |        Owner:                           
        Type:  bug               |       Status:  new                      
    Priority:  normal            |    Milestone:  6.12.3                   
   Component:  Compiler          |      Version:  6.12.1                   
    Keywords:                    |   Difficulty:                           
          Os:  Unknown/Multiple  |     Testcase:                           
Architecture:  Unknown/Multiple  |      Failure:  GHC rejects valid program
---------------------------------+------------------------------------------

Comment(by gyppo):

 Clarification:
 GHCi, version 6.12.1: http://www.haskell.org/ghc/  :? for help
 Loading package ghc-prim ... linking ... done.
 Loading package integer-gmp ... linking ... done.
 Loading package base ... linking ... done.
 Loading package ffi-1.0 ... linking ... done.
 [1 of 1] Compiling Main             (
 C:\Users\Sam\Documents\Programming\Haskell
 \primes.hs, interpreted )
 Ok, modules loaded: Main.

 Works fine. Then:
 *Main> 1+1
 2

 Also fine.
 But if I attempt to use any of the functions in primes.hs (which worked
 prior to the copy-pasted huge list of primes) I get something similar to
 {{{
 *Main> is_prime 7
 Loading package array-0.3.0.0 ... linking ... done.
 Loading package bytestring-0.9.1.5 ... linking ... done.
 Loading package Win32-2.2.0.1 ... linking ... done.
 Loading package filepath-1.1.0.3 ... linking ... done.
 Loading package old-locale-1.0.0.2 ... linking ... done.
 Loading package old-time-1.0.0.3 ... linking ... done.
 Loading package directory-1.0.1.0 ... linking ... done.
 Loading package process-1.0.1.2 ... linking ... done.
 Loading package time-1.1.4 ... linking ... done.
 Loading package random-1.0.0.2 ... linking ... done.
 Loading package haskell98 ... linking ... done.
 : panic! (the 'impossible' happened)
   (GHC version 6.12.1 for i386-unknown-mingw32):
         linkBCO: >= 64k ptrs

 Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
 }}}

 The list doesn't have to be referred, any reference to anything included
 in the file throws this error.

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