| Summary: | dev-util/lldb-15.0.4[libedit]: fails to configure (CMake Error at [...]/Modules/FindLibEdit.cmake:24 (cmake_push_check_state): Unknown CMake command "cmake_push_check_state".) | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | CaptainBlood <luc_pierard_de_maujouy> |
| Component: | Current packages | Assignee: | LLVM support project <llvm> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | jstein, mgorny |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| See Also: | https://reviews.llvm.org/D137555 | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
ebuild log
CMakeOutput.log CMakeError.log proposed patch build log for patched ebuild dev-util/lldb-15.0.3 build log |
||
|
Description
CaptainBlood
2022-11-06 15:18:59 UTC
Portage 3.0.38.1 (python 3.9.15-final-0, default/linux/amd64/17.1/desktop/gnome, gcc-12, glibc-2.35-r8, 6.0.7-gentoo-classic x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-6.0.7-gentoo-classic-x86_64-Intel-R-_Core-TM-_i3-6100_CPU_@_3.70GHz-with-glibc2.35
KiB Mem: 3935616 total, 769936 free
KiB Swap: 65535996 total, 65535996 free
Timestamp of repository gentoo: Sun, 06 Nov 2022 10:45:01 +0000
Head commit of repository gentoo: b0f4fb9fb83664801234e7a867da6dfe9648b338
sh bash 5.0_p18
ld GNU ld (Gentoo 2.38 p4) 2.38
distcc 3.4 x86_64-pc-linux-gnu [disabled]
app-misc/pax-utils: 1.3.5::gentoo
app-shells/bash: 5.0_p18::gentoo
dev-java/java-config: 2.3.1::gentoo
dev-lang/perl: 5.34.1-r4::gentoo
dev-lang/python: 2.7.18_p16::gentoo, 3.9.15_p2::gentoo, 3.10.8_p2::gentoo, 3.11.0_p1::gentoo
dev-lang/rust: 1.64.0-r1::gentoo
dev-util/cmake: 3.24.2::gentoo
dev-util/meson: 0.63.2-r1::gentoo
sys-apps/baselayout: 2.8::gentoo
sys-apps/openrc: 0.45.2-r1::gentoo
sys-apps/sandbox: 2.29::gentoo
sys-devel/autoconf: 2.13-r2::gentoo, 2.71-r1::gentoo
sys-devel/automake: 1.16.5::gentoo
sys-devel/binutils: 2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang: 14.0.6-r1::gentoo, 15.0.4::gentoo
sys-devel/gcc: 10.4.0::gentoo, 11.3.0::gentoo, 12.2.1_p20221008::gentoo
sys-devel/gcc-config: 2.8::gentoo
sys-devel/libtool: 2.4.7::gentoo
sys-devel/lld: 14.0.6-r1::gentoo
sys-devel/llvm: 14.0.6-r2::gentoo, 15.0.4::gentoo
sys-devel/make: 4.3::gentoo
sys-kernel/linux-headers: 5.19::gentoo (virtual/os-headers)
sys-libs/glibc: 2.35-r8::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-verify-max-age: 24
sync-rsync-verify-metamanifest: no
sync-rsync-verify-jobs: 1
sync-rsync-extra-opts:
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
AR="gcc-ar"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.8/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.1/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries "
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--alert y --alphabetical --ask-enter-invalid --autounmask y --autounmask-only n --autounmask-unrestricted-atoms y --autounmask-write y --misspell-suggestions n --noconfmem --nospinner --tree --with-bdeps y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries "
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-elog strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-march=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries "
GENTOO_MIRRORS="http://ftp.halifax.rwth-aachen.de/gentoo/ http://gentoo.mirrors.ovh.net/gentoo-distfiles/ http://ftp.leg.uct.ac.za/pub/linux/gentoo/ http://ftp.free.fr/mirrors/ftp.gentoo.org/ http://mirrors.soeasyto.com/distfiles.gentoo.org/ http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ http://ftp.fau.de/gentoo http://ftp.gwdg.de/pub/linux/gentoo/ http://ftp.belnet.be/pub/rsync.gentoo.org/gentoo/"
LANG="fr_FR.utf8"
LDFLAGS="-Wl,-O1 -Wl,-fuse-ld=bfd "
LINGUAS="fr"
MAKEOPTS="-j3 -l3"
NM="gcc-nm"
PKGDIR="/var/cache/binpkgs"
PORTAGE_COMPRESS="lzma"
PORTAGE_COMPRESS_FLAGS="-9"
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="gcc-ranlib"
SHELL="/bin/bash"
USE="amd64 asm emacs gtk-doc libglvnd minimal split-usr test-rust verify-sig" ABI_X86="64" ALSA_CARDS="hda-intel" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="fr" LUA_SINGLE_TARGET="lua5-4" LUA_TARGETS="lua5-4" PHP_TARGETS="php8-1" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" QEMU_USER_TARGETS="aarch64" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="intel"
Unset: ADDR2LINE, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
=================================================================
Package Settings
=================================================================
dev-util/lldb-14.0.6::gentoo was built with the following:
USE="-debug libedit -lzma -ncurses python -test verify-sig xml" ABI_X86="(64)" PYTHON_SINGLE_TARGET="-python3_10 -python3_8 python3_9"
CFLAGS="-march=native -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects -pipe -Wa,-mbranches-within-32B-boundaries"
CXXFLAGS="-march=native -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects -pipe -Wa,-mbranches-within-32B-boundaries"
FEATURES="news binpkg-dostrip buildpkg-live compress-build-logs unknown-features-warn unmerge-logs unmerge-orphans parallel-fetch protect-owned usersandbox sfperms userpriv pid-sandbox merge-sync ebuild-locks assume-digests userfetch ipc-sandbox distlocks binpkg-docompress split-elog qa-unresolved-soname-deps multilib-strict fixlafiles sandbox config-protect-if-modified strict binpkg-logs preserve-libs network-sandbox usersync"
Please include these files: ``` See also "/var/no-tmpfs/portage/dev-util/lldb-15.0.4/work/lldb_build/CMakeFiles/CMakeOutput.log". See also "/var/no-tmpfs/portage/dev-util/lldb-15.0.4/work/lldb_build/CMakeFiles/CMakeError.log". ``` Created attachment 828145 [details]
CMakeOutput.log
Created attachment 828147 [details]
CMakeError.log
Same here on: emerge -1 mrg --nodeps =dev-util/lldb-15.0.3 configured fine with USE=-libedit. currently building here with USE='-python -xml' as preferences. module seems here: ls /usr/share/cmake/Modules/CMakePushCheckState.cmake /usr/share/cmake/Modules/CMakePushCheckState.cmake Created attachment 828419 [details, diff]
proposed patch
Ok, I think the problem is that FindLibEdit.cmake doesn't:
include(CMakePushCheckState)
FWICS many other CMake files in LLVM do, so I guess I didn't see it because some other check done earlier included it for me.
Could you please verify whether the attached patch solves the problem for you? If it does, I'll add it to our patchset and submit it upstream.
Created attachment 828429 [details] build log for patched ebuild [ebuild R ~] dev-util/lldb-15.0.4 USE="libedit*" >>> Verifying ebuild manifests >>> Emerging (1 of 1) dev-util/lldb-15.0.4::gentoo !!! /etc/portage/package.env references non-existent file: /etc/portage/env/try * llvm-project-15.0.4.src.tar.xz BLAKE2B SHA512 size ;-) ... [ ok ] * llvm-project-15.0.4.src.tar.xz.sig BLAKE2B SHA512 size ;-) ... [ ok ] * llvm-gentoo-patchset-15.0.4.tar.xz BLAKE2B SHA512 size ;-) ... [ ok ] * Using python3.9 to build >>> Unpacking source... * Verifying llvm-project-15.0.4.src.tar.xz ... gpg: Signature made Wed Nov 2 21:30:40 2022 EAT gpg: using RSA key 474E22316ABF4785A88C6E8EA2C794A986419D8A gpg: Good signature from "Tom Stellard <tstellar@redhat.com>" [ultimate] * Unpacking from llvm-project-15.0.4.src.tar.xz ... [ ok ] >>> Unpacking llvm-project-15.0.4.src.tar.xz.sig to /var/no-tmpfs/portage/dev-util/lldb-15.0.4/work unpack llvm-project-15.0.4.src.tar.xz.sig: file format not recognized. Ignoring. >>> Unpacking llvm-gentoo-patchset-15.0.4.tar.xz to /var/no-tmpfs/portage/dev-util/lldb-15.0.4/work >>> Source unpacked in /var/no-tmpfs/portage/dev-util/lldb-15.0.4/work >>> Preparing source in /var/no-tmpfs/portage/dev-util/lldb-15.0.4/work/lldb ... * Source directory (CMAKE_USE_DIR): "/var/no-tmpfs/portage/dev-util/lldb-15.0.4/work/lldb" * Build directory (BUILD_DIR): "/var/no-tmpfs/portage/dev-util/lldb-15.0.4/work/lldb_build" * Applying patches from /var/no-tmpfs/portage/dev-util/lldb-15.0.4/work/llvm-gentoo-patchset-15.0.4 ... * 0010-lldb-Get-rid-of-__STDC_LIMIT_MACROS-and-__STDC_CONST.patch ... [ ok ] * 0011-lldb-Fix-error-non-const-lvalue.-caused-by-SWIG-4.1..patch ... [ ok ] * ====================================================================================================================================================================================== * Applying user patches from /etc/portage/patches ... * Applying pushcheckstate.patch ... [ ok ] * User patches applied. * ====================================================================================================================================================================================== >>> Source prepared. As a result: [I] dev-util/lldb Available versions: 13.0.1 14.0.6 15.0.3(0/15) (~)15.0.4(0/15) **15.0.4.9999(0/15)*l **16.0.0_pre20221023(0/16.0.0_pre20221023) **16.0.0_pre20221104(0/16.0.0_pre20221104) **16.0.0.9999(0/16.0.0.9999)*l {debug +libedit lzma ncurses +python test verify-sig +xml PYTHON_SINGLE_TARGET="python3_8 python3_9 python3_10 python3_11"} Nice :) Oops, sorry: Installed versions: 15.0.4(0/15)^t(19:29:50 07/11/2022)(libedit verify-sig -debug -lzma -ncurses -python -test -xml PYTHON_SINGLE_TARGET="python3_9 -python3_8 -python3_10 -python3_11") Ok, thanks. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=320c97f7bdfbfe3a8bc09d46aa60eb594a0e2806 commit 320c97f7bdfbfe3a8bc09d46aa60eb594a0e2806 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2022-11-07 17:25:31 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2022-11-07 17:27:37 +0000 dev-util/lldb: Fix 15.0.4 CMake error in some configs Closes: https://bugs.gentoo.org/880065 Signed-off-by: Michał Górny <mgorny@gentoo.org> dev-util/lldb/Manifest | 2 +- dev-util/lldb/lldb-15.0.4.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (In reply to CaptainBlood from comment #6) > configured fine with USE=-libedit. > currently building here with USE='-python -xml' as preferences. stable Possibly requires the same treatment...(In reply to CaptainBlood from comment #5) > Same here on: > emerge -1 mrg --nodeps =dev-util/lldb-15.0.3 stable dev-util/lldb-15.0.3 likely requires same treatment. Created attachment 828517 [details]
dev-util/lldb-15.0.3 build log
This is fixed in lldb 15.0.5. |