Summary: | <dev-util/cmake-3.19 , 32bit qemu arch on 64bit host - CMake Error at CMakeLists.txt:380 (message): CMAKE_USE_SYSTEM_LIBRHASH is ON but LibRHash is not found! | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Xavier Miller (RETIRED) <xaviermiller> |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dilfridge, gokturk, johannes.geiss, kde, kripton, manuel.lauss, releng, riscv, skylar, sven.rothe.dd |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | ARM | ||
OS: | Linux | ||
URL: | https://gitlab.kitware.com/cmake/cmake/-/issues/20568 | ||
Whiteboard: | fixed in (our) glibc-2.34 | ||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 833191 | ||
Bug Blocks: | 681790 | ||
Attachments: |
build.log.bz2
CMakeError.log CMakeOutput.log build log CMakeError.log CMakeOutput.log |
Armv7 in a QEMU chroot, cmake is not yet installed. emerge --info '=dev-util/cmake-3.14.4::gentoo' Portage 2.3.66 (python 3.6.8-final-0, default/linux/arm/17.0/armv7a, gcc-9.1.0, glibc-2.29-r2, 5.1.3-gentoo armv7l) ================================================================= System Settings ================================================================= System uname: Linux-5.1.3-gentoo-armv7l-Intel-R-_Core-TM-_i7-8850H_CPU_@_2.60GHz-with-gentoo-2.6 KiB Mem: 16192068 total, 13205000 free KiB Swap: 0 total, 0 free Head commit of repository gentoo: 4aeb106e88d3020696359e2aab6311f9356599ff Head commit of repository local: c09d753472fa23ee33ea8f81b20948000891c3f9 sh bash 5.0_p7 ld GNU gold (Gentoo 2.32 p2 2.32.0) 1.16 app-shells/bash: 5.0_p7::gentoo dev-lang/perl: 5.28.2-r1::gentoo dev-lang/python: 2.7.16::gentoo, 3.6.8::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.6-r1::gentoo sys-apps/openrc: 0.41.2::gentoo sys-apps/sandbox: 2.17::gentoo sys-devel/autoconf: 2.69-r4::gentoo sys-devel/automake: 1.16.1-r1::gentoo sys-devel/binutils: 2.32-r1::gentoo sys-devel/gcc: 9.1.0::gentoo sys-devel/gcc-config: 2.0::gentoo sys-devel/libtool: 2.4.6-r5::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 5.0-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.29-r2::gentoo Repositories: gentoo location: /var/portage/repos/gentoo sync-type: git sync-uri: git://anongit.gentoo.org/repo/gentoo.git priority: -1000 local location: /usr/local/portage sync-type: git sync-uri: /data/nas/xavier/git_repos/local_overlay.git/ masters: gentoo ACCEPT_KEYWORDS="arm ~arm" ACCEPT_LICENSE="@FREE as-is freedist" CBUILD="armv7a-unknown-linux-gnueabihf" CFLAGS="-march=armv7-a -mfpu=neon -mfloat-abi=hard -O2 -pipe -fomit-frame-pointer" CHOST="armv7a-unknown-linux-gnueabihf" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=armv7-a -mfpu=neon -mfloat-abi=hard -O2 -pipe -fomit-frame-pointer" DISTDIR="/var/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps y --quiet-build=n --buildpkg" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe -march=armv7-a" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg candy config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs p rotect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersync" FFLAGS="-O2 -pipe -march=armv7-a" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5 -l3" PKGDIR="/var/portage/packages" 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" USE="arm armv5te armv6 armv6t2 armv7 bzip2 cli crypt cups cxx dri exif gif headless-awt iconv jpeg ncurses nls nptl openmp pcre pdf png pnm readline seccomp sqlite ssl svg tcpd tiff truetype unicode zlib" APACHE2_MODULES="authn_core aut hz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflat e dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon she ets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp thumb thumb2 v4 v5 v6 v7 vfp" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax m tk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="fr nl" LCD_DEVICES="bayrad cfontz cfontz63 3 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO _CARDS="exynos fbdev omap dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS Created attachment 577512 [details]
build.log.bz2
Created attachment 577514 [details]
CMakeError.log
Created attachment 577516 [details]
CMakeOutput.log
Same problem on a raspberry pi1 chroot (armv6j) emerge --info '=dev-util/cmake-3.14.4::gentoo' Portage 2.3.66 (python 3.6.8-final-0, default/linux/arm/17.0/armv6j, gcc-9.1.0, glibc-2.29-r2, 5.1.3-gentoo armv7l) ================================================================= System Settings ================================================================= System uname: Linux-5.1.3-gentoo-armv7l-Intel-R-_Celeron-R-_2957U_@_1.40GHz-with-gentoo-2.6 KiB Mem: 3959576 total, 732112 free KiB Swap: 4094972 total, 3696380 free Head commit of repository gentoo: 4aeb106e88d3020696359e2aab6311f9356599ff Head commit of repository local: c09d753472fa23ee33ea8f81b20948000891c3f9 sh bash 5.0_p7 ld GNU gold (Gentoo 2.32 p2 2.32.0) 1.16 app-shells/bash: 5.0_p7::gentoo dev-lang/perl: 5.28.2-r1::gentoo dev-lang/python: 2.7.16::gentoo, 3.6.8::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.6-r1::gentoo sys-apps/openrc: 0.41.2::gentoo sys-apps/sandbox: 2.17::gentoo sys-devel/autoconf: 2.69-r4::gentoo sys-devel/automake: 1.16.1-r1::gentoo sys-devel/binutils: 2.32-r1::gentoo sys-devel/gcc: 9.1.0::gentoo sys-devel/gcc-config: 2.0::gentoo sys-devel/libtool: 2.4.6-r5::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 5.0-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.29-r2::gentoo Repositories: gentoo location: /var/portage/repos/gentoo sync-type: git sync-uri: git://anongit.gentoo.org/repo/gentoo.git priority: -1000 local location: /usr/local/portage sync-type: git sync-uri: /data/nas/xavier/git_repos/local_overlay.git/ masters: gentoo ACCEPT_KEYWORDS="arm ~arm" ACCEPT_LICENSE="@FREE as-is freedist" CBUILD="armv6j-unknown-linux-gnueabihf" CFLAGS="-march=armv6j -mfpu=vfp -mfloat-abi=hard -O2 -pipe -fomit-frame-pointer" CHOST="armv6j-unknown-linux-gnueabihf" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=armv6j -mfpu=vfp -mfloat-abi=hard -O2 -pipe -fomit-frame-pointer" DISTDIR="/var/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps y --quiet-build=n --buildpkg" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe -march=armv6j" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg candy config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersync" FFLAGS="-O2 -pipe -march=armv6j" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="fr_BE.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5 -l3" PKGDIR="/var/portage/packages" 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" USE="arm armv6 bzip2 cli crypt cxx dri iconv ncurses nls nptl openmp pcre readline seccomp sqlite ssl tcpd unicode zlib" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache 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_ARM="edsp thumb v4 v5 v6" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="fr nl" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="exynos fbdev omap dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS is it related to bug 650948 (or bug 650840)? OK in the same context with amd64 architecture (new stage 3, switching to ~amd64, profile 17.1, gnu gold, latest toolchain) I tried to disable system rhash, but then I get : " CMAKE_USE_SYSTEM_ZLIB is ON but a zlib is not found!" So there is something wrong with the library detection in the cmake build. What do I need to check? (In reply to Xavier Miller from comment #6) > is it related to bug 650948 (or bug 650840)? Nope, because the bootstrap process doesn't find zlib too. if I run $ ./bootstrap --system-libs --no-system-jsoncpp --no-system-librhash --verbose I get this -- Could NOT find ZLIB (missing: ZLIB_LIBRARY) (found version "1.2.11") ==> a sed/grep problem? OK ! I re-started from the official stage 3 (stage3-armv7a_hardfp-20180831.tar.bz2) cmake can be emerged, my chroot was probably corrupted I reopen the bug because newer versions of CMake don't work. I cannot bootstrap CMake from any existing CMake versions on ~armv6j and ~amrv7a. And I cannot re-emerge CMake from CMake. new build.log will come this evening # emerge --info '=dev-util/cmake-3.15.2::gentoo' Portage 2.3.71 (python 3.6.9-final-0, default/linux/arm/17.0/armv7a, gcc-9.1.0, glibc-2.29-r4, 5.2.7-gentoo armv7l) ================================================================= System Settings ================================================================= System uname: Linux-5.2.7-gentoo-armv7l-Intel-R-_Core-TM-_i7-8850H_CPU_@_2.60GHz-with-gentoo-2.6 KiB Mem: 16191160 total, 11363764 free KiB Swap: 0 total, 0 free Head commit of repository gentoo: 5b7b57438d3997382c7803c96971c60e51d3774a Head commit of repository local: c09d753472fa23ee33ea8f81b20948000891c3f9 sh bash 5.0_p7 ld GNU gold (Gentoo 2.32 p2 2.32.0) 1.16 app-shells/bash: 5.0_p7::gentoo dev-java/java-config: 2.2.0-r4::gentoo dev-lang/perl: 5.30.0::gentoo dev-lang/python: 2.7.16::gentoo, 3.6.9::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.6-r1::gentoo sys-apps/openrc: 0.41.2::gentoo sys-apps/sandbox: 2.18::gentoo sys-devel/autoconf: 2.69-r4::gentoo sys-devel/automake: 1.13.4-r2::gentoo, 1.16.1-r1::gentoo sys-devel/binutils: 2.32-r1::gentoo sys-devel/gcc: 9.1.0-r1::gentoo sys-devel/gcc-config: 2.0::gentoo sys-devel/libtool: 2.4.6-r5::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 5.1::gentoo (virtual/os-headers) sys-libs/glibc: 2.29-r4::gentoo Repositories: gentoo location: /var/portage/repos/gentoo sync-type: git sync-uri: git://anongit.gentoo.org/repo/gentoo.git priority: -1000 local location: /usr/local/portage sync-type: git sync-uri: /data/nas/xavier/git_repos/local_overlay.git/ masters: gentoo ACCEPT_KEYWORDS="arm ~arm" ACCEPT_LICENSE="@FREE as-is freedist" CBUILD="armv7a-unknown-linux-gnueabihf" CFLAGS="-O2 -pipe -march=armv7-a" CHOST="armv7a-unknown-linux-gnueabihf" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.3/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -march=armv7-a" DISTDIR="/var/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps y --quiet-build=n --buildpkg" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe -march=armv7-a" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg candy config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch usersync" FFLAGS="-O2 -pipe -march=armv7-a" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu -Wl,--as-needed" MAKEOPTS="-j24 -l13" PKGDIR="/var/portage/packages" 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" USE="arm armv5te armv6 armv6t2 armv7 bzip2 cli crypt cups cxx dri exif gif headless-awt iconv jpeg ncurses nls nptl openmp pcre pdf png pnm readline seccomp split-usr sqlite ssl svg tcpd tiff truetype unicode zlib" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache 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_ARM="edsp thumb thumb2 v4 v5 v6 v7 vfp" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="fr nl" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="exynos fbdev omap dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS # qemu-arm --version qemu-arm version 4.0.0 Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers [ebuild R ] app-emulation/qemu-4.0.0-r4::gentoo USE="aio alsa bzip2 caps curl fdt filecaps gtk jpeg ncurses nls opengl pin-upstream-blobs png sdl seccomp static-user usb vhost-net vnc xattr -accessibility -capstone -debug -doc -glusterfs -gnutls -infiniband -iscsi -lzo -nfs -numa -pulseaudio -python -rbd -sasl (-selinux) -smartcard -snappy -spice -ssh (-static) -systemtap -tci -test -usbredir -vde -virgl -virtfs -vte -xen -xfs" PYTHON_TARGETS="python2_7 python3_6 -python3_5 -python3_7" QEMU_SOFTMMU_TARGETS="-aarch64 -alpha -arm -cris -hppa -i386 -lm32 -m68k -microblaze -microblazeel -mips -mips64 -mips64el -mipsel -moxie -nios2 -or1k -ppc -ppc64 -riscv32 -riscv64 -s390x -sh4 -sh4eb -sparc -sparc64 -tricore -unicore32 -x86_64 -xtensa -xtensaeb" QEMU_USER_TARGETS="arm -aarch64 -aarch64_be -alpha -armeb -cris -hppa -i386 -m68k -microblaze -microblazeel -mips -mips64 -mips64el -mipsel -mipsn32 -mipsn32el -nios2 -or1k -ppc -ppc64 -ppc64abi32 -ppc64le -riscv32 -riscv64 -s390x -sh4 -sh4eb -sparc -sparc32plus -sparc64 -tilegx -x86_64 -xtensa -xtensaeb" 0 KiB Created attachment 586382 [details]
build log
Created attachment 586384 [details]
CMakeError.log
Created attachment 586386 [details]
CMakeOutput.log
Same error in riscv chroot: -- Using system-installed BZIP2 -- Using system-installed CURL -- Using system-installed EXPAT -- Using system-installed FORM -- Using system-installed LIBARCHIVE -- Using system-installed LIBLZMA -- Using system-installed LIBRHASH -- Using system-installed LIBUV -- Using system-installed ZLIB -- Using system-installed ZSTD -- Could NOT find LibRHash (missing: LibRHash_LIBRARY) CMake Error at CMakeLists.txt:382 (message): CMAKE_USE_SYSTEM_LIBRHASH is ON but LibRHash is not found! Call Stack (most recent call first): CMakeLists.txt:691 (CMAKE_BUILD_UTILITIES) For the record, the riscv-specific cmake-utils.eclass patch from https://689410.bugs.gentoo.org/attachment.cgi?id=582126 fixed the problem for me. For us, the main problem was that cmake needed to look at '/usr/lib64/lp64d'. Maybe arm has a similar ABI dependent libdir structure? For the record, I have the same problem with a MIPS chroot, which uses a layout identical to 32bit x86 (i.e. no special paths for libraries, ..). I found an old (~9 months old) snapshot of my MIPS chroot, and was able to build cmake-3.16.4 with and without any preexisting cmake, and can rebuilt it there without issues. So something outside of cmake seems to have broken it. Is there a way to trace/singlestep cmake when it throws the "LibRHash not found" error? The provided patch for riscv does not appear to be working anymore. Has something changed? I'm experiencing the same problem in a QEMU chroot from amd64 into armv6j. I'll check if compiling on the target itself fixes the problem. Any workaround so far? It works without a problem on the system itself: -- Using system-installed ZSTD -- Found LibRHash: /usr/lib/librhash.so -- Found ZLIB: /usr/lib/libz.so (found version "1.2.11") -- Found CURL: /usr/lib/libcurl.so (found version "7.69.1") -- Found EXPAT: /usr/lib/libexpat.so (found version "2.2.9") -- Found LibArchive: /usr/lib/libarchive.so (found suitable version "3.4.2", minimum required is "3.3.3") -- Found JsonCpp: /usr/lib/libjsoncpp.so (found suitable version "1.9.3", minimum required is "1.4.1") -- Found LibUV: /usr/lib/libuv.so (found suitable version "1.35.0", minimum required is "1.10.0") -- Looking for wsyncup in /usr/lib/libcurses.so -- Looking for wsyncup in /usr/lib/libcurses.so - found I just dealt with this issue using QEMU for armv6. After reading about the same or similar issue at https://gitlab.kitware.com/cmake/cmake/-/issues/20568 and seeing the post by Dmitry Kalinkin, I found a solution that worked for me. I added "-D_FILE_OFFSET_BITS=64" to CLFAGS, uninstalled cmake, and then reinstalled cmake. I'm leaving it in make.conf rather than make it specific to cmake because I've seen hints that other build errors, or at least nasty looking messages, might be solved by using it everywhere. Hope that helps! Just realized that glibc does not like -D_FILE_OFFSET_BITS=64, so I moved it to package.env for cmake. (In reply to Jeff Jackowski from comment #26) > I just dealt with this issue using QEMU for armv6. After reading about the > same or similar issue at > https://gitlab.kitware.com/cmake/cmake/-/issues/20568 and seeing the post by > Dmitry Kalinkin, I found a solution that worked for me. > > I added "-D_FILE_OFFSET_BITS=64" to CLFAGS, uninstalled cmake, and then > reinstalled cmake. I'm leaving it in make.conf rather than make it specific > to cmake because I've seen hints that other build errors, or at least nasty > looking messages, might be solved by using it everywhere. Does the resulting cmake binary still work on real armv6 hardware? https://gitlab.kitware.com/cmake/cmake/-/merge_requests/5258/diffs?commit_id=5b10f96793ab6f3a4ef446d67c09ea91b7898584 So basically the proposed solution is to backport this commit (which is already in cmake-3.19). [I tried and it applies cleanly to cmake-3.17.] If I understand the logic correctly, this unconditionally forces the usage of the large file syscall interface on 32bit Linux (i.e. 64bit file offsets). Which should not be a problem with modern Kernel and libc. (In reply to Andreas K. Hüttel from comment #29) > https://gitlab.kitware.com/cmake/cmake/-/merge_requests/5258/ > diffs?commit_id=5b10f96793ab6f3a4ef446d67c09ea91b7898584 > > So basically the proposed solution is to backport this commit (which is > already in cmake-3.19). > [I tried and it applies cleanly to cmake-3.17.] > > If I understand the logic correctly, this unconditionally forces the usage > of the large file syscall interface on 32bit Linux (i.e. 64bit file > offsets). Which should not be a problem with modern Kernel and libc. Unfortunately this does *not* fix the problem though. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/releng.git/commit/?id=00c4af1794633f0e02ba1fa7c52ddc0f776fd793 commit 00c4af1794633f0e02ba1fa7c52ddc0f776fd793 Author: Andreas K. Hüttel <dilfridge@gentoo.org> AuthorDate: 2021-01-15 21:45:10 +0000 Commit: Andreas K. Hüttel <dilfridge@gentoo.org> CommitDate: 2021-01-15 21:45:10 +0000 Force building cmake with LFS support on qemu Bug: https://bugs.gentoo.org/686502 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org> releases/portage/stages-qemu/env/releng/forcelfs | 2 ++ releases/portage/stages-qemu/package.env/releng/forcelfs | 1 + 2 files changed, 3 insertions(+) Some relevant links: https://gitlab.kitware.com/cmake/cmake/-/issues/20568 https://gitlab.kitware.com/cmake/cmake/-/merge_requests/5258/diffs?commit_id=5b10f96793ab6f3a4ef446d67c09ea91b7898584 https://bugs.launchpad.net/qemu/+bug/1805913 https://sourceware.org/bugzilla/show_bug.cgi?id=23960 https://bugzilla.kernel.org/show_bug.cgi?id=205957 OK so the backport would just be more complicated. cmake-3.19 builds fine, i.e. this is fixed there. Trying to emerge cmake-3.19.3, unfortunately, I still experiencing the same problem in a QEMU chroot from amd64 into armv7a. This is a workaround/fix which worked for me: https://gitlab.kitware.com/cmake/cmake/-/issues/20568 I added "-D_FILE_OFFSET_BITS=64" to CFLAGS and CXXFLAGS in the QEmu chroot environment, like this: mkdir -p /etc/portage/package.env echo >/etc/portage/package.env/cmake dev-util/cmake cmake.conf mkdir -p /etc/portage/env echo >/etc/portage/env/cmake.conf 'CFLAGS="${CFLAGS} -D_FILE_OFFSET_BITS=64"' echo >>/etc/portage/env/cmake.conf 'CXXFLAGS="${CXXFLAGS} -D_FILE_OFFSET_BITS=64"' Give it a try. (In reply to Johannes Geiss from comment #35) > This is a workaround/fix which worked for me: > > https://gitlab.kitware.com/cmake/cmake/-/issues/20568 > > I added "-D_FILE_OFFSET_BITS=64" to CFLAGS and CXXFLAGS in the QEmu chroot > environment, like this: Today I again experienced this issue on a MIPS32 chroot on an amd64 host using qemu-6.0.0. The workaround described made cmake emerge properly This should be fixed via our glibc-2.34 patchset. (In reply to Andreas K. Hüttel from comment #37) > This should be fixed via our glibc-2.34 patchset. Let's close this since glibc-2.34 is stable now. We still need to get the patches upstream though. |
--------------------------------------------- CMake has bootstrapped. Now run gmake. >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-util/cmake-3.14.4/work/cmake-3.14.4 ... >>> Working in BUILD_DIR: "/var/tmp/portage/dev-util/cmake-3.14.4/work/cmake-3.14.4_build" /var/tmp/portage/dev-util/cmake-3.14.4/work/cmake-3.14.4/Bootstrap.cmk/cmake -C /var/tmp/portage/dev-util/cmake-3.14.4/work/cmake-3.14.4_build/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_USE_SYSTEM_L IBRARIES=ON -DCMAKE_USE_SYSTEM_LIBRARY_JSONCPP=no -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_DOC_DIR=/share/doc/cmake-3.14.4 -DCMAKE_MAN_DIR=/share/man -DCMAKE_DATA_DIR=/share/cmake -DSPHINX_MAN=no -DSPHINX_HTML=no -DBUILD_CursesDialog=yes -DB UILD_TESTING=no -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/dev-util/cmake-3.14.4/work/cmake-3.14.4_build/gentoo_toolchain.cmake /var/tmp/portage/dev-util/cmake-3.14.4/work/cmake-3.14.4 loading initial cache file /var/tmp/portage/dev-util/cmake-3.14.4/work/cmake-3.14.4_build/gentoo_common_config.cmake CMake Warning (dev) at gentoo_common_config.cmake:8 (SET): implicitly converting 'BOOLEAN' to 'STRING' type. This warning is for project developers. Use -Wno-dev to suppress it. [...] -- Using system-installed BZIP2 -- Using system-installed CURL -- Using system-installed EXPAT -- Using system-installed FORM -- Using system-installed LIBARCHIVE -- Using system-installed LIBLZMA -- Using system-installed LIBRHASH -- Using system-installed LIBUV -- Using system-installed ZLIB -- Could NOT find LibRHash (missing: LibRHash_LIBRARY) CMake Error at CMakeLists.txt:380 (message): CMAKE_USE_SYSTEM_LIBRHASH is ON but LibRHash is not found! Call Stack (most recent call first): CMakeLists.txt:682 (CMAKE_BUILD_UTILITIES) -- Configuring incomplete, errors occurred! See also "/var/tmp/portage/dev-util/cmake-3.14.4/work/cmake-3.14.4_build/CMakeFiles/CMakeOutput.log". See also "/var/tmp/portage/dev-util/cmake-3.14.4/work/cmake-3.14.4_build/CMakeFiles/CMakeError.log".