darcs

Issue 836 ./configure --with-docs implies --with-type-witnesses?

Title ./configure --with-docs implies --with-type-witnesses?
Priority bug Status resolved
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, gwright, kowey, thorkilnaur, tommy, zooko
Assigned To gwright
Topics

Created on 2008-05-05.15:58:19 by gwright, last changed 2009-08-27.14:09:55 by admin.

Files
File name Uploaded Type Edit Remove
unnamed dagit, 2008-05-05.18:55:45 text/html
Messages
msg4529 (view) Author: gwright Date: 2008-05-05.15:58:15
[originally posted to darcs-users; reposted to the bugs list.]

Hi,

I've experienced an odd build failure of darcs-2.0.0 on OS X (10.5.2)   
with
ghc 6.8.2.  The hardware is a MacBook Pro (2.6 GHz Intel, 4 GB RAM).

Running

$ ./configure
$ make

gives a successful build.  But

$ ./configure --with-docs
$ make

fails with

[ghc] src/Darcs/Patch/Read.o
[ghc] src/Darcs/Patch/Non.o
[ghc] src/Darcs/Patch/Real.o

src/Darcs/Patch/Real.lhs:100:26:
     GADT pattern match in non-rigid context for `NilRL'
       Tell GHC HQ if you'd like this to unify the context
     In the pattern: NilRL
     In the pattern: Just NilRL
     In a case alternative:
         Just NilRL
           -> ((\ imp_funny_name
                    -> imp_funny_name
                         ("src/Darcs/Patch/Real.lhs", 100, "15:47:58",
"Apr 30 2008"))
                 _bug)
                "found no patches in mergeUnravelled"

src/Darcs/Patch/Real.lhs:116:27:
     GADT pattern match in non-rigid context for `NilFL'
       Tell GHC HQ if you'd like this to unify the context
     In the pattern: NilFL
     In a case alternative: NilFL -> Just p
     In the expression:
         case sort_coalesceFL $ effect p of
           NilFL -> Just p
           _ -> Nothing

src/Darcs/Patch/Real.lhs:135:32:
     GADT pattern match in non-rigid context for `NilFL'
       Tell GHC HQ if you'd like this to unify the context
     In the pattern: NilFL
     In a case alternative: NilFL -> Just (NilFL, mapFL_FL Normal xs)
     In the expression:
         case sort_coalesceFL $ effect goneby of
           NilFL -> Just (NilFL, mapFL_FL Normal xs)
           _z -> Nothing

src/Darcs/Patch/Real.lhs:257:26:
     GADT pattern match in non-rigid context for `NilRL'
       Tell GHC HQ if you'd like this to unify the context
     In the pattern: NilRL
     In a case alternative: NilRL -> []
     In the expression:
         case reverseFL $ xx2patches ix xx of
           NilRL -> []
           Normal q :<: qs -> [Non (reverseRL qs) q]
           _ -> []

src/Darcs/Patch/Real.lhs:371:82:
     deps  not in scope because it has a wobbly type (solution: add a
type annotation)
     In the first argument of `reverseRL', namely `deps'
     In the first argument of `Non', namely `(reverseRL deps)'
     In the expression: Non (reverseRL deps) pp

