Re: [Fwd: Re: Problem building hdbc-sqlite3 with ghc 6.8.2]

2008-01-03 Thread Wolfgang Thaller
On 3-Jan-08, at 4:47 PM, Christian Maeder wrote: Hi, can someone explain the linking error below? (on Intel-Mac (Tiger?)) Preprocessing library HDBC-sqlite3-1.1.3.0... Building HDBC-sqlite3-1.1.3.0... [1 of 7] Compiling Database.HDBC.Sqlite3.Consts ( dist/build/Database/

[Haskell-cafe] Re: HOC is dead! Long live HOC!

2007-11-07 Thread Wolfgang Thaller
On 7-Nov-07, at 5:14 PM, Joel Reymont wrote: BridgeSupport [1] is new functionality in Leopard that makes the current Haskell Objective-C bindings (HOC) obsolete (almost). Almost here means about five to ten percent of the code ;-). If the BridgeSupport files really contain all the

[Haskell-cafe] Re: CPP, Leopard and Haskell Objective-C bindings

2007-11-06 Thread Wolfgang Thaller
On 6-Nov-07, at 5:00 PM, Joel Reymont wrote: It seems that the current approach taken by HOC is to strip preprocessing directives. True. Additionally, some of those strange macros are just interpreted as language keywords by the parser. I'm trying to figure out the easiest way to run CPP

Re: LLVM back end

2006-12-21 Thread Wolfgang Thaller
On 21-Dec-06, at 1:26 PM, Michael T. Richter wrote: Global Register Variables -- I'm not sure I understand the point here. LLVM is a... well, a virtual machine. It's not a real target. The LLVM code is then either simulated in a VM (as per, say, Java) or it is further compiled to a

Re: LLVM back end

2006-12-20 Thread Wolfgang Thaller
On 20-Dec-06, at 10:10 AM, Michael T. Richter wrote: Well, I'm almost entirely ignorant of LLVM and of Haskell -- especially the internals of both. That makes me ideally suited for this project since I'm not aware that it's impossible. I'm afraid LLVM currently lacks some features that

Re: OpengGL lockup using GHC 6.6 on Intel Mac

2006-12-01 Thread Wolfgang Thaller
The NeHe tutorials work for me with both GHC 6.6 and HEAD on my Intel Mac; however, I'm not using MacPorts. Is anyone else here who uses MacPorts on an Intel Mac, to confirm or deny the bug? Cheers, Wolfgang ___ Glasgow-haskell-users mailing list

Re: 6.4.3 and threaded RTS problems

2006-10-16 Thread Wolfgang Thaller
Could someone on MacOS X try the 6.4.x branch again? I just committed a fix that makes the threaded RTS more stable on Solaris, and I'm hoping it clears up the problems on MacOS X too. Remember to re-enable -threaded in ghc/compiler/Makefile if you previously disabled it. The problem

Re: MacOS X / PowerPC

2006-07-05 Thread Wolfgang Thaller
X (at least I assume he's busy, that's the last I heard, but he didn't respond to my latest ping). Oops, sorry about that. Yes, I'm quite busy, trying to get a degree here. Proper Mac OS X support will resume on September 1st :-). So the mantle of powerpc-apple-darwin maintainer is

Re: FFI, safe vs unsafe

2006-04-12 Thread Wolfgang Thaller
Simon Marlow wrote: I agree. So other suggestions? longrunning? mightblock or mayblock? I don't like *block, because the question of blocking is irrelevant to this issue. It's about whether the foreign call returns sooner or later, not about whether it spends the time until then

Re: FFI, safe vs unsafe

2006-04-12 Thread Wolfgang Thaller
John Meacham wrote: This doesn't have to do with bound threads, [...] I brought it up because the implementation you are proposing fullfills the most important feature provided by bound threads, namely to be able to access the thread local state of the main OS thread (the one that runs C

Re: FFI, safe vs unsafe

2006-04-12 Thread Wolfgang Thaller
John Meacham wrote: However, in order to achieve that we would have to annotate the foreign functions with whether they use thread local state. I am not opposed to that; however, you might not like that here again, there would be the safe, possibly inefficient default choice, which

Re: FFI, safe vs unsafe

