Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 533990 - dev-haskell/haddock-2.14.3.0.7.8.3 fails install phase - setup: Error: Could not find module: Documentation.Haddock with any suffix: ["dyn_hi"] in the search path: ["dist/build"]
Summary: dev-haskell/haddock-2.14.3.0.7.8.3 fails install phase - setup: Error: Could ...
Status: RESOLVED DUPLICATE of bug 556504
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-30 05:59 UTC by Alexandre Rostovtsev (RETIRED)
Modified: 2016-05-14 17:31 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info + haddock build.log (emerge --info + haddock build.log.txt,18.35 KB, text/plain)
2014-12-30 05:59 UTC, Alexandre Rostovtsev (RETIRED)
Details
tree /var/tmp/portage/dev-haskell/haddock-2.14.3.0.7.8.3 (tree-haddock.txt,34.43 KB, text/plain)
2014-12-30 15:12 UTC, Alexandre Rostovtsev (RETIRED)
Details
verbose build log (verbose-build.log,353.05 KB, text/plain)
2014-12-30 23:18 UTC, Alexandre Rostovtsev (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Rostovtsev (RETIRED) gentoo-dev 2014-12-30 05:59:08 UTC
Created attachment 392690 [details]
emerge --info + haddock build.log

When trying to rebuild haddock-2.14.3.0.7.8.3 after updating to ghc-7.8.4:

>>> Install haddock-2.14.3.0.7.8.3 into /var/tmp/portage/dev-haskell/haddock-2.14.3.0.7.8.3/image/ category dev-haskell
./setup copy --destdir=/var/tmp/portage/dev-haskell/haddock-2.14.3.0.7.8.3/image/
Installing library in
/var/tmp/portage/dev-haskell/haddock-2.14.3.0.7.8.3/image/usr/lib64/haddock-2.14.3.0.7.8.3/ghc-7.8.4
Installing executable(s) in
/var/tmp/portage/dev-haskell/haddock-2.14.3.0.7.8.3/image/usr/bin
Warning: The directory
/var/tmp/portage/dev-haskell/haddock-2.14.3.0.7.8.3/image/usr/bin is not in
the system search path.
setup: Error: Could not find module: Documentation.Haddock with any suffix:
["dyn_hi"] in the search path: ["dist/build"]
 * ERROR: dev-haskell/haddock-2.14.3.0.7.8.3::gentoo failed (install phase):
 *   setup copy failed
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2014-12-30 09:48:58 UTC
That looks very strange. Can you reproduce it consistently?

ghc obviously compiled a source file:
> [41 of 41] Compiling Documentation.Haddock ( src/Documentation/Haddock.hs, dist/build/Documentation/Haddock.o )

It should have been created Haddock.o Haddock.hi Haddock.dyn_o Haddock.dyn_hi.
Do you have it there?
Comment 2 Alexander Vershilov (RETIRED) gentoo-dev 2014-12-30 13:26:18 UTC
Seems this issue related to upstream one https://ghc.haskell.org/trac/ghc/ticket/9176

and it is not solved yet. For me dyn_hi is not created for an 'empty' modules that have only reexports, like this one in haddock.
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2014-12-30 15:12:00 UTC
Created attachment 392700 [details]
tree /var/tmp/portage/dev-haskell/haddock-2.14.3.0.7.8.3

(In reply to Sergei Trofimovich from comment #1)
> That looks very strange. Can you reproduce it consistently?

Yes. Tried 4 times.

> ghc obviously compiled a source file:
> > [41 of 41] Compiling Documentation.Haddock ( src/Documentation/Haddock.hs, dist/build/Documentation/Haddock.o )
> 
> It should have been created Haddock.o Haddock.hi Haddock.dyn_o
> Haddock.dyn_hi.
> Do you have it there?

Yes, I have Haddock.o Haddock.hi and Haddock.dyn_o in $S/dist/build/Documentation. The full /var/tmp/portage/dev-haskell/haddock-2.14.3.0.7.8.3 dir tree is attached.
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2014-12-30 22:16:31 UTC
Interesting, you have a single .dyn_hi file there.
Looks suspiciously like ghc bug Alexander pointed to.

I wonder why I can't reproduce it. Let's try two tests:

1. try to reproduce with MAKEOPTS=-j1 (it will make build more deterministic)
2. try to build with HCFLAGS="-O -v" and attach build.log here. It will increase verbosity of compiler.
Comment 5 Alexandre Rostovtsev (RETIRED) gentoo-dev 2014-12-30 23:18:16 UTC
Created attachment 392718 [details]
verbose build log

(In reply to Sergei Trofimovich from comment #4)

Build log with HCFLAGS="-O -v" MAKEOPTS=-j1 attached.
Comment 6 Alexander Vershilov (RETIRED) gentoo-dev 2014-12-30 23:53:56 UTC
As Mark Wright says you rebuilding *ghc* with MAKEOPTS=-j1 or using USE="binary" fixes the issue, currently I'm trying to rebuild my system and understand if it will save me. I'm also experience same issue but with a different set of packages.
Comment 7 Alexandre Rostovtsev (RETIRED) gentoo-dev 2014-12-31 02:43:10 UTC
(In reply to Alexander Vershilov from comment #6)

Interesting, rebuilding ghc with MAKEOPTS=-j1 (and then rebuilding cabal and ghc-paths) did fix the problem. Unfortunately, with -j1 compiling ghc takes almost 70 minutes.
Comment 8 Sergei Trofimovich (RETIRED) gentoo-dev 2016-05-14 17:31:20 UTC

*** This bug has been marked as a duplicate of bug 556504 ***