logo       

RE: building ghc from source: msg#00044

lang.haskell.glasgow.bugs

Subject: RE: building ghc from source

| Alastair Reid wrote:
| > [...] it seems that building GHC depends on building win32. [...]
|
| I don't think so, the win32 subdir can probably simply be commented
| out in fptools/hslibs/Makefile without breaking anything else (wild
| guess).

Indeed. Building GHC does not depend on *anything* in hslibs/.
You can bootstrap as many times as you like, without ever building
hslibs/, let alone hslibs/win32.

hslibs/win32 is solely used as a nice library to ship to our customers.


The problem at the moment is that it simply doesn't build, doubtless for
a trivial reason. Is there a chance you might fix it so that it does,
Alastair?

Simon


bash-2.05b$ cd ../hslibs/
bash-2.05b$ cd win32/
bash-2.05b$ make
../../ghc/compiler/ghc-inplace -H32m -O0 -W -fno-warn-unused-matches
-fwarn-unused-imports -lbfd -liberty -cpp -fvia-C -optc-DTARGET_GHC
-fglasgow-exts -package-name win32 -O -dcore-lint -W
-fno-warn-unused-matches -fwarn-unused-imports -keep-hc-files -package
lang -c StdDIS.hs -o StdDIS.o -ohi StdDIS.hi

StdDIS.hs:66:
Couldn't match `Ptr () -> IO ()' against `()'
Expected type: Ptr () -> IO ()
Inferred type: ()
In the first argument of `return', namely `()'
In the second argument of `newForeignPtr', namely `(return ())'
make: *** [StdDIS.o] Error 1
bash-2.05b$

| -----Original Message-----
| From: Sven Panne [mailto:Sven.Panne@xxxxxxxxxxxxxxxxxxxxxxxxxx]
| Sent: 26 May 2003 15:58
| To: Alastair Reid
| Cc: Simon Peyton-Jones; GHC bugs
| Subject: Re: building ghc from source
|
|
| Cheers,
| S.
|
|


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise