To build MP, you first have to configure it for your CPU and operating system. You need a C compiler, preferably GCC, but any reasonable compiler should work. And you need a standard Unix `make' program, plus some other standard Unix utility programs.
(If you're on an MS-DOS machine, your can build MP using `make.bat'. It requires that djgpp is installed. It does not require configuration, nor is `make' needed; `make.bat' both configures and builds the library.)
Here are the steps needed to install the library on Unix systems:
PATH, it will be used by default. To override this, pass `-with-gcc=no' to `configure'.
If you wish to build and install the BSD MP compatible functions, use `make libmp.a' and `make install-bsdmp'.
There are some other useful make targets:
GCC 2.7.2 (as well as 2.6.3) for the RS/6000 and PowerPC can not be used to compile MP, due to a bug in GCC. If you want to use GCC for these machines, you need to apply the patch below to GCC, or use a later version of the compiler.
If you are on a Sequent Symmetry, use the GNU assembler instead of the system's assembler, since the latter has serious bugs.
The system compiler on NeXT is a massacred and old gcc, even if the compiler calls itself `cc'. This compiler cannot be used to build MP. You need to get a real gcc, and install that before you compile MP. (NeXT might have fixed this in newer releases of their system.)
The system C compiler under SunOS 4 has a bug that makes it miscompile mpq/get_d.c. This will make `make check' fail.
Please report other problems to `email@example.com'. See section Reporting Bugs.
Patch to apply to GCC 2.6.3 and 2.7.2:
*** config/rs6000/rs6000.md Sun Feb 11 08:22:11 1996 --- config/rs6000/rs6000.md.new Sun Feb 18 03:33:37 1996 *************** *** 920,926 **** (set (match_operand:SI 0 "gpc_reg_operand" "=r") (not:SI (match_dup 1)))] "" ! "nor. %0,%2,%1" [(set_attr "type" "compare")]) (define_insn "" --- 920,926 ---- (set (match_operand:SI 0 "gpc_reg_operand" "=r") (not:SI (match_dup 1)))] "" ! "nor. %0,%1,%1" [(set_attr "type" "compare")]) (define_insn ""
Go to the first, previous, next, last section, table of contents.