2006-04-03 Thread Wolfgang Thaller
John Meacham wrote (... but I've reordered things): My only real 'must-have' is that the 4 modes all can be explicitly and unambiguously specified. I have opinions on the syntax/hints but that is more flexable. I basically agree (the syntax discussion will take place in the years after

FFI, safe vs unsafe

2006-03-31 Thread Wolfgang Thaller
Hi everyone, Before adding non-concurrent, reentrant calls to the language standard, please take some time to think about what that means. If you have forkIO'ed multiple threads, things start to interact in strange ways. I think this is a can of worms we don't want to open. (Or open

Re: FFI, safe vs unsafe

2006-03-31 Thread Wolfgang Thaller
John Meacham wrote: first of all, a quick note, for GHC, the answers will be the same thing it does now with -threaded. but I will try to answer with what a simple cooperative system would do. Sure. Unless someone dares answer yes to question 4, GHC will stay as it is. 2.) Assume

Re: GHC 6.5 on Mac Os X

2006-03-29 Thread Wolfgang Thaller
On 28-Mar-06, at 4:52 AM, Simon Marlow wrote: This seems very strange indeed - I immediately suspect something odd with your hardware. Try swapping out RAM, if you can. Strange that it only seems to affect Perl (Perl is running the mangler that generates that .s file). I suppose it's

Re: How to access hs_free_fun_ptr from a Visual Studio DLL

2006-03-28 Thread Wolfgang Thaller
Even as the author of some parts of Adjustor.c and some parts of Hugs' FFI implementation I have to admit that it isn't clear to me at all if tail-calls are used everywhere. %-) Hugs uses tail-jumps or static return code on all supported platforms, GHC on all platforms except IA64. And

Re: How to access hs_free_fun_ptr from a Visual Studio DLL

2006-03-27 Thread Wolfgang Thaller
   C - adjustor - stub - Haskell - stub - adjustor - CIt could be the case that the adjustor tail-jumps to the stub, but this is not guaranteed to be the case for all platforms.Hmmm, I thought it was.Well, the FFI addendum is rather vague on this point; this seems to be all it says about

Re: [Haskell-cafe] Re: Can't uninstall GHC or prepare SOE installation on OS X

2006-03-11 Thread Wolfgang Thaller
Hi Wolfgang, For some reason, GHCi now keeps launching every time I launch Terminal.app, I can't even get a regular command line prompt now. I had to uninstall all the files for GHCi manually from an X11 Xterm to get a regular prompt. It still gets an error trying to launch GHCi, but

[Haskell-cafe] Re: Can't uninstall GHC or prepare SOE installation on OS X

2006-03-08 Thread Wolfgang Thaller
Xavier Elizalde wrote: Hi. I sent this post to the haskell-cafe mailing list but haven't gotten any replies. Ah well, I watch that list in digest mode only, easy to overlook things. Basically, I can't get the Uninstall AppleScript for GHC 6.4.1to run properly because it encounters an

Re: ghc on on macbook pro (fwd)

2006-03-04 Thread Wolfgang Thaller
On 4-Mar-06, at 11:07 AM, S. Alexander Jacobson wrote: Does ghc work on the (intel) macbooks or does it need to be rebuilt? Will code compiled for the old macs work on the macbooks or does it need to be recompiled? Yes and no. GHC, and programs compiled by it, should run without

Re: ghc on on macbook pro (fwd)

2006-03-04 Thread Wolfgang Thaller
On 4-Mar-06, at 3:33 PM, Geoffrey Alan Washburn wrote: I don't have MacOS X Intel handy to verify, but I was under the impression that Rosetta was only automagically invoked by the operating system on application bundles. However, there is a dearth of information regarding this point

Re: Missing Folder in ghc?

2006-03-02 Thread Wolfgang Thaller
On 2-Mar-06, at 7:35 PM, Ashley Yakeley wrote: Thanks. Now the build process gets stuck here: I ran into this yesterday, but didn't have time to look into it; today, ./darcs-all pull seems to have fixed it. Cheers, Wolfgang ___

Re: inside the GHC code generator

2006-02-24 Thread Wolfgang Thaller
Another shortcoming is that the native code generator in GHC isn't capable of dealing with backward jumps to labels (because GHC hasn't needed that so far). But if you did C-- optimisation, you'd probably generate such jumps. It'd be great to beef up the native code gen to handle that. I'm

Re: FunPtr callbacks broken?

2005-10-20 Thread Wolfgang Thaller
simplejack: schedule: re-entered unsafely. Perhaps a 'foreign import unsafe' should be 'safe'? Am I misusing something? Or is this a compiler bug? Google indicated that the last time someone had this problem it was a compiler bug... Here is the test program. It requires jack to be running

ANNOUNCE: GHC 6.4.1 binary package for Mac OS X

