GNU bug report logs - #32425
build fails due to undefined reference to mpz_roinit_n

Previous Next

Package: emacs;

Reported by: Glenn Morris <rgm <at> gnu.org>

Date: Sat, 11 Aug 2018 22:46:01 UTC

Severity: normal

Found in version 27.0.50

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 32425 in the body.
You can then email your comments to 32425 AT debbugs.gnu.org in the normal way.

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

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


Report forwarded to tom <at> tromey.com, bug-gnu-emacs <at> gnu.org:
bug#32425; Package emacs. (Sat, 11 Aug 2018 22:46:02 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: submit <at> debbugs.gnu.org
Subject: build fails due to undefined reference to mpz_roinit_n
Date: Sat, 11 Aug 2018 18:45:25 -0400
Package: emacs
Version: 27.0.50

Since 78ec68e, builds on hydra.nixos.org fail with:

alloc.o: In function `make_pure_bignum':
  alloc.c:5570: undefined reference to `mpz_roinit_n'

A quick search suggests this function was added in gmp 6.
hydra is using gmp 5.1.3.
There is no gmp version test in configure.ac, and no option to force use
of mini-gmp.
This suggests builds on eg RHEL6 would fail in the same way.

Ref eg https://hydra.nixos.org/build/79486113




bug closed, send any further explanations to 32425 <at> debbugs.gnu.org and Glenn Morris <rgm <at> gnu.org> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 11 Aug 2018 23:58:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32425; Package emacs. (Sun, 12 Aug 2018 00:53:02 GMT) Full text and rfc822 format available.

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

From: Tom Tromey <tom <at> tromey.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: tom <at> tromey.com, 32425 <at> debbugs.gnu.org
Subject: Re: bug#32425: build fails due to undefined reference to mpz_roinit_n
Date: Sat, 11 Aug 2018 18:51:51 -0600
>>>>> "GM" == Glenn Morris <rgm <at> gnu.org> writes:

GM> Since 78ec68e, builds on hydra.nixos.org fail with:
GM> alloc.o: In function `make_pure_bignum':
GM>   alloc.c:5570: undefined reference to `mpz_roinit_n'

This was fixed here:

commit da7fc851dc21342bd8f33f92771fe78087b73e35
Author: Paul Eggert <eggert <at> cs.ucla.edu>
Date:   Sat Aug 11 16:27:52 2018 -0700

  Reject old libgmp that lack mpz_roinit_n
  
  * configure.ac (HAVE_GMP): Port to RHEL 6.9, which has
  libgmp 3.5, which predates mpz_roinit_n.

Tom




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 09 Sep 2018 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 286 days ago.

Previous Next


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