Closed acertain closed 3 years ago
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.
This is with latest (a5646c16b5634bb8e3d568df4ebeb7fa194471e6) ghc-wpc and latest (6a26eca57226e5026dbde14240122a67d86b7c15) ghc-whole-program-compiler-project.
is mkfullpak also the latest?
Yes
Could you please attach the _build/stage1/bin/runghc.dyn_o_ghc_stgapp
file?
(added .txt
extension to make github happy)
runghc.dyn_o_ghc_stgapp.txt
What is the content of these folders (recursively)? (*_stglib
)
It is strange, it works on Ubuntu 16.04. Could this be a nix issue? (I mean surely I miss something in ghc-wpc)
/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
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
use hadrian/build-stack
The cabal lib is also patched in ghc-wpc, and hadrian/build-stack uses the modified cabal lib.
Works, thanks!
e.g.
from running
mkfullpack _build/stage1/bin/runghc.dyn_o_ghc_stgapp
but I also get a similar
running
mkfullpak Main.o_ghc_stgapp
(whereMain.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 intostage1/lib/x86_64-linux-ghc-8.11.0.20210306
. Butmkfullpak
is only searching instage1/lib/x86_64-linux-ghc-8.11.0.20210306