Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 891697 - dev-libs/mpfr-4.1.0_p13-r1 does not compile
Summary: dev-libs/mpfr-4.1.0_p13-r1 does not compile
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-22 12:45 UTC by Markus Giese
Modified: 2023-01-23 15:10 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
config.log file (config.log,66.28 KB, text/x-log)
2023-01-22 12:47 UTC, Markus Giese
Details
emerge --info (emerge.log,6.59 KB, text/x-log)
2023-01-22 12:49 UTC, Markus Giese
Details
gmp.h (gmp.h,82.00 KB, text/x-chdr)
2023-01-23 11:14 UTC, Markus Giese
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Giese 2023-01-22 12:45:31 UTC
checking for GMP_NUMB_BITS and sizeof(mp_limb_t) consistency... no
configure: 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.

Reproducible: Always

Steps to Reproduce:
1.emerge sync
2.emerge mpfr
3.
Actual Results:  
stops compiling

Expected Results:  
should compile finde

also 4.2 and 4.1.0_p13-r1 dont compile with the same error message
Comment 1 Markus Giese 2023-01-22 12:47:50 UTC
Created attachment 848997 [details]
config.log file

config.log
Comment 2 Markus Giese 2023-01-22 12:49:52 UTC
Created attachment 848999 [details]
emerge --info

emerge --info
Comment 3 Markus Giese 2023-01-22 12:51:57 UTC
waited 1 week, condition stays the same

no USE flags to adjust mentioned GMP_NUMB_BITS

need further advice, since my system can not compile "world" any longer as mpfr looks to be a major problem. emerge --skipfirst does not work, refering to mpfr issues
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-22 18:24:06 UTC
Please also attach the full build.log.
Comment 5 Arsen Arsenović gentoo-dev 2023-01-22 19:38:44 UTC
On a hunch: could you also post /usr/include/i686-pc-linux-gnu/gmp.h
Comment 6 Markus Giese 2023-01-23 11:14:28 UTC
Created attachment 849083 [details]
gmp.h

as required gmp.h
Comment 7 Markus Giese 2023-01-23 11:32:04 UTC
i can not find a build.log.

since the error refers to "GMP_NUMB_BITS and sizeof(mp_limb_t) are not consistent" i had a look onto these 2 variables. i can not find the value of mp_limb_t, only the typedef. the value of GMP_NUMB_BITS = (GMP_LIMB_BITS - GMP_NAIL_BITS), which actually is 32-0 = 32. so how/where can i set the sice of mp_limb_t ??

i tried setting #define GMP_LIMB_BITS to 64, to no avail. need further assistance please..
Comment 8 Markus Giese 2023-01-23 11:37:53 UTC
in config.log i found :

GMP_NUMB_BITS     = 64
sizeof(mp_limb_t) = 4
sizeof(mp_limb_t) * CHAR_BIT = 32 != GMP_NUMB_BITS

strange since gmp.h says GMP_NUMB_BITS = (GMP_LIMB_BITS - GMP_NAIL_BITS) = 32

i noticed the new ABI_X86="32*" FLAG, i guess thats the problem, since mpfr compiles fine with ABI_X86="-32" emerge -av mpfr...
Comment 9 Markus Giese 2023-01-23 11:54:36 UTC
ok, sorry for the confusion. i was fiddling with various gmp versions due to my bachelor thesis. and there was a gmp.h remaining in a directory /usr/local/incluse which caused the trouble... it was my fault, shame on me
Comment 10 Arsen Arsenović gentoo-dev 2023-01-23 15:10:10 UTC
No worries!  It happens sometimes.  Glad to hear you got it sorted.

Happy hacking!