[GHC] #9100: Cannot build crypto-pubkey with GHC 7.8.2 and profiling

#9100: Cannot build crypto-pubkey with GHC 7.8.2 and profiling ----------------------------------+--------------------------------------- Reporter: JohnWiegley | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.3 Component: Compiler | Version: 7.8.2 Keywords: | Operating System: MacOS X Architecture: x86_64 (amd64) | Type of failure: Compile-time crash Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ----------------------------------+--------------------------------------- I configure crypto-pubkey with: {{{ configure flags: --disable-split-objs --enable-library-profiling --enable- shared --enable-library-vanilla --enable-executable-dynamic --enable-tests }}} And on building get: {{{ Building crypto-pubkey-0.2.4... Preprocessing library crypto-pubkey-0.2.4... [ 1 of 15] Compiling Crypto.PubKey.ECC.Prim ( Crypto/PubKey/ECC/Prim.hs, dist/build/Crypto/PubKey/ECC/Prim.o ) ghc: panic! (the 'impossible' happened) (GHC version 7.8.2 for x86_64-apple-darwin): Ix{Int}.index: Index (75497475) out of range ((0,1333)) Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug Running Haddock for crypto-pubkey-0.2.4... Preprocessing library crypto-pubkey-0.2.4... Haddock coverage: haddock: internal error: Ix{Int}.index: Index (75497475) out of range ((0,1333)) }}} If I disable library profiling, it builds cleanly: {{{ Building crypto-pubkey-0.2.4... Preprocessing library crypto-pubkey-0.2.4... [ 1 of 15] Compiling Crypto.PubKey.ECC.Prim ( Crypto/PubKey/ECC/Prim.hs, dist/build/Crypto/PubKey/ECC/Prim.o ) [ 2 of 15] Compiling Crypto.PubKey.ECC.Generate ( Crypto/PubKey/ECC/Generate.hs, dist/build/Crypto/PubKey/ECC/Generate.o ) [ 3 of 15] Compiling Crypto.PubKey.DH ( Crypto/PubKey/DH.hs, dist/build/Crypto/PubKey/DH.o ) [ 4 of 15] Compiling Crypto.PubKey.HashDescr ( Crypto/PubKey/HashDescr.hs, dist/build/Crypto/PubKey/HashDescr.o ) [ 5 of 15] Compiling Crypto.PubKey.MaskGenFunction ( Crypto/PubKey/MaskGenFunction.hs, dist/build/Crypto/PubKey/MaskGenFunction.o ) [ 6 of 15] Compiling Crypto.PubKey.DSA ( Crypto/PubKey/DSA.hs, dist/build/Crypto/PubKey/DSA.o ) [ 7 of 15] Compiling Crypto.PubKey.ECC.ECDSA ( Crypto/PubKey/ECC/ECDSA.hs, dist/build/Crypto/PubKey/ECC/ECDSA.o ) [ 8 of 15] Compiling Crypto.PubKey.ElGamal ( Crypto/PubKey/ElGamal.hs, dist/build/Crypto/PubKey/ElGamal.o ) [ 9 of 15] Compiling Crypto.PubKey.Internal ( Crypto/PubKey/Internal.hs, dist/build/Crypto/PubKey/Internal.o ) [10 of 15] Compiling Crypto.PubKey.RSA.Types ( Crypto/PubKey/RSA/Types.hs, dist/build/Crypto/PubKey/RSA/Types.o ) [11 of 15] Compiling Crypto.PubKey.RSA.Prim ( Crypto/PubKey/RSA/Prim.hs, dist/build/Crypto/PubKey/RSA/Prim.o ) [12 of 15] Compiling Crypto.PubKey.RSA ( Crypto/PubKey/RSA.hs, dist/build/Crypto/PubKey/RSA.o ) [13 of 15] Compiling Crypto.PubKey.RSA.PKCS15 ( Crypto/PubKey/RSA/PKCS15.hs, dist/build/Crypto/PubKey/RSA/PKCS15.o ) [14 of 15] Compiling Crypto.PubKey.RSA.OAEP ( Crypto/PubKey/RSA/OAEP.hs, dist/build/Crypto/PubKey/RSA/OAEP.o ) [15 of 15] Compiling Crypto.PubKey.RSA.PSS ( Crypto/PubKey/RSA/PSS.hs, dist/build/Crypto/PubKey/RSA/PSS.o ) In-place registering crypto-pubkey-0.2.4... }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9100 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9100: Cannot build crypto-pubkey with GHC 7.8.2 and profiling ---------------------------------------+---------------------------------- Reporter: JohnWiegley | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.3 Component: Compiler | Version: 7.8.2 Resolution: | Keywords: Operating System: MacOS X | Architecture: x86_64 (amd64) Type of failure: Compile-time crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------------+---------------------------------- Comment (by simonpj): Could conceivably be out-of-date .hi files. Make sure you `rm *.hi` everywhere. Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9100#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9100: Cannot build crypto-pubkey with GHC 7.8.2 and profiling ---------------------------------------+---------------------------------- Reporter: JohnWiegley | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.3 Component: Compiler | Version: 7.8.2 Resolution: | Keywords: Operating System: MacOS X | Architecture: x86_64 (amd64) Type of failure: Compile-time crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------------+---------------------------------- Comment (by JohnWiegley): I'm building this with Nix, so it should be a fresh build tree every time. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9100#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9100: Cannot build crypto-pubkey with GHC 7.8.2 and profiling -------------------------------------+------------------------------------- Reporter: | Owner: JohnWiegley | Status: infoneeded Type: bug | Milestone: 7.10.1 Priority: normal | Version: 7.8.2 Component: Compiler | Keywords: Resolution: | Architecture: x86_64 (amd64) Operating System: MacOS X | Difficulty: Unknown Type of failure: Compile- | Blocked By: time crash | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by thomie): * status: new => infoneeded Comment: I can not reproduce this issue on Ubuntu Linux. I tried the following steps. First, set `library-profiling: True` in .cabal/config. Then: {{{ $ git clone http://github.com/vincenthz/hs-crypto-pubkey $ cd hs-crypto-pubkey $ cabal sandbox init $ cabal install --only-dependencies $ cabal configure --disable-split-objs --enable-library-profiling --enable-shared --enable-library-vanilla --enable-executable-dynamic $ cabal build }}} The build succeeds. @JohnWiegley can you try again with GHC 7.8.3 please? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9100#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC