From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Trying to build scratch/igc: cannot find MPS library Date: Sun, 29 Dec 2024 18:06:16 +0200 Message-ID: <86y0zypj7r.fsf@gnu.org> References: <87bjwujy6k.fsf@pm.me> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36450"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Alexis Purslane Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 29 17:06:40 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 1tRvoN-0009L8-BN for ged-emacs-devel@m.gmane-mx.org; Sun, 29 Dec 2024 17:06:39 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tRvo7-0001Ti-1q; Sun, 29 Dec 2024 11:06:24 -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 1tRvo5-0001St-0y for emacs-devel@gnu.org; Sun, 29 Dec 2024 11:06:21 -0500 Original-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 1tRvo4-0001bs-Nx; Sun, 29 Dec 2024 11:06:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=8gvElUJWIFGlLRdszeYA5UudXg7fReIYoO6cyTxl/JE=; b=Re2ZO6DETdeP QAwXkYnNYlnmN/MyChBCMNN9YQ/F9gQWbJL+ixrO2JHBkXoKA0qdCuZ+5Ah2I8c7YX5jlvq7PnCsr h7k0AiiOG6XbDK3K4ejncKDlaSn+uKge0eFyUVLq6Zqqr6IlUFZYDLEtRO8bIjSjyvk2ptHkhA+Qg nGgi61RMoC1kpoAv+e5S2xQBnng7cI6pRSrFhh9WEiWCXyMr/eO/q2VUcZVzSAMe/umDmqSasieve Lf+ekl2k7flOmaRFCRbomMD99MlDG8EMGkSN/E/bHOlgsAcWkcaBl56rfsoHgPW30Bw5lKFOnNr1I CMnG97ng6v/sWK/Cb/22zg==; In-Reply-To: <87bjwujy6k.fsf@pm.me> (emacs-devel@gnu.org) 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:327352 Archived-At: > Date: Sun, 29 Dec 2024 15:39:54 +0000 > From: Alexis Purslane via "Emacs development discussions." > > I'm trying to build the scratch/igc branch of Emacs in order to see if I > can help bug hunt, and I'm running into a problem. I apologize if > this turns out to be a dumb mistake, I don't often build things from > source. > > I'm following README-IGC's instructions to build the debug version > of MPS from source to the letter, except I've decided to place > mps-artifacts in the mps directory, and the mps directory inside my > emacs source directory, in order to avoid cluttering up my home > directory. So the commands I'm running are: > > $ # starting in the emacs directory, /home/alexispurslane/Development/scratch/emacs/ > $ git clone https://github.com/Ravenbrook/mps.git > $ cd mps/code > $ gcc -O0 -g -DCONFIG_VAR_COOL -c mps.c -o mps-debug.o > $ ar rvs libmps-debug.a mps-debug.o > $ cp libmps-debug.a ../mps-artifacts > $ cd ../.. > $ ./configure CPPFLAGS=-I/home/alexispurslane/Development/scratch/emacs/mps/mps-artifacts LDFLAGS=-I/home/alexispurslane/Development/scratch/emacs/mps/mps-artifacts --with-cairo --with-dbus --with-gif --with-gpm=no --with-harfbuzz --with-jpeg --with-modules --with-native-compilation=aot --with-png --with-rsvg --with-sqlite3 --with-tiff --with-tree-sitter --with-webp --with-x-toolkit=gtk3 --with-xinput2 --with-xpm --with-mps=debug --enable-checking=igc_debug > > When I try to do this, configure reports this error: > > checking for mps.h... yes > checking for mps_arena_create in -lmps... no > configure: error: The MPS library libmps is missing > > This seems odd to me not only because I'm providing it with a > directory that has what it's looking for, but that it appears the > CPPFLAGS(?) are working, since it can find mps.h, but not the > LDFLAGS. Your LDFLAGS are incorrect: the option letter is -L, not -I. > P.S. There's a type in the README-IGC debug build instructions: it > says `mpc.c' instead of `mps.c' in the GCC command. Thanks, fixed.