WorkAround: GMP Configure Error

Ryan, Peter ryan_peter at bah.com
Fri Nov 17 19:41:02 CET 2006


I recently submitted the GMP bugs shown in the inline e-mail below.

 

I managed to get around them by running configure using the generic C
compiler:

 

root at p690b4 in /usr/gnu/gmp/gmp-4.2.1 # ./config.guess

powerpc64-ibm-aix5.2.0.0

root at p690b4 in /usr/gnu/gmp/gmp-4.2.1 # ./configure
--host=non-unknown-aix5.2.0.0

 

"make check" passed all its tests

 

I then installed MPFR and it installed OK. It passed all of its "make
check" tests as well.

 

The attached file shows the output trace from the configure run for GMP.

 

Regards,

 

--- 

Peter D. Ryan 
703-902-4541 
ryan_peter at bah.com 

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

 

________________________________

From: Ryan Peter 
Sent: Wednesday, November 15, 2006 4:24 PM
To: 'gmp-bugs at swox.com'
Subject: GMP Configure Error

 

Hi,

 

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
headers?

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

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

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

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

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

configure: WARNING:     ## Report this to gmp-bugs at swox.com ##

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

unknown

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
referring

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
_conftest.ro_c[RO],3

 

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:
http://swox.com/gmp/#DOWNLOAD

 

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 
703-902-4541 
ryan_peter at bah.com 

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

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gmplib.org/list-archives/gmp-bugs/attachments/20061117/b4bba1a7/attachment-0001.html 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: runlog3.txt
Url: http://gmplib.org/list-archives/gmp-bugs/attachments/20061117/b4bba1a7/attachment-0001.txt 


More information about the gmp-bugs mailing list