Could not find 'Prelude'

Richard Eisenberg eir at cis.upenn.edu
Wed Mar 27 04:30:53 CET 2013


Yep. That change did it.

My Makefile-fu isn't quite strong enough to feel comfortable changing the build process, but perhaps someone should take a look at this, because I doubt I'm the only one who would have the problem.

Thanks, Edward!
Richard

On Mar 26, 2013, at 10:48 PM, "Edward Z. Yang" <ezyang at mit.edu> wrote:

> I bet if you run ghc-pkg check it will say that base is broken due
> to a missing librts... (try changing your build.mk to this:)
> 
> GhcLibWays = $(if $(filter $(DYNAMIC_GHC_PROGRAMS),YES),dyn v,v)
> 
> Excerpts from Richard Eisenberg's message of Tue Mar 26 19:22:35 -0700 2013:
>> On HEAD, commit b9d53..., a freshly built ghc-stage2 can't find its Prelude:
>> 
>>> rae:22:06:54 ~/temp> ~/Documents/ghc-baseline/inplace/bin/ghc-stage2 Scratch.hs
>>> 
>>> Scratch.hs:1:1:
>>>    Could not find module ‛Prelude’
>>>    There are files missing in the ‛base’ package,
>>>    try running 'ghc-pkg check'.
>>>    Use -v to see a list of the files searched for.
>>> 
>> 
>> I'm building on Mac OS 10.7.5, and my build.mk is set to 'quick'.
>> 
>> Any ideas?
>> 
>> Thanks,
>> Richard




More information about the ghc-devs mailing list