Compiling the MPIR

96 views
Skip to first unread message

Gaj Satha

unread,
Feb 8, 2022, 12:54:55 AM2/8/22
to mpir-...@googlegroups.com
Hi:

I wanted to compile the latest version of MPIR, How do I do it?

In version 3.0.0, I can do the following and it works:
configure --prefix=/usr/local
make
make install


But in the latest version, at https://github.com/wbhart/mpir, I do not find any configure file. I see a configure.ac file. I used the autoconf command to generate the configure file and I get some weird errors like show below (in blue). I don't know what that means. It did generate the config file. When I ran the config script, it gave the below error:

./configure: line 2804: syntax error near unexpected token `config.m4'
./configure: line 2804: `GMP_INIT(config.m4)'




configure.ac:55: error: possibly undefined macro: GMP_INIT
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:67: error: possibly undefined macro: AM_INIT_AUTOMAKE
configure.ac:69: error: possibly undefined macro: AM_MAINTAINER_MODE
configure.ac:93: error: possibly undefined macro: GMP_DEFINE_RAW
configure.ac:151: error: possibly undefined macro: AM_CONDITIONAL
configure.ac:390: error: possibly undefined macro: GMP_INCLUDE_MPN
configure.ac:1468: error: possibly undefined macro: GMP_PROG_CC_IS_GNU
configure.ac:1474: error: possibly undefined macro: GMP_PROG_CC_IS_XLC
configure.ac:1518: error: possibly undefined macro: GMP_PROG_CC_WORKS
configure.ac:1525: error: possibly undefined macro: GMP_PROG_CC_WORKS_LONGLONG
configure.ac:1537: error: possibly undefined macro: GMP_GCC_ARM_UMODSI
configure.ac:1538: error: possibly undefined macro: GMP_GCC_MIPS_O32
configure.ac:1539: error: possibly undefined macro: GMP_C_TEST_SIZEOF
configure.ac:1611: error: possibly undefined macro: GMP_GCC_PENTIUM4_SSE2
configure.ac:1612: error: possibly undefined macro: GMP_OS_X86_XMM
configure.ac:1617: error: possibly undefined macro: GMP_GCC_NO_CPP_PRECOMP
configure.ac:1725: error: possibly undefined macro: GMP_H_ANSI
configure.ac:1729: error: possibly undefined macro: GMP_PROG_CC_FOR_BUILD
configure.ac:1730: error: possibly undefined macro: GMP_PROG_CPP_FOR_BUILD
configure.ac:1731: error: possibly undefined macro: GMP_PROG_EXEEXT_FOR_BUILD
configure.ac:1732: error: possibly undefined macro: GMP_C_FOR_BUILD_ANSI
configure.ac:1733: error: possibly undefined macro: GMP_CHECK_LIBM_FOR_BUILD
configure.ac:1795: error: possibly undefined macro: GMP_PROG_CXX_WORKS
configure.ac:1831: error: possibly undefined macro: GMP_FAT_SUFFIX
configure.ac:1846: error: possibly undefined macro: GMP_ASM_X86_MMX
configure.ac:1846: error: possibly undefined macro: GMP_STRIP_PATH
configure.ac:1849: error: possibly undefined macro: GMP_ASM_X86_SSE2
configure.ac:1878: error: possibly undefined macro: GMP_PROG_AR
configure.ac:1879: error: possibly undefined macro: GMP_PROG_NM
configure.ac:2050: error: possibly undefined macro: GMP_C_STDARG
configure.ac:2051: error: possibly undefined macro: GMP_C_ATTRIBUTE_CONST
configure.ac:2052: error: possibly undefined macro: GMP_C_ATTRIBUTE_MALLOC
configure.ac:2053: error: possibly undefined macro: GMP_C_ATTRIBUTE_MODE
configure.ac:2054: error: possibly undefined macro: GMP_C_ATTRIBUTE_NORETURN
configure.ac:2056: error: possibly undefined macro: GMP_H_EXTERN_INLINE
configure.ac:2062: error: possibly undefined macro: GMP_FUNC_ALLOCA
configure.ac:2063: error: possibly undefined macro: GMP_OPTION_ALLOCA
configure.ac:2065: error: possibly undefined macro: GMP_H_HAVE_FILE
configure.ac:2080: error: possibly undefined macro: GMP_C_DOUBLE_FORMAT
configure.ac:2124: error: possibly undefined macro: GMP_FUNC_VSNPRINTF
configure.ac:2125: error: possibly undefined macro: GMP_FUNC_SSCANF_WRITABLE_INPUT
configure.ac:2286: error: possibly undefined macro: GMP_DEFINE
configure.ac:2290: error: possibly undefined macro: GMP_REMOVE_FROM_LIST
configure.ac:2765: error: possibly undefined macro: GMP_PROG_M4
configure.ac:2766: error: possibly undefined macro: GMP_M4_M4WRAP_SPURIOUS
configure.ac:2777: error: possibly undefined macro: GMP_ASM_TEXT
configure.ac:2778: error: possibly undefined macro: GMP_ASM_DATA
configure.ac:2779: error: possibly undefined macro: GMP_ASM_LABEL_SUFFIX
configure.ac:2780: error: possibly undefined macro: GMP_ASM_GLOBL
configure.ac:2781: error: possibly undefined macro: GMP_ASM_GLOBL_ATTR
configure.ac:2782: error: possibly undefined macro: GMP_ASM_UNDERSCORE
configure.ac:2783: error: possibly undefined macro: GMP_ASM_RODATA
configure.ac:2784: error: possibly undefined macro: GMP_ASM_TYPE
configure.ac:2785: error: possibly undefined macro: GMP_ASM_SIZE
configure.ac:2786: error: possibly undefined macro: GMP_ASM_LSYM_PREFIX
configure.ac:2787: error: possibly undefined macro: GMP_ASM_W32
configure.ac:2788: error: possibly undefined macro: GMP_ASM_ALIGN_LOG
configure.ac:2791: error: possibly undefined macro: GMP_ASM_IA64_ALIGN_OK
configure.ac:2794: error: possibly undefined macro: GMP_ASM_POWERPC_PIC_ALWAYS
configure.ac:2795: error: possibly undefined macro: GMP_ASM_POWERPC_R_REGISTERS
configure.ac:2828: error: possibly undefined macro: GMP_ASM_SPARC_REGISTER
configure.ac:2833: error: possibly undefined macro: GMP_ASM_ALIGN_FILL_0x90
configure.ac:2837: error: possibly undefined macro: GMP_ASM_COFF_TYPE
configure.ac:2838: error: possibly undefined macro: GMP_ASM_X86_GOT_UNDERSCORE
configure.ac:2839: error: possibly undefined macro: GMP_ASM_X86_SHLDL_CL
configure.ac:2841: error: possibly undefined macro: GMP_ASM_X86_MCOUNT
configure.ac:2938: error: possibly undefined macro: GMP_INCLUDE_GMP_H
configure.ac:3006: error: possibly undefined macro: GMP_FINISH

Dima Pasechnik

unread,
Feb 8, 2022, 3:03:50 AM2/8/22
to mpir-...@googlegroups.com


On Tue, 8 Feb 2022, 05:54 Gaj Satha, <gaj....@gmail.com> wrote:
Hi:

I wanted to compile the latest version of MPIR, How do I do it?

In version 3.0.0, I can do the following and it works:
configure --prefix=/usr/local
make
make install


But in the latest version, at https://github.com/wbhart/mpir, I do not find any configure file. I see a configure.ac file. I used the autoconf command to generate the configure

run

./autogen.sh

to generate configure etc.


--
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/B0D0ABD0-38C3-445E-8B2C-7C4C9C239D5B%40gmail.com.

Gaj Satha

unread,
Feb 8, 2022, 2:01:26 PM2/8/22
to mpir-...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages