<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:www.nabble.com,2006:forum-13142</id>
	<title>Nabble - Haskell - Nhc-bugs</title>
	<updated>2008-01-09T10:26:41Z</updated>
	<link rel="self" type="application/atom+xml" href="http://www.nabble.com/Haskell---Nhc-bugs-f13142.xml" />
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Haskell---Nhc-bugs-f13142.html" />
	<subtitle type="html">Bug reports and fixes for nhc98</subtitle>
	
<entry>
	<id>tag:www.nabble.com,2006:post-14718226</id>
	<title>NHC Compilation Failure</title>
	<published>2008-01-09T10:26:41Z</published>
	<updated>2008-01-09T10:26:41Z</updated>
	<author>
		<name>Yu Di-2</name>
	</author>
	<content type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;div style=&quot;font-family:times new roman, new york, times, serif;font-size:12pt&quot;&gt;&lt;div&gt;Hi, I downloaded the source of nhc98-1.20 and tried to compile it, but when it is linking greencard-nhc98, I got multiple errors like:&lt;br&gt;&lt;br&gt;.../nhc98-1.20/lib/x86_64-Linux/Prelude.a(RealFloat_Float.o)(.text+0x49): In function `FR_Prelude_46cFIsNeg':&lt;br&gt;: undefined reference to `signbit'&lt;br&gt;.../nhc98-1.20/lib/x86_64-Linux/Prelude.a(RealFloat_Float.o)(.text+0xc9): In function `FR_Prelude_46cFIsNormal':&lt;br&gt;: undefined reference to `isnormal'&lt;br&gt;.../nhc98-1.20/lib/x86_64-Linux/Prelude.a(RealFloat_Float.o)(.text+0x149): In function `FR_Prelude_46cFIsFinite':&lt;br&gt;: undefined reference to `isfinite'&lt;br&gt;&lt;br&gt;Then, when it is linking lib/x86_64-Linux/MkProg, there is another error:&lt;br&gt;&lt;br&gt;.../nhc98-1.20/lib/x86_64-Linux/Prelude.a(RemoveFile.o)(.data+0xc): undefined reference to
 `FR_Directory_46unlink_35'&lt;br&gt;&lt;br&gt;and soon after this the whole make fails because there is no lib/x86_64-Linux/MkConfig.&lt;br&gt;&lt;br&gt;uname -a shows:&lt;br&gt;&lt;br&gt;Linux ... 2.6.9-55.ELsmp #1 SMP Fri Apr 20 16:36:54 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux&lt;br&gt;&lt;br&gt;and targets/x86_64-Linux/config.cache shows:&lt;br&gt;&lt;br&gt;INSTALLDIR=...&lt;br&gt;DOCDIR=...&lt;br&gt;BUILDWITH=gcc&lt;br&gt;BUILDOPTS=&quot;&quot;&lt;br&gt;BUILDDIR=.../nhc98-1.20/targets&lt;br&gt;RTSFLAG=yes&lt;br&gt;CC=gcc&lt;br&gt;COPTS=&quot;&quot;&lt;br&gt;ENDIAN=-DLOW_BYTE_FIRST&lt;br&gt;HEAP=100000&lt;br&gt;LIB=yes&lt;br&gt;BIN=yes&lt;br&gt;INC=yes&lt;br&gt;MAN=yes&lt;br&gt;DOCS=no&lt;br&gt;EXE=&lt;br&gt;CURSES=&quot;-ltermcap -lcurses&quot;&lt;br&gt;READLINE=&quot;&quot;&lt;br&gt;INSTALLVER=&quot;v1.20 (2007-11-22)&quot;&lt;br&gt;INSTALLINFO=&quot;config: x86_64-Linux/ by ... on Wed Jan&amp;nbsp; 9 12:00:05 CST 2008&quot;&lt;br&gt;FW=&quot;&quot;&lt;br&gt;&lt;br&gt;Can anybody help me on how to get this build to work? Thanks!&lt;br&gt;&lt;br&gt;Di, Yu&lt;br&gt;1.9&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;br&gt;
      &lt;hr size=1&gt;Looking for last minute shopping deals? &lt;a href=&quot;http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt; 
Find them fast with Yahoo! Search.&lt;/a&gt;&lt;/body&gt;&lt;/html&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Nhc-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=14718226&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Nhc-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.haskell.org/mailman/listinfo/nhc-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.haskell.org/mailman/listinfo/nhc-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/NHC-Compilation-Failure-tp14718226p14718226.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-7619359</id>
	<title>Re: cpphs and hugs</title>
	<published>2006-11-30T05:33:12Z</published>
	<updated>2006-11-30T05:33:12Z</updated>
	<author>
		<name>Ian Lynagh</name>
	</author>
	<content type="html">On Wed, Nov 29, 2006 at 04:49:36PM +0000, Malcolm Wallace wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Ian Lynagh &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=7619359&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;igloo@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; $ /tmp/cpphs/inst/bin/cpphs /dev/null
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Program error: pattern match failure: macroProcess ((instEq_v4051
&lt;br&gt;&amp;gt; &amp;gt; `elem` CpphsOption_CpphsLayout) []) Bool_True (preDefine
&lt;br&gt;&amp;gt; &amp;gt; ((instEq_v4051 `elem` CpphsOption_CpphsAnsi) []) Bool_True
&lt;br&gt;&amp;gt; &amp;gt; (runCpphs_v4067 [])) (tokenise_v3906 ((instEq_v4051 `elem`
&lt;br&gt;&amp;gt; &amp;gt; CpphsOption_CpphsAnsi) []) ((instEq_v4051 `elem`
&lt;br&gt;&amp;gt; &amp;gt; CpphsOption_CpphsStrip) []) SubMode_Any) $
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I tried this with hugs-Sept2006 and could not reproduce the error.
&lt;br&gt;&amp;gt; Mystified.
&lt;/div&gt;&lt;br&gt;Oops, looked like I did that in the wrong window, using an ancient,
&lt;br&gt;buggy hugs. Sorry about that.
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;gt; I tried upgrading to 1.2 to see if it is fixed, and trying to haddock
&lt;br&gt;&amp;gt; &amp;gt; missingh then gave an almighty pattern match failure.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Is there a more accessible mirror of MissingH anywhere?
&lt;br&gt;&lt;br&gt;Sorry, I wasn't expecting you to need it as /dev/null looked like a good
&lt;br&gt;first test case.
&lt;br&gt;&lt;br&gt;Here's a smaller testcase for the original problem, with hugs September
&lt;br&gt;2006 and cpphs 1.2:
&lt;br&gt;&lt;br&gt;$ runhugs -98 Setup.hs --hugs configure --prefix=/tmp/cpphs/inst
&lt;br&gt;$ runhugs -98 Setup.hs build
&lt;br&gt;$ runhugs -98 Setup.hs install
&lt;br&gt;$ export LC_ALL=POSIX
&lt;br&gt;$ printf &amp;quot;Bj\xf6rn Bringert&amp;quot; &amp;gt; foo
&lt;br&gt;$ /tmp/cpphs/inst/bin/cpphs foo 
&lt;br&gt;&lt;br&gt;Program error: &amp;lt;handle&amp;gt;: IO.getContents: protocol error (input contains
&lt;br&gt;non-character data - use binary I/O for binary data)
&lt;br&gt;$
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;Ian
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Nhc-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=7619359&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Nhc-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.haskell.org/mailman/listinfo/nhc-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.haskell.org/mailman/listinfo/nhc-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/cpphs-and-hugs-tp7582836p7619359.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-7602927</id>
	<title>Re: cpphs and hugs</title>
	<published>2006-11-29T08:49:36Z</published>
	<updated>2006-11-29T08:49:36Z</updated>
	<author>
		<name>Malcolm.Wallace</name>
	</author>
	<content type="html">Ian Lynagh &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=7602927&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;igloo@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; With cpphs 0.7 &amp;quot;compiled&amp;quot; with hugs I get the following when trying to
&lt;br&gt;&amp;gt; haddock missingh:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Program error: &amp;lt;handle&amp;gt;: IO.getContents: protocol error (invalid
&lt;br&gt;&amp;gt; character encoding) missingh-0.16.2$
&lt;br&gt;&amp;gt; --------------
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I believe this is because there is a mismatch between my locale and
&lt;br&gt;&amp;gt; the encoding of the file, in particular with the \&amp;quot;o in Bjorn
&lt;br&gt;&amp;gt; Bringert's name. I think opening the file in binary mode would fix
&lt;br&gt;&amp;gt; this, but I couldn't swear to it.
&lt;/div&gt;&lt;br&gt;Hmm. &amp;nbsp;cpphs doesn't do anything special with character encodings, so I
&lt;br&gt;would guess this is a Hugs issue maybe?
&lt;br&gt;&lt;br&gt;I'm afraid our work firewall blocks all outgoing traffic to port 70, so
&lt;br&gt;I can't download MissingH to try to reproduce the error.
&lt;br&gt;&lt;br&gt;Also, as you noticed, cpphs-0.7 is kind of old now.
&lt;br&gt;&lt;br&gt;&amp;gt; I tried upgrading to 1.2 to see if it is fixed, and trying to haddock
&lt;br&gt;&amp;gt; missingh then gave an almighty pattern match failure.
&lt;br&gt;&lt;br&gt;Is there a more accessible mirror of MissingH anywhere?
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; A somewhat
&lt;br&gt;&amp;gt; smaller failure occurs when trying to process /dev/null:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --------------
&lt;br&gt;&amp;gt; $ /tmp/cpphs/inst/bin/cpphs /dev/null
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Program error: pattern match failure: macroProcess ((instEq_v4051
&lt;br&gt;&amp;gt; `elem` CpphsOption_CpphsLayout) []) Bool_True (preDefine
&lt;br&gt;&amp;gt; ((instEq_v4051 `elem` CpphsOption_CpphsAnsi) []) Bool_True
&lt;br&gt;&amp;gt; (runCpphs_v4067 [])) (tokenise_v3906 ((instEq_v4051 `elem`
&lt;br&gt;&amp;gt; CpphsOption_CpphsAnsi) []) ((instEq_v4051 `elem`
&lt;br&gt;&amp;gt; CpphsOption_CpphsStrip) []) SubMode_Any) $
&lt;/div&gt;&lt;br&gt;I tried this with hugs-Sept2006 and could not reproduce the error.
&lt;br&gt;Mystified.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&amp;nbsp; &amp;nbsp; Malcolm
&lt;br&gt;_______________________________________________
&lt;br&gt;Nhc-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=7602927&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Nhc-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.haskell.org/mailman/listinfo/nhc-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.haskell.org/mailman/listinfo/nhc-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/cpphs-and-hugs-tp7582836p7602927.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-7582836</id>
	<title>cpphs and hugs</title>
	<published>2006-11-28T08:50:22Z</published>
	<updated>2006-11-28T08:50:22Z</updated>
	<author>
		<name>Ian Lynagh</name>
	</author>
	<content type="html">&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;With cpphs 0.7 &amp;quot;compiled&amp;quot; with hugs I get the following when trying to
&lt;br&gt;haddock missingh:
&lt;br&gt;&lt;br&gt;--------------
&lt;br&gt;missingh-0.16.2$ /usr/bin/cpphs -Obar.hs MissingH/Time/ParseDate.hs --noline --strip -Dlinux_BUILD_OS -Dlinux_HOST_OS -Di386_BUILD_ARCH -Di386_HOST_ARCH -D__GLASGOW_HASKELL__=606 -D__HADDOCK__
&lt;br&gt;&lt;br&gt;Program error: &amp;lt;handle&amp;gt;: IO.getContents: protocol error (invalid character encoding)
&lt;br&gt;missingh-0.16.2$
&lt;br&gt;--------------
&lt;br&gt;&lt;br&gt;I believe this is because there is a mismatch between my locale and the
&lt;br&gt;encoding of the file, in particular with the \&amp;quot;o in Bjorn Bringert's
&lt;br&gt;name. I think opening the file in binary mode would fix this, but I
&lt;br&gt;couldn't swear to it.
&lt;br&gt;&lt;br&gt;I tried upgrading to 1.2 to see if it is fixed, and trying to haddock
&lt;br&gt;missingh then gave an almighty pattern match failure. A somewhat smaller
&lt;br&gt;failure occurs when trying to process /dev/null:
&lt;br&gt;&lt;br&gt;--------------
&lt;br&gt;$ /tmp/cpphs/inst/bin/cpphs /dev/null
&lt;br&gt;&lt;br&gt;Program error: pattern match failure: macroProcess ((instEq_v4051 `elem` CpphsOption_CpphsLayout) []) Bool_True (preDefine ((instEq_v4051 `elem` CpphsOption_CpphsAnsi) []) Bool_True (runCpphs_v4067 [])) (tokenise_v3906 ((instEq_v4051 `elem` CpphsOption_CpphsAnsi) []) ((instEq_v4051 `elem` CpphsOption_CpphsStrip) []) SubMode_Any)
&lt;br&gt;$
&lt;br&gt;--------------
&lt;br&gt;&lt;br&gt;cpphs compiled with GHC seems fine.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;Ian
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Nhc-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=7582836&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Nhc-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.haskell.org/mailman/listinfo/nhc-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.haskell.org/mailman/listinfo/nhc-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/cpphs-and-hugs-tp7582836p7582836.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-5908630</id>
	<title>Re: nhc98 bug</title>
	<published>2006-08-21T08:59:29Z</published>
	<updated>2006-08-21T08:59:29Z</updated>
	<author>
		<name>Malcolm.Wallace</name>
	</author>
	<content type="html">GaMeR uWe &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=5908630&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gamer_uwe@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; GHCSYM=
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 604
&lt;br&gt;&amp;gt; TRUE=/bin/true
&lt;br&gt;&lt;br&gt;This problem has been known and fixed in CVS/darcs for a while now. &amp;nbsp;At
&lt;br&gt;last, I have created and published a patch to the stable release:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; ftp://ftp.cs.york.ac.uk/pub/haskell/nhc98/patch-1.18-confhc
&lt;br&gt;&lt;br&gt;also noted on the official download page.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&amp;nbsp; &amp;nbsp; Malcolm
&lt;br&gt;_______________________________________________
&lt;br&gt;Nhc-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=5908630&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Nhc-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.haskell.org/mailman/listinfo/nhc-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.haskell.org/mailman/listinfo/nhc-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/nhc98-bug-tp5908182p5908630.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-5908182</id>
	<title>nhc98 bug</title>
	<published>2006-07-25T13:06:31Z</published>
	<updated>2006-07-25T13:06:31Z</updated>
	<author>
		<name>GaMeR uWe</name>
	</author>
	<content type="html">I found something in the nhc98's configure script that leads me to believe that there is a bug somewhere, I don't see the point in searching for it on my own as it is nothing big, just slightly annoying.&lt;br&gt;&lt;br&gt;When ./configure is run, the file nhc98-1.18/lib/ix86-linux/config is created, however make cannot be run because of the following message it will output, &quot;*** missing separator.&quot;. I then checked what the file generated by ./configure contained and I found the problem. It contained:&lt;br&gt;&lt;br&gt;&quot;...&lt;br&gt;GHCSYM=&lt;br&gt;&lt;br&gt;604&lt;br&gt;TRUE=/bin/true&quot;&lt;br&gt;&lt;br&gt;Where ... represents other variables set before GHCSYM (none of those above had a problem). As you can see, there is a gap between GHCSYM= and the value of 604 which seems to belong to GHCSYM. So I changed it to GHCSYM=604 and then everything compiled and installed. nhc98 does execute from the terminal, I havn't tried compiling anything yet but I am sure it will compile things without a problem, I just thought I'd let you know
 about this problem with that file.&lt;br&gt;&lt;br&gt;Thanks.&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Nhc-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=5908182&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Nhc-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.haskell.org/mailman/listinfo/nhc-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.haskell.org/mailman/listinfo/nhc-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/nhc98-bug-tp5908182p5908182.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-5434198</id>
	<title>Re: Trouble getting nhc98 to work</title>
	<published>2006-07-21T08:01:09Z</published>
	<updated>2006-07-21T08:01:09Z</updated>
	<author>
		<name>Malcolm.Wallace</name>
	</author>
	<content type="html">Karl Crary &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=5434198&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;crary@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; I was experimenting with nhc98 because I was led to believe that using
&lt;br&gt;&amp;gt; it, I might be able to use the Haskell FFI to link with libraries
&lt;br&gt;&amp;gt; built &amp;nbsp;using Cygwin.
&lt;br&gt;&lt;br&gt;Should be possible, yes.
&lt;br&gt;&lt;br&gt;&amp;gt; First I tried the binary distribution. &amp;nbsp;The configure and install 
&lt;br&gt;&amp;gt; process seemed to go smoothly, but in my first attempt to use the 
&lt;br&gt;&amp;gt; compiler I get:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; /usr/local/bin/nhc98: line 131: 
&lt;br&gt;&amp;gt; C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/hmake-PRAGMA:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; No such file or directory
&lt;br&gt;&lt;br&gt;The executable hmake-PRAGMA.exe is certainly included in the tar bundle.
&lt;br&gt;As far as I can see, it should therefore have been installed in the
&lt;br&gt;quoted directory, given the standard installation prefix. &amp;nbsp;Is it there?
&lt;br&gt;If so, then maybe the driver script for nhc98 just needs to know about
&lt;br&gt;the .exe suffix (but that would seem unlikely in Cygwin).
&lt;br&gt;&lt;br&gt;&amp;gt; I then tried to build from source, but with no better luck. &amp;nbsp;Configure
&lt;br&gt;&amp;gt; seems to go smoothly, but the build breaks down quickly:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; make[1]: Entering directory `/c/nhc98-1.18/src/runtime'
&lt;br&gt;&amp;gt; Makefile:27: *** target pattern contains no `%'. &amp;nbsp;Stop.
&lt;br&gt;&lt;br&gt;Did you use a Windows-style pathname at configure-time?
&lt;br&gt;(e.g. --prefix=&amp;quot;C:\blah&amp;quot;) &amp;nbsp;Replacing that with a Cygwin unix-style
&lt;br&gt;pathname might fix it (e.g. --prefix=&amp;quot;/c/blah&amp;quot;).
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&amp;nbsp; &amp;nbsp; Malcolm
&lt;br&gt;_______________________________________________
&lt;br&gt;Nhc-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=5434198&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Nhc-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.haskell.org/mailman/listinfo/nhc-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.haskell.org/mailman/listinfo/nhc-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Trouble-getting-nhc98-to-work-tp5433774p5434198.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-5433774</id>
	<title>Trouble getting nhc98 to work</title>
	<published>2006-07-17T16:26:57Z</published>
	<updated>2006-07-17T16:26:57Z</updated>
	<author>
		<name>Karl Crary</name>
	</author>
	<content type="html">Dear NHC98 maintainers,
&lt;br&gt;&lt;br&gt;I was experimenting with nhc98 because I was led to believe that using 
&lt;br&gt;it, I might be able to use the Haskell FFI to link with libraries built 
&lt;br&gt;using Cygwin. &amp;nbsp;Unfortunately, I never got far enough to try that; it's 
&lt;br&gt;failing right out of the box.
&lt;br&gt;&lt;br&gt;First I tried the binary distribution. &amp;nbsp;The configure and install 
&lt;br&gt;process seemed to go smoothly, but in my first attempt to use the 
&lt;br&gt;compiler I get:
&lt;br&gt;&lt;br&gt;/usr/local/bin/nhc98: line 131: 
&lt;br&gt;C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/hmake-PRAGMA: No such 
&lt;br&gt;file or directory
&lt;br&gt;/usr/local/bin/nhc98: line 131: 
&lt;br&gt;C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/hmake-PRAGMA: No such 
&lt;br&gt;file or directory
&lt;br&gt;/usr/local/bin/nhc98: line 131: 
&lt;br&gt;C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/hmake-PRAGMA: No such 
&lt;br&gt;file or directory
&lt;br&gt;/usr/local/bin/nhc98: line 547: 
&lt;br&gt;C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/nhc98comp: No such file 
&lt;br&gt;or directory
&lt;br&gt;&lt;br&gt;I then tried to build from source, but with no better luck. &amp;nbsp;Configure 
&lt;br&gt;seems to go smoothly, but the build breaks down quickly:
&lt;br&gt;&lt;br&gt;bash-3.1$ make
&lt;br&gt;ghc &amp;nbsp;-cpp -o lib/ix86-CYGWIN_NT-5.1/hmake-PRAGMA script/hmake-PRAGMA.hs
&lt;br&gt;cd src/runtime; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;make all nhc98heap.exe
&lt;br&gt;make[1]: Entering directory `/c/nhc98-1.18/src/runtime'
&lt;br&gt;Makefile:27: *** target pattern contains no `%'. &amp;nbsp;Stop.
&lt;br&gt;make[1]: Leaving directory `/c/nhc98-1.18/src/runtime'
&lt;br&gt;make: *** [targets/ix86-CYGWIN_NT-5.1/runtime] Error 2
&lt;br&gt;bash-3.1$ gmake
&lt;br&gt;bash: gmake: command not found
&lt;br&gt;bash-3.1$ which make
&lt;br&gt;/usr/bin/make
&lt;br&gt;bash-3.1$ make
&lt;br&gt;cd src/runtime; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;make all nhc98heap.exe
&lt;br&gt;make[1]: Entering directory `/c/nhc98-1.18/src/runtime'
&lt;br&gt;Makefile:27: *** target pattern contains no `%'. &amp;nbsp;Stop.
&lt;br&gt;make[1]: Leaving directory `/c/nhc98-1.18/src/runtime'
&lt;br&gt;make: *** [targets/ix86-CYGWIN_NT-5.1/runtime] Error 2
&lt;br&gt;&lt;br&gt;Any idea what I might be doing wrong?
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; -- Karl Crary
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Nhc-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=5433774&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Nhc-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.haskell.org/mailman/listinfo/nhc-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.haskell.org/mailman/listinfo/nhc-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Trouble-getting-nhc98-to-work-tp5433774p5433774.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-4679295</id>
	<title>Re: Bus Error and Segmentation Fault when Heap Profiling is On</title>
	<published>2006-06-02T07:06:57Z</published>
	<updated>2006-06-02T07:06:57Z</updated>
	<author>
		<name>Malcolm.Wallace</name>
	</author>
	<content type="html">Shin-Cheng Mu &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=4679295&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;scm@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; scm$ cat &amp;gt; temp.xml
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;a&amp;gt;&amp;lt;b&amp;gt;&amp;lt;item&amp;gt;123&amp;lt;/item&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;c&amp;gt;&amp;lt;/c&amp;gt;&amp;lt;/a&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; scm$ ./hxpc temp.xml
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Bus error
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; scm$ ./hxpc temp.xml +RTS -p
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Segmentation fault
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; If I compile the program without the -p option, it runs fine.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Since Malcolm Wallace has already profiled the program
&lt;br&gt;&amp;gt; on his machine, it seems to be a platform specific problem
&lt;/div&gt;&lt;br&gt;When I profiled your code previously, it worked fine on either a
&lt;br&gt;Linux/x86 or Solaris/sparc machine (I don't remember which), but not on
&lt;br&gt;MacOS/powerpc, so yes it does look like a platform-specific problem.
&lt;br&gt;Strangely, although the profile was generated OK on the other platform,
&lt;br&gt;the hp2graph tool for converting it to a graph seg faulted there, but
&lt;br&gt;worked correctly on MacOS/powerpc.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&amp;nbsp; &amp;nbsp; Malcolm
&lt;br&gt;_______________________________________________
&lt;br&gt;Nhc-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=4679295&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Nhc-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.haskell.org/mailman/listinfo/nhc-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.haskell.org/mailman/listinfo/nhc-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Bus-Error-and-Segmentation-Fault-when-Heap-Profiling-is-On-tp4678631p4679295.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-4505825</id>
	<title>Re: ld: Undefined symbols on OS X when compiling with -t</title>
	<published>2006-05-22T07:53:03Z</published>
	<updated>2006-05-22T07:53:03Z</updated>
	<author>
		<name>Malcolm.Wallace</name>
	</author>
	<content type="html">Shin-Cheng Mu &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=4505825&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;scm@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;scm$ hmake -nhc98 -t text
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;nhc98 &amp;nbsp; -t &amp;nbsp; -c &amp;nbsp;-o text.z.o text.hs
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;nhc98 &amp;nbsp;-t &amp;nbsp; &amp;nbsp;-o text text.z.o
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;/usr/bin/ld: Undefined symbols:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;_FN_NHC_46Internal_46_95apply1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;_FN_NHC_46Internal_46_95apply2
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;_TMSUB_NHC_46DErrNo
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;_TM_NHC_46DErrNo
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;_TMSUB_NHC_46PackedString
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;_TM_NHC_46PackedString
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Is it a bug, or is something missing in Darwin Ports?
&lt;/div&gt;&lt;br&gt;This is a bug. &amp;nbsp;Unfortunately, the time-profiling code has not been
&lt;br&gt;properly maintained or tested since it was contributed to the main
&lt;br&gt;compiler branch. &amp;nbsp;(The reason for this particular &amp;nbsp;breakage is that
&lt;br&gt;time-profiling relies on a post-processor for object files after they
&lt;br&gt;have been built, and this has some some hand-coded hacks for internal
&lt;br&gt;Prelude-like definitions. &amp;nbsp;When the runtime internals changed, these
&lt;br&gt;hacks were not kept in sync.)
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&amp;nbsp; &amp;nbsp; Malcolm
&lt;br&gt;_______________________________________________
&lt;br&gt;Nhc-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=4505825&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Nhc-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.haskell.org/mailman/listinfo/nhc-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.haskell.org/mailman/listinfo/nhc-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/ld%3A-Undefined-symbols-on-OS-X-when-compiling-with--t-tp4505360p4505825.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-4678631</id>
	<title>Bus Error and Segmentation Fault when Heap Profiling is On</title>
	<published>2006-05-22T07:39:42Z</published>
	<updated>2006-05-22T07:39:42Z</updated>
	<author>
		<name>Shin-Cheng Mu-2</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;This is another potential bug. Unfortunately I currently
&lt;br&gt;cannot reproduce it on smaller programs. I tried to do
&lt;br&gt;heap profiling on the following code:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.psdlab.org/~scm/hx.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.psdlab.org/~scm/hx.tar.gz&lt;/a&gt;&lt;br&gt;&lt;br&gt;The main program is hxpc.hs. I tried to compile it with
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; hmake -nhc98 -p hxpc
&lt;br&gt;&lt;br&gt;and run it on a small sample input
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; scm$ cat &amp;gt; temp.xml
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;a&amp;gt;&amp;lt;b&amp;gt;&amp;lt;item&amp;gt;123&amp;lt;/item&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;c&amp;gt;&amp;lt;/c&amp;gt;&amp;lt;/a&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; scm$ ./hxpc temp.xml
&lt;br&gt;&amp;nbsp; &amp;nbsp; Bus error
&lt;br&gt;&amp;nbsp; &amp;nbsp; scm$ ./hxpc temp.xml +RTS -p
&lt;br&gt;&amp;nbsp; &amp;nbsp; Segmentation fault
&lt;br&gt;&lt;br&gt;Increasing the heap size does not seem to help.
&lt;br&gt;&lt;br&gt;If I compile the program without the -p option, it runs fine.
&lt;br&gt;&lt;br&gt;Since Malcolm Wallace has already profiled the program
&lt;br&gt;on his machine, it seems to be a platform specific problem
&lt;br&gt;I installed NHC98 1.18_4 using Darwin Ports, on a PowerPC
&lt;br&gt;G4 based Mac, running OS X 10.4 and GCC 4.0.
&lt;br&gt;&lt;br&gt;sincerely,
&lt;br&gt;Shin-Cheng Mu 
&lt;br&gt;_______________________________________________
&lt;br&gt;Nhc-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=4678631&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Nhc-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.haskell.org/mailman/listinfo/nhc-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.haskell.org/mailman/listinfo/nhc-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Bus-Error-and-Segmentation-Fault-when-Heap-Profiling-is-On-tp4678631p4678631.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-4505360</id>
	<title>ld: Undefined symbols on OS X when compiling with -t</title>
	<published>2006-05-22T07:28:31Z</published>
	<updated>2006-05-22T07:28:31Z</updated>
	<author>
		<name>Shin-Cheng Mu</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I just installed NHC98 using Darwin Ports on a PowerPC
&lt;br&gt;G4 based Mac, running OS X 10.4 with GCC 4.0. NHC works
&lt;br&gt;fine without profiling options. When I turned on time
&lt;br&gt;profiling, however, NHC98 appears to have problems linking:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;scm$ cat text.hs
&lt;br&gt;&amp;nbsp; &amp;nbsp;main = print (foldr (+) 0 [1..10000])
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;scm$ hmake -nhc98 -t text
&lt;br&gt;&amp;nbsp; &amp;nbsp;nhc98 &amp;nbsp; -t &amp;nbsp; -c &amp;nbsp;-o text.z.o text.hs
&lt;br&gt;&amp;nbsp; &amp;nbsp;nhc98 &amp;nbsp;-t &amp;nbsp; &amp;nbsp;-o text text.z.o
&lt;br&gt;&amp;nbsp; &amp;nbsp;/tmp/tprofusr3456.c: In function 'tprofTMInitTreeUsr':
&lt;br&gt;&amp;nbsp; &amp;nbsp;/tmp/tprofusr3456.c:21: warning: incompatible implicit declaration &amp;nbsp;
&lt;br&gt;of built-in function 'strdup'
&lt;br&gt;&amp;nbsp; &amp;nbsp;/usr/bin/ld: Undefined symbols:
&lt;br&gt;&amp;nbsp; &amp;nbsp;_FN_NHC_46Internal_46_95apply1
&lt;br&gt;&amp;nbsp; &amp;nbsp;_FN_NHC_46Internal_46_95apply2
&lt;br&gt;&amp;nbsp; &amp;nbsp;_TMSUB_NHC_46DErrNo
&lt;br&gt;&amp;nbsp; &amp;nbsp;_TM_NHC_46DErrNo
&lt;br&gt;&amp;nbsp; &amp;nbsp;_TMSUB_NHC_46PackedString
&lt;br&gt;&amp;nbsp; &amp;nbsp;_TM_NHC_46PackedString
&lt;br&gt;&amp;nbsp; &amp;nbsp;collect2: ld returned 1 exit status
&lt;br&gt;&lt;br&gt;Is it a bug, or is something missing in Darwin Ports?
&lt;br&gt;&lt;br&gt;sincerely,
&lt;br&gt;Shin-Cheng Mu
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Nhc-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=4505360&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Nhc-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.haskell.org/mailman/listinfo/nhc-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.haskell.org/mailman/listinfo/nhc-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/ld%3A-Undefined-symbols-on-OS-X-when-compiling-with--t-tp4505360p4505360.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-3966931</id>
	<title>Re: What's the correct procedure for upgrading?</title>
	<published>2006-04-18T06:10:34Z</published>
	<updated>2006-04-18T06:10:34Z</updated>
	<author>
		<name>Malcolm.Wallace</name>
	</author>
	<content type="html">Charles,
&lt;br&gt;&lt;br&gt;&amp;gt; Do I just install 1.18 and forget about 1.16? &amp;nbsp;Or should I delete all
&lt;br&gt;&amp;gt; of the 1.16 files first?
&lt;br&gt;&lt;br&gt;You can do either. &amp;nbsp;There should be no conflicts either way. &amp;nbsp;All of the
&lt;br&gt;1.16 files should be overwritten by the 1.18 versions in any case.
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;nbsp;I didn't see a Makefile target &amp;quot;uninstall&amp;quot;,
&lt;br&gt;&amp;gt; although there are some &amp;quot;*clean*&amp;quot; options there.
&lt;br&gt;&lt;br&gt;The 'clean' options just tidy up the build tree, but alternatively, it
&lt;br&gt;is safe simply to delete the whole build tree after installing.
&lt;br&gt;&lt;br&gt;You are right that there is no 'uninstall' option, and perhaps there
&lt;br&gt;should be. &amp;nbsp;If you want to delete an older version of nhc98, here are
&lt;br&gt;the places that installed files live:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; prefix=/usr/local	(usually)
&lt;br&gt;&amp;nbsp; &amp;nbsp; $prefix/bin/
&lt;br&gt;&amp;nbsp; &amp;nbsp; $prefix/lib/nhc98
&lt;br&gt;&amp;nbsp; &amp;nbsp; $prefix/lib/hmake
&lt;br&gt;&amp;nbsp; &amp;nbsp; $prefix/include/nhc98
&lt;br&gt;&amp;nbsp; &amp;nbsp; $prefix/man/man1
&lt;br&gt;&amp;nbsp; &amp;nbsp; $prefix/doc/nhc98
&lt;br&gt;&lt;br&gt;&amp;gt; Perhaps you could add this topic to your website?
&lt;br&gt;&lt;br&gt;A good idea.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&amp;nbsp; &amp;nbsp; Malcolm
&lt;br&gt;_______________________________________________
&lt;br&gt;Nhc-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=3966931&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Nhc-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.haskell.org/mailman/listinfo/nhc-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.haskell.org/mailman/listinfo/nhc-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/What%27s-the-correct-procedure-for-upgrading--tp3952949p3966931.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-3952949</id>
	<title>What's the correct procedure for upgrading?</title>
	<published>2006-04-14T09:58:34Z</published>
	<updated>2006-04-14T09:58:34Z</updated>
	<author>
		<name>Hethcoat-III, Charles L</name>
	</author>
	<content type="html">I hope nhc-bugs is the correct venue for this question.
&lt;br&gt;&lt;br&gt;I installed NHC 1.16 on Cygwin (Windows XP), had some problems with it,
&lt;br&gt;and then realized I had grabbed an old package. &amp;nbsp;I'm going to upgrade to
&lt;br&gt;1.18 and try again.
&lt;br&gt;&lt;br&gt;However, I'm a little bit concerned about the right way to do it. &amp;nbsp;I
&lt;br&gt;haven't found any instructions for upgrading properly.
&lt;br&gt;&lt;br&gt;Do I just install 1.18 and forget about 1.16? &amp;nbsp;Or should I delete all of
&lt;br&gt;the 1.16 files first? &amp;nbsp;I didn't see a Makefile target &amp;quot;uninstall&amp;quot;,
&lt;br&gt;although there are some &amp;quot;*clean*&amp;quot; options there.
&lt;br&gt;&lt;br&gt;Perhaps you could add this topic to your website?
&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;&lt;br&gt;Charles Hethcoat
&lt;br&gt;_______________________________________________
&lt;br&gt;Nhc-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=3952949&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Nhc-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.haskell.org/mailman/listinfo/nhc-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.haskell.org/mailman/listinfo/nhc-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/What%27s-the-correct-procedure-for-upgrading--tp3952949p3952949.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-3879650</id>
	<title>Re: Linux install troubles</title>
	<published>2006-04-12T05:18:35Z</published>
	<updated>2006-04-12T05:18:35Z</updated>
	<author>
		<name>Malcolm.Wallace</name>
	</author>
	<content type="html">[ original message delayed through spam filtering ]
&lt;br&gt;&lt;br&gt;Doug McIlroy &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=3879650&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;doug@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; On Fedora Linux, I fetched nhc98-1.18.tar.gz (Linux executable).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Got some relatively innocuous diagnostics from configure and make
&lt;br&gt;&amp;gt; install, but one stood out:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ./configure: line 594: src/runtime/nhc98heap.c: No such file or
&lt;br&gt;&amp;gt; directory
&lt;br&gt;&lt;br&gt;In the binary tarball, the directory src/runtime does not exist, so
&lt;br&gt;writing a file into it fails. &amp;nbsp;However, line 594 of the configure script
&lt;br&gt;is protected by a test on the existence of directory src/, so I'm a
&lt;br&gt;little unsure why it even got there.
&lt;br&gt;&lt;br&gt;&amp;gt; Bulling through anyway, I did an installation. and compiled a hello
&lt;br&gt;&amp;gt; world program. The result appears to be related to the configure
&lt;br&gt;&amp;gt; trouble:
&lt;br&gt;&lt;br&gt;It is not related, no.
&lt;br&gt;&lt;br&gt;&amp;gt; OS allocated a heap in high memory (&amp;gt;0x80000000)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; which breaks this program's run-time system.
&lt;br&gt;&amp;gt; &amp;nbsp; hpStart=0xb7d96008, hpEnd=0xb7e0b308
&lt;br&gt;&lt;br&gt;This is a known bug, triggered by more recent versions of Linux. &amp;nbsp;I
&lt;br&gt;attach a source patch which is claimed to work around the problem
&lt;br&gt;(tested on a Fedora system). &amp;nbsp;It isn't a full fix, but should avoid
&lt;br&gt;high-memory allocation in many circumstances.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&amp;nbsp; &amp;nbsp; Malcolm
&lt;br&gt;&lt;br /&gt;Index: src/runtime/Kernel/collector.c
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /home/cvs/root/nhc98/src/runtime/Kernel/collector.c,v
&lt;br&gt;retrieving revision 1.24
&lt;br&gt;retrieving revision 1.26
&lt;br&gt;diff -u -r1.24 -r1.26
&lt;br&gt;--- src/runtime/Kernel/collector.c	7 Mar 2005 16:53:38 -0000	1.24
&lt;br&gt;+++ src/runtime/Kernel/collector.c	28 Mar 2006 09:21:11 -0000	1.26
&lt;br&gt;@@ -9,6 +9,7 @@
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;/*#define HEAPSIZE 100000 &amp;nbsp;-- defined in top-level Makefile at config-time */
&lt;br&gt;&amp;nbsp;#define GCSTACKSIZE 20000
&lt;br&gt;+#define SBRK 1	/* Use sbrk(2) instead of malloc(3) to allocate the heap */
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;WHEN_DYNAMIC(int ractive = 0;)
&lt;br&gt;&amp;nbsp;
&lt;br&gt;@@ -46,7 +47,13 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp;Int totalSize = hpSize+spSize;
&lt;br&gt;&amp;nbsp; &amp;nbsp;Int tableSize = (totalSize+WORDSIZE)/(WORDSIZE+1)+1; /* Last one for end of marked */
&lt;br&gt;&amp;nbsp;
&lt;br&gt;- &amp;nbsp;if(NULL == (hpStart = malloc ((int)totalSize * sizeof(Node)))) {
&lt;br&gt;+ &amp;nbsp;if (
&lt;br&gt;+#if SBRK
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;((NodePtr)-1)== (hpStart = (NodePtr)sbrk((int)totalSize * sizeof(Node)))
&lt;br&gt;+#else
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;NULL == (hpStart = malloc ((int)totalSize * sizeof(Node)))
&lt;br&gt;+#endif
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; ) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;fprintf(stderr,&amp;quot;Not enough memory for heap and stack.\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;exit(-1);
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Nhc-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=3879650&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Nhc-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.haskell.org/mailman/listinfo/nhc-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.haskell.org/mailman/listinfo/nhc-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Linux-install-troubles-tp3879413p3879650.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-3839290</id>
	<title>Re: EnumFromThen</title>
	<published>2006-04-10T04:23:22Z</published>
	<updated>2006-04-10T04:23:22Z</updated>
	<author>
		<name>Malcolm.Wallace</name>
	</author>
	<content type="html">&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=3839290&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hanatani@...&lt;/a&gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; I found a bug in nhc98-1.18.
&lt;br&gt;&lt;br&gt;Yes indeed! &amp;nbsp;I wonder how that one escaped attention for so long...
&lt;br&gt;&lt;br&gt;&amp;gt; $ diff src/prelude/Prelude/Enum_Integer.hs src/prelude/Prelude/Enum_Integer.hs
&lt;br&gt;&amp;gt; 14c14
&lt;br&gt;&amp;gt; &amp;lt; &amp;nbsp; enumFromThen x y = x : enumFromThen y (2*y-x)
&lt;br&gt;&amp;gt; ---
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; enumFromThen x y = x : enumFromThen y (2*y+x)
&lt;br&gt;&lt;br&gt;Your patch format is the wrong way round, but I get the idea.
&lt;br&gt;Thanks!
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&amp;nbsp; &amp;nbsp; Malcolm
&lt;br&gt;_______________________________________________
&lt;br&gt;Nhc-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=3839290&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Nhc-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.haskell.org/mailman/listinfo/nhc-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.haskell.org/mailman/listinfo/nhc-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/EnumFromThen-tp3815748p3839290.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-3815748</id>
	<title>EnumFromThen</title>
	<published>2006-04-08T01:29:09Z</published>
	<updated>2006-04-08T01:29:09Z</updated>
	<author>
		<name>hanatani</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;I found a bug in nhc98-1.18.
&lt;br&gt;&lt;br&gt;$ diff src/prelude/Prelude/Enum_Integer.hs src/prelude/Prelude/Enum_Integer.hs
&lt;br&gt;~
&lt;br&gt;14c14
&lt;br&gt;&amp;lt; &amp;nbsp; enumFromThen x y = x : enumFromThen y (2*y-x)
&lt;br&gt;---
&lt;br&gt;&amp;gt; &amp;nbsp; enumFromThen x y = x : enumFromThen y (2*y+x)
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Yoichi Hanatani
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Nhc-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=3815748&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Nhc-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.haskell.org/mailman/listinfo/nhc-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.haskell.org/mailman/listinfo/nhc-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/EnumFromThen-tp3815748p3815748.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-3879413</id>
	<title>Linux install troubles</title>
	<published>2006-03-27T13:14:42Z</published>
	<updated>2006-03-27T13:14:42Z</updated>
	<author>
		<name>Doug McIlroy</name>
	</author>
	<content type="html">On Fedora Linux, I fetched nhc98-1.18.tar.gz (Linux executable).
&lt;br&gt;&lt;br&gt;Got some relatively innocuous diagnostics from configure and make install, but one stood out:
&lt;br&gt;&lt;br&gt;./configure: line 594: src/runtime/nhc98heap.c: No such file or directory
&lt;br&gt;&lt;br&gt;Bulling through anyway, I did an installation. and compiled a hello world program.
&lt;br&gt;The result appears to be related to the configure trouble:
&lt;br&gt;&lt;br&gt;OS allocated a heap in high memory (&amp;gt;0x80000000)
&lt;br&gt;&amp;nbsp; &amp;nbsp; which breaks this program's run-time system.
&lt;br&gt;&amp;nbsp; hpStart=0xb7d96008, hpEnd=0xb7e0b308
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Nhc-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=3879413&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Nhc-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.haskell.org/mailman/listinfo/nhc-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.haskell.org/mailman/listinfo/nhc-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Linux-install-troubles-tp3879413p3879413.html" />
</entry>

</feed>