2005-09-23 Thread Wolfgang Thaller
My GHC 6.4.1 packages for Mac OS X are finally ready. Mac OS X 10.3.9 (Panther) and 10.4.x (Tiger) http://www.uni-graz.at/imawww/haskell/GHC-6.4.1.pkg.zip This is an installer package that will install a full version of GHC with GHCi, profiling, dynamic linking, double-clickable icons

[Haskell-cafe] Dread __DISCARD__

2005-09-17 Thread Wolfgang Thaller
I'm on Mac OS 10.4.2, using ghc 6.4 (from the haskell.org .dmg) and gcc 4.0.0. Other wxHaskell programs (the samples and my own experiments) compile without tripping over this. GHC 6.4 is incompatible with gcc 4.0.0 when -O or -via-C is used. You can work around this problem by either not

Re: FFI: calling Haskell from C++?

2005-09-13 Thread Wolfgang Thaller
we have tried long and hard to call Haskell functions from C++ usingthe FFI mechanism but without success. Don't forget to say which platform you're on - the solution might be slightly platform-dependent.  $ ghc -fffi Foo.o Foo_stub.o main.cpp   main.o(.text+0x22): In function `main':  main.cpp:

Re: GHC 6.2.2 Compile problem on Mac OS X 10.4

2005-06-23 Thread Wolfgang Thaller
Hi, I am trying to make an unregisterised build. As my host machine, i use a Mac running Mac OS X 10.4. When building ghc 6.2.2 on the host machine (also running GHC 6.2.2), i get the error attached below when doing 'make all' in ghc/. Does anyone have an idea how to solve this ? thanks,

Re: Runhaskell bug

2005-04-13 Thread Wolfgang Thaller
I get the following bug when trying to build hsql with GHC 6.4, on Mac OS X. I am using the binary release of GHC from the GHC website. $ runhaskell Setup.lhs build Preprocessing library hsql-1.2... Building hsql-1.2... Setup.lhs: internal error: stg_ap_v_ret Please report this as a bug to

Re: GetOpt is broken

2005-04-12 Thread Wolfgang Thaller
Volker Wysk wrote: Hello. In GHC 6.4, GetOpt no longer recognizes the -- argument, which terminates interpretation of arguments beginning with - as switches: Thanks for the report. This bug is already fixed in CVS. Cheers, Wolfgang ___

Re: poroblems compiling with 6.4 under PPC G3/MacOSX 10.3.8

2005-03-21 Thread Wolfgang Thaller
I've installed Wolfgang Thaller's ghc 6.4 dmg on my G3 iBook running MacOSX 10.3.8. ghci works fine, but attempting any compilation fails with the message: /tmp/ghc441.s:1564:Unknown pseudo-op: .subsections_via_symbols Please upgrade your gcc by downloading XCode Tools 1.5 from Apple. Cheers,

Re: [Haskell-cafe] invalid character encoding

2005-03-19 Thread Wolfgang Thaller
Also, IIRC, Java strings are supposed to be unicode, too - how do they deal with the problem? Files are represented by instances of the File class: [...] The documentation for the File class doesn't mention encoding issues at all. ... which led me to conclude that they don't deal with the problem

Re: [Haskell-cafe] invalid character encoding

2005-03-18 Thread Wolfgang Thaller
Glynn Clements wrote: OK, so the intermediate string will be nonsense if ISO-8859-1 isn't the correct encoding, but that doesn't actually matter a lot of the time; frequently, you're just grabbing a blob of data from one function and passing it to another. Yes. Of course, this also means that

Re: ANNOUNCE: GHC version 6.4

2005-03-14 Thread Wolfgang Thaller
= The (Interactive) Glasgow Haskell Compiler -- version 6.4 = A Mac OS X installer package for Mac OS 10.3 (Panther) is available at

[Haskell] Re: ANNOUNCE: GHC version 6.4

2005-03-14 Thread Wolfgang Thaller
= The (Interactive) Glasgow Haskell Compiler -- version 6.4 = A Mac OS X installer package for Mac OS 10.3 (Panther) is available at

Re: ANNOUNCE: GHC version 6.4

2005-03-13 Thread Wolfgang Thaller
= The (Interactive) Glasgow Haskell Compiler -- version 6.4 = A Mac OS X installer package for Mac OS 10.3 (Panther) is available at

Re: ANNOUNCE: GHC version 6.4

2005-03-13 Thread Wolfgang Thaller
= The (Interactive) Glasgow Haskell Compiler -- version 6.4 = A Mac OS X installer package for Mac OS 10.3 (Panther) is available at

[Haskell] Re: ANNOUNCE: GHC version 6.4

2005-03-13 Thread Wolfgang Thaller
= The (Interactive) Glasgow Haskell Compiler -- version 6.4 = A Mac OS X installer package for Mac OS 10.3 (Panther) is available at

[Haskell] Re: ANNOUNCE: GHC version 6.4

2005-03-13 Thread Wolfgang Thaller
= The (Interactive) Glasgow Haskell Compiler -- version 6.4 = A Mac OS X installer package for Mac OS 10.3 (Panther) is available at

Re: Illtyped generated code with unsafeCoerce#, F# and -O

2005-03-10 Thread Wolfgang Thaller
g (F# f) = let w = W32# (unsafeCoerce# f) Why does GHC even accept this code? I think unsafeCoerce# is not intended to be able to coerce unboxed values. Prelude GHC.Base :t unsafeCoerce# unsafeCoerce# :: forall b a. a - b The type variables a and b are supposed to be of kind *, and f

Re: Another GHC 6.4 Release Candidate Binary for Mac OS X

2005-03-10 Thread Wolfgang Thaller
When I double-click the icon, I get *two* Terminal windows started, one running ghci, the other just an ordinary shell. Is this intended? No, that's the Terminal's default behaviour of opening an empty window when it is launched, before receiving the command to open a new terminal window and

Another GHC 6.4 Release Candidate Binary for Mac OS X

2005-03-09 Thread Wolfgang Thaller
Another Mac OS X installer: http://opeongo.cas.mcmaster.ca/~wolfgang/GHC-6.4.20050308.pkg.zip Features: *) all the normal GHC 6.4 features *) dynamic linking *) nice icons you can double-click to open a terminal window with ghci (one for H98 and one for -fglasgow-exts) *) You can even drag your

GHC 6.4 Release Candidate Binary for Mac OS X

2005-03-04 Thread Wolfgang Thaller
I've uploaded a Mac OS X installer based on the stable tree from March 2nd + the patches I committed yesterday at: http://opeongo.cas.mcmaster.ca/~wolfgang/GHC-6.4.20050302.pkg.zip This package is built with support for dynamic libraries (some human intervention was required to build it). Mac

Re: x86_64 port

2005-03-04 Thread Wolfgang Thaller
On 4-Mar-05, at 11:57 AM, Simon Marlow wrote: Don't hold your breath, I have some bad news. It seems that gcc is still generating incorrect code for register variables (or maybe it's broken again?). So maybe this will be the first NCG-only port of GHC :-). Death to the Mangler! Cheers, Wolfgang

Re: [Haskell-cafe] Re: Bound threads

2005-03-02 Thread Wolfgang Thaller
Marcin Kowalczyk wrote: Indeed, my brain is melting, but I did it :-) Congratulations. How about we found a Bound-thread-induced brain melt victims' support group? [...] I have added some optimizations: I think we had thought of most of these optimizations, but things were already very complex,

Re: GHCi and C++.

2005-02-25 Thread Wolfgang Thaller
During my ongoing research on doing whatever I feel like, I discovered that using C++ libaries in GHCi (no problems with GHC) wasn't as pleasant as I had hoped. Apparently C++ sources requires to be linked with crtbegin.o and crtend.o (and others?) and I was wondering how to solve this nicely. Any

Re: GHCi and C++.

2005-02-25 Thread Wolfgang Thaller
I've written a binding to a C++ library where I use a simple wrapper file to overcome the name mangling (extern C functions calling C++, nothing fancy). Is there a way to make that more GHCi friendly or should I explore other options? What exactly is going wrong? Try wrapping your binding in a

Re: GHC 6.4 release candidates available (breakage on x86-64)

2005-02-25 Thread Wolfgang Thaller
[...] warning: don't know how to split object files on this architecture [...] Wolfgang, Ryan - that looks like a splitter problem, no? Definitely. Looks like there is no splitter for x86-64. SplitObjs=NO is definitely required. (The splitter is more of a dark art than the evil mangler, I

[Haskell-cafe] Re: Bound threads

2005-02-25 Thread Wolfgang Thaller
I'm trying to understand the semantics and implementation of bound threads basing on the conc-ffi paper and others. Since the main thread is bound, and unbound threads are never executed on an OS thread which has some Haskell thread bound, this would imply that when the main thread spawns a

Re: GHC 6.4 release candidates available (breakage on suse 9.2 x86 or x86-64)

2005-02-23 Thread Wolfgang Thaller
Thanks, good to know; I'll read through 10.2 more carefully. I didn't think I'd need to cross-compile x86-linux to x86-linux. You don't need to - the recommended way is to download a binary version. If you don't like using binary distributions, then use it for bootstrapping only, i.e. use it

Re: Getting ghci to work (Mac OS X ghc-6.5 from CVS)

2005-02-23 Thread Wolfgang Thaller
Hi I got ghc-6.5 prerelease from the CVS and managed to get it up and running, *except* for ghci, the interactive part. It worked last time I tried. Is there something in particular that I need to think about to make ghci support get compiled into ghc? When using ghc-inplace, make sure you're

Re: GHC 6.4 release candidates available (breakage on suse 9.2 x86 or x86-64)

2005-02-23 Thread Wolfgang Thaller
Brian Strand wrote: I originally tried the binary distribution but ran into library issues. That is of course the obvious path to try, and try it I did. Rather than going straight to installing deprecated libraries, I tried to provide some feedback on ghc (especially since 6.4 RCs are out).

Re: Waiting on Sockets or File Descriptors

2005-02-02 Thread Wolfgang Thaller
So I guess I can't really use them in code that's supposed to be portable among different platforms? Maybe 'forkOS' combined with calling poll() through FFI really is the best solution? I seem to recall reading somewhere that the threaded RTS was more efficient for these applications anyway? Two

Re: Problem with handles in GHC from CVS

2005-01-23 Thread Wolfgang Thaller
The temporary file is created but it is empty. It seems like the stdout/stderr handles are flushed in GHC.TopHandler.runMainIO but only if the program terminates without exception. Should be fixed now; when terminating using exitWith, the handles are now flushed. Note that they are still not

Re: Problem with handles in GHC from CVS

2005-01-23 Thread Wolfgang Thaller
It seems they should always be flushed. certainly if a program fails via 'fail' in IO or 'error' as these are common ways for programs to report an error and losing output would definitly be counter intuitive and make it quite tricky to debug. especially when you can't flush stdout before

Re: Loading package ghc within GHCi

2005-01-05 Thread Wolfgang Thaller
The hook idea works with static linking: the RTS provides a default version of the hook, that can be overriden by a user-supplied function of the same name. This is what GHC does. However, our dynamic linker doesn't support this kind of overriding. The system's dynamic linker does, though:

Re: Implicit parameter constraints not inferred

2004-11-06 Thread Wolfgang Thaller
Benjamin Franksen wrote: main = let ?b = True in use_b --use_b :: (?g::Bool) = IO () use_b = print ?b It isn't: ghc -fimplicit-params says Unbound implicit parameter (?b :: a) arising from use of implicit parameter `?b' at TestBug.hs:4 In the first argument of `print', namely `?b'

Re: setCurrentDirectory and lightweight threads

2004-10-24 Thread Wolfgang Thaller
Now, some of the most common operations used in dynamic web pages relate to directory listing/manipulation. I was happily thinking that System.Directory would provide the needed functionality. Indeed it does, but unfortunately setCurrentDirectory breaks the thread abstraction. What I mean is that

Re: ANNOUNCE: GHC version 6.2.2

2004-10-22 Thread Wolfgang Thaller
= The (Interactive) Glasgow Haskell Compiler -- version 6.2.2 = A Mac OS X double-clickable package is now available at:

[Haskell] Re: ANNOUNCE: GHC version 6.2.2

2004-10-22 Thread Wolfgang Thaller
= The (Interactive) Glasgow Haskell Compiler -- version 6.2.2 = A Mac OS X double-clickable package is now available at:

Re: OS X framework + ghci linker + RTS flags = bus error?

2004-10-21 Thread Wolfgang Thaller
gcc -c BusErr.m ghci -framework Foundation +RTS -RTS BusErr.o Loading package base ... linking ... done. Loading object (static) BusErr.o ... done Loading object (framework) Foundation ... done final link ... Bus error Now that is interesting. I can reproduce that on my machine, and I'll

Re: Module Initialisation? (was Re: [Haskell] (no subject))

2004-10-16 Thread Wolfgang Thaller
Adrian Hey wrote: I'm puzzled about this idea of module init action in a declarative language. Perhaps, if it's desirable to have some module initialisation applied to a module if anything from it is used, the way to do this would be to have a reserved identifier specially for the purpose, like

[Haskell] (no subject)

2004-10-13 Thread Wolfgang Thaller
b) Some predetermined order, with semantics like mdo: Hmm, I just realized that this also means we can execute moduke intialisation code that returns no result using: _ - do ... I like that, I desperately need that for my Objective-C binding... So the extension with the specified order

Re: [Haskell] threading mutable state through callbacks

2004-10-12 Thread Wolfgang Thaller
Well, Wadler's Law of Language Design has been disproved. We seem to agree on the syntax, that is, global foo - bar bindings, and we're actually discussing semantics. That's great! Just for the record, I want exactly what Adrian proposed. There seem to be two interesting points about the

Re: Using GHC and FFI

2004-07-16 Thread Wolfgang Thaller
and compiled this. So I created a file named project.obj. We normally use .o rather than .obj; I don't know if using .obj can cause any problems with ghc. After that I wrote ghc -fffi -c test.lhs. But when I call blah from ghci I get the error message: test.o unknown symbol '_test' I think ghc

Re: Can't use home-grown packages with ghci on Mac OS X

2004-05-22 Thread Wolfgang Thaller
Problem: ghci doesn't work with user generated packages. Hmmm... you might have stumbled upon two different bugs; 1) GHCi crashes with object files that have no dynamic symbol table - should happen only with toy modules 2) The __module_registered bug; AFAICT, this can't be caused by the above

Re: Integrating ghc's rts into other single-threaded frameworks

2004-05-05 Thread Wolfgang Thaller
So here's what I don't understand: we make a non-blocking call to gtk+'s main loop So far, so good. (which makes a blocking call in a new OS thread). With (the current version of) GHC's threaded RTS, there's only one OS thread involved until you spawn a second thread (with forkIO or forkOS).

Re: Windows ghc6.04

2004-05-04 Thread Wolfgang Thaller
Is there any chance that GHC 6.04, or any GHC version in the next few months, will support the following on Windows: 1) use of native threads so that the world won't be stopped every time you wait for a character; Should already be in 6.02.1 - add the -threaded flag when linking, and you'll get

Re: GHC CVS refusing connections...

2004-04-28 Thread Wolfgang Thaller
Sigbjorn Finne [EMAIL PROTECTED] writes: Thanks to the hard work of Jeff Lewis, the CVS pserver at cvs.haskell.org is now back up again, Malcolm Wallace wrote: Good, and well done. Unfortunately, ssh-based connections to the writable repository have now started to fail for me. The ssh server

Re: Nit with 6.2.1

2004-03-25 Thread Wolfgang Thaller
Gregory Wright wrote: Hi, I built 6.2.1 on Mac OS X 10.3.3 from source with OpenGL support. I built the Cube.hs demo program and it compiles and runs fine, but if I terminate it with crtl-C instead of hitting q in the OpenGL window, I get the error message ./Cube ^CCube: internal error:

Re: ANNOUNCE: GHC version 6.2.1

2004-03-25 Thread Wolfgang Thaller
The (Interactive) Glasgow Haskell Compiler -- version 6.2.1 A Mac OS X 10.3 (Panther) binary installer package is now available at:

Re: -static

2004-03-09 Thread Wolfgang Thaller
On 09.03.2004, at 15:53, Ian Lynagh wrote: On Tue, Mar 09, 2004 at 01:04:59AM +0100, Wolfgang Thaller wrote: So I assume this is on powerpc-linux? Yup, sorry (and the others are all Linux too). Ah yes, that -static flag was lurking there from the old AIX port. It's definitely OK to remove

Re: -static

2004-03-08 Thread Wolfgang Thaller
What platform? Does everything work if you remove the -static? alpha, powerpc and hppa so far. I expect the same will happen for mips and mipsel. If, on powerpc, I run the final link command without -static (that's the only place it should make a difference, right?) then it links without warnings

Re: ghc and signal processing

2004-02-23 Thread Wolfgang Thaller
On 23.02.2004, at 13:32, MR K P SCHUPKE wrote: b - mapArray id a The reason it is slow is because the array type is copied every time a member is assigned. The array in question is already a mutable array, and even for non-mutable arrays, mapArray would use mutable arrays internally. The

Re: Use of tab characters in indentation-sensitive code

2004-01-24 Thread Wolfgang Thaller
Graham Klyne wrote: I think that compilers should issue a warning when indentation that determines the scope of a construct is found to contain tab characters. I'd say, when it is found to contain a mixture of tab and space characters. I have successfully written a lot of Haskell code that uses

Re: ANNOUNCE: GHC version 6.2

2003-12-27 Thread Wolfgang Thaller
The (Interactive) Glasgow Haskell Compiler -- version 6.2 A binary package for Mac OS X version 10.3 (Panther) is now available at

Re: ghc fails hello world on ppc

2003-12-11 Thread Wolfgang Thaller
I forgot to say that the version is 6.0.1. So... can anyone else reproduce this? Is there a stable version of the compiler which I should be using instead? Is there anything I can do to help fix this bug? I've been playing around with PPC Linux a bit on the weekend, and I can't reproduce the

Re: forkProcess type changed?

2003-12-11 Thread Wolfgang Thaller
George Russell wrote: For the development snapshot 6.3.20031201, System.Posix.forkProcess has the type IO () - IO System.Posix.Types.ProcessID. In 6.0.1 it has type IO () - IO (Maybe System.Posix.Types.ProcessID). Is this change intentional, and if so how are you supposed to test after the fork

Re: ghc fails hello world on ppc

2003-12-10 Thread Wolfgang Thaller
I forgot to say that the version is 6.0.1. So... can anyone else reproduce this? Is there a stable version of the compiler which I should be using instead? Is there anything I can do to help fix this bug? I've been playing around with PPC Linux a bit on the weekend, and I can't reproduce

Re: Foreign Function Interface (FFI)

2003-11-28 Thread Wolfgang Thaller
(follow-ups to the FFI list please) Rafael Martinez Torres wrote: HI: Reading Haskell 98 FFI report, one question arised: Imported and declared a foreign function , via foreign import ccall foo:: IO(CInt) Is it guaranteed to be executed in atomic way ? I mean , should it block the whole STG

Re: Pestilential behaviour of gcc3.3 on Macs

2003-11-27 Thread Wolfgang Thaller
Yes I know this is really Apple's fault, but according to http://developer.apple.com/documentation/ReleaseNotes/DeveloperTools/ GCC3.html The GCC 3.3 preprocessor inserts a new pragma, #pragma GCC set_debug_pwd, as part of the new Distributed Builds feature. (See below.) This may

Re: Building GHC on Mac OS X or Fixing readline

2003-10-31 Thread Wolfgang Thaller
Loading package readline ... linking ... /usr/local/lib/ghc-6.0.1/HSreadline.o: unknown symbol `_rl_free_undo_list' ghc-6.0.1: panic! (the `impossible' happened, GHC version 6.0.1): can't load package `readline' - End of Listing 2 - - Message Link 1 -

