Carl, and fellow GHC Users,
On 26 May 1998, Carl R. Witty wrote:
> Antony Bowers <[EMAIL PROTECTED]> writes:
> > Does ghc (any version) work on Linux with glibc-2 (libc6)?
>
> It works for me.
>
> I installed the 2.10 binary release and used it to compile 3.01 from
> source; both 2.10 (which is linked with libc5) and 3.01 (which is
> linked with libc6) can compile the following simple program:
>
> > main = putStr "Hello, world!\n"
>
> to get a result which is linked with libc6 and works correctly.
Thanks for this information. "Hello World" worked for me too, but the
(largish) program I am working did not.
Reverting from pgcc to gcc helped a lot. The program now runs correctly,
although when it eventually runs out of heap it still reports the heap
size as 0-bytes (but this is merely a cosmetic problem).
> (I had a little bit of trouble getting GHC itself to compile under
> libc6; I'm working with Simon Marlow to get ghc-current to compile.)
I had one attempt at building 3.01, which failed because of the
_POSIX_SOURCE problems you noted previously on the bugs list. Now that I
have 2.10 working reasonably well, I am trying to build 3.02 from source
(downloaded from the Glasgow web site). The build fails as follows:
ghc-2.10 -cpp -fglasgow-exts -Rghc-timing -I. -IcodeGen -InativeGen -Iparser
-iutils:basicTypes:types:hsSyn:prelude:rename:typecheck:deSugar:coreSyn:specialise:simplCore:stranal:stgSyn:simplStg:codeGen:absCSyn:main:reader:profiling:parser:nativeGen
-recom
p -c prelude/StdIdInfo.lhs -o prelude/StdIdInfo.o -osuf o
prelude/StdIdInfo.lhs:25:
Module CoreUnfold does not export `PragmaInfo'(..)
prelude/StdIdInfo.lhs:27:
Module Id does not export `isDictSelId_maybe'
Compilation had errors
make[2]: *** [prelude/StdIdInfo.o] Error 1
make[1]: *** [all] Error 1
make: *** [all] Error 1
As far as I can see, prelude/StdIdInfo.lhs does indeed import these symbols
from these modules, and they are indeed not exported therefrom, and it's as
simple as that.
Anyone have an idea what's going on here? Thanks,
Tony
Antony Bowers, Department of Computer Science, University of Bristol, UK.
http://www.cs.bris.ac.uk/~bowers/