From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Greg Troxel Newsgroups: gmane.lisp.guile.devel Subject: Re: GNU Guile 3.0.9rc1 available for testing! Date: Sun, 22 Jan 2023 12:41:09 -0500 Message-ID: References: <87v8l15hb2.fsf@inria.fr> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14828"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (berkeley-unix) Cc: To: Ludovic =?utf-8?Q?Court=C3=A8s?= Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Sun Jan 22 18:41:42 2023 Return-path: Envelope-to: guile-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pJeLe-0003hq-6w for guile-devel@m.gmane-mx.org; Sun, 22 Jan 2023 18:41:42 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pJeLD-0005i5-Rj; Sun, 22 Jan 2023 12:41:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pJeLD-0005hh-0M for guile-devel@gnu.org; Sun, 22 Jan 2023 12:41:15 -0500 Original-Received: from s1.lexort.com ([71.19.148.97]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pJeLB-00055F-BD; Sun, 22 Jan 2023 12:41:14 -0500 Original-Received: by s1.lexort.com (Postfix, from userid 10853) id D78CB4106C5; Sun, 22 Jan 2023 12:41:09 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lexort.com; s=mail; t=1674409269; bh=UP3n5AxoUgVitc0vgshewwT5PqnT37ho+MaFzUI4N5Q=; h=From:To:Cc:Subject:References:Date; b=V7OFzExXKtIQ3DU3zwQYQqliGCzs3u8m97nnqI/lA7zyRUlZjlSkKOGobGb7Nhe8A OSuy/hmuadcYwMCMMLCSoxHUmwjlspPTQaOAAkfqHRrO4QIuzT+Gz3X3WwQfRLac4j BzUeSbbT86CgbbhyUulBZIfGFYeC7LyPivjcXC1g= OpenPGP: id=098ED60E Received-SPF: pass client-ip=71.19.148.97; envelope-from=gdt@lexort.com; helo=s1.lexort.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.devel:21607 Archived-At: My second approach is using the rc tarball in pkgsrc. I had to patch out the verify call. pkgsrc already works around PaX issues mostly, via paxctl on things that do jit, after build and before use, and by --- libguile/loader.c.orig 2018-01-08 16:21:04.790894906 +0000 +++ libguile/loader.c @@ -484,7 +484,7 @@ map_file_contents (int fd, size_t len, i char *data; #ifdef HAVE_SYS_MMAN_H - data = mmap (NULL, len, PROT_READ, MAP_PRIVATE, fd, 0); + data = mmap (NULL, len, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); if (data == MAP_FAILED) SCM_SYSERROR; *is_read_only = 1; because (something like, am fuzzy) mprotect (at least ours) can only reduce not add permissions. I still don't understand why this isn't a more widespread issue. With the rc tarball, the build almost works, and now stops at: Making all in guile-readline gmake[2]: Entering directory '/tmp/work/lang/guile30/work/guile-3.0.9rc1/guile-readline' /usr/pkg/bin/gmake all-am gmake[3]: Entering directory '/tmp/work/lang/guile30/work/guile-3.0.9rc1/guile-readline' gmake[3]: *** No rule to make target 'ice-9/readline.scm', needed by 'ice-9/readline.go'. Stop. gmake[3]: Leaving directory '/tmp/work/lang/guile30/work/guile-3.0.9rc1/guile-readline' gmake[2]: *** [Makefile:1984: all] Error 2 gmake[2]: Leaving directory '/tmp/work/lang/guile30/work/guile-3.0.9rc1/guile-readline' gmake[1]: *** [Makefile:2152: all-recursive] Error 1 gmake[1]: Leaving directory '/tmp/work/lang/guile30/work/guile-3.0.9rc1' gmake: *** [Makefile:2038: all] Error 2 *** Error code 2 with or without -j2. I see ice-9/readline.scm in git but not in the rc tarball.