building ghc from source
Mike Thomas
miketh@brisbane.paradigmgeo.com
Mon, 19 May 2003 10:12:44 +1000
This is a multi-part message in MIME format.
------=_NextPart_000_00B8_01C31DEF.304F79D0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Try again with smaller size so it is not rejected by list server.
-----Original Message-----
From: Mike Thomas [mailto:miketh@brisbane.paradigmgeo.com]
Sent: Monday, May 19, 2003 9:51 AM
To: johago@web.de; glasgow-haskell-users@haskell.org
Subject: RE: building ghc from source
Hi Johannes.
Notice that the build fails the first time that "ghc-inplace" gets called.
Now look back at your configure output and see the line:
checking whether we can open files in binary mode... no
which should read:
checking whether we can open files in binary mode... yes
The problem is that when this step goes wrong on Windows, the compiler is
built in such a way that it can't read binary files (eg "*.hi") correctly.
I'm afraid I can't remember what caused this configuration test to go
wrong for me in the past, but I solved it by looking at the file
"configure.log", which I suggest you do. I seem to recall that, due to a
compiler configuration problem, a header or library was not found, which
meant that the test program was doomed to fail.
I can't say that this is the only problem you will have, but it is
certainly fatal on Windows so:
Best of luck!
Mike Thomas.
-----Original Message-----
From: glasgow-haskell-users-admin@haskell.org
[mailto:glasgow-haskell-users-admin@haskell.org]On Behalf Of johago@web.de
Sent: Sunday, May 18, 2003 2:15 AM
To: glasgow-haskell-users@haskell.org
Subject: building ghc from source
Hi there!
I'm trying to build ghc from scratch under Windows XP... which gives me
problems, problems, problems...
Steps taken:
....bits removed....
checking whether we can open files in binary mode... no
.... more bits removed ...
../utils/ghc-pkg/ghc-pkg-inplace -f
../driver/package.conf --update-package
<rt
s.conf.installed
Reading package info from stdin... done.
Expanding embedded variables...done.
warning: can't find GHCi lib `HSrts.o'
Saving old package config file... done.
Writing new package config file... done.
../../ghc/compiler/ghc-inplace -optc-mno-cygwin -optc-O -optc-Wall -optc-W -
optc
-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declaration
s -o
ptc-
Winline -optc-Waggregate-return -optc-Wbad-function-cast -optc-Wcast-align -
optc
-I../includes -optc-I. -optc-Iparallel -optc-DCOMPILING_RTS -optc-fomit-
fram
e-po
inter -O2 -static -package-name rts -O -Rghc-timing -c Adjustor.c -o
Adjusto
r.o
<<ghc: 629196 bytes, 2 GCs, 19832/19832 avg/max bytes residency (1
samples),
5M
in use, 0.01 INIT (0.02 elapsed), 0.00 MUT (0.02 elapsed), 0.02 GC (0.03
elapsed
) :ghc>>
make[2]: *** [Adjustor.o] Error 1
make[1]: *** [all] Error 1
make[1]: Leaving directory `/cygdrive/c/build/ghc/ghc'
make: *** [all] Error 1
--- snap ---
Thanks very much for your suggestions in advance
Bye,
Johannes
johago@web.de
------=_NextPart_000_00B8_01C31DEF.304F79D0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2715.400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><SPAN class=3D251020000-19052003><FONT face=3DArial color=3D#0000ff =
size=3D2>Try=20
again with smaller size so it is not rejected by list=20
server.</FONT></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
<DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
size=3D2>-----Original Message-----<BR><B>From:</B> Mike Thomas=20
[mailto:miketh@brisbane.paradigmgeo.com]<BR><B>Sent:</B> Monday, May =
19, 2003=20
9:51 AM<BR><B>To:</B> johago@web.de;=20
glasgow-haskell-users@haskell.org<BR><B>Subject:</B> RE: building ghc =
from=20
source<BR><BR></FONT></DIV>
<DIV><SPAN class=3D407593223-18052003><FONT face=3DArial =
color=3D#0000ff size=3D2>Hi=20
Johannes.</FONT></SPAN></DIV>
<DIV><SPAN class=3D407593223-18052003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D407593223-18052003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>Notice that the build fails the first time that "ghc-inplace" =
gets=20
called. Now look back at your configure output and see the=20
line:</FONT></SPAN></DIV>
<DIV><SPAN class=3D407593223-18052003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D407593223-18052003> checking whether we =
can open=20
files in binary mode... no<BR></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2></FONT><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT><FONT face=3DArial color=3D#0000ff=20
size=3D2></FONT></SPAN><SPAN class=3D407593223-18052003><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D407593223-18052003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>which should read:</FONT></SPAN></DIV>
<DIV><SPAN class=3D407593223-18052003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D407593223-18052003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2> checking whether we can open files in binary =
mode...=20
yes<BR></FONT></SPAN></DIV>
<DIV><SPAN class=3D407593223-18052003><FONT face=3DArial =
color=3D#0000ff size=3D2>The=20
problem is that when this step goes wrong on Windows, the compiler is =
built in=20
such a way that it can't read binary files (eg=20
"*.hi") correctly.</FONT></SPAN></DIV>
<DIV><SPAN class=3D407593223-18052003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D407593223-18052003><FONT face=3DArial =
color=3D#0000ff size=3D2>I'm=20
afraid I can't remember what caused this configuration test to go =
wrong=20
for me in the past, but I solved it by looking at the file =
"configure.log",=20
which I suggest you do. I seem to recall that, due to a =
compiler=20
configuration problem, a header or library was not found, which =
meant=20
that the test program was doomed to fail.</DIV></FONT></SPAN>
<DIV><SPAN class=3D407593223-18052003></SPAN><SPAN=20
class=3D407593223-18052003><FONT face=3DArial color=3D#0000ff=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D407593223-18052003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2><SPAN class=3D407593223-18052003><FONT face=3DArial =
color=3D#0000ff size=3D2>I=20
can't say that this is the only problem you will have, but it is=20
certainly fatal on Windows so:</FONT></SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=3D407593223-18052003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2><SPAN class=3D407593223-18052003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN></FONT></SPAN> </DIV>
<DIV><SPAN class=3D407593223-18052003><FONT face=3DArial =
color=3D#0000ff size=3D2>Best=20
of luck!</FONT></SPAN></DIV>
<DIV><SPAN class=3D407593223-18052003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D407593223-18052003><FONT face=3DArial =
color=3D#0000ff size=3D2>Mike=20
Thomas.</FONT></SPAN></DIV>
<DIV><SPAN class=3D407593223-18052003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2> </DIV></FONT></SPAN>
<DIV><SPAN class=3D407593223-18052003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN> </DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
<DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
size=3D2>-----Original Message-----<BR><B>From:</B>=20
glasgow-haskell-users-admin@haskell.org=20
[mailto:glasgow-haskell-users-admin@haskell.org]<B>On Behalf Of=20
</B>johago@web.de<BR><B>Sent:</B> Sunday, May 18, 2003 2:15 =
AM<BR><B>To:</B>=20
glasgow-haskell-users@haskell.org<BR><B>Subject:</B> building ghc =
from=20
source<BR><BR></FONT></DIV>
<DIV>Hi there!<BR><BR>I'm trying to build ghc from scratch under =
Windows=20
XP... which gives me<BR>problems, problems, problems...<BR><BR>Steps =
taken:<BR><SPAN class=3D251020000-19052003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN></DIV>
<DIV><SPAN class=3D251020000-19052003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>....bits removed....</FONT> </SPAN></DIV>
<DIV><SPAN class=3D251020000-19052003> </SPAN><BR>checking =
whether we can=20
open files in binary mode... no<SPAN =
class=3D251020000-19052003><FONT=20
face=3DArial color=3D#0000ff size=3D2> </FONT></SPAN></DIV>
<DIV><SPAN class=3D251020000-19052003></SPAN> </DIV>
<DIV><SPAN class=3D251020000-19052003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>.... more bits removed ...</FONT></SPAN></DIV>
<DIV><SPAN=20
=
class=3D251020000-19052003> </SPAN><BR>../utils/ghc-pkg/ghc-pkg-inpl=
ace =20
-f ../driver/package.conf=20
--update-package<BR><rt<BR>s.conf.installed<BR>Reading package =
info from=20
stdin... done.<BR>Expanding embedded variables...done.<BR>warning: =
can't=20
find GHCi lib `HSrts.o'<BR>Saving old package config file...=20
done.<BR>Writing new package config file...=20
done.<BR>../../ghc/compiler/ghc-inplace -optc-mno-cygwin -optc-O =
-optc-Wall=20
-optc-W -<BR>optc<BR>-Wstrict-prototypes -optc-Wmissing-prototypes=20
-optc-Wmissing-declarations -o<BR>ptc-<BR>Winline =
-optc-Waggregate-return=20
-optc-Wbad-function-cast -optc-Wcast-align =
-<BR>optc<BR>-I../includes=20
-optc-I. -optc-Iparallel -optc-DCOMPILING_RTS=20
-optc-fomit-fram<BR>e-po<BR>inter -O2 -static -package-name rts -O=20
-Rghc-timing -c Adjustor.c=20
-o<BR>Adjusto<BR>r.o<BR><<ghc: 629196 bytes, 2 GCs, =
19832/19832=20
avg/max bytes residency (1 samples),<BR>5M<BR>in use, 0.01 INIT =
(0.02=20
elapsed), 0.00 MUT (0.02 elapsed), 0.02 GC (0.03<BR>elapsed<BR>)=20
:ghc>><BR>make[2]: *** [Adjustor.o] Error 1<BR>make[1]: *** =
[all]=20
Error 1<BR>make[1]: Leaving directory =
`/cygdrive/c/build/ghc/ghc'<BR>make:=20
*** [all] Error 1<BR><BR><BR>--- snap ---<BR><BR><BR>Thanks very =
much for=20
your suggestions in advance<BR><BR>Bye,<BR>Johannes<BR><A=20
href=3D"mailto:johago@web.de">johago@web.de</A><BR><BR><BR></DIV>
<DIV><FONT face=3DArial=20
size=3D2></FONT> </DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_00B8_01C31DEF.304F79D0--