Fix GHC ticket 2615 (linker scripts in .so files)

2009-11-30 Thread Howard B. Golden
Mon Nov 30 22:12:34 PST 2009 howard_b_gol...@yahoo.com * Fix GHC ticket 2615 (linker scripts in .so files) This patch only applies to systems that use ELF format files. The patch modifies the addDLL function so that it recognizes "invalid ELF header" errors. If these occur, the file that w

Re: patch applied (ghc): Fix a bug in alternative layout rule

2009-11-30 Thread Isaac Dupree
Malcolm Wallace wrote: Out of interest, without trying it, what do you think this program should print (the only difference between the 3 functions is the indentation of the "where" line)?: main = do print $ f1 1 print $ f2 1 print $ f3 1 I reckon it would be "layout error" at

Re: patch applied (ghc): Fix a bug in alternative layout rule

2009-11-30 Thread Malcolm Wallace
Out of interest, without trying it, what do you think this program should print (the only difference between the 3 functions is the indentation of the "where" line)?: main = do print $ f1 1 print $ f2 1 print $ f3 1 I reckon it would be "layout error" at line 2. :-) f1 x = x

Re: patch applied (ghc): Fix a bug in alternative layout rule

2009-11-30 Thread Ian Lynagh
On Mon, Nov 30, 2009 at 11:05:21PM +, Duncan Coutts wrote: > On Mon, 2009-11-30 at 17:26 +, Ian Lynagh wrote: > > > f2 x = x + case () of > >() -> x > >where x = 5 > > 10, same reason. So if you look at f2 from the perspective of someone new to the language, given

Bootstrapping from hc files -- \o/ (kind of)

2009-11-30 Thread Matthias Kilian
FYI: I'm now able to build a boot.tar.gz on i386 for i386 and use that to build a working ghc on a i386 with no ghc preinstalled. I didn't yet try this chain on amd64, but I guess it works there, too. Doing a real port (like building boot.tar.gz on amd64 and using it on i3986) still doesn't work.

Re: patch applied (ghc): Fix a bug in alternative layout rule

2009-11-30 Thread Duncan Coutts
On Mon, 2009-11-30 at 17:26 +, Ian Lynagh wrote: > On Mon, Nov 30, 2009 at 11:12:36AM +, Duncan Coutts wrote: > > Hmm, 'where' is a keyword though, so can't that be done at the lexical > > level without having to tangle it with the parsing? > > I think it would be possible to have a speci

Re: patch applied (ghc): Fix a bug in alternative layout rule

2009-11-30 Thread Isaac Dupree
Ian Lynagh wrote: On Mon, Nov 30, 2009 at 11:12:36AM +, Duncan Coutts wrote: On Mon, 2009-11-30 at 09:16 +, Simon Marlow wrote: On 29/11/2009 19:40, Duncan Coutts wrote: Here's the main one it cannot cope with that bothers me: foo x = case bar x of Pattern1 -> ... Pattern1 ->

[nightly] 30-Nov-2009 build of HEAD on x86_64-unknown-linux (cam-04-unx.europe.corp.microsoft.com)

2009-11-30 Thread GHC Build Reports
Build description = HEAD on x86_64-unknown-linux (cam-04-unx.europe.corp.microsoft.com) Build location= /64playpen/simonmar/nightly/HEAD-cam-04-unx Build config file = /home/simonmar/nightly/site/msrc/conf-HEAD-cam-04-unx Nightly build started on cam-04-unx at Mon Nov 30 19:00:01 GMT 2009. **

[nightly] 30-Nov-2009 build of HEAD on i386-unknown-linux (cam-02-unx.europe.corp.microsoft.com)

2009-11-30 Thread GHC Build Reports
Build description = HEAD on i386-unknown-linux (cam-02-unx.europe.corp.microsoft.com) Build location= /playpen/simonmar/nightly/HEAD Build config file = /home/simonmar/nightly/site/msrc/conf-HEAD-cam-02-unx Nightly build started on cam-02-unx at Mon Nov 30 18:00:01 GMT 2009. checking out

Re: patch applied (ghc): Fix a bug in alternative layout rule

2009-11-30 Thread Ian Lynagh
On Sun, Nov 29, 2009 at 07:40:57PM +, Duncan Coutts wrote: > > The minimal fix offends me because it uses the 'where' at an odd column > offset. You would never deliberately write it like that, only "fix" it > to be that way. I don't think offence due to the minimal fix is important, because

Re: patch applied (ghc): Fix a bug in alternative layout rule

2009-11-30 Thread Ian Lynagh
On Mon, Nov 30, 2009 at 11:12:36AM +, Duncan Coutts wrote: > On Mon, 2009-11-30 at 09:16 +, Simon Marlow wrote: > > On 29/11/2009 19:40, Duncan Coutts wrote: > > > > Here's the main one it cannot cope with that bothers me: > > > > > > foo x = case bar x of > > >Pattern1 -> ... > > >

