<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Thanks for the help everyone. I uninstalled the ghc and haskell Ubuntu packages and just downloaded the source and compiled from scratch (ghc 7.0.3, haskell 2011.2.0.1). Then I was able to install ghc-paths using "cabal install ghc-paths". I patched Main.hs and it all compiled with no errors.<br><br><div><hr id="stopSpelling">From: Andrew.Baumann@microsoft.com<br>To: cartrel@hotmail.com; barrelfish-users@lists.inf.ethz.ch<br>Subject: RE: [Barrelfish] [Barrelfish-users] Barrelfish compilation error<br>Date: Tue, 12 Jul 2011 16:32:54 +0000<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<style>
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass p
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass span.ecxEmailStyle18
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass .ecxMsoChpDefault
{font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;}
.ExternalClass div.ecxWordSection1
{page:WordSection1;}
</style>
<div class="ecxWordSection1">
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D">This looks exactly like the known bug in GHC v6.12.n for n <= 1. You probably have the buggy version of 6.12.2 that Ubuntu ships.</span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"> </span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D">Andrew</span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"> </span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="ecxMsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> Rob C [mailto:cartrel@hotmail.com]
<br>
<b>Sent:</b> Tuesday, 12 July, 2011 9:03<br>
<b>To:</b> barrelfish-users@lists.inf.ethz.ch<br>
<b>Subject:</b> [Barrelfish] [Barrelfish-users] Barrelfish compilation error</span></p>
</div>
</div>
<p class="ecxMsoNormal"> </p>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">Hi, I'm attempting to compile Barrelfish on a 64bit Ubuntu machine. I just downloaded the source via Hg today and followed the instructions on wiki.barrelfish.org for configuring
and compiling. I was able to get through the configuration process but when I started the make I was given these errors and I'm just not familiar enough with this stuff to troubleshoot on my own:</span></p>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> </span></p>
</div>
<div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"><a href="mailto:xxxxx@yyyyyy:~/hg.barrelfish.org/build#">xxxxx@yyyyyy:~/hg.barrelfish.org/build#</a> make</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">Makefile:48: x86_32/errors/errno.o.depend: No such file or directory</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">Makefile:75: x86_32/usr/slideshow/_for_app_slideshow/keyboard_flounder_bindings.o.depend: No such file or directory</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">Makefile:130: x86_32/usr/slideshow/_for_app_slideshow/fb_flounder_bindings.o.depend: No such file or directory</span></p>
</div>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">...</span></p>
</div>
<div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">[11 of 33] Compiling Expressions[boot] ( ../tools/fof/Expressions.lhs-boot, tools/tools/hamlet/Expressions.o-boot )</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">[12 of 33] Compiling IL.FoF.Compile ( ../tools/fof/IL/FoF/Compile.lhs, tools/tools/hamlet/IL/FoF/Compile.o )</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> </span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">../tools/fof/IL/FoF/Compile.lhs:71:18:</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> Can't find interface-file declaration for variable freshVar</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> Probable cause: bug in .hi-boot file, or inconsistent .hi file</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> Use -ddump-if-trace to get an idea of which file caused the error</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> In the expression: freshVar binding</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> In the definition of `loc': loc = freshVar binding</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> In the definition of `getFreshVar':</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> getFreshVar binding</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> = (loc, binding1)</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> where</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> loc = freshVar binding</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> binding1 = binding {freshVar = loc + 1}</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> </span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">../tools/fof/IL/FoF/Compile.lhs:72:23:</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> Can't find interface-file declaration for variable freshVar</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> Probable cause: bug in .hi-boot file, or inconsistent .hi file</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> Use -ddump-if-trace to get an idea of which file caused the error</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> In the expression: binding {freshVar = loc + 1}</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> In the definition of `binding1':</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> binding1 = binding {freshVar = loc + 1}</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> In the definition of `getFreshVar':</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> getFreshVar binding</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> = (loc, binding1)</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> where</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> loc = freshVar binding</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> binding1 = binding {freshVar = loc + 1}</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> </span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">../tools/fof/IL/FoF/Compile.lhs:92:6:</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> Can't find interface-file declaration for variable freshVar</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> Probable cause: bug in .hi-boot file, or inconsistent .hi file</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> Use -ddump-if-trace to get an idea of which file caused the error</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> In the expression:</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> stableBinding</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> {freshVar = freshVar upBinding, defStructs = defStructs upBinding,</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> defUnions = defUnions upBinding, defEnums = defEnums upBinding}</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> In the definition of `passFreshVar':</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> passFreshVar upBinding stableBinding</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> = stableBinding</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> {freshVar = freshVar upBinding, defStructs = defStructs upBinding,</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> defUnions = defUnions upBinding, defEnums = defEnums upBinding}</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">make: *** [tools/bin/hamlet] Error 1</span></p>
</div>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> </span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">Sorry if this is a repost but I checked the last few months of the mailing list and didn't see anything similar to this. Thanks for the help.</span></p>
</div>
</div>
</div>
</div></div>                                            </div></body>
</html>