Re: ghc-6.0.1 on OS X Panther build

2003-10-29 Thread Wolfgang Thaller
On 29.10.2003, at 21:15, Gregory Wright wrote: Hi Wolfgang, I tried building 6.0.1 on Panther using 6.0.1 built on Jaguar. (The build was run under darwinports.) It failed with the following: [...] Ever see anything like this before? Hmm... now that you mention it, probably yes. There was some

Job Opening - Mac OS X 10.2 Binary Packages

2003-10-24 Thread Wolfgang Thaller
Dear GHC for Mac OS X Users, As you probably know, Mac OS X 10.3 a.k.a. Panther is being officially released today. I'm going to upgrade my Powerbook right away. Panther adds some new functions in Darwin (for example, dlfcn.h and proper wchar support). GHC will automatically make use of these

Re: Job Opening - Mac OS X 10.2 Binary Packages

2003-10-24 Thread Wolfgang Thaller
On 25.10.2003, at 00:01, Diederik van Arkel wrote: Not necessary, the 10.3 dev tools includes the headers for 10.1 and 10.2 so you can compile for all three OS revisions from your 10.3 box. Well, but those are only easily accessible from Apple's Xcode IDE; I have no idea how to get the

Re: About Haskell Thread Model

2003-10-13 Thread Wolfgang Thaller
William Lee Irwin III wrote: On Sat, Oct 11, 2003 at 10:58:04PM +0200, Wolfgang Thaller wrote: You should also note that no Haskell implementation currently supports SMP; even when multiple kernel threads are used, there is a mutual exclusion lock on the Haskell heap, so a multithreaded Haskell

