Opened 9 months ago

Closed 9 months ago

#69338 closed defect (invalid)

mpfr configure fails on OS X 10.4.11 (i386) due to wrong GMP_NUMB_BITS value

Reported by: Moresteck (Moresteck) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.9.1
Keywords: tiger i386 Cc:
Port: mpfr

Description (last modified by Moresteck (Moresteck))

config.log reports that GMP_NUMB_BITS is 64 somehow, even though in gmp.h it's defined as 32.

configure:18688: ./conftest
GMP_NUMB_BITS     = 64
sizeof(mp_limb_t) = 4
sizeof(mp_limb_t) * CHAR_BIT = 32 != GMP_NUMB_BITS
configure:18688: $? = 1
configure: program exited with status 1
configure:18694: result: no
configure:18696: error: GMP_NUMB_BITS and sizeof(mp_limb_t) are not consistent.
You probably need to change some of the GMP or MPFR compile options.
See 'config.log' for details (search for GMP_NUMB_BITS).

Maybe gmp is built incorrectly, or maybe the blame is on mpfr?

Attached are full config.log, main.log and terminal output from trying to install libarchive.

Attachments (3)

config.log (95.8 KB) - added by Moresteck (Moresteck) 9 months ago.
main.log (17.2 KB) - added by Moresteck (Moresteck) 9 months ago.
terminal.log (1.2 KB) - added by Moresteck (Moresteck) 9 months ago.

Download all attachments as: .zip

Change History (7)

Changed 9 months ago by Moresteck (Moresteck)

Attachment: config.log added

Changed 9 months ago by Moresteck (Moresteck)

Attachment: main.log added

Changed 9 months ago by Moresteck (Moresteck)

Attachment: terminal.log added

comment:1 Changed 9 months ago by Moresteck (Moresteck)

Description: modified (diff)

comment:2 Changed 9 months ago by kencu (Ken)

how is gmp installed? Universal?

if GMP_NUMB_BITS in gmp.h is 32, yet mpfr is finding it as 64, then that is what is to be sorted out.

might you have another gmp.h somewhere then, like in /usr/local?

comment:3 Changed 9 months ago by Moresteck (Moresteck)

Thank you, that was indeed the case. I forgot that I tried to install libarchive manually like a year ago... Apologies.

comment:4 Changed 9 months ago by kencu (Ken)

Resolution: invalid
Status: newclosed

Excellent! I love easy fixes...

Note: See TracTickets for help on using tickets.