RtsAPI.h (was Re: new RTS interface problem with ghc-5.04)

2002-07-17 Thread Christoph Lueth
Following up to Keean's message about problems with the RTS interface in ghc-5.04, we have also trouble with that. When compiling C code containing call-ins to Haskell, gcc will complain about RtsAPI.h as follows: /usr/local/lib/ghc-5.04/include/RtsAPI.h:125: syntax error before `const' /usr/

Re: System.system broken?

2002-07-17 Thread Volker Stolz
In local.glasgow-haskell-users, you wrote: > is System.system broken in 5.04? i am using the rpm provided on the web > site and this call appears to be broken. in particular, using strace i > find that it is attempting the following call > > [pid 16975] execve("n/sh", ["/bin/sh", "-c", "echo foo"

RE: Unregisterised build

2002-07-17 Thread Simon Marlow
> > The cross-port script also tries to do too much. You won't > be able to > > actually run the b2 compiler on your bootstrap box, because > it will be > > built against the Alpha/Linux-specific libraries, so just stop after > > you've got a set of .hc files for ghc/compiler in stage 2. Take

RE: RtsAPI.h (was Re: new RTS interface problem with ghc-5.04)

2002-07-17 Thread Simon Marlow
> Following up to Keean's message about problems with the RTS > interface in > ghc-5.04, we have also trouble with that. > > When compiling C code containing call-ins to Haskell, gcc > will complain > about RtsAPI.h as follows: > > /usr/local/lib/ghc-5.04/include/RtsAPI.h:125: syntax error

RE: System.system broken?

2002-07-17 Thread Simon Marlow
> is System.system broken in 5.04? i am using the rpm provided > on the web > site and this call appears to be broken. in particular, using strace i > find that it is attempting the following call > > [pid 16975] execve("n/sh", ["/bin/sh", "-c", "echo foo"], [/* > 67 vars */]) = -1 ENOENT (No

RTS interface followup...

2002-07-17 Thread Keean
Have got the rts stuff to compile by including .../ghc-5.04/HSlang.o on the compile command line. I think this means the linker is not including the object with defines Addr_Azh_con_info when it links the library (only objects actually referenced from an archive library get included in the final b

RE: RTS interface followup...

2002-07-17 Thread Simon Marlow
> Have got the rts stuff to compile by including > .../ghc-5.04/HSlang.o on the > compile command line. I think this means the linker is not > including the > object > with defines Addr_Azh_con_info when it links the library (only objects > actually > referenced from an archive library get inclu

Document -optl-static

2002-07-17 Thread Volker Stolz
I think it would be a good idea to add -optl-static to the flags described in http://www.haskell.org/ghc/docs/latest/html/users_guide/options-phases.html#OPTIONS-LINKER perhaps in the vincinity of -static & -dynamic. Although this could be considered redundant, it might save some time trying out h

RE: RTS interface followup...

2002-07-17 Thread Keean
The code (which is what I am assuming is where the error is comming from) is lifted from Linker.lhs, namely (lookupSymbol :: CString -> IO (Ptr a)) this is used in the following: hobj <- lookupSymbol c_objsym case hobj of o | o == nullPtr -> return Nothing Ptr o ->

RE: RTS interface followup...

2002-07-17 Thread Simon Marlow
> The code (which is what I am assuming is where the error is > comming from) is > lifted > from Linker.lhs, namely (lookupSymbol :: CString -> IO (Ptr > a)) this is used > in the > following: > > hobj <- lookupSymbol c_objsym > case hobj of > o | o == nullPtr -> return Nothi

RE: Document -optl-static

2002-07-17 Thread Simon Marlow
> I think it would be a good idea to add -optl-static to the flags > described in > http://www.haskell.org/ghc/docs/latest/html/users_guide/option > s-phases.html#OPTIONS-LINKER > perhaps in the vincinity of -static & -dynamic. Although this > could be considered > redundant, it might save some t

RE: RTS interface followup...

2002-07-17 Thread Keean
rts_mkAddr is used by Linker.o in libHSrts.a (it looks like in the resolveObjs call - I in turn am calling this... (this was from doing an nm on the library)... with regards to the threading, I was wondering if the default file buffering mode has changed, as text IO to the console seems slower (y

RE: RTS interface followup...

2002-07-17 Thread Simon Marlow
> rts_mkAddr is used by Linker.o in libHSrts.a (it looks like in the > resolveObjs call - I in turn am calling this... (this was > from doing an nm on the library)... Hmm, yes the Linker does refer to it, just in case the dynamically linked program requires it. I think you should probably arran

RE: RTS interface followup...

2002-07-17 Thread Keean
Yup, -optl-u -optl Addr_Azh_con_info fixes it, and is better than putting HSlang.o in the compile as it will not automatically include the whole library in the binary. As for the slowdown, I will try and compare some code compiled with ghc-5.02 and I will let you know if anything real is happenin

Re: Document -optl-static

2002-07-17 Thread Volker Stolz
In local.glasgow-haskell-users, you wrote: >> I think it would be a good idea to add -optl-static to the flags >> described in >> http://www.haskell.org/ghc/docs/latest/html/users_guide/option >> s-phases.html#OPTIONS-LINKER >> perhaps in the vincinity of -static & -dynamic. Although this >> coul

Re: package name mismatch

2002-07-17 Thread George Russell
Simon Marlow wrote: > > > It must have been only a warning in 5.02.3, or I could never have > > compiled it there. (Before 5.02.3 we didn't use the package > > system like this at all.) [snip] > > Can't you just fix your build so that the situation doesn't occur? [snip] In fact I have been unab

Re: replacing the Prelude (again)

2002-07-17 Thread Dylan Thurston
On Tue, Jul 16, 2002 at 04:02:44PM +1000, Bernard James POPE wrote: > I would like to use do-notation in the transformed program, but have it > refer to Prelude.Monad and not MyPrelude.Monad which is also in scope. Why do you have a MyPrelude.Monad (different from Prelude.Monad) if you don't want

Re: replacing the Prelude (again)

2002-07-17 Thread Bernard James POPE
Dylan writes: > On Tue, Jul 16, 2002 at 04:02:44PM +1000, Bernard James POPE wrote: > > I would like to use do-notation in the transformed program, but have it > > refer to Prelude.Monad and not MyPrelude.Monad which is also in scope. > > Why do you have a MyPrelude.Monad (different from Prelude.