Re: About Haskell Thread Model

2003-10-13 Thread Wolfgang Thaller
Do you have some experience or knowledge about Parallel Haskell? And what you mentioned in you previous email is all about Concurrent Haskell or about the both? Everything I said was about Concurrent Haskell. I have no experience with Parallel Haskell. All the binaries available on the GHC web

Re: About Haskell Thread Model

2003-10-12 Thread Wolfgang Thaller
From www.haskell.org, there's a link Haskell Compilers and Interpreters; and from there, the first link leads to www.haskell.org/hugs, which is Hugs' home page. Cheers, Wolfgang ___ Haskell mailing list [EMAIL PROTECTED]

Re: About Haskell Thread Model

2003-10-11 Thread Wolfgang Thaller
I am a new learner of Haskell and I am interested in Haskell's concurrent model. Can somebody give me a brief intro about Haskell's thread model, like how the use-level threads are mapped to kernel thread and what scheduling mechanism that Haskell uses, or point me to some links or documents that

Re: GHCI crashes on Mac OS X

2003-10-09 Thread Wolfgang Thaller
Yes, I can confirm that. I don't understand the message on the last line. Is GHC confusing GH source files with something else that has the same extension? It looks like GHCi just tries to load all files passed on the command line that do not have a known extension as an object file. The GHCi

Re: Threaded foreign functions calling back.

2003-09-27 Thread Wolfgang Thaller
Peter Strand wrote: Hi, I'd like to use a C-library which calls back into the haskell program, potentially from different threads at the same time. That is, the following calling sequence takes place: (haskell) Calls C via foreign import. (c) Creates threads, which in turn calls back

Re: ghc 6.0.1 and Mac OS X 10.2.6 build

2003-09-11 Thread Wolfgang Thaller
Gregory Wright wrote: Hello, I've fixed it in the darwinports version. I patched the linker to try to find symbols with and without a leading underscore. I thought I had sent a note to the list but perhaps I overlooked doing so. The underlying issue is that there are versions of dlcompat

Re: ghc 6.0.1 and Mac OS X 10.2.6 build

2003-08-14 Thread Wolfgang Thaller
I should note that I've done the build without Wolfgang's HaskellSupportFramework, by setting the include and library paths in build.mk. This is more compatible with the automated packing scheme of DarwinPorts. Of course. The HaskellSupport.framework isn't necessary when the user already has

Re: ANNOUNCE: GHC version 6.0.1

2003-07-31 Thread Wolfgang Thaller
= The (Interactive) Glasgow Haskell Compiler -- version 6.0.1 = A Mac OS X package id now available at: http://www.uni-graz.at/imawww/haskell/GHC.6.0.1.dmg Cheers,

