From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Cuirass and duplicate derivations Date: Mon, 02 Jan 2017 22:40:59 +0100 Message-ID: <87eg0l9m38.fsf_-_@gnu.org> References: <87r35o8x0h.fsf@gnu.org> <87shq35tue.fsf@gnu.org> <87y3zv4c4i.fsf@gnu.org> <87fuljj5ku.fsf@gnu.org> <87tw9mzq4v.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47885) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOALw-0001Oa-RT for guix-devel@gnu.org; Mon, 02 Jan 2017 16:41:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOALv-0000no-N8 for guix-devel@gnu.org; Mon, 02 Jan 2017 16:41:12 -0500 In-Reply-To: <87tw9mzq4v.fsf@gnu.org> (Mathieu Lirzin's message of "Thu, 29 Dec 2016 16:55:28 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Mathieu Lirzin Cc: guix-devel@gnu.org Hello! Cuirass is almost up and running on the new machine! :-) The last problem I experienced is this: --8<---------------cut here---------------start------------->8--- evaluate 'gfortran-4.9.4.x86_64-linux': 0.136 seconds evaluate 'gfortran-4.9.4.x86_64-linux': 0.000 seconds Backtrace: In ice-9/boot-9.scm: 160: 12 [catch #t # ...] In unknown file: ?: 11 [apply-smob/1 #] In ice-9/boot-9.scm: 66: 10 [call-with-prompt prompt0 ...] In ice-9/eval.scm: 432: 9 [eval # #] In ice-9/r4rs.scm: 90: 8 [dynamic-wind # ...] In ice-9/eval.scm: 481: 7 [lp (# #) ("/var/run/cuirass/cuirass.db" #f)] 481: 6 [lp (#) (#f)] 432: 5 [eval # #] 387: 4 [eval # #] In ice-9/boot-9.scm: 705: 3 [map # #] In ice-9/eval.scm: 432: 2 [eval # #] In src/cuirass/database.scm: 54: 1 [sqlite-exec # ...] In ice-9/eval.scm: 432: 0 [eval # #] ice-9/eval.scm:432:17: In procedure eval: ice-9/eval.scm:432:17: Throw to key `sqlite-error' with args `(#f 1555 "UNI= QUE constraint failed: Derivations.derivation, Derivations.evaluation")'. --8<---------------cut here---------------end--------------->8--- =E2=80=A6 which commit 7355634db3ccf0d86f8e34c4aea37392c1a0ab0a fixes. Then there was another one: --8<---------------cut here---------------start------------->8--- evaluate 'wine-1.9.24.i686-linux': 0.205 seconds Backtrace: In ice-9/boot-9.scm: 160: 12 [catch #t # ...] In unknown file: ?: 11 [apply-smob/1 #] In ice-9/boot-9.scm: 66: 10 [call-with-prompt prompt0 ...] In ice-9/eval.scm: 432: 9 [eval # #] In ice-9/r4rs.scm: 90: 8 [dynamic-wind # ...] In ice-9/eval.scm: 481: 7 [lp (# #) ("/var/run/cuirass/cuirass.db" #f)] 481: 6 [lp (#) (#f)] 432: 5 [eval # #] 387: 4 [eval # #] In ice-9/boot-9.scm: 703: 3 [map # #] In ice-9/eval.scm: 432: 2 [eval # #] In src/cuirass/database.scm: 54: 1 [sqlite-exec # ...] In ice-9/eval.scm: 432: 0 [eval # #] ice-9/eval.scm:432:17: In procedure eval: ice-9/eval.scm:432:17: Throw to key `sqlite-error' with args `(#f 1555 "UNI= QUE constraint failed: Derivations.derivation, Derivations.evaluation")'. --8<---------------cut here---------------end--------------->8--- This is because Wine is always built for i686-linux, even on x86_64, hence the same .drv. So I hacked my way to ignore Wine. But then =E2=80=98cargo-bootstrap=E2=80=99 showed the same problem. Hence this message. :-) What change would you suggest to solve this problem? It would be best if Cuirass allowed several jobs building the same derivations (the key could be an autoincrement counter instead of the (drv,eval) pair maybe?) TIA! Ludo=E2=80=99.