From leo at halfaya.org Tue Mar 6 17:36:14 2018 From: leo at halfaya.org (John Leo) Date: Tue, 6 Mar 2018 08:36:14 -0800 Subject: [Agda-dev] build error on master Message-ID: Hi everyone, I tried doing a fresh rebuild from master today and got the following error: [329 of 333] Compiling Agda.Interaction.InteractionTop ( src/full/Agda/Interaction/InteractionTop.hs, dist/build/Agda/Interaction/InteractionTop.p_o ) src/full/Agda/Interaction/InteractionTop.hs:16:1: error: Could not find module ?Control.Concurrent.Async? Perhaps you haven't installed the profiling libraries for package ?async-2.2.1?? Use -v to see a list of the files searched for. | 16 | import Control.Concurrent.Async | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cabal: Leaving directory '.' cabal: Error: some packages failed to install: Agda-2.6.0-D2d2poRAVBcDwR0QSXf8Fl failed during the building phase. The exception was: ExitFailure 1 I then did the following and it worked, but I wonder what caused this problem and if there's a way to fix it that won't require people to install async with profiling. Johns-MBP-2:~/agda/agda> cabal install -p async --reinstall --force-reinstalls Resolving dependencies... Warning: The following packages are likely to be broken by the reinstalls: tasty-silver-3.1.11 tasty-0.12.0.1 tasty-quickcheck-0.9.2 tasty-hunit-0.9.2 Agda-2.5.4 Continuing even though the plan contains dangerous reinstalls. Configuring async-2.2.1... Building async-2.2.1... Installed async-2.2.1 Updating documentation index /Users/leo/Library/Haskell/share/doc/x86_64-osx-ghc-8.2.2/index.html Johns-MBP-2:~/agda/agda> cabal install Resolving dependencies... In order, the following will be installed: Agda-2.6.0 (reinstall) (changes: async-2.1.1.1 -> 2.2.1) Warning: Note that reinstalls are always dangerous. Continuing anyway... Configuring Agda-2.6.0... Building Agda-2.6.0... Installed Agda-2.6.0 Updating documentation index /Users/leo/Library/Haskell/share/doc/x86_64-osx-ghc-8.2.2/index.html Johns-MBP-2:~/agda/agda> agda --version Agda version 2.6.0-b754131 John -------------- next part -------------- An HTML attachment was scrubbed... URL: From asr at eafit.edu.co Wed Mar 7 01:13:39 2018 From: asr at eafit.edu.co (=?UTF-8?B?QW5kcsOpcyBTaWNhcmQtUmFtw61yZXo=?=) Date: Tue, 6 Mar 2018 19:13:39 -0500 Subject: [Agda-dev] build error on master In-Reply-To: References: Message-ID: Hi, On 6 March 2018 at 11:36, John Leo wrote: > I tried doing a fresh rebuild from master today and got the following error: > > [329 of 333] Compiling Agda.Interaction.InteractionTop ( > src/full/Agda/Interaction/InteractionTop.hs, > dist/build/Agda/Interaction/InteractionTop.p_o ) > > src/full/Agda/Interaction/InteractionTop.hs:16:1: error: > Could not find module ?Control.Concurrent.Async? > Perhaps you haven't installed the profiling libraries for package > ?async-2.2.1?? > Use -v to see a list of the files searched for. > | > 16 | import Control.Concurrent.Async > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > cabal: Leaving directory '.' > cabal: Error: some packages failed to install: > Agda-2.6.0-D2d2poRAVBcDwR0QSXf8Fl failed during the building phase. The > exception was: > ExitFailure 1 > > I then did the following and it worked, but I wonder what caused this > problem and if there's a way to fix it that won't require people to install > async with profiling. I don't know what caused your problem, but it isn't necessary to install any library with profiling when installing Agda. I couldn't reproduce the issue running the following commands: $ make clean $ ghc-pkg unregister async-* --force $ make install-bin Best, -- Andr?s La informaci?n contenida en este correo electr?nico est? dirigida ?nicamente a su destinatario y puede contener informaci?n confidencial, material privilegiado o informaci?n protegida por derecho de autor. Est? prohibida cualquier copia, utilizaci?n, indebida retenci?n, modificaci?n, difusi?n, distribuci?n o reproducci?n total o parcial. Si usted recibe este mensaje por error, por favor contacte al remitente y elim?nelo. La informaci?n aqu? contenida es responsabilidad exclusiva de su remitente por lo tanto la Universidad EAFIT no se hace responsable de lo que el mensaje contenga. The information contained in this email is addressed to its recipient only and may contain confidential information, privileged material or information protected by copyright. Its prohibited any copy, use, improper retention, modification, dissemination, distribution or total or partial reproduction. If you receive this message by error, please contact the sender and delete it. The information contained herein is the sole responsibility of the sender therefore Universidad EAFIT is not responsible for what the message contains. From leo at halfaya.org Wed Mar 7 01:21:53 2018 From: leo at halfaya.org (John Leo) Date: Tue, 6 Mar 2018 16:21:53 -0800 Subject: [Agda-dev] build error on master In-Reply-To: References: Message-ID: Hi Andr?s, Thanks for your note. I'm not sure what the difference is either, but note that I did a fresh pull of the most recent master to a new directory, did not unregister async (so I had the non-profiled version installed already), and did cabal update followed by cabal install. I'm also using GHC 8.2.2 if that makes any difference. Are you sure that your make is not installing the profiled version of async? I'm not sure why I'm getting that dependency error unless something requires it. Note that this is a new problem--I've built Agda from master many times and have never seen this before. John On Tue, Mar 6, 2018 at 4:13 PM, Andr?s Sicard-Ram?rez wrote: > Hi, > > On 6 March 2018 at 11:36, John Leo wrote: > > I tried doing a fresh rebuild from master today and got the following > error: > > > > [329 of 333] Compiling Agda.Interaction.InteractionTop ( > > src/full/Agda/Interaction/InteractionTop.hs, > > dist/build/Agda/Interaction/InteractionTop.p_o ) > > > > src/full/Agda/Interaction/InteractionTop.hs:16:1: error: > > Could not find module ?Control.Concurrent.Async? > > Perhaps you haven't installed the profiling libraries for package > > ?async-2.2.1?? > > Use -v to see a list of the files searched for. > > | > > 16 | import Control.Concurrent.Async > > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > cabal: Leaving directory '.' > > cabal: Error: some packages failed to install: > > Agda-2.6.0-D2d2poRAVBcDwR0QSXf8Fl failed during the building phase. The > > exception was: > > ExitFailure 1 > > > > I then did the following and it worked, but I wonder what caused this > > problem and if there's a way to fix it that won't require people to > install > > async with profiling. > > I don't know what caused your problem, but it isn't necessary to > install any library with profiling when installing Agda. I couldn't > reproduce the issue running the following commands: > > $ make clean > $ ghc-pkg unregister async-* --force > $ make install-bin > > Best, > > -- > Andr?s > La informaci?n contenida en este correo electr?nico est? dirigida > ?nicamente a su destinatario y puede contener informaci?n confidencial, > material privilegiado o informaci?n protegida por derecho de autor. Est? > prohibida cualquier copia, utilizaci?n, indebida retenci?n, modificaci?n, > difusi?n, distribuci?n o reproducci?n total o parcial. Si usted recibe este > mensaje por error, por favor contacte al remitente y elim?nelo. La > informaci?n aqu? contenida es responsabilidad exclusiva de su remitente por > lo tanto la Universidad EAFIT no se hace responsable de lo que el mensaje > contenga. The information contained in this email is addressed to its > recipient only and may contain confidential information, privileged > material or information protected by copyright. Its prohibited any copy, > use, improper retention, modification, dissemination, distribution or total > or partial reproduction. If you receive this message by error, please > contact the sender and delete it. The information contained herein is the > sole responsibility of the sender therefore Universidad EAFIT is not > responsible for what the message contains. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From asr at eafit.edu.co Wed Mar 7 01:44:32 2018 From: asr at eafit.edu.co (=?UTF-8?B?QW5kcsOpcyBTaWNhcmQtUmFtw61yZXo=?=) Date: Tue, 6 Mar 2018 19:44:32 -0500 Subject: [Agda-dev] build error on master In-Reply-To: References: Message-ID: Hi John, On 6 March 2018 at 19:21, John Leo wrote: > and did cabal update followed by cabal install. I'm also using GHC 8.2.2 Also using GHC 8.2.2 I couldn't reproduce the problem running: $ rm -r dist/ $ cabal update $ cabal install > Are you sure that your make is not installing the > profiled version of async? Yes, I'm sure. > Note that this is a new problem--I've > built Agda from master many times and have never seen this before. The change requiring the new version of async was made one month ago https://github.com/agda/agda/commit/d609d39636037ff689009799951c538d6402b99b Best, -- Andr?s La informaci?n contenida en este correo electr?nico est? dirigida ?nicamente a su destinatario y puede contener informaci?n confidencial, material privilegiado o informaci?n protegida por derecho de autor. Est? prohibida cualquier copia, utilizaci?n, indebida retenci?n, modificaci?n, difusi?n, distribuci?n o reproducci?n total o parcial. Si usted recibe este mensaje por error, por favor contacte al remitente y elim?nelo. La informaci?n aqu? contenida es responsabilidad exclusiva de su remitente por lo tanto la Universidad EAFIT no se hace responsable de lo que el mensaje contenga. The information contained in this email is addressed to its recipient only and may contain confidential information, privileged material or information protected by copyright. Its prohibited any copy, use, improper retention, modification, dissemination, distribution or total or partial reproduction. If you receive this message by error, please contact the sender and delete it. The information contained herein is the sole responsibility of the sender therefore Universidad EAFIT is not responsible for what the message contains. From leo at halfaya.org Wed Mar 7 01:53:10 2018 From: leo at halfaya.org (John Leo) Date: Tue, 6 Mar 2018 16:53:10 -0800 Subject: [Agda-dev] build error on master In-Reply-To: References: Message-ID: Hi Andr?s, Yes, that's probably the change; I don't think I've built from master since over a month previous. I still don't understand why cabal is asking for a profiled version of async in my case. But using the profiled version fixed the problem so okay not to spend any more time on it. I wanted to at least mention it in case someone else runs into it. John On Tue, Mar 6, 2018 at 4:44 PM, Andr?s Sicard-Ram?rez wrote: > Hi John, > > On 6 March 2018 at 19:21, John Leo wrote: > > > and did cabal update followed by cabal install. I'm also using GHC 8.2.2 > > Also using GHC 8.2.2 I couldn't reproduce the problem running: > > $ rm -r dist/ > $ cabal update > $ cabal install > > > Are you sure that your make is not installing the > > profiled version of async? > > Yes, I'm sure. > > > Note that this is a new problem--I've > > built Agda from master many times and have never seen this before. > > The change requiring the new version of async was made one month ago > > https://github.com/agda/agda/commit/d609d39636037ff689009799951c53 > 8d6402b99b > > Best, > > > -- > Andr?s > La informaci?n contenida en este correo electr?nico est? dirigida > ?nicamente a su destinatario y puede contener informaci?n confidencial, > material privilegiado o informaci?n protegida por derecho de autor. Est? > prohibida cualquier copia, utilizaci?n, indebida retenci?n, modificaci?n, > difusi?n, distribuci?n o reproducci?n total o parcial. Si usted recibe este > mensaje por error, por favor contacte al remitente y elim?nelo. La > informaci?n aqu? contenida es responsabilidad exclusiva de su remitente por > lo tanto la Universidad EAFIT no se hace responsable de lo que el mensaje > contenga. The information contained in this email is addressed to its > recipient only and may contain confidential information, privileged > material or information protected by copyright. Its prohibited any copy, > use, improper retention, modification, dissemination, distribution or total > or partial reproduction. If you receive this message by error, please > contact the sender and delete it. The information contained herein is the > sole responsibility of the sender therefore Universidad EAFIT is not > responsible for what the message contains. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nad at cse.gu.se Wed Mar 7 10:07:03 2018 From: nad at cse.gu.se (Nils Anders Danielsson) Date: Wed, 7 Mar 2018 10:07:03 +0100 Subject: [Agda-dev] build error on master In-Reply-To: References: Message-ID: <35f6f873-b4f4-1e51-0223-169f2f67f9ca@cse.gu.se> On 2018-03-06 17:36, John Leo wrote: > [329 of 333] Compiling Agda.Interaction.InteractionTop ( > src/full/Agda/Interaction/InteractionTop.hs, > dist/build/Agda/Interaction/InteractionTop.p_o ) Note that you were building Agda with profiling turned on (".p_o"). -- /NAD From abela at chalmers.se Wed Mar 7 11:42:27 2018 From: abela at chalmers.se (Andreas Abel) Date: Wed, 7 Mar 2018 11:42:27 +0100 Subject: [Agda-dev] build error on master In-Reply-To: <35f6f873-b4f4-1e51-0223-169f2f67f9ca@cse.gu.se> References: <35f6f873-b4f4-1e51-0223-169f2f67f9ca@cse.gu.se> Message-ID: <1351e3cb-67e9-a757-cbac-00139a8cc50b@chalmers.se> The defaults (profiling: yes/no) can be set in .cabal/config On 07.03.2018 10:07, Nils Anders Danielsson wrote: > On 2018-03-06 17:36, John Leo wrote: >> [329 of 333] Compiling Agda.Interaction.InteractionTop ( >> src/full/Agda/Interaction/InteractionTop.hs, >> dist/build/Agda/Interaction/InteractionTop.p_o ) > > Note that you were building Agda with profiling turned on (".p_o"). > -- Andreas Abel <>< Du bist der geliebte Mensch. Department of Computer Science and Engineering Chalmers and Gothenburg University, Sweden andreas.abel at gu.se http://www.cse.chalmers.se/~abela/ From leo at halfaya.org Wed Mar 7 12:57:43 2018 From: leo at halfaya.org (John Leo) Date: Wed, 7 Mar 2018 03:57:43 -0800 Subject: [Agda-dev] build error on master In-Reply-To: <1351e3cb-67e9-a757-cbac-00139a8cc50b@chalmers.se> References: <35f6f873-b4f4-1e51-0223-169f2f67f9ca@cse.gu.se> <1351e3cb-67e9-a757-cbac-00139a8cc50b@chalmers.se> Message-ID: On Wed, Mar 7, 2018 at 2:42 AM, Andreas Abel wrote: > The defaults (profiling: yes/no) can be set in .cabal/config > Ah, thanks, that explains it. I figured there must be some global setting I was missing. I must have turned this on for some reason at the last AIM and then forgotten about it. John -------------- next part -------------- An HTML attachment was scrubbed... URL: From leo at halfaya.org Fri Mar 16 19:33:32 2018 From: leo at halfaya.org (John Leo) Date: Fri, 16 Mar 2018 11:33:32 -0700 Subject: [Agda-dev] without K and termination Message-ID: Hi everyone, Recently I created a simple slow set implementation using a list, and ran into some unexpected behavior when I tried to invoke without-K. In the code below (which uses the standard library), the first two "ok" variations are fine, but the original "insert" fails the termination checker. If without-K is turned off everything passes. This seems to be some strange interplay between records, with clauses, and without-K, but I don't know if this is a bug or just some subtlety that I don't understand. Please let me know what you think, and if it's a bug I'm happy to file it. Agda version is 2.6.0-b754131. John {-# OPTIONS --without-K #-} module WithoutKTermination where open import Data.List using (List; []; _?_) open import Relation.Binary.Core using (Decidable) open import Relation.Binary.PropositionalEquality using (_?_) open import Relation.Nullary using (yes; no) record ListSet (A : Set) : Set where constructor listSet field set : List A eq : Decidable {A = A} _?_ open ListSet insertOk : {A : Set} ? A ? ListSet A ? ListSet A insertOk a (listSet [] e) = listSet (a ? []) e insertOk a (listSet (b ? l) e) = listSet (b ? set (insertOk a (listSet l e))) e insertOk2 : {A : Set} ? Decidable {A = A} _?_ ? A ? List A ? List A insertOk2 e a [] = a ? [] insertOk2 e a (b ? l) with e a b insertOk2 e a l@(b ? _) | yes p = l insertOk2 e a (b ? l) | no ?p = b ? (insertOk2 e a l) insert : {A : Set} ? A ? ListSet A ? ListSet A insert a (listSet [] e) = listSet (a ? []) e insert a (listSet (b ? l) e) with e a b insert a (listSet l@(b ? _) e) | yes p = listSet l e insert a (listSet (b ? l) e) | no ?p = listSet (b ? set (insert a (listSet l e))) e -------------- next part -------------- An HTML attachment was scrubbed... URL: From nad at cse.gu.se Tue Mar 20 11:58:02 2018 From: nad at cse.gu.se (Nils Anders Danielsson) Date: Tue, 20 Mar 2018 11:58:02 +0100 Subject: [Agda-dev] without K and termination In-Reply-To: References: Message-ID: <25a3f108-3774-783c-18b5-498a48724308@cse.gu.se> On 2018-03-16 19:33, John Leo wrote: > This seems to be some strange interplay between records, with clauses, > and without-K, but I don't know if this is a bug or just some subtlety > that I don't understand. Please let me know what you think, and if > it's a bug I'm happy to file it. Perhaps your problem is related to the following set of issues: https://github.com/agda/agda/issues/1023 https://github.com/agda/agda/issues/1680 https://github.com/agda/agda/issues/2890 -- /NAD From leo at halfaya.org Tue Mar 20 23:18:41 2018 From: leo at halfaya.org (John Leo) Date: Tue, 20 Mar 2018 15:18:41 -0700 Subject: [Agda-dev] without K and termination In-Reply-To: <25a3f108-3774-783c-18b5-498a48724308@cse.gu.se> References: <25a3f108-3774-783c-18b5-498a48724308@cse.gu.se> Message-ID: Hi Nils, Thanks very much! That does indeed look like it should be the same underlying problem. I've added this example to 2890. John On Tue, Mar 20, 2018 at 3:58 AM, Nils Anders Danielsson wrote: > On 2018-03-16 19:33, John Leo wrote: > >> This seems to be some strange interplay between records, with clauses, >> and without-K, but I don't know if this is a bug or just some subtlety >> that I don't understand. Please let me know what you think, and if >> it's a bug I'm happy to file it. >> > > Perhaps your problem is related to the following set of issues: > > https://github.com/agda/agda/issues/1023 > https://github.com/agda/agda/issues/1680 > https://github.com/agda/agda/issues/2890 > > -- > /NAD > -------------- next part -------------- An HTML attachment was scrubbed... URL: