[GHC] #8320: HEAD (4e2f6c2) build failure

#8320: HEAD (4e2f6c2) build failure --------------------------------+---------------------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.7 Keywords: | Operating System: Linux Architecture: x86 | Type of failure: Building GHC failed Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | --------------------------------+---------------------------------------- Anyone else see the build failure below? {{{ $ perl boot && ./configure && make ... attempting to use module `ghc-prim:GHC.Types' (libraries/ghc- prim/./GHC/Types.hs) which is not loaded make[1]: *** [libraries/ghc-prim/dist-install/doc/html/ghc-prim/ghc- prim.haddock] Error 1 make: *** [all] Error 2 }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: HEAD build failure ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

Anyone else see the build failure below?
{{{ $ perl boot && ./configure && make ... attempting to use module `ghc-prim:GHC.Types' (libraries/ghc-
make[1]: *** [libraries/ghc-prim/dist-install/doc/html/ghc-prim/ghc-
#8320: HEAD build failure ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- Comment (by guest): Replying to [ticket:8320 guest]: prim/./GHC/Types.hs) which is not loaded prim.haddock] Error 1
make: *** [all] Error 2 }}}
Retried and hit another bug today: {{{ HC [stage 2] utils/haddock/dist/build/Haddock/Lex.dyn_o utils/haddock/dist/build/Haddock/Lex.hs:415:29: Couldn't match expected type `Bool' with actual type `Int#' In the first argument of `(&&)', namely `(offset >=# 0#)' In the expression: (offset >=# 0#) && (check ==# ord_c) In the expression: if (offset >=# 0#) && (check ==# ord_c) then alexIndexInt16OffAddr alex_table offset else alexIndexInt16OffAddr alex_deflt s utils/haddock/dist/build/Haddock/Lex.hs:415:48: Couldn't match expected type `Bool' with actual type `Int#' In the second argument of `(&&)', namely `(check ==# ord_c)' In the expression: (offset >=# 0#) && (check ==# ord_c) In the expression: if (offset >=# 0#) && (check ==# ord_c) then alexIndexInt16OffAddr alex_table offset else alexIndexInt16OffAddr alex_deflt s make[1]: *** [utils/haddock/dist/build/Haddock/Lex.dyn_o] Error 1 }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: HEAD build failure ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- Comment (by jstolarek): This is related to recent change in primops. See [http://www.haskell.org/pipermail/ghc-devs/2013-September/002558.html this message on mailing list] for instructions what to do. Also, you might want to mail ghc-devs list to verify that your failures are actually bugs in GHC before you report them. You are much more likely to receive support there. See also http://ghc.haskell.org/trac/ghc/wiki/ReportABug -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- Description changed by jstolarek: Old description:
Anyone else see the build failure below?
{{{ $ perl boot && ./configure && make ... attempting to use module `ghc-prim:GHC.Types' (libraries/ghc- prim/./GHC/Types.hs) which is not loaded make[1]: *** [libraries/ghc-prim/dist-install/doc/html/ghc-prim/ghc- prim.haddock] Error 1 make: *** [all] Error 2 }}}
New description: Anyone else see the build failure below? {{{ $ perl boot && ./configure && make ... attempting to use module `ghc-prim:GHC.Types' (libraries/ghc- prim/./GHC/Types.hs) which is not loaded make[1]: *** [libraries/ghc-prim/dist-install/doc/html/ghc-prim/ghc- prim.haddock] Error 1 make: *** [all] Error 2 }}} EDIT: Same build failure was reported by Gabor Greif: {{{ make -r --no-print-directory -f ghc.mk phase=final all "/Users/ggreif/ghc-head/inplace/bin/haddock" --odir="libraries/ghc-prim/dist-install/doc/html/ghc-prim" --no-tmp-comp-dir --dump-interface=libraries/ghc-prim/dist-install/doc/html/ghc-prim/ghc- prim.haddock --html --hoogle --title="ghc-prim-0.3.1.0: GHC primitives" --prologue="libraries/ghc-prim/dist-install/haddock-prologue.txt" --optghc=-hisuf --optghc=dyn_hi --optghc=-osuf --optghc=dyn_o --optghc=-hcsuf --optghc=dyn_hc --optghc=-fPIC --optghc=-dynamic --optghc=-H32m --optghc=-O --optghc=-package-name --optghc=ghc-prim-0.3.1.0 --optghc=-hide-all-packages --optghc=-i --optghc=-ilibraries/ghc-prim/. --optghc=-ilibraries/ghc-prim/dist-install/build --optghc=-ilibraries/ghc-prim/dist-install/build/autogen --optghc=-Ilibraries/ghc-prim/dist-install/build --optghc=-Ilibraries/ghc-prim/dist-install/build/autogen --optghc=-Ilibraries/ghc-prim/. --optghc=-optP-include --optghc=-optPlibraries/ghc-prim/dist-install/build/autogen/cabal_macros.h --optghc=-package --optghc=rts-1.0 --optghc=-package-name --optghc=ghc-prim --optghc=-XHaskell98 --optghc=-XCPP --optghc=-XMagicHash --optghc=-XForeignFunctionInterface --optghc=-XUnliftedFFITypes --optghc=-XUnboxedTuples --optghc=-XEmptyDataDecls --optghc=-XNoImplicitPrelude --optghc=-O2 --optghc=-no-user-package-db --optghc=-rtsopts --optghc=-odir --optghc=libraries/ghc-prim/dist-install/build --optghc=-hidir --optghc=libraries/ghc-prim/dist-install/build --optghc=-stubdir --optghc=libraries/ghc-prim/dist-install/build libraries/ghc-prim/./GHC/Classes.hs libraries/ghc-prim/./GHC/CString.hs libraries/ghc-prim/./GHC/Debug.hs libraries/ghc-prim/./GHC/Magic.hs libraries/ghc-prim/dist-install/build/GHC/PrimopWrappers.hs libraries/ghc-prim/./GHC/IntWord64.hs libraries/ghc-prim/./GHC/Tuple.hs libraries/ghc-prim/./GHC/Types.hs libraries/ghc-prim/dist-install/build/autogen/GHC/Prim.hs +RTS -tlibraries/ghc-prim/dist-install/doc/html/ghc-prim/ghc-prim.haddock.t --machine-readable Haddock coverage: Warning: Couldn't find .haddock for export GHC.Prim.Int64# Warning: Couldn't find .haddock for export GHC.Prim.Word64# 3% ( 1 / 38) in 'GHC.IntWord64' 80% ( 8 / 10) in 'GHC.Types' 17% ( 1 / 6) in 'GHC.CString' 3% ( 2 / 63) in 'GHC.Tuple' 0% ( 0 / 3) in 'GHC.Debug' 0% ( 0 /354) in 'GHC.PrimopWrappers' 33% (181 /553) in 'GHC.Prim' 100% ( 3 / 3) in 'GHC.Magic' 38% ( 6 / 16) in 'GHC.Classes' attempting to use module 'ghc-prim:GHC.Types' (libraries/ghc-prim/./GHC/Types.hs) which is not loaded make[1]: *** [libraries/ghc-prim/dist-install/doc/html/ghc-prim/ghc- prim.haddock] Error 1 make[1]: Target `all' not remade because of errors. make: *** [all] Error 2 make: Target `default' not remade because of errors. }}} -- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- Comment (by guest): Replying to [comment:3 jstolarek]:
This is related to recent change in primops. See [http://www.haskell.org/pipermail/ghc-devs/2013-September/002558.html this message on mailing list] for instructions what to do.
I ran 'make maintainer-clean' and 'git clean -fxd' first and have Alex 3.1.0 plus Happy 1.19.0. Any missing prerequisite?
Also, you might want to mail ghc-devs list to verify that your failures are actually bugs in GHC before you report them. You are much more likely to receive support there. See also http://ghc.haskell.org/trac/ghc/wiki/ReportABug
I considered that but the history of http://ghc.haskell.org/trac/ghc/ticket/8194 led me to go directly file a bug report. Was that bad luck or something wrong about the emails? Are you saying this should be filed under Haddock? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- Changes (by heisenbug): * cc: ggreif@… (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: 8376 ----------------------------------------+--------------------------- Changes (by guest): * related: => 8376 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: #8376 ----------------------------------------+--------------------------- Changes (by guest): * related: 8376 => #8376 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- Changes (by guest): * related: #8376 => -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- Comment (by guest): Is this related to #8276 or a duplicate of that? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- Comment (by jstolarek): #8276 might be related, but to be honest we don't really know. They are certainly not duplicates. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- Changes (by kazu-yamamoto): * cc: kazu@… (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:12 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- Comment (by kazu-yamamoto): I saw this problem (the top, not comment 2) on 32bit Linux. I saw #8276 on 64bit Linux. Of source, if I put {{{ HADDOCK_DOCS = NO }}} to mk/build.mk, building GHC works fine on both Linux. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:13 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- Comment (by guest): Replying to [comment:13 kazu-yamamoto]:
I saw this problem (the top, not comment 2) on 32bit Linux. I saw #8276 on 64bit Linux. Of source, if I put {{{ HADDOCK_DOCS = NO }}} to mk/build.mk, building GHC works fine on both Linux.
Thanks Kazu that works. That flag also skips building haddock the tool. I suppose that's normal. Now that I built, installed HEAD and accidentally executed "ghc -v" instead of "ghc -V" and saw interessting messages. Are messages like "dph-seq not found" and "Deleting temp files" normal or actually debug messages that should be hidden? {{{ ~ $ ghc -v Glasgow Haskell Compiler, Version 7.7.20130924, stage 2 booted by GHC version 7.6.3 Using binary package database: /tmp/ghc/7.7.20130924/lib/ghc-7.7.20130924/package.conf.d/package.cache wired-in package ghc-prim mapped to ghc- prim-0.3.1.0-1a51f4d990d4ba60a7bebe49b71a4509 wired-in package integer-gmp mapped to integer- gmp-0.5.1.0-68d74af8d5c1c44507f359ecebda168b wired-in package base mapped to base-4.7.0.0-13f975e81921cf03d203f82457310880 wired-in package rts mapped to builtin_rts wired-in package template-haskell mapped to template- haskell-2.9.0.0-4f7c22527213a39f437cc8da13a57943 wired-in package dph-seq not found. wired-in package dph-par not found. Hsc static flags: *** Deleting temp files: Deleting: *** Deleting temp dirs: Deleting: ghc: no input files Usage: For basic information, try the `--help' option. }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:14 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- Comment (by darchon): I've enabled tracing code for interface reading code, and I get a little more detail: {{{ Starting fork { Dict fun Control.Applicative.$fAlternative[] Starting fork { Declaration for $fAlternative[] Loading decl for Control.Applicative.$fAlternative[] updating EPS_ Considering whether to load ghc-prim:GHC.Types {- SYSTEM -} Reading interface for ghc-prim:GHC.Types; reason: Need home interface for wired-in thing [] updating EPS_ attempting to use module ‛ghc-prim:GHC.Types’ (libraries/ghc- prim/./GHC/Types.hs) which is not loaded }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:15 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- Changes (by simonmar): * cc: simonmar (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:16 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- Comment (by awson): I wonder why this ticket's priority is set to 'normal'. This bug essentially renders GHC HEAD unusable by 'end' user on all platforms. Shouldn't this ticket's priority be 'high' or even 'highest'? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:17 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: highest | Milestone: Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- Changes (by simonpj): * priority: normal => highest Comment: Yes, we'd better fix this before 7.8. Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:18 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: highest | Milestone: 7.8.1 Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- Changes (by simonpj): * milestone: => 7.8.1 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:19 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: highest | Milestone: 7.8.1 Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- Changes (by krakrjak): * cc: krakrjak@… (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:20 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: highest | Milestone: 7.8.1 Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- Changes (by bgamari): * cc: bgamari@… (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:21 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: highest | Milestone: 7.8.1 Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- Changes (by AndreasVoellmy): * cc: andreas.voellmy@… (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:22 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: highest | Milestone: 7.8.1 Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- Comment (by simonpj): darchon, can you still reproduce this? If so, can you send a complete log, showing the command line you used, for a 'make' without using -j? And do enable the interface-tracing code as you show above. Thanks Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:23 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: highest | Milestone: 7.8.1 Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- Comment (by kazu-yamamoto): On 32bit Linux, I got the following error today: {{{ make -r --no-print-directory -f ghc.mk phase=final all "/home/kazu/work/ghc/inplace/bin/haddock" --odir="libraries/ghc-prim/dist- install/doc/html/ghc-prim" --no-tmp-comp-dir --dump-interface=libraries /ghc-prim/dist-install/doc/html/ghc-prim/ghc-prim.haddock --html --hoogle --title="ghc-prim-0.3.1.0: GHC primitives" --prologue="libraries/ghc-prim /dist-install/haddock-prologue.txt" --optghc=-hisuf --optghc=dyn_hi --optghc=-osuf --optghc=dyn_o --optghc=-hcsuf --optghc=dyn_hc --optghc=-fPIC --optghc=-dynamic --optghc=-H32m --optghc=-O --optghc =-package-name --optghc=ghc-prim-0.3.1.0 --optghc=-hide-all-packages --optghc=-i --optghc=-ilibraries/ghc-prim/. --optghc=-ilibraries/ghc-prim /dist-install/build --optghc=-ilibraries/ghc-prim/dist- install/build/autogen --optghc=-Ilibraries/ghc-prim/dist-install/build --optghc=-Ilibraries/ghc-prim/dist-install/build/autogen --optghc=-Ilibraries/ghc-prim/. --optghc=-optP-include --optghc=-optPlibraries/ghc-prim/dist-install/build/autogen/cabal_macros.h --optghc=-package --optghc=rts-1.0 --optghc=-package-name --optghc=ghc- prim --optghc=-XHaskell98 --optghc=-XCPP --optghc=-XMagicHash --optghc=-XForeignFunctionInterface --optghc=-XUnliftedFFITypes --optghc=-XUnboxedTuples --optghc=-XEmptyDataDecls --optghc=-XNoImplicitPrelude --optghc=-O2 --optghc=-no-user-package-db --optghc=-rtsopts --optghc=-odir --optghc=libraries/ghc-prim/dist- install/build --optghc=-hidir --optghc=libraries/ghc-prim/dist- install/build --optghc=-stubdir --optghc=libraries/ghc-prim/dist- install/build libraries/ghc-prim/./GHC/Classes.hs libraries/ghc- prim/./GHC/CString.hs libraries/ghc-prim/./GHC/Debug.hs libraries/ghc- prim/./GHC/Magic.hs libraries/ghc-prim/dist- install/build/GHC/PrimopWrappers.hs libraries/ghc-prim/./GHC/IntWord64.hs libraries/ghc-prim/./GHC/Tuple.hs libraries/ghc-prim/./GHC/Types.hs libraries/ghc-prim/dist-install/build/autogen/GHC/Prim.hs +RTS -tlibraries /ghc-prim/dist-install/doc/html/ghc-prim/ghc-prim.haddock.t --machine- readable Haddock coverage: Warning: Couldn't find .haddock for export GHC.Prim.Int64# Warning: Couldn't find .haddock for export GHC.Prim.Word64# 3% ( 1 / 38) in 'GHC.IntWord64' 80% ( 8 / 10) in 'GHC.Types' 17% ( 1 / 6) in 'GHC.CString' 3% ( 2 / 63) in 'GHC.Tuple' 0% ( 0 / 3) in 'GHC.Debug' 0% ( 0 /366) in 'GHC.PrimopWrappers' 72% (817 /1138) in 'GHC.Prim' 100% ( 3 / 3) in 'GHC.Magic' 38% ( 6 / 16) in 'GHC.Classes' attempting to use module ‛ghc-prim:GHC.Types’ (libraries/ghc- prim/./GHC/Types.hs) which is not loaded make[1]: *** [libraries/ghc-prim/dist-install/doc/html/ghc-prim/ghc- prim.haddock] Error 1 make: *** [all] Error 2 }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:24 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: highest | Milestone: 7.8.1 Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- Comment (by darchon): It's still failing with the same error (latest commit: d5075dcfecbab1b6e3dbb7f8347124923796d46b) My complete build log: https://www.dropbox.com/s/c8ndh4x2jwtm4n1/build.log [[BR]] The interesting part: http://lpaste.net/93924 [[BR]] My build.mk: http://lpaste.net/93925 (`perf` build without profiling libs) The command that I used to built are: {{{ make maintainer-clean ./sync-all pull perl boot ./configure make }}} However, I did patch the intree haddock (`utils/haddock`) to get the extra interface-tracing information. You can find the patch I applied here: https://gist.github.com/christiaanb/6837931. The first part of the patch fixes a bug related to staticFlags (#8276), the second part adds the interface-tracing DynFlag. Anyhow, I looked at the part of the code that prints the error message, and it seems to print it when you want to read the interface file of a module in the HomePackage; an interface of a module it expects to be already read/loaded. The reason it got to that part of the code is because the interface info for the wired-in thing ([] in this case) was neither in the HomePackageTable (HPT), nor in the PIT. But since I don't know what either of those things are, nor what assertions should hold for them in relation to wired-in things, I couldn't analyse the bug any further. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:25 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: highest | Milestone: 7.8.1 Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- Comment (by kazu-yamamoto): Even after #8276 is fixed, this problem still exists. I met this problem on 32bit Linux and FreeBSD today. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:26 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: highest | Milestone: 7.8.1 Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- Changes (by SimonHengel): * cc: sol@… (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:28 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: highest | Milestone: 7.8.1 Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- Comment (by bos): I just ran into this with latest HEAD on Mac OS X. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:29 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: highest | Milestone: 7.8.1 Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- Changes (by Fuuzetsu): * cc: fuuzetsu@… (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:30 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: highest | Milestone: 7.8.1 Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- Changes (by snoyberg): * cc: michael@… (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:31 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: highest | Milestone: 7.8.1 Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- Changes (by jstolarek): * cc: jan.stolarek@… (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:32 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: highest | Milestone: 7.8.1 Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- Changes (by JohnWiegley): * cc: johnw@… (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:33 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: highest | Milestone: 7.8.1 Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- Comment (by Fuuzetsu): Still a problem on 32-bit with current HEAD. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:34 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: highest | Milestone: 7.8.1 Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- Comment (by acabrera): This is still a problem. Downloaded and built HEAD yesterday on 64-bit Linux (XUbuntu 13.04) using {{{quick}}} build flavor, {{{HADDOCK_DOCS=NO}}}, and bootstrapping with GHC 7.6.3. Outcome: {{{ Preprocessing library ghc-prim-0.3.1.0... "/home/alejandro/Development/ghc/inplace/bin/haddock" --odir="libraries /ghc-prim/dist-install/doc/html/ghc-prim" --no-tmp-comp-dir --dump- interface=libraries/ghc-prim/dist-install/doc/html/ghc-prim/ghc- prim.haddock --html --hoogle --title="ghc-prim-0.3.1.0: GHC primitives" --prologue="libraries/ghc-prim/dist-install/haddock-prologue.txt" --optghc=-hisuf --optghc=dyn_hi --optghc=-osuf --optghc=dyn_o --optghc=-hcsuf --optghc=dyn_hc --optghc=-fPIC --optghc=-dynamic --optghc=-H32m --optghc=-O --optghc=-package-name --optghc=ghc- prim-0.3.1.0 --optghc=-hide-all-packages --optghc=-i --optghc=-ilibraries /ghc-prim/. --optghc=-ilibraries/ghc-prim/dist-install/build --optghc=-ilibraries/ghc-prim/dist-install/build/autogen --optghc=-Ilibraries/ghc-prim/dist-install/build --optghc=-Ilibraries/ghc- prim/dist-install/build/autogen --optghc=-Ilibraries/ghc-prim/. --optghc =-optP-include --optghc=-optPlibraries/ghc-prim/dist- install/build/autogen/cabal_macros.h --optghc=-package --optghc=rts-1.0 --optghc=-package-name --optghc=ghc-prim --optghc=-XHaskell98 --optghc=-XCPP --optghc=-XMagicHash --optghc=-XForeignFunctionInterface --optghc=-XUnliftedFFITypes --optghc=-XUnboxedTuples --optghc=-XEmptyDataDecls --optghc=-XNoImplicitPrelude --optghc=-O2 --optghc=-no-user-package-db --optghc=-rtsopts --optghc=-odir --optghc=libraries/ghc-prim/dist-install/build --optghc=-hidir --optghc=libraries/ghc-prim/dist-install/build --optghc=-stubdir --optghc=libraries/ghc-prim/dist-install/build --source- module=src/%{MODULE/./-}.html --source- entity=src/%{MODULE/./-}.html#%{NAME} libraries/ghc- prim/./GHC/Classes.hs libraries/ghc-prim/./GHC/CString.hs libraries/ghc- prim/./GHC/Debug.hs libraries/ghc-prim/./GHC/Magic.hs libraries/ghc-prim /dist-install/build/GHC/PrimopWrappers.hs libraries/ghc- prim/./GHC/IntWord64.hs libraries/ghc-prim/./GHC/Tuple.hs libraries/ghc- prim/./GHC/Types.hs libraries/ghc-prim/dist- install/build/autogen/GHC/Prim.hs +RTS -tlibraries/ghc-prim/dist- install/doc/html/ghc-prim/ghc-prim.haddock.t --machine-readable Haddock coverage: 100% ( 1 / 1) in 'GHC.IntWord64' 80% ( 8 / 10) in 'GHC.Types' 17% ( 1 / 6) in 'GHC.CString' 3% ( 2 / 63) in 'GHC.Tuple' 0% ( 0 / 3) in 'GHC.Debug' 0% ( 0 /366) in 'GHC.PrimopWrappers' 72% (813 /1132) in 'GHC.Prim' 100% ( 3 / 3) in 'GHC.Magic' 38% ( 6 / 16) in 'GHC.Classes' attempting to use module ‛ghc-prim:GHC.Types’ (libraries/ghc- prim/./GHC/Types.hs) which is not loaded }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:35 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types
----------------------------------------+---------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: highest | Milestone: 7.8.1
Component: Build System | Version: 7.7
Resolution: | Keywords:
Operating System: Linux | Architecture: x86
Type of failure: Building GHC failed | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
----------------------------------------+---------------------------
Comment (by Simon Peyton Jones

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: closed Priority: highest | Milestone: 7.8.1 Component: Build System | Version: 7.7 Resolution: fixed | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- Changes (by simonpj): * status: new => closed * resolution: => fixed Comment: OK I believe I have nailed this. Everyone who was stuck, please check if it's ok now. I'll close the ticket because I can see the whole causal path, so I'm pretty confident. Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:37 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: closed Priority: highest | Milestone: 7.8.1 Component: Build System | Version: 7.7 Resolution: fixed | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- Comment (by simonpj): #8374 may be another manifestation of the same AMP problem (now fixed). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:38 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: closed Priority: highest | Milestone: 7.8.1 Component: Build System | Version: 7.7 Resolution: fixed | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- Comment (by kazu-yamamoto): This bug disappeared on both 32bit/64bit Linux. Thanks. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:39 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: closed Priority: highest | Milestone: 7.8.1 Component: Build System | Version: 7.7 Resolution: fixed | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- Comment (by snoyberg): My build just completed, and everything seems to be working fine. Thanks! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:40 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8320: Build fails due to Haddock error in ghc-prim:GHC.Types ----------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: closed Priority: highest | Milestone: 7.8.1 Component: Build System | Version: 7.7 Resolution: fixed | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+--------------------------- Comment (by acabrera): Confirmed fixed! {{{ $ /home/alejandro/tools/ghc-7.8-dev/bin/ghc --version The Glorious Glasgow Haskell Compilation System, version 7.7.20131018 $ ls -l /home/alejandro/tools/ghc-7.8-dev/bin/ghc lrwxrwxrwx 1 alejandro alejandro 16 Oct 24 09:36 /home/alejandro/tools/ghc-7.8-dev/bin/ghc -> ghc-7.7.20131018 }}} Confirmed as of: '''Oct 24 09:36 EDT''' -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8320#comment:41 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC