* Trying to build scratch/igc: cannot find MPS library
@ 2024-12-29 15:39 Alexis Purslane via Emacs development discussions.
2024-12-29 16:06 ` Eli Zaretskii
0 siblings, 1 reply; 2+ messages in thread
From: Alexis Purslane via Emacs development discussions. @ 2024-12-29 15:39 UTC (permalink / raw)
To: emacs-devel
[-- Attachment #1.1: Type: text/plain, Size: 1937 bytes --]
Hi all,
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.
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.
[-- Attachment #1.2: publickey - alexispurslane@pm.me - 0x41E61568.asc --]
[-- Type: application/pgp-keys, Size: 701 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Trying to build scratch/igc: cannot find MPS library
2024-12-29 15:39 Trying to build scratch/igc: cannot find MPS library Alexis Purslane via Emacs development discussions.
@ 2024-12-29 16:06 ` Eli Zaretskii
0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2024-12-29 16:06 UTC (permalink / raw)
To: Alexis Purslane; +Cc: emacs-devel
> Date: Sun, 29 Dec 2024 15:39:54 +0000
> From: Alexis Purslane via "Emacs development discussions." <emacs-devel@gnu.org>
>
> 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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-12-29 16:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-29 15:39 Trying to build scratch/igc: cannot find MPS library Alexis Purslane via Emacs development discussions.
2024-12-29 16:06 ` Eli Zaretskii
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).