patch applied (ghc): Fix the prof_scc.png image in the profiling section (#3694)

2009-11-30 Thread Simon Marlow
Mon Nov 30 05:27:03 PST 2009 Simon Marlow * Fix the prof_scc.png image in the profiling section (#3694) Ignore-this: 9774bad70187274e3dd283d66703004 M ./docs/users_guide/ghc.mk +8 M ./docs/users_guide/profiling.xml -1 +1 View patch online: http://darcs.haskell.org/ghc/_darcs/patches

patch applied (ghc): document 'recache' command in the help output (#3684)

2009-11-30 Thread Simon Marlow
Mon Nov 30 04:20:40 PST 2009 Simon Marlow * document 'recache' command in the help output (#3684) Ignore-this: 95a51f76e66055af27cdfc7b5ad7deb3 M ./utils/ghc-pkg/Main.hs +7 View patch online: http://darcs.haskell.org/ghc/_darcs/patches/20091130122040-12142-171e47bc48774b96a37583c409502d

Re: Validate broken on OS X

2009-11-30 Thread Simon Marlow
On 20/11/2009 18:51, Matthias Kilian wrote: On Fri, Nov 20, 2009 at 02:46:08PM +, Simon Marlow wrote: Do we really have to rely on a specific version of tar? Dependencies like that always come back to bite you. It sounds like the --force-local option is required iff tar is GNU tar. So w

Re: darcs patch: Reorder ALL_RTS_LIBS

2009-11-30 Thread Simon Marlow
On 15/11/2009 19:10, Matthias Kilian wrote: Sun Nov 15 18:54:05 CET 2009 Matthias Kilian * Reorder ALL_RTS_LIBS ALL_RTS_LIBS is (ab)used for linking ghc when BootingFromHc=Yes, which needs libHSrtsmain.a before libHSrts.a. pushed, thanks! Simon _

patch applied (testsuite): add a test for #414

2009-11-30 Thread Simon Marlow
Mon Nov 30 04:04:04 PST 2009 Simon Marlow * add a test for #414 Ignore-this: 11d4a89e43473fabc1ee6f1e6a57ff5d A ./tests/ghc-regress/module/T414.hs A ./tests/ghc-regress/module/T414.stderr A ./tests/ghc-regress/module/T414a.hs A ./tests/ghc-regress/module/T414b.hs M ./test

patch applied (testsuite): add a test for #3677

2009-11-30 Thread Simon Marlow
Mon Nov 30 03:25:08 PST 2009 Simon Marlow * add a test for #3677 Ignore-this: 5ccd81e580a6d245d69d6e8e01eb3243 A ./tests/ghc-regress/codeGen/should_run/3677.hs A ./tests/ghc-regress/codeGen/should_run/3677.stdout M ./tests/ghc-regress/codeGen/should_run/all.T +2 View patch onlin

patch applied (ghc): Check whether the main function is actually exported (#414)

2009-11-30 Thread Simon Marlow
Mon Nov 30 03:23:27 PST 2009 Simon Marlow * Check whether the main function is actually exported (#414) Ignore-this: 1afaa18d8c0c9e1d029531ac9d4865bb M ./compiler/typecheck/TcRnDriver.lhs -4 +24 M ./compiler/typecheck/TcRnMonad.lhs -1 +2 M ./compiler/typecheck/TcRnTypes.lhs -2 +6

patch applied (ghc): Avoid using non-standard GNU tar option --force-local

2009-11-30 Thread Simon Marlow
Mon Nov 30 03:26:05 PST 2009 Simon Marlow * Avoid using non-standard GNU tar option --force-local Ignore-this: ac066722b15eb93e752d4f63391c9e3c M ./bindisttest/Makefile -2 +5 View patch online: http://darcs.haskell.org/ghc/_darcs/patches/20091130112605-12142-f474be19740dc26b391b507bf136

patch applied (ghc): Reorder ALL_RTS_LIBS

2009-11-30 Thread Simon Marlow
Sun Nov 15 09:54:05 PST 2009 Matthias Kilian * Reorder ALL_RTS_LIBS Ignore-this: 795cfd5215ec73eea729aa2b3097817e ALL_RTS_LIBS is (ab)used for linking ghc when BootingFromHc=Yes, which needs libHSrtsmain.a before libHSrts.a. M ./rts/ghc.mk -2 +2 View patch online: http://darcs

Re: patch applied (ghc): Fix a bug in alternative layout rule

2009-11-30 Thread Duncan Coutts
On Mon, 2009-11-30 at 09:16 +, Simon Marlow wrote: > On 29/11/2009 19:40, Duncan Coutts wrote: > > Here's the main one it cannot cope with that bothers me: > > > > foo x = case bar x of > >Pattern1 -> ... > >Pattern1 -> ... > > > >where > > baz = ... > > > > The new layout r

Re: patch applied (ghc): Fix a bug in alternative layout rule

2009-11-30 Thread Simon Marlow
On 29/11/2009 19:40, Duncan Coutts wrote: On Fri, 2009-11-27 at 10:28 +, Simon Marlow wrote: On 26/11/2009 11:50, Ian Lynagh wrote: Wed Nov 25 15:19:01 PST 2009 Ian Lynagh * Fix a bug in alternative layout rule M ./compiler/parser/Lexer.x +1 Great that you've implemented this.

RE: patch applied (ghc): Columns now start at 1, as lines already did

2009-11-30 Thread Simon Peyton-Jones
| Also, someone's just pointed me at this link: | http://www.gnu.org/prep/standards/html_node/Errors.html | | Line numbers should start from 1 at the beginning of the file, and | column numbers should start from 1 at the beginning of the line. | (Both of these conventions are chose

Daily report for stable

2009-11-30 Thread BuildBot Collator
Build results: tnaur PPC OSX stable 2: fail (failed compile) tnaur x86 OS X stable: fail (failed boottestsuite runtestsuite) x86 Linux stable:lost x86 Windows stable: fail (failed boottestsuite runtestsuite nofib.clean.0 nofib.boot.0 nofib.run.0 nofib.clean.0_2 nofib.boot.0_2 nofi

Daily report for head

2009-11-30 Thread BuildBot Collator
Build results: x86-64 Linux head: lost x86 Windows head:fail (failed compile) x86 Windows head fast: pass pass lost pass fail (failed compile) fail (failed compile) x86-64 Linux head unreg: lost Old unexpected test passes: 2410 2 x86-64 Linux head TH_spliceE5