From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 471093858C62 for ; Sun, 20 Aug 2023 08:03:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 471093858C62 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gnu.org Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qXdPI-0007QJ-Jq; Sun, 20 Aug 2023 04:03:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=qRjI4MRN1Me/rGxf2DtTeovKW5JQJFkomRyPDy1CWNU=; b=SYLa46jZxkDa/MfTpayA cFM6ZsX0laGleV8XmXK/5cNO6zB+noObemF92kHEVT5dLs8YFTv/xWMreYHPuPn2vOH+RFvvCPGPM vUasR1GPqO6ote56H3nfsVfI6Jxso7finQeCGFwCA6FpzlXyGKmgXJlH5pZA/vGR8xK5Of0ZHzosG Ur6fS0wWGV+3LAcAjZFofWvt9BudO1gOUZ2BanMOHfIlHsbjLvXT5Ff7Z7rW0Or9FaE8jGpnyspxr TBUSxTrQUIS9bozfIH/NX6hU3KU54iv8E4H1VJy0qOBzjhOT3LG8fNMlitEaqC5uy4fZGmMfg2DLZ uFPow9d7el2okQ==; From: "Jose E. Marchesi" To: Tom Tromey Cc: cgen@sourceware.org Subject: Re: [RFC 00/14] Port to Guile 3.0 In-Reply-To: <20230819174900.866436-1-tom@tromey.com> (Tom Tromey's message of "Sat, 19 Aug 2023 11:41:59 -0600") References: <20230819174900.866436-1-tom@tromey.com> Date: Sun, 20 Aug 2023 10:03:17 +0200 Message-ID: <87cyzirvi2.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_NUMSUBJECT,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi Tom. > I tried re-running cgen this week and was surprised to find it didn't > work with any version of Guile that I had available. Apparently it > works with the long-since-obsolete Guile 1.8, and nothing newer. > > This series is my attempt at a port, with random other cleanups mixed > in. Thank you so much for doing this. It is a very welcome change. It sucks to install guile 1.8 locally in order to use CGEN. > Note that Guile 2.x also doesn't really seem to work -- it was very > slow and never completed. I got impatient, so I'm not sure if it > would have eventually, or if there is some bug. > > I didn't try Guile 1.8 but I would assume it no longer works after > this series. I don't think that is a problem. Guile 3.0 was released more than three years ago, it is available in Fedora 35 and later, FreeBSD, OpenBSD, Guix, NixPkg stable, Mageia, SUSE Tumbleweed, Parabola, Slackware current, Ubuntu 20 or later, Debian stable. > The Guile compiler cannot be used due to the loading approach taken in > cgen. This can be fixed but it is a somewhat larger effort, either > involving real modules or the use of the slib require/provide system. > > Another possible change would be removing cos.scm in favor of Guile's > built-in object system. Patch #10 is basically a hack to work around > a problem with the custom object system. It can probably be fixed in > a better way, but I didn't bother. > > I rebuilt all the cgen code in binutils-gdb with this patch after > Alan's recent regeneration, and verified there are no changes. > > Tom