<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection">Huh,<br />
<br />
So this is a bug I thought I dealt with :/<br />
In the short term, I've found that often simply trying the build again can fix it. This is a dependency issue that I don't 100% understand.<br />
<br />
For some more technical background, the "InfoTableProf" module is only built/needed when it is used with PROFILING. It uses CPP to "peek" into the StgInfoTable, which changes under profiling.<br />
<br />
My impression is that dependency resolution decides that module isn't necessary, so then it is missing when it goes to use it. Again, I am not sure here, that's just what seemed to be the issue.<br />
<br />
Best,<br />
Patrick Dougherty</div>
<div name="messageReplySection">On May 26, 2018, 8:39 PM -0500, Sean D Gillespie <sean@mistersg.net>, wrote:<br />
<blockquote type="cite">Howdy,<br />
<br />
I am unable to build the latest revision of GHC on NixOS. I can build older revisions.<br />
Here's my error:<br />
<br />
===--- building final phase<br />
make --no-print-directory -f ghc.mk phase=final all<br />
"inplace/bin/ghc-stage1" -hisuf p_hi -osuf p_o -hcsuf p_hc -static -prof -eventlog -H32m -O -Wall -this-unit-id ghc-heap-8.5 -hide-all-packages -i -ilibraries/ghc-heap/. -ilibraries/gh<br />
c-heap/dist-install/build -Ilibraries/ghc-heap/dist-install/build -ilibraries/ghc-heap/dist-install/build/./autogen -Ilibraries/ghc-heap/dist-install/build/./autogen -Ilibraries/ghc-heap/.<br />
-optP-include -optPlibraries/ghc-heap/dist-install/build/./autogen/cabal_macros.h -package-id base-4.12.0.0 -package-id ghc-prim-0.5.3 -package-id rts -Wall -XHaskell2010 -O2 -no-user-packa<br />
ge-db -rtsopts -Wno-deprecated-flags -Wnoncanonical-monad-instances -odir libraries/ghc-heap/dist-install/build -hidir libraries/ghc-heap/dist-install/build -stubdir libraries/ghc-heap/<br />
dist-install/build -split-sections -c libraries/ghc-heap/./GHC/Exts/Heap/Closures.hs -o libraries/ghc-heap/dist-install/build/GHC/Exts/Heap/Closures.p_o -dyno libraries/ghc-heap/dist-instal<br />
l/build/GHC/Exts/Heap/Closures.dyn_o<br />
<br />
libraries/ghc-heap/GHC/Exts/Heap/Closures.hs:23:1: error:<br />
Could not find module `GHC.Exts.Heap.InfoTableProf'<br />
It is a member of the hidden package `ghc-heap-8.5'.<br />
You can run `:set -package ghc-heap' to expose it.<br />
(Note: this unloads all the modules in the current scope.)<br />
Use -v to see a list of the files searched for.<br />
|<br />
23 | import GHC.Exts.Heap.InfoTableProf<br />
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br />
make[1]: *** [libraries/ghc-heap/ghc.mk:4: libraries/ghc-heap/dist-install/build/GHC/Exts/Heap/Closures.p_o] Error 1<br />
make: *** [Makefile:127: all] Error 2<br />
<br />
For reference, here's my shell.nix:<br />
<br />
{ nixpkgs ? import <nixpkgs> {}, compiler ? "ghcHEAD" }:<br />
<br />
let<br />
inherit (nixpkgs) pkgs;<br />
ghc = pkgs.haskell.packages.${compiler}.ghc;<br />
in<br />
with nixpkgs; lib.overrideDerivation ghc<br />
(drv: {<br />
name = "ghc-dev";<br />
nativeBuildInputs = drv.nativeBuildInputs ++ [<br />
arcanist<br />
git<br />
python36Packages.sphinx<br />
texlive.combined.scheme-basic<br />
];<br />
})<br />
<br />
Any help would be appreciated.<br />
<br />
Thanks<br />
Sean G<br />
_______________________________________________<br />
ghc-devs mailing list<br />
ghc-devs@haskell.org<br />
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs<br /></blockquote>
</div>
</body>
</html>