You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mkfullpak: stglib not found: libHSprocess-1.6.8.2-ghc8.11.0.20210306.dyn_o_stglib
CallStack (from HasCallStack):
error, called at lib/Stg/Program.hs:221:22 in external-stg-0.1.0.1-FouHBgE1u9NCkO980RRhCu:Stg.Program
from running mkfullpack _build/stage1/bin/runghc.dyn_o_ghc_stgapp
but I also get a similar
mkfullpak: stglib not found: libHSbase-4.14.0.0.o_stglib
CallStack (from HasCallStack):
error, called at lib/Stg/Program.hs:221:22 in external-stg-0.1.0.1-FouHBgE1u9NCkO980RRhCu:Stg.Program
running mkfullpak Main.o_ghc_stgapp (where Main.lhs is self-contained).
The stglib files are in e.g. stage1/libraries/base/build/libHSbase-4.14.0.0.o_stglib, and aren't being copied into stage1/lib/x86_64-linux-ghc-8.11.0.20210306. But mkfullpak is only searching in stage1/lib/x86_64-linux-ghc-8.11.0.20210306
This bug was fixed. It works for me with the latest ghc-wpc and external-stg's mkfullpak.
Rebuild your ghc-wpc and install the latest mkfullpak form external-stg and try again.
I'm using hadrian-stack. That should be the issue!
The stglib files got installed on my machine correctly:
ls _build/stage1/lib/x86_64-linux-ghc-8.11.0.20210306/base-4.14.0.0/libHSbase-4.14.0.0*stglib
_build/stage1/lib/x86_64-linux-ghc-8.11.0.20210306/base-4.14.0.0/libHSbase-4.14.0.0-ghc8.11.0.20210306.dyn_o_stglib
_build/stage1/lib/x86_64-linux-ghc-8.11.0.20210306/base-4.14.0.0/libHSbase-4.14.0.0.o_stglib
Activity
csabahruska commentedon Mar 13, 2021
This bug was fixed. It works for me with the latest ghc-wpc and external-stg's mkfullpak.
Rebuild your ghc-wpc and install the latest mkfullpak form external-stg and try again.
acertain commentedon Mar 13, 2021
This is with latest (a5646c16b5634bb8e3d568df4ebeb7fa194471e6) ghc-wpc and latest (6a26eca) ghc-whole-program-compiler-project.
csabahruska commentedon Mar 13, 2021
is mkfullpak also the latest?
acertain commentedon Mar 13, 2021
Yes
csabahruska commentedon Mar 13, 2021
Could you please attach the
_build/stage1/bin/runghc.dyn_o_ghc_stgappfile?acertain commentedon Mar 13, 2021
(added
.txtextension to make github happy)runghc.dyn_o_ghc_stgapp.txt
csabahruska commentedon Mar 13, 2021
What is the content of these folders (recursively)? (
*_stglib)csabahruska commentedon Mar 13, 2021
It is strange, it works on Ubuntu 16.04. Could this be a nix issue? (I mean surely I miss something in ghc-wpc)
acertain commentedon Mar 13, 2021
/data/Code/ghc-whole-program-compiler-project/ghc-wpc/_build/stage1/lib/../lib/x86_64-linux-ghc-8.11.0.20210306
/nix/store/fphpbj8jpyibz0l2xspidg6s7zm7xyb5-gmp-6.2.0/lib: libgmp.la libgmp.so libgmp.so.10 libgmp.so.10.4.0 libgmpxx.la libgmpxx.so libgmpxx.so.4 libgmpxx.so.4.6.0
/nix/store/saghih5p46g1nm8vmvxc5vw5pfj1nc79-numactl-2.0.13/lib: libnuma.la libnuma.so libnuma.so.1 libnuma.so.1.0.0 pkgconfig
I'm using hadrian-cabal with cabal 3.2.0.0, and ghc 8.10.2 to build ghc-wpc
csabahruska commentedon Mar 13, 2021
I'm using hadrian-stack. That should be the issue!
The stglib files got installed on my machine correctly:
use
hadrian/build-stackcsabahruska commentedon Mar 13, 2021
The cabal lib is also patched in ghc-wpc, and hadrian/build-stack uses the modified cabal lib.
acertain commentedon Mar 13, 2021
Works, thanks!