gmp-5.0.1 tests fail on AIX 5.2

Patrick Begou Patrick.Begou at hmg.inpg.fr
Wed Mar 17 11:44:38 CET 2010


Thanks for your suggestions. I've yet read in details these pages, but may be I
have not fully understood all the meaning :-(.

What I've tried to build a 32bits gmp library on AIX 5.2 with several
combination of configure and compiler options without success:

1)
CC=cc CFLAGS="-q32 -g -qarch=pwr2  -qtune=pwr2 -O2 -qstrict -qalign=power
-qinitauto=00"  CXXFLAGS="-q32 -g  -qarch=pwr2 -qtune=pwr2 -O2  -qstrict
-qalign=power -qinitauto=00" CXX=xlC  LDFLAGS=-bmaxdata:2000000000 ./configure
--prefix=/HA/sources/begou/AIX32 --enable-static --disable-shared
--build=power2

The only ABI available is "ABI=standard" (selected by ./configure)

Compilation is successfull, 5 tests fail.
Note that options "-qstrict -qalign=power -qinitauto=00" do not change the
results (same 5 tests fail without these options)


2)
CC=cc CFLAGS="-g"  CXX=xlC CXXFLAGS="-g" F77=xlf  ./configure
--prefix=/HA/sources/begou/AIX32  --disable-shared --enable-static

./configure selects  "ABI=aix64" but fails withe the error message:

"checking how to define a 32-bit word... 0654-210 conftest.o is not valid in the
current object file mode.
        Use the -X option to specify the desired object mode.
configure: error: cannot determine how to define a 32-bit word"


3)
CC=cc CFLAGS="-g"  CXX=xlC CXXFLAGS="-g" F77=xlf  ./configure
--prefix=/HA/sources/begou/AIX32  --disable-shared --enable-static ABI=mode32

as proposed in http://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA but it is
not supported:
"configure: error: ABI=mode32 is not among the following valid choices: aix64 32"


4)
CC=cc CFLAGS="-g"  CXX=xlC CXXFLAGS="-g" F77=xlf  ./configure
--prefix=/HA/sources/begou/AIX32  --disable-shared --enable-static ABI=32

configure is successfull but at compile time I get:
"1252-149 Instruction sub is not implemented in the current assembly mode COM"


5)
CC=cc CFLAGS="-g"  CXX=xlC CXXFLAGS="-g" F77=xlf  ./configure
--prefix=/HA/sources/begou/AIX32  --disable-shared --enable-static --build=power2

I cannot set ABi=32 and --build=power2. Only valid choices is ABI=standard
configure is successfull but at compile time I have:

1252-149 Instruction mul is not implemented in the current assembly mode COM.
1252-149 Instruction mfmq is not implemented in the current assembly mode COM.


Any suggestion is welcome, I'm sure I've missed something.

Patrick

Torbjorn Granlund wrote:
> Patrick Begou <Patrick.Begou at hmg.inpg.fr> writes:
> 
>   I'm trying to install gmp-5.0.1 on an IBM AIX 5.2 system. I need to
>   build the library in 32 bits mode to compile gcc in 32bits mode too.
>   
>   Build is successful with the folowing configuration:
>   CC=cc CFLAGS="-q32 -g -O2 -qarch=pwr2 -qtune=pwr2"  \
>   CXXFLAGS="-q32 -g -O2 -qarch=pwr2 -qtune=pwr2" CXX=xlC \
>   LDFLAGS=-bmaxdata:2000000000 \
>   ./configure --prefix=/HA/sources/begou/AIX32 --enable-static \
>               --disable-shared --build=power2
>   make
>   
> This looks like a very backwards way of trying to achieve a 32-bit GMP
> build.  Please see the Installation chapter in the GMP manual for the
> recommended way of building GMP.
> 
> http://gmplib.org/manual/Installing-GMP.html
> http://gmplib.org/manual/ABI-and-ISA.html
> 


-- 
===============================================================
|  Equipe M.O.S.T.         | http://most.hmg.inpg.fr          |
|  Patrick BEGOU           |       ------------               |
|  LEGI                    | mailto:Patrick.Begou at hmg.inpg.fr |
|  BP 53 X                 | Tel 04 76 82 51 35               |
|  38041 GRENOBLE CEDEX    | Fax 04 76 82 52 71               |
===============================================================



More information about the gmp-bugs mailing list