SOLVED: GHC 9.3 API panics with "No home unit"

2021-09-28 Thread Norman Ramsey
> The code worked in the 9.0 API, but using the 9.3 API causes a panic: > > sandbox: panic! (the 'impossible' happened) > GHC version 9.3.20210918: > unsafeGetHomeUnit: No home unit SOLVED: I was getting an `HscEnv` by using `newHscEnv` with a `DynFlags`. Turns out I'm not su

Re: Two questions about building GHC from sources

2021-09-28 Thread Norman Ramsey
> > 1. If my bootstrap compiler changes (e.g., from 8.10.5 to 9.0.1), is > > Hadrian smart enough to rebuild everything? If not, how do I > > force it to start over? > > (1), I would hope so. If not, that's a bug. I have confirmed that when the bootstrap compiler changes, Hadrian c

Re: please help with ghc package-db flags

2021-09-28 Thread Sylvain Henry
Hi, Could you try with `-package-env -` to disable package environment misfeature. Especially with Asterius as it may mix packages for the host with target packages that use WebAssembly... (I have been bitten by this 2 years ago IIRC). Sylvain On 27/09/2021 22:50, Norman Ramsey wrote: I'v