RE: Missing Folder in ghc?

2006-03-03 Thread Simon Peyton-Jones
Yes, I think it was my fault. Incidentally, mail about *building* ghc should go to [EMAIL PROTECTED] Simon | -Original Message- | From: [EMAIL PROTECTED] [mailto:glasgow-haskell-users- | [EMAIL PROTECTED] On Behalf Of Wolfgang Thaller | Sent: 03 March 2006 00:40 | To: Ashley Yakeley |

building ghc-6.4.1 with gcc-4.1.0 on x86_64

2006-03-03 Thread Jens Petersen
Hi, I'm having problems building ghc-6.4.1 with gcc-4.1.0 on x86_64 (amd64). It builds fine with gcc-4.1 on 32bit ix86. gcc-4.1.0 is the default compiler in Fedora Core 5, which will be released soon. Below is part of the buildlog where it is failing during stage2 linking. Jens

Re: GHC 6.4.1 and Win32 DLLs: Bug in shutdownHaskell?

2006-03-03 Thread Michael Marte
Cyril, - How to generate an import library at all? Section 11.5.1 of the ghc manual says that the --mk-dll option will cause ghc to create such a library, but ghc 6.4.1 does not do this, at least not on Windows. Or did you use the Microsoft lib.exe? (lib.exe /def Foo.def generates an import

Now -split-objs work with --make

2006-03-03 Thread Bulat Ziganshin
This means that ghc 6.6 starting from current build can optimize EXE sizes by throwing away all unused functions This is a forwarded message ===8==Original message text=== Date: Thu, 2 Mar 2006 09:07:34 -0800 From: Simon Marlow [EMAIL PROTECTED] Subject: patch applied

Re: GHC 6.4.1 and Win32 DLLs: Bug in shutdownHaskell?

2006-03-03 Thread Cyril Schmidt
Michael, - How to generate an import library at all? Check this out: http://www.haskell.org/haskellwiki/GHC/FAQ#How_do_I_link_Haskell_with_C.2B.2B_code_compiled_by_Visual_Studio.3F - Assuming I have obtained an import library, how to use in the Microsoft world, i.e. how to bridge the gap

Re: GHC 6.4.1 and Win32 DLLs: Bug in shutdownHaskell?

2006-03-03 Thread Lennart Augustsson
The memory allocated by the runtime system is never freed. I've submitted a fix fir this. -- Lennart Michael Marte wrote: Hello *, before filing a bug report, I want others to comment on my problem. Maybe it's my fault, not ghc's. I wrapped up some Haskell modules in a Win32 DLL.

Re: GHC 6.4.1 and Win32 DLLs: Bug in shutdownHaskell?

2006-03-03 Thread Michael Marte
Lennart, do you imply that you have fixed the problem causing the crashes? May I safely assume that DLLs produced by ghc 6.4.2 will not crash upon being freed? I played around a little bit more and found two configurations that do not crash, at least not when freeing the DLL in the course of

Re: --make keep going?

2006-03-03 Thread Simon Marlow
John Meacham wrote: is there an option to get ghc to keep going if it encounters an error building a file with --make? as in, I'd like it to continue compiling as much as it can only skipping what actually depends on the file that failed rather than completly aborting everything. Certainly

Re: Now -split-objs work with --make

2006-03-03 Thread Simon Marlow
Bulat Ziganshin wrote: This means that ghc 6.6 starting from current build can optimize EXE sizes by throwing away all unused functions well, not exactly, although that would be a useful enhancement. Currently it only helps when building libraries. Cheers, Simon

Re: GHC 6.4.1 and Win32 DLLs: Bug in shutdownHaskell?

2006-03-03 Thread Michael Marte
Cyril, I know the Haskell Wiki page you pointed to; it does not answer my specific questions. The decision which compiler to use is not up to me and, as the Wiki page points out, there is no other way to use Haskell modules from within a Visual Studio C++ compiled application than via a

Re[2]: --make keep going?

2006-03-03 Thread Bulat Ziganshin
Hello Simon, Friday, March 3, 2006, 4:51:04 PM, you wrote: is there an option to get ghc to keep going if it encounters an error building a file with --make? as in, I'd like it to continue compiling as much as it can only skipping what actually depends on the file that failed rather than

Re: GHC 6.4.1 and Win32 DLLs: Bug in shutdownHaskell?

2006-03-03 Thread Cyril Schmidt
Michael, Sorry, I might have had wrong assumptions about what you want to do. I presume you have a C++ application compiled via Visual Studio 6 that invokes a Haskell DLL. If that's correct, read on; if not, please tell me again what your setting is. To link your Haskell DLL with the C++

Re: Re[2]: --make keep going?

2006-03-03 Thread Benjamin Franksen
On Friday 03 March 2006 15:10, Bulat Ziganshin wrote: it will also be great to make syntax analysis of all source files before compiling them. typical situation - after correcting program i run --make, long wait while some modules will be compiled and only after that ghc complains about some

Allocating aligned memory?

2006-03-03 Thread Li, Peng
In GHC, how can I allocate a chunk of memory aligned to some block size (say, 512 or 1024 bytes)? I tried to specify it in the alignment method in the Storable typeclass, but that does not seem to work. Is Storable.alignment really used in GHC? If so, is there a code example that allocates aligned

Using GHC with SMP and FFI?

2006-03-03 Thread Li, Peng
[1] Extending the Haskell Foreign Function Interface with Concurrency [2] Haskell on a Shared-Memory Multiprocessor I read the above two papers [1,2] and I have been trying to write an application that uses both FFI and SMP. The first paper [1] shows how FFI is implemented on uniprocessor

Memory leak in Fudgets

2006-03-03 Thread Dimitry Golubovsky
I wrote a very simple Fudgets program (just copies stdin to stdout, no graphics involved) leaktest.hs -- module Main where import Graphics.UI.Fudgets.Fudgets main = fudlogue (stdoutF == stdinF) and ran it like this: yes | leaktest I found out that the program grows