src/Darcs/Patch/Real.lhs:428:50:
     GADT pattern match in non-rigid context for `NilFL'
       Tell GHC HQ if you'd like this to unify the context
     In the pattern: NilFL
     In a pattern guard for
        a case alternative:
         NilFL <- sort_coalesceFL $ effect c
     In a case alternative:
         ([], NilFL, Non c y)
           | NilFL <- sort_coalesceFL $ effect c
           -> Just (Normal y :> Conflictor a1'nop2 (y :>: NilFL) p2)
make: *** [src/Darcs/Patch/Real.o] Error 1

However, if I disable type witnesses, everything is fine.  So

$ ./configure --with-docs --without-type-witnesses
$ make

succeeds.

I can understand that type witnesses are new enough to possibly cause
problems on some platforms, but I'm baffled by the interaction with "-- 
with-docs".
Shouldn't "--with-docs" just cause the documentation to be built, and
not change any other build settings?

Best Wishes,
Greg
msg4534 (view) Author: kowey Date: 2008-05-05.16:11:08
Weird.  Could we see the config.log outputs from both configures?
msg4537 (view) Author: zooko Date: 2008-05-05.18:52:02
Hm.  The "jules" machine in this buildbot status page is also Mac OS 10.5.2 with
ghc 6.8.2.20080211 (according to the builder description from clicking on the
name "jules").

That one is able to configure and build fine.  So perhaps this issue is already
fixed in darcs trunk?
msg4538 (view) Author: dagit Date: 2008-05-05.18:55:45
On Mon, May 5, 2008 at 11:52 AM, Zooko <bugs@darcs.net> wrote:

>
>
> Hm.  The "jules" machine in this buildbot status page is also Mac OS
> 10.5.2 with
> ghc 6.8.2.20080211 (according to the builder description from clicking on
> the
> name "jules").
>
> That one is able to configure and build fine.  So perhaps this issue is
> already
> fixed in darcs trunk?

The problem is not OS X specific.  The problem is with --with-docs.

Jason
Attachments
msg4542 (view) Author: zooko Date: 2008-05-05.22:24:40
Okay, I added --with-docs to the configure script on the buildmaster:

http://allmydata.org/buildbot-darcs-master.cfg
msg4550 (view) Author: kowey Date: 2008-05-07.13:03:04
Zooko: thanks again for buildbot.  

Checking http://buildbot.darcs.net , I see that you are calling configure
--with_docs (with an underscore, and not a hyphen).  Could we see what happens
with --with-docs?
msg4557 (view) Author: zooko Date: 2008-05-07.15:49:02
On May 7, 2008, at 7:03 AM, Eric Kow wrote:

> Zooko: thanks again for buildbot.

You're welcome!  I'm very pleased with the warm fuzzy feeling that  
darcs build and darcs unit tests are getting automatically checked on  
various platforms with each checkin.

> Checking http://buildbot.darcs.net , I see that you are calling  
> configure
> --with_docs (with an underscore, and not a hyphen).  Could we see  
> what happens
> with --with-docs?

Oops.  Fixed.  Thanks for the report.  I will restart the  
buildmaster, so that it uses the new config, next time there are no  
builds in progress.  (Could be a while.)

Regards,

Zooko
msg4605 (view) Author: kowey Date: 2008-05-09.14:28:01
gwright: the buildbot indicates that ./configure --with-docs works fine (i.e. no
compile errors whilst building)

Would you be willing to try this again with the darcs darcs repository?
Otherwise, I shall assume it's something we've already fixed and close this as
resolved-in-unstable.

Thanks!
msg4621 (view) Author: droundy Date: 2008-05-09.19:57:38
Yes, this has been fixed already.
History
Date User Action Args
2008-05-05 15:58:19gwrightcreate
2008-05-05 16:09:44koweylinkissue837 superseder
2008-05-05 16:11:10koweysetpriority: bug
nosy: + kowey, gwright, - gwright
status: unread -> unknown
messages: + msg4534
2008-05-05 18:52:03zookosetnosy: + zooko
messages: + msg4537
2008-05-05 18:55:47dagitsetfiles: + unnamed
nosy: tommy, beschmi, kowey, zooko, dagit, gwright
messages: + msg4538
2008-05-05 22:24:42zookosetnosy: tommy, beschmi, kowey, zooko, dagit, gwright
messages: + msg4542
2008-05-07 13:03:06koweysetstatus: unknown -> waiting-for
nosy: tommy, beschmi, kowey, zooko, dagit, gwright
messages: + msg4550
assignedto: zooko
2008-05-07 15:49:03zookosetnosy: + gwright
messages: + msg4557
2008-05-09 14:28:02koweysetstatus: waiting-for -> testing
nosy: tommy, beschmi, kowey, zooko, dagit, gwright, gwright
assignedto: zooko -> gwright
messages: + msg4605
title: darcs-2.0.0 build failure with ghc-6.8.2 on OS X 10.5.2 -> ./configure --with-docs implies --with-type-witnesses?
2008-05-09 19:57:40droundysetstatus: testing -> resolved-in-unstable
nosy: + droundy, - gwright
messages: + msg4621
2008-06-16 07:28:47koweylinkissue924 superseder
2008-06-16 07:29:28koweyunlinkissue924 superseder
2008-09-04 21:33:25adminsetstatus: resolved-in-unstable -> resolved
nosy: droundy, tommy, beschmi, kowey, zooko, dagit, gwright
2009-08-06 17:58:36adminsetnosy: + markstos, jast, Serware, dmitry.kurochkin, darcs-devel, mornfall, simon, thorkilnaur, - droundy, gwright
2009-08-06 21:04:07adminsetnosy: - beschmi
2009-08-10 22:20:16adminsetnosy: + gwright, - markstos, darcs-devel, jast, Serware, mornfall
2009-08-11 00:12:41adminsetnosy: - dagit
2009-08-25 18:08:42adminsetnosy: + darcs-devel, - simon
2009-08-27 14:09:55adminsetnosy: tommy, kowey, darcs-devel, zooko, thorkilnaur, dmitry.kurochkin, gwright