GNU bug report logs - #76556
30.1; configure doesn't find libgmp on macOS

Previous Next

Package: emacs;

Reported by: Philipp <p.stephani2 <at> gmail.com>

Date: Tue, 25 Feb 2025 15:16:02 UTC

Severity: normal

Tags: confirmed

Found in versions 31.0.50, 30.1

To reply to this bug, email your comments to 76556 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#76556; Package emacs. (Tue, 25 Feb 2025 15:16:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Philipp <p.stephani2 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 25 Feb 2025 15:16:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Philipp <p.stephani2 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.1; configure doesn't find libgmp on macOS
Date: Tue, 25 Feb 2025 16:15:20 +0100
When running configure on macOS with libgmp installed via Homebrew:

[...]
checking for gmp.h... no
checking for gmp/gmp.h... no
[...]
  Does Emacs use the GMP library?                         no
[...]

I've installed libgmp via Homebrew.  I think to fix this, the configure
script should either use pkg-config:

$ pkg-config --cflags --libs gmp
-I/opt/homebrew/Cellar/gmp/6.3.0/include -L/opt/homebrew/Cellar/gmp/6.3.0/lib -lgmp

or add /opt/homebrew/include to the include path, and /opt/homebrew/lib
to the library path.  Using pkg-config seems like the cleaner option.


In GNU Emacs 30.1 (build 2, aarch64-apple-darwin24.3.0, NS
 appkit-2575.40 Version 15.3.1 (Build 24D70)) of 2025-02-25
Repository revision: 8ac894e2246f25d2a2a97d866b10e6e0b0fede5a
Repository branch: HEAD
Windowing system distributor 'Apple', version 10.3.2575
System Description:  macOS 15.3.1

Configured using:
 'configure --with-modules --with-xml2 --without-pop --with-mailutils
 'CFLAGS=-g -O3' LDFLAGS=-O3'

Configured features:
ACL GNUTLS LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG SQLITE3
THREADS TOOLKIT_SCROLL_BARS TREE_SITTER WEBP ZLIB

Important settings:
  value of $LANG: de_DE.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  minibuffer-regexp-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug phst skeleton pcase ffap thingatpt url
url-proxy url-privacy url-expand url-methods url-history url-cookie
generate-lisp-file url-domsuf url-util url-parse auth-source cl-seq
eieio eieio-core cl-macs icons json map byte-opt gv bytecomp
byte-compile url-vars rx message sendmail mailcap yank-media dired
dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068
epg-config gnus-util time-date mm-decode mm-bodies mm-encode mail-parse
rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev
mail-utils gmm-utils mailheader gnutls puny elp dbus xml compile
text-property-search comint subr-x ansi-osc ansi-color ring cl-loaddefs
cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify
ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win
ucs-normalize mule-util term/common-win tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu
timer select scroll-bar mouse jit-lock font-lock syntax font-core
term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads kqueue cocoa ns lcms2
multi-tty make-network-process emacs)

Memory information:
((conses 16 72646 16697) (symbols 48 8487 0) (strings 32 21420 2264)
 (string-bytes 1 567060) (vectors 16 15172)
 (vector-slots 8 153568 7669) (floats 8 31 5) (intervals 56 241 0)
 (buffers 992 10))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#76556; Package emacs. (Tue, 25 Feb 2025 17:12:01 GMT) Full text and rfc822 format available.

Message #8 received at 76556 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Philipp <p.stephani2 <at> gmail.com>
Cc: 76556 <at> debbugs.gnu.org
Subject: Re: bug#76556: 30.1; configure doesn't find libgmp on macOS
Date: Tue, 25 Feb 2025 19:11:49 +0200
> From: Philipp <p.stephani2 <at> gmail.com>
> Date: Tue, 25 Feb 2025 16:15:20 +0100
> 
> 
> When running configure on macOS with libgmp installed via Homebrew:
> 
> [...]
> checking for gmp.h... no
> checking for gmp/gmp.h... no
> [...]
>   Does Emacs use the GMP library?                         no
> [...]
> 
> I've installed libgmp via Homebrew.  I think to fix this, the configure
> script should either use pkg-config:
> 
> $ pkg-config --cflags --libs gmp
> -I/opt/homebrew/Cellar/gmp/6.3.0/include -L/opt/homebrew/Cellar/gmp/6.3.0/lib -lgmp
> 
> or add /opt/homebrew/include to the include path, and /opt/homebrew/lib
> to the library path.  Using pkg-config seems like the cleaner option.

We could use pkg-config for that, but we must have the falback to the
current code, because some versions of GMP don't install pkg-config
files.  E.g., on my development system I have no gmp.pc in the
pkg-config directory.

Patches welcome.




bug Marked as found in versions 31.0.50. Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 25 Feb 2025 23:31:02 GMT) Full text and rfc822 format available.

Added tag(s) confirmed. Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 25 Feb 2025 23:31:02 GMT) Full text and rfc822 format available.

This bug report was last modified 205 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.