Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mpfr build fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
felix88
n00b
n00b


Joined: 12 Feb 2025
Posts: 2

PostPosted: Wed Feb 12, 2025 6:49 pm    Post subject: mpfr build fails Reply with quote

I can't build mpfr. I don't think its a bug, its a config problem on my system.

Code:
# emerge --info '=dev-libs/mpfr-4.2.1::gentoo'
Portage 3.0.67 (python 3.12.9-final-0, default/linux/amd64/23.0/llvm/systemd, gcc-14, glibc-2.41, 6.13.2-gentoo-dist x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.13.2-gentoo-dist-x86_64-Intel-R-_Core-TM-_i9-14900K-with-glibc2.41
KiB Mem:    65661224 total,  50456276 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Wed, 12 Feb 2025 15:48:48 +0000
Head commit of repository gentoo: 398196b586fa14718dde010cdc9a6b9804840647

Timestamp of repository guru: Wed, 12 Feb 2025 10:48:33 +0000
Head commit of repository guru: fdd5e3c35d37cf86af1b547b0cea7138307a866a

sh bash 5.2_p37
ld GNU ld (Gentoo 2.44 p1) 2.44.0
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.17-r1::gentoo
dev-build/cmake:           3.31.5::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.7.0::gentoo
dev-lang/perl:             5.40.0-r1::gentoo
dev-lang/python:           3.12.9::gentoo, 3.13.2::gentoo
dev-lang/rust:             1.84.1-r1::gentoo
llvm-core/clang:           18.1.8-r6::gentoo, 19.1.7::gentoo
llvm-core/lld:             18.1.8::gentoo, 19.1.7::gentoo
llvm-core/llvm:            18.1.8-r6::gentoo, 19.1.7::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/sandbox:          2.43::gentoo
sys-apps/systemd:          257.2::gentoo
sys-devel/binutils:        2.44::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             14.2.1_p20241221::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.13::gentoo (virtual/os-headers)
sys-libs/glibc:            2.41::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    volatile: False

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

local_ebuilds
    location: /var/db/repos/local_ebuilds
    masters: gentoo
    volatile: False

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
ADDR2LINE="llvm-addr2line"
AR="llvm-ar"
AS="clang -c"
CBUILD="x86_64-pc-linux-gnu"
CC="clang"
CFLAGS="-march=raptorlake -O2 -pipe -flto=thin -Werror=odr -Werror=strict-aliasing"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d"
CPP="clang-cpp"
CXX="clang++"
CXXFLAGS="-march=raptorlake -O2 -pipe -flto=thin -Werror=odr -Werror=strict-aliasing"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=raptorlake -O2 -pipe -flto=thin -Werror=odr -Werror=strict-aliasing"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=raptorlake -O2 -pipe -flto=thin -Werror=odr -Werror=strict-aliasing"
GENTOO_MIRRORS="https://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/"
LANG="en_US.UTF-8"
LD="ld.lld"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j38"
NM="llvm-nm"
OBJCOPY="llvm-objcopy"
OBJDUMP="llvm-objdump"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
RANLIB="llvm-ranlib"
READELF="llvm-readelf"
RUSTFLAGS=" -Ctarget-cpu=raptorlake -Clinker-plugin-lto"
SHELL="/bin/bash"
STRINGS="llvm-strings"
STRIP="llvm-strip"
USE="X aac acl amd64 branding bzip2 cet clang crypt cups dbus dist-kernel ffmpeg flac gdbm gif gmp gstreamer gtk gtk3 iconv ipv6 jpeg jpeg2k jpegxl libnotify libproxy libtirpc llvm-libunwind lto mp3 mpeg mpfr multilib ncurses nls ogg openmp opus pam pcre pgo png policykit pulseaudio readline seccomp ssl svg systemd test-rust theora threads tiff udev udisks unicode vorbis vpx vulkan x264 x265 xattr xvid zlib" ABI_X86="64" ADA_TARGET="gcc_13" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 ssse3 vpclmulqdq" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US de de-DE" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ARFLAGS, ASFLAGS, CCLD, CONFIG_SHELL, CPPFLAGS, CTARGET, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, SIZE, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

dev-libs/mpfr-4.2.1::gentoo was built with the following:
USE="-static-libs -verify-sig" ABI_X86="(64) -32 (-x32)"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"



Code:
$ cat /var/log/portage/build/dev-libs:mpfr-4.2.1:20250212-183003.log
 * Package:    dev-libs/mpfr-4.2.1:0/6
 * Repository: gentoo
 * Maintainer: toolchain@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
 * abi_x86_64.amd64: running multilib-minimal_abi_src_configure
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /var/tmp/portage/._portage_reinstall_.owflr741/bin/ebuild-helpers/xattr/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking whether configure options are compatible... yes
checking for x86_64-pc-linux-gnu-gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether clang accepts -g... yes
checking for clang option to enable C11 features... none needed
checking whether clang understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of clang... none
checking how to run the C preprocessor... clang-cpp
checking for x86_64-pc-linux-gnu-ar... llvm-ar
checking the archiver (llvm-ar) interface... ar
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by clang... ld.lld
checking if the linker (ld.lld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... llvm-nm
checking the name lister (llvm-nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for ld.lld option to reload object files... -r
checking for x86_64-pc-linux-gnu-file... no
checking for file... file
checking for x86_64-pc-linux-gnu-objdump... llvm-objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-pc-linux-gnu-dlltool... x86_64-pc-linux-gnu-dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for x86_64-pc-linux-gnu-ar... (cached) llvm-ar
checking for archiver @FILE support... @
checking for x86_64-pc-linux-gnu-strip... llvm-strip
checking for x86_64-pc-linux-gnu-ranlib... llvm-ranlib
checking command to parse llvm-nm output from clang object... ok
checking for sysroot... /
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for x86_64-pc-linux-gnu-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if clang supports -fno-rtti -fno-exceptions... yes
checking for clang option to produce PIC... -fPIC -DPIC
checking if clang PIC flag -fPIC -DPIC works... yes
checking if clang static flag -static works... yes
checking if clang supports -c -o file.o... yes
checking if clang supports -c -o file.o... (cached) yes
checking whether the clang linker (ld.lld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for non-MS-Windows ICC... no
checking for an ANSI C-conforming const... yes
checking for working volatile... yes
checking whether byte ordering is bigendian... no
checking for library containing clock_gettime... none required
checking for size_t... yes
checking for limits.h... yes
checking for float.h... yes
checking for string.h... (cached) yes
checking for locale.h... yes
checking for wchar.h... yes
checking for stdarg.h... yes
checking for sys/fpu.h... no
checking for struct lconv.decimal_point... yes
checking for struct lconv.thousands_sep... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for uintptr_t... yes
checking how to copy va_list... va_copy
checking for setlocale... yes
checking for gettimeofday... yes
checking for signal... yes
checking for sigaction and its associated structure... yes
checking for long long int... yes
checking for intmax_t... yes
checking for working INTMAX_MAX... yes
checking for union fpc_csr... no
checking for _Noreturn... yes
checking for __builtin_unreachable... yes
checking for constructor and destructor attributes... yes
checking for fesetround... yes
checking for gcc float-conversion bug... no
checking for subnormal double-precision numbers... yes
checking for subnormal single-precision numbers... yes
checking for signed zeros... yes
checking if the FP division by 0 fails... no
checking if NAN == NAN... no
checking if charset has consecutive values... yes
checking for math/round... yes
checking for math/trunc... yes
checking for math/floor... yes
checking for math/ceil... yes
checking for math/nearbyint... yes
checking format of floating-point type `double'... IEEE double, little endian
checking format of floating-point type `long double'... IEEE extended, little endian (16 bytes)
checking for TLS support using C11... yes
checking if compiler knows _Decimal64... no
checking bit-field ordering for _Decimal128... unavailable or unknown
checking if _Float128 with hex constants is supported... no
checking if __float128 can be used as a fallback... yes
checking for Static Assertion support... yes
checking whether gcc __attribute__ ((mode (XX))) works... yes
checking for gmp.h... yes
checking for recent GMP... yes
checking usable gmp.h at link time... yes
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.
See 'config.log' for details (search for GMP_NUMB_BITS).

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/dev-libs/mpfr-4.2.1/work/mpfr-4.2.1-abi_x86_64.amd64/config.log
 * ERROR: dev-libs/mpfr-4.2.1::gentoo failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *               ebuild.sh, line  136:  Called src_configure
 *             environment, line 1335:  Called multilib-minimal_src_configure
 *             environment, line  766:  Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
 *             environment, line 1016:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *             environment, line  721:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *             environment, line  719:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
 *             environment, line  265:  Called multilib-minimal_abi_src_configure
 *             environment, line  760:  Called multilib_src_configure
 *             environment, line 1236:  Called econf '--disable-static'
 *        phase-helpers.sh, line  647:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  112:  Called die
 * The specific snippet of code:
 *         die "$@"
 *
 * If you need support, post the output of `emerge --info '=dev-libs/mpfr-4.2.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/mpfr-4.2.1::gentoo'`.
 * The complete build log is located at '/var/log/portage/build/dev-libs:mpfr-4.2.1:20250212-183003.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/mpfr-4.2.1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/mpfr-4.2.1/work/mpfr-4.2.1-abi_x86_64.amd64'
 * S: '/var/tmp/portage/dev-libs/mpfr-4.2.1/work/mpfr-4.2.1'


gmp builds fine. Last change 2024-12-06 https://packages.gentoo.org/packages/dev-libs/gmp/changelog.
mpfr was last changed 2023-10-31 https://packages.gentoo.org/packages/dev-libs/mpfr/changelog, can't be the problem.

clang lto?
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 2260

PostPosted: Wed Feb 12, 2025 6:52 pm    Post subject: Reply with quote

Please show us config.log.
Back to top
View user's profile Send private message
felix88
n00b
n00b


Joined: 12 Feb 2025
Posts: 2

PostPosted: Wed Feb 12, 2025 6:58 pm    Post subject: Reply with quote

https://pastebin.com/JjPJLt6m

to big for direct post.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum