GMP Configure Error

Ryan Peter ryan_peter at
Wed Nov 15 22:24:00 CET 2006



I received the following messages when trying to configure GMP 4.2.1 on
AIX 5.2.


Please note that this is a 64-bit environment.


1) warning #1


checking sys/sysinfo.h presence... yes

configure: WARNING: sys/sysinfo.h: present but cannot be compiled

configure: WARNING: sys/sysinfo.h:     check for missing prerequisite

configure: WARNING: sys/sysinfo.h: see the Autoconf documentation

configure: WARNING: sys/sysinfo.h:     section "Present But Cannot Be

configure: WARNING: sys/sysinfo.h: proceeding with the preprocessor's

configure: WARNING: sys/sysinfo.h: in the future, the compiler will take

configure: WARNING:     ## -------------------------------- ##

configure: WARNING:     ## Report this to gmp-bugs at ##

configure: WARNING:     ## -------------------------------- ##

checking for sys/sysinfo.h... yes


2) warning #2


checking if globals are prefixed by underscore... /usr/local/bin/nm:
Only -X 32_64 is supported


configure: WARNING:

configure: WARNING: | Cannot determine global symbol prefix.

configure: WARNING: | /usr/local/bin/nm -B -X64 output doesn't contain a
global data symbol.

configure: WARNING: | Will proceed with no underscore.

configure: WARNING: | If this is wrong then you'll get link errors

configure: WARNING: | to ___gmpn_add_n (note three underscores).

configure: WARNING: | In this case do a fresh build with an override,

configure: WARNING: |     ./configure gmp_cv_asm_underscore=yes

configure: WARNING:

checking how to switch to read-only data section...           .csect


3) error #1


checking how to define a 32-bit word... /usr/local/bin/nm: Only -X 32_64
is supported

/usr/local/bin/nm: Only -X 32_64 is supported

configure: error: cannot determine how to define a 32-bit word




I downloaded GMP 4.2.1 from the USA East FTP server at:


I unzipped the dowloaded GMP file, untarred it, and the first time I ran
configure I received these same messages plus additional warnings about
the gcc linker.


So, I replaced the file /usr/local/powerpc-ibm-aix5.2.0.0/bin/ld with a
symlink to the delivered AIX linker /usr/ccs/bin/ld per the warning
message's instructions. That got rid of the gcc linker warnings.


I re-ran configure and still have the above three messages.


I have attached various system info as requested in the manual, the
config.log file as requested, and I trapped the output of the configure
run into the runlog2.txt file.


Any suggestions you could offer on how to get by these messages would be
greatly appreciated.


Thank you.


- Pete Ryan



Peter D. Ryan 
ryan_peter at 

Booz | Allen | Hamilton
8251 Greensboro Drive, #J1102 
McLean, VA 22102-3838 



-------------- next part --------------
An HTML attachment was scrubbed...
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: systemInfo.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: application/octet-stream
Size: 130682 bytes
Desc: config.log
Url : 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: runlog2.txt

More information about the gmp-bugs mailing list