Could not find 'Prelude'

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Could not find 'Prelude'

Richard Eisenberg-2
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

Reply | Threaded
Open this post in threaded view
|

Could not find 'Prelude'

Edward Z. Yang
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


Reply | Threaded
Open this post in threaded view
|

Could not find 'Prelude'

Richard Eisenberg-2
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



Reply | Threaded
Open this post in threaded view
|

Could not find 'Prelude'

Edward Z. Yang
I mentioned it earlier, but Ian and I weren't able to figure out what had went
wrong...

Edward

Excerpts from Richard Eisenberg's message of Tue Mar 26 20:30:53 -0700 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