From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: Helping with MPS Date: Wed, 21 Aug 2024 05:46:06 +0200 Message-ID: References: <87v7zvfacj.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19929"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Helmut Eller , Jonathon McKitrick To: Jonathon McKitrick via "Emacs development discussions." Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 21 05:47:01 2024 Return-path: Envelope-to: ged-emacs-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 1sgcJI-0004vc-EC for ged-emacs-devel@m.gmane-mx.org; Wed, 21 Aug 2024 05:47:00 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sgcIX-0005Oq-Lu; Tue, 20 Aug 2024 23:46:13 -0400 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 1sgcIW-0005Og-46 for emacs-devel@gnu.org; Tue, 20 Aug 2024 23:46:12 -0400 Original-Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sgcIU-0000WZ-CB for emacs-devel@gnu.org; Tue, 20 Aug 2024 23:46:11 -0400 Original-Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-36d2a601c31so3560186f8f.0 for ; Tue, 20 Aug 2024 20:46:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724211968; x=1724816768; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=WnXsHNQ0fsKcmIa3qNQAUEYBZb+aw3P0Nwg6VKGVPSI=; b=ZnxV8FL0qCIVXGNkQgVyctJ/V2GzFFqgZxjqi22wRpXJIRaLdsZgNCoxDcHgxj2Xls sCetmar3c0c0KYXiuux+GtuRfFqGPD6kO3b2LcC6I7bY+Tp2nhsS7uCuz4lkAEnqj4uP Jj2H2RgZSNY4ve7eHboxBt+QlARYmV3NFXBpl77x5wJWgEFd/XJ2V8qZ+1A2IFYDm+v+ vR7XxdyYRMa7wzX8uAjnGPDKKQ1UzYtwy5dT4NsUVPOCH6PZrPOgHKFz/RAH6w23IozW meDDpvD0FqEGHeJr+RHLLyNfO0mkgi6DAvHJBMeIQZeHKeSvkLIAm64qbHQl34fKEFLv WDMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724211968; x=1724816768; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=WnXsHNQ0fsKcmIa3qNQAUEYBZb+aw3P0Nwg6VKGVPSI=; b=tdlkPiV2M63MNQIhRhmuJEMpqmsz6LZwAYzSBq3b6KBtuSas2gBnhLsAkBNz4Hij76 CttgESsvSlG23tuM84CFO4N2N15wWU84bzD/ygni5N2SWjVqfgg9iM15w4xP28GB86Ja KWNtnX5WPeK5diDKpInJwEmhAWhN1syA/TXd5tG4qkqIoDPfcxdDyW/94lvtlY5rs8DY cxJovoNjRqz/1NZQOSKOFuP5h24P8z77e7j4vuCr+7q+ISipm3xllplF2S3B4dLbXB8F UPKfigWk9mUyhWO/LEYV4QQZ1Om0FLlJJ+iqoedLPicNsZT7BZLzp9nzI7T3T0WeF+qS zF/A== X-Gm-Message-State: AOJu0YzkPnFvkRaX9IQSkeT9fIzgTBlKECT/C6qg0y7SDNZwMaO6El1C nBzeZVbUoGQUVBBdm/6buj0SU5Zri7V6G2fIot5yzhNOYQuvKWrW X-Google-Smtp-Source: AGHT+IFasRVeW8wCsQc/Wzd7DMP4q9SRtLRevIfxOan9FbrjolSveY4eygg+TmR2VJ5Ox4hWZcPHng== X-Received: by 2002:a05:6000:b50:b0:371:879f:72e5 with SMTP id ffacd0b85a97d-372fd6d6208mr513245f8f.20.1724211968146; Tue, 20 Aug 2024 20:46:08 -0700 (PDT) Original-Received: from pro2.fritz.box (p4fe3ae30.dip0.t-ipconnect.de. [79.227.174.48]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42abefa5ae8sm9364125e9.38.2024.08.20.20.46.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Aug 2024 20:46:07 -0700 (PDT) In-Reply-To: (Jonathon McKitrick via's message of "Tue, 20 Aug 2024 21:42:40 +0000") Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=gerd.moellmann@gmail.com; helo=mail-wr1-x435.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:322985 Archived-At: Jonathon McKitrick via "Emacs development discussions." writes: > On Tue, Aug 20, 2024 at 06:05:48PM +0200, Helmut Eller wrote: > : On Tue, Aug 20 2024, Jonathon McKitrick wrote: > : > : > First question: Since the build succeeded and emacs is running > : > smoothly, what's the easiest way to confirm that my executable > : > definitely has MPS running? > : > : (featurep 'mps) should return t. There should also exist some functions > : like igc-info, igc--collect, igc-stats. > > That makes sense. However, after checking out the branch and then running > configure with '--with-mps=yes' followed by make bootstrap, running > src/emacs and checking for the igc stats and feature returns negative > results. Not sure how to proceed at this point. Hi Jonathan. First step is to build and install the MPS library. (The "mps" that Homebrew has in something completely different.) Clone https://github.com/Ravenbrook/mps Apply the patch from here https://github.com/Ravenbrook/mps/issues/281 Then something like ./configure --prefix=/Users/gerd/.local gmake install which I use to install MPS in ~/.local. Then set up your system to find include files and libs in ~/.local. I have in my ~/.zshenv # For own libs, like -lmps. Note that clang uses LIBRARY_PATH, not # LD_LIBRARY_PATH. export C_INCLUDE_PATH="$HOME/.local/include" export OBJC_INCLUDE_PATH="$HOME/.local/include" export CPLUS_INCLUDE_PATH="$HOME/.local/include" export LIBRARY_PATH="$HOME/.local/lib" export LD_LIBRARY_PATH="$HOME/.local/lib" And then Emacs' ./configure --with-mps should print that it found -lmps and is using it.