[GHC] #9174: Haddock fails with "Module defined in multiple files"

#9174: Haddock fails with "Module defined in multiple files" ----------------------------------+--------------------------------- Reporter: mietek | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.2 Keywords: | Operating System: MacOS X Architecture: x86_64 (amd64) | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ----------------------------------+--------------------------------- Haddock fails to cooperate with OS X clang CPP: {{{ <no location info>: module ‘pkgid-pkgversion:Main’ is defined in multiple files: dist/build/tmp-#####/Stuff }}} A workaround is to pass `--ghc-options=-optP-P` to `cabal haddock`. This prevents `cabal-install` from being boostrapped, unless `--no-doc` is specified. The original Haddock ticket and the corresponding Cabal issue were both closed as invalid, but there appears to be no GHC ticket to track the underlying cause. http://trac.haskell.org/haddock/ticket/284 https://github.com/haskell/cabal/issues/1740 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9174 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9174: Haddock fails with "Module defined in multiple files" ---------------------------------+---------------------------------- Reporter: mietek | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.2 Resolution: | Keywords: Operating System: MacOS X | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+---------------------------------- Description changed by mietek: Old description:
Haddock fails to cooperate with OS X clang CPP: {{{ <no location info>: module ‘pkgid-pkgversion:Main’ is defined in multiple files: dist/build/tmp-#####/Stuff }}}
A workaround is to pass `--ghc-options=-optP-P` to `cabal haddock`.
This prevents `cabal-install` from being boostrapped, unless `--no-doc` is specified.
The original Haddock ticket and the corresponding Cabal issue were both closed as invalid, but there appears to be no GHC ticket to track the underlying cause. http://trac.haskell.org/haddock/ticket/284 https://github.com/haskell/cabal/issues/1740
New description: Haddock fails to cooperate with OS X clang CPP: {{{ <no location info>: module ‘pkgid-pkgversion:Main’ is defined in multiple files: dist/build/tmp-#####/Stuff }}} A workaround is to pass `--ghc-options=-optP-P` to `cabal haddock`. This prevents `cabal-install` from bootstrapping, unless `--no-doc` is specified. The original Haddock ticket and the corresponding Cabal issue were both closed as invalid, but there appears to be no GHC ticket to track the underlying cause. http://trac.haskell.org/haddock/ticket/284 https://github.com/haskell/cabal/issues/1740 -- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9174#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9174: Haddock fails with "Module defined in multiple files" ---------------------------------+---------------------------------- Reporter: mietek | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.8.2 Resolution: duplicate | Keywords: Operating System: MacOS X | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+---------------------------------- Changes (by carter): * status: new => closed * resolution: => duplicate Comment: i'm closing it as a duplicated, because a lot of the related issues are due to be resolved in https://ghc.haskell.org/trac/ghc/ticket/8683 its a known issue of using clang for cpp naively, things will break. dont use clang for cpp. This becomes easier in 7.8.3 which will be release soon (and i'm told with that patches in #8683 merged in) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9174#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9174: Haddock fails with "Module defined in multiple files" ---------------------------------+---------------------------------- Reporter: mietek | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.8.2 Resolution: duplicate | Keywords: Operating System: MacOS X | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+---------------------------------- Comment (by mietek): '''carter''', is this fixed by #8683? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9174#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9174: Haddock fails with "Module defined in multiple files" ---------------------------------+---------------------------------- Reporter: mietek | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.2 Resolution: | Keywords: Operating System: MacOS X | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+---------------------------------- Changes (by mietek): * status: closed => new * resolution: duplicate => Comment: Still an issue in 7.8.3. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9174#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9174: Haddock fails with "Module defined in multiple files" ---------------------------------+---------------------------------- Reporter: mietek | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.3 Resolution: | Keywords: Operating System: MacOS X | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+---------------------------------- Changes (by mietek): * version: 7.8.2 => 7.8.3 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9174#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC