Re: ghc from CVS HEAD doesn't work with "-O -threaded"
Simon Marlow writes: >> $ ghc -threaded -Wall -O --make test.hs -o test -ladns > Should be fixed now. Just updated to the new version and tried it: The error is gone. Thank you very much. Peter ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
RE: ghc from CVS HEAD doesn't work with "-O -threaded"
On 19 October 2004 17:08, Peter Simons wrote: > The following reproducibly fails: > > $ darcs get http://cryp.to/hsdns [*] > $ cd hsdns/ > $ hsc2hs ADNS.hsc > $ ghc -threaded -Wall -O --make test.hs -o test -ladns > | Chasing modules from: test.hs > | Compiling ADNS ( ./ADNS.hs, ./ADNS.o ) > | /tmp/ghc2613.hc:9:23: ADNS_stub.h: No such file or directory > | /tmp/ghc2613.hc: In function `s8Xa_ret': > | /tmp/ghc2613.hc:6340: error: `ADNS_d7eN' undeclared (...) > > If you build the program without optimization, > > $ ghc -threaded --make test -ladns > > it works just fine. This seems to happen only when the > threaded RTS in involved, -O without -threaded works. Should be fixed now. Sorry for the delay in getting around to this. Cheers, Simon ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
ghc from CVS HEAD doesn't work with "-O -threaded"
The following reproducibly fails: $ darcs get http://cryp.to/hsdns [*] $ cd hsdns/ $ hsc2hs ADNS.hsc $ ghc -threaded -Wall -O --make test.hs -o test -ladns | Chasing modules from: test.hs | Compiling ADNS ( ./ADNS.hs, ./ADNS.o ) | /tmp/ghc2613.hc:9:23: ADNS_stub.h: No such file or directory | /tmp/ghc2613.hc: In function `s8Xa_ret': | /tmp/ghc2613.hc:6340: error: `ADNS_d7eN' undeclared (...) If you build the program without optimization, $ ghc -threaded --make test -ladns it works just fine. This seems to happen only when the threaded RTS in involved, -O without -threaded works. Peter ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users