From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs Subject: bug#20272: Support reproducible builds Date: Mon, 06 Mar 2017 21:13:00 +0100 Message-ID: <87varm9nar.fsf@pobox.com> References: <87bmxxnjd7.fsf@gnu.org> <87shqtwxcb.fsf@gnu.org> <87twa6iikd.fsf@gnu.org> <87vaumgk80.fsf@gnu.org> <87mvfygjs1.fsf@gnu.org> <87eg12fbog.fsf@gnu.org> <871sx0vnyn.fsf@gnu.org> <87efyio399.fsf@pobox.com> <8737er5tzd.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1488831260 16744 195.159.176.226 (6 Mar 2017 20:14:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 6 Mar 2017 20:14:20 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: 20272@debbugs.gnu.org, Jan Nieuwenhuizen To: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Mon Mar 06 21:14:16 2017 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ckz1L-00038L-9I for guile-bugs@m.gmane.org; Mon, 06 Mar 2017 21:14:15 +0100 Original-Received: from localhost ([::1]:45909 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ckz1K-0003sh-Nh for guile-bugs@m.gmane.org; Mon, 06 Mar 2017 15:14:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40430) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ckz1C-0003rO-8c for bug-guile@gnu.org; Mon, 06 Mar 2017 15:14:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ckz18-0001Bg-8E for bug-guile@gnu.org; Mon, 06 Mar 2017 15:14:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45038) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ckz18-0001BV-4q for bug-guile@gnu.org; Mon, 06 Mar 2017 15:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ckz18-0001zL-0R for bug-guile@gnu.org; Mon, 06 Mar 2017 15:14:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andy Wingo Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Mon, 06 Mar 2017 20:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20272 X-GNU-PR-Package: guile X-GNU-PR-Keywords: patch Original-Received: via spool by 20272-submit@debbugs.gnu.org id=B20272.14888311927558 (code B ref 20272); Mon, 06 Mar 2017 20:14:01 +0000 Original-Received: (at 20272) by debbugs.gnu.org; 6 Mar 2017 20:13:12 +0000 Original-Received: from localhost ([127.0.0.1]:43237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ckz0J-0001xn-Mq for submit@debbugs.gnu.org; Mon, 06 Mar 2017 15:13:12 -0500 Original-Received: from pb-sasl1.pobox.com ([64.147.108.66]:62937 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ckz0H-0001xf-RM for 20272@debbugs.gnu.org; Mon, 06 Mar 2017 15:13:10 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl1.pobox.com (Postfix) with ESMTP id 38C2E7300F; Mon, 6 Mar 2017 15:13:09 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=OVrb6oS4tESm IsXdarFsaXsd5PU=; b=fELI/1n18JayuOFzNSuT4VUXD0/gZjUmp0+TwLTYrl+z LilJKu0chCcUbZ3svxYKSIJENEM0nz99FSGj/hhS3pEMsB0KRicwYZBVr4IHKmrG Suxry7iDHF65rNGVPgX1DWdOoQ1I8S3vHSqWjZZda/9wyALhrGztS6SvPuEySXg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=Lqda6I RRW5x6YfFOnBAnhSp5IgJeQQU9O5Qw6/SCB5jMEA4V3xMIGWB78LFfLmNuCMKq+B PeoHCBAIAWEb6H46uJqyNBDxLQwsAGBk2mhciECIEOO+aJGxxV62V/yColc0Jfxw yrmZDX/5FfYuyOHH0sy2Yc3JeKzKfGSoqMZYI= Original-Received: from pb-sasl1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl1.pobox.com (Postfix) with ESMTP id 315067300E; Mon, 6 Mar 2017 15:13:09 -0500 (EST) Original-Received: from clucks (unknown [88.160.190.192]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl1.pobox.com (Postfix) with ESMTPSA id 5D4DD7300D; Mon, 6 Mar 2017 15:13:07 -0500 (EST) In-Reply-To: <8737er5tzd.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Sun, 05 Mar 2017 21:49:58 +0100") X-Pobox-Relay-ID: 50BFA772-02A9-11E7-84DF-B667064AB293-02397024!pb-sasl1.pobox.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:8657 Archived-At: Hi, On Sun 05 Mar 2017 21:49, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Andy Wingo skribis: > >> On Thu 22 Dec 2016 00:53, ludo@gnu.org (Ludovic Court=C3=A8s) writes: >> >>> +(define (module-generate-unique-id! m) >>> + (let ((i (module-next-unique-id m))) >>> + (set-module-next-unique-id! m (+ i 1)) >>> + i)) >> >> This introduces a race condition when expanding from multiple threads at >> once. Any plan here? > > Good point! We could grab a per-module mutex for that, though that=E2=80= =99s > again a fat mutex. > > Thoughts? I would use atomic boxes if possible, but they are in another module :/ Even mutexes aren't directly available in boot-9 any more... Alternately we can make a new primitive for module-generate-unique-id! which can obviously use C. That's probably the easiest option, sadly! Andy