Open vmchale opened 2 weeks ago
This appears to be related to --hadrian
. ghcup compile ghc -j6 -v 9.2.8 -b 9.0.2 -x aarch64-linux-gnu --config $(pwd)/build-native.mk --make
with ghcup 0.1.22.0 works, provided that one runs ghcup set ghc 9.0.2
instead of relying on -b
It is so weird that the error happened in gmake install
phase, which is supposed to happen after the hadrian step, but the --make
is working.
The error indicates that aarch64-linux-gnu-9.2.8/lib/ghc-9.2.8/bin/ghc-pkg
is not available, something is likely wrong with the bindist being created by hadrian.
@vmchale the issue here is that hadrian does not support "build.mk" based config. The regression in the behaviour of ghcup is just due to hadrian becoming the default, earlier ghcup (0.1.18.0) would have used --make.
Yes, there are a couple of GHC versions that support both make and hadrian. GHCup's logic is as follows:
The issues with -b
are here:
Running:
fails with
where ghcup 0.1.18.0 succeeded.
Also it will use the system GHC rather than the GHC specified by
-b
(for ghcup 0.1.18.0-b
works). I have to runghcup set ...
to get it to run with ghcup 0.1.22.0