Re: ANNOUNCE: GHC version 6.0.1

2003-07-31 Thread Wolfgang Thaller
= The (Interactive) Glasgow Haskell Compiler -- version 6.0.1 = A Mac OS X package id now available at: http://www.uni-graz.at/imawww/haskell/GHC.6.0.1.dmg Cheers,

Re: System.Directory (was RE: Proposal for a new I/O library design)

2003-07-28 Thread Wolfgang Thaller
pathSeparator :: Char '\\' on Windows, '/' on unices, ':' (I believe) on macs, etc... Used to be ':' in Classic MacOS, and there are still some old routines in Apple's Carbon library that take ':'-separated paths. However, Apple always insisted that Pathnames should only be used for display

The Errno Story

2003-07-24 Thread Wolfgang Thaller
First, the bug part: None of the libraries that use errno are compatible with concurrency. When a (lightweight) thread-switch occurs between the call to some foreign function and the corresponding call to Foreign.C.Error.getErrno, we have a problem: a) the RTS trashes the value of errno b)

Re: threaded-rts

2003-07-23 Thread Wolfgang Thaller
I'm not sure it's worth making a threaded-rts variant distribution right now, given that we'd just throw it away later. But you're welcome to try. We might not need the variant business when the new threaded-rts is finished, but personally, I like the thought of getting the Threaded RTS

Re: threaded-rts

2003-07-22 Thread Wolfgang Thaller
That, along with your HSrts.o later, ties in with the files that change file size except that /usr/lib/ghc-6.0/package.conf gains a pthread in the rts extra libraries. Ah yes, I overlooked that, because it doesn't happen on Mac OS X :-). It looks like I want to make a package-threaded.conf that

Re: Building on Mac OS X

2003-07-21 Thread Wolfgang Thaller
Sean Seefried [EMAIL PROTECTED] wrote: Dear GHC users on the Mac, I'm addressing this primarily to Wolfgang but also to anyone who has built GHC HEAD successfully on Mac OS X. I'm having difficulty doing it myself and I was just wondering if someone could put together a small set of instructions

  1   2   >