Building MPIR on Raspberry Pi (64-bit)

30 views
Skip to first unread message

Gregory Warnes

unread,
Mar 17, 2022, 4:34:54 PMMar 17
to mpir-devel
Hi,

TLDR:

I want to use a GnuRadio package (gr-ofdm) that depends on mpir on Raspberry Pi OS (64-bit).  './autogen.sh` using git://github.com/wbhart/mpir.git fails, and I see a number of forks, as well as the package files on the `download` page. What is the best version to use?  

Details:

As recommended on the project web page (http://mpir.org/downloads.html), I tried building from git://github.com/wbhart/mpir.git.  Unfortunately, the build instructions in INSTALL are outdated, since there is no `configure` script in the repo.

I eventually located this group, and learned that I should use `autogen.sh`, however this results in numerous errors (see below).

Suggestions?

-Greg

---

src/mpir $ ./autogen.sh
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal
configure.ac:2838: warning: AC_LIBTOOL_PROG_COMPILER_PIC is m4_require'd but not m4_defun'd
acinclude.m4:2193: GMP_ASM_X86_GOT_UNDERSCORE is expanded from...
configure.ac:2838: the top level
configure.ac:2841: warning: AC_ENABLE_SHARED is m4_require'd but not m4_defun'd
acinclude.m4:2507: GMP_ASM_X86_MCOUNT is expanded from...
configure.ac:2841: the top level
configure.ac:2841: warning: AC_PROG_LIBTOOL is m4_require'd but not m4_defun'd
acinclude.m4:2507: GMP_ASM_X86_MCOUNT is expanded from...
configure.ac:2841: the top level
autoreconf: configure.ac: tracing
configure.ac:2838: warning: AC_LIBTOOL_PROG_COMPILER_PIC is m4_require'd but not m4_defun'd
acinclude.m4:2193: GMP_ASM_X86_GOT_UNDERSCORE is expanded from...
configure.ac:2838: the top level
configure.ac:2841: warning: AC_ENABLE_SHARED is m4_require'd but not m4_defun'd
acinclude.m4:2507: GMP_ASM_X86_MCOUNT is expanded from...
configure.ac:2841: the top level
configure.ac:2841: warning: AC_PROG_LIBTOOL is m4_require'd but not m4_defun'd
acinclude.m4:2507: GMP_ASM_X86_MCOUNT is expanded from...
configure.ac:2841: the top level
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf
configure.ac:2838: warning: AC_LIBTOOL_PROG_COMPILER_PIC is m4_require'd but not m4_defun'd
acinclude.m4:2193: GMP_ASM_X86_GOT_UNDERSCORE is expanded from...
configure.ac:2838: the top level
configure.ac:2841: warning: AC_ENABLE_SHARED is m4_require'd but not m4_defun'd
acinclude.m4:2507: GMP_ASM_X86_MCOUNT is expanded from...
configure.ac:2841: the top level
configure.ac:2841: warning: AC_PROG_LIBTOOL is m4_require'd but not m4_defun'd
acinclude.m4:2507: GMP_ASM_X86_MCOUNT is expanded from...
configure.ac:2841: the top level
configure:11014: error: possibly undefined macro: AC_PROG_NM
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure:14468: error: possibly undefined macro: AC_LIBTOOL_PROG_COMPILER_PIC
configure:14563: error: possibly undefined macro: AC_ENABLE_SHARED
configure:14564: error: possibly undefined macro: AC_PROG_LIBTOOL
autoreconf: /usr/bin/autoconf failed with exit status: 1

Bill Hart

unread,
Mar 17, 2022, 4:40:05 PMMar 17
to mpir-devel
I don't have any insight into the Raspberry Pi build environment.
However there are a lot of errors related to M4 there. Can you ensure
this is installed.

On the other hand it looks like the autoconf version you have just
isn't compatible somehow. Unfortunately I have no way to debug this.
It certainly works just about everywhere else.

Bill.
> --
> You received this message because you are subscribed to the Google Groups "mpir-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to mpir-devel+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/mpir-devel/de347f03-715d-42bc-aa15-7e7b3aea2d01n%40googlegroups.com.

Gregory Warnes

unread,
Mar 17, 2022, 6:14:57 PMMar 17
to mpir-devel
M4 is present:

$ m4 --version
m4 (GNU M4) 1.4.18
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Rene' Seindal.

Dima Pasechnik

unread,
Mar 17, 2022, 7:44:50 PMMar 17
to mpir-...@googlegroups.com
On Thu, Mar 17, 2022 at 8:40 PM 'Bill Hart' via mpir-devel
<mpir-...@googlegroups.com> wrote:
>
> I don't have any insight into the Raspberry Pi build environment.
> However there are a lot of errors related to M4 there. Can you ensure
> this is installed.
>
> On the other hand it looks like the autoconf version you have just
> isn't compatible somehow. Unfortunately I have no way to debug this.
> It certainly works just about everywhere else.

The errors "possibly undefined macro: AC_PROG_NM" arise if libtool is
not installed.
Try
sudo apt-get install libtool
./autogen.sh

the warnings can be ignored (although they are not hard to fix), they
are from using autoconf 2.71.

HTH
Dima
> To view this discussion on the web visit https://groups.google.com/d/msgid/mpir-devel/CAB0xFnspn%3Dt_1F88ANdebT3H%3DcP72drhCKgOemb%3D5sp92s7BtQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages