Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 880065 - 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".)
Summary: dev-util/lldb-15.0.4[libedit]: fails to configure (CMake Error at [...]/Modul...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-06 15:18 UTC by CaptainBlood
Modified: 2022-11-18 07:30 UTC (History)
2 users (show)

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


Attachments
ebuild log (dev-util:lldb-15.0.4:20221106-161655.log.gz,4.14 KB, application/gzip)
2022-11-06 15:18 UTC, CaptainBlood
Details
CMakeOutput.log (CMakeOutput.log,97.28 KB, text/x-log)
2022-11-06 20:11 UTC, CaptainBlood
Details
CMakeError.log (CMakeError.log,11.80 KB, text/x-log)
2022-11-06 20:13 UTC, CaptainBlood
Details
proposed patch (pushcheckstate.patch,578 bytes, patch)
2022-11-07 13:33 UTC, Michał Górny
Details | Diff
build log for patched ebuild (dev-util:lldb-15.0.4:20221107-155525.log.gz,78.45 KB, application/gzip)
2022-11-07 15:45 UTC, CaptainBlood
Details
dev-util/lldb-15.0.3 build log (dev-util:lldb-15.0.3:20221107-105918.log.gz,3.90 KB, application/gzip)
2022-11-07 18:40 UTC, CaptainBlood
Details

Note You need to log in before you can comment on or make changes to this bug.
Description CaptainBlood 2022-11-06 15:18:59 UTC
Created attachment 828105 [details]
ebuild log

Upgrading from

Installed versions:  14.0.6^t(01:23:55 25/08/2022)(libedit python verify-sig xml -debug -lzma -ncurses -test PYTHON_SINGLE_TARGET="python3_9 -python3_8 -python3_10")

fails as:

Calculating dependencies  ...... .. ..... ..... done!
[ebuild     U ~] dev-util/lldb-15.0.4 [14.0.6] PYTHON_SINGLE_TARGET="-python3_11%" 


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-util/lldb-15.0.4::gentoo
 * 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 ]
>>> Source prepared.
>>> Configuring 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"
cmake -C /var/no-tmpfs/portage/dev-util/lldb-15.0.4/work/lldb_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DLLDB_ENABLE_CURSES=no -DLLDB_ENABLE_LIBEDIT=yes -DLLDB_ENABLE_PYTHON=yes -DLLDB_ENABLE_LUA=OFF -DLLDB_ENABLE_LZMA=no -DLLDB_ENABLE_LIBXML2=yes -DLLDB_USE_SYSTEM_SIX=1 -DLLVM_ENABLE_TERMINFO=no -DLLDB_INCLUDE_TESTS=no -DCLANG_LINK_CLANG_DYLIB=ON -DHAVE_LIBDL=ON -DHAVE_LIBPTHREAD=ON -DCURSES_NEED_NCURSES=ON -DLLDB_EXTERNAL_CLANG_RESOURCE_DIR=/usr/lib/clang/15.0.4 -DPython3_EXECUTABLE=/usr/bin/python3.9 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/var/no-tmpfs/portage/dev-util/lldb-15.0.4/work/lldb_build/gentoo_toolchain.cmake /var/no-tmpfs/portage/dev-util/lldb-15.0.4/work/lldb
loading initial cache file /var/no-tmpfs/portage/dev-util/lldb-15.0.4/work/lldb_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 12.2.1
-- The CXX compiler identification is GNU 12.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.12") 
-- Found zstd: /usr/lib64/libzstd.so  
-- Linker detection: GNU ld
-- Performing Test C_SUPPORTS_FPIC
-- Performing Test C_SUPPORTS_FPIC - Success
-- Performing Test CXX_SUPPORTS_FPIC
-- Performing Test CXX_SUPPORTS_FPIC - Success
-- Building with -fPIC
-- Performing Test C_SUPPORTS_FNO_SEMANTIC_INTERPOSITION
-- Performing Test C_SUPPORTS_FNO_SEMANTIC_INTERPOSITION - Success
-- Performing Test CXX_SUPPORTS_FNO_SEMANTIC_INTERPOSITION
-- Performing Test CXX_SUPPORTS_FNO_SEMANTIC_INTERPOSITION - Success
-- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG
-- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG - Success
-- Performing Test C_SUPPORTS_WERROR_DATE_TIME
-- Performing Test C_SUPPORTS_WERROR_DATE_TIME - Success
-- Performing Test CXX_SUPPORTS_WERROR_DATE_TIME
-- Performing Test CXX_SUPPORTS_WERROR_DATE_TIME - Success
-- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW
-- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW - Failed
-- Performing Test CXX_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW
-- Performing Test CXX_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW - Failed
-- Performing Test CXX_SUPPORTS_MISSING_FIELD_INITIALIZERS_FLAG
-- Performing Test CXX_SUPPORTS_MISSING_FIELD_INITIALIZERS_FLAG - Success
-- Performing Test C_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG
-- Performing Test C_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG - Success
-- Performing Test CXX_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG
-- Performing Test CXX_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG - Success
-- Performing Test C_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG
-- Performing Test C_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG - Failed
-- Performing Test CXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG
-- Performing Test CXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG - Failed
-- Performing Test CXX_SUPPORTS_CLASS_MEMACCESS_FLAG
-- Performing Test CXX_SUPPORTS_CLASS_MEMACCESS_FLAG - Success
-- Performing Test CXX_SUPPORTS_REDUNDANT_MOVE_FLAG
-- Performing Test CXX_SUPPORTS_REDUNDANT_MOVE_FLAG - Success
-- Performing Test CXX_SUPPORTS_PESSIMIZING_MOVE_FLAG
-- Performing Test CXX_SUPPORTS_PESSIMIZING_MOVE_FLAG - Success
-- Performing Test CXX_SUPPORTS_NOEXCEPT_TYPE_FLAG
-- Performing Test CXX_SUPPORTS_NOEXCEPT_TYPE_FLAG - Success
-- Performing Test CXX_WONT_WARN_ON_FINAL_NONVIRTUALDTOR
-- Performing Test CXX_WONT_WARN_ON_FINAL_NONVIRTUALDTOR - Failed
-- Performing Test CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG
-- Performing Test CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG - Success
-- Performing Test CXX_WSUGGEST_OVERRIDE_ALLOWS_ONLY_FINAL
-- Performing Test CXX_WSUGGEST_OVERRIDE_ALLOWS_ONLY_FINAL - Success
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP - Failed
-- Performing Test C_SUPPORTS_STRING_CONVERSION_FLAG
-- Performing Test C_SUPPORTS_STRING_CONVERSION_FLAG - Failed
-- Performing Test CXX_SUPPORTS_STRING_CONVERSION_FLAG
-- Performing Test CXX_SUPPORTS_STRING_CONVERSION_FLAG - Failed
-- Performing Test C_SUPPORTS_MISLEADING_INDENTATION_FLAG
-- Performing Test C_SUPPORTS_MISLEADING_INDENTATION_FLAG - Success
-- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG
-- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG - Success
-- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS
-- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS - Failed
-- Performing Test C_SUPPORTS_FNO_FUNCTION_SECTIONS
-- Performing Test C_SUPPORTS_FNO_FUNCTION_SECTIONS - Success
-- Performing Test C_SUPPORTS_FFUNCTION_SECTIONS
-- Performing Test C_SUPPORTS_FFUNCTION_SECTIONS - Success
-- Performing Test CXX_SUPPORTS_FFUNCTION_SECTIONS
-- Performing Test CXX_SUPPORTS_FFUNCTION_SECTIONS - Success
-- Performing Test C_SUPPORTS_FDATA_SECTIONS
-- Performing Test C_SUPPORTS_FDATA_SECTIONS - Success
-- Performing Test CXX_SUPPORTS_FDATA_SECTIONS
-- Performing Test CXX_SUPPORTS_FDATA_SECTIONS - Success
-- Looking for os_signpost_interval_begin
-- Looking for os_signpost_interval_begin - not found
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB - Success
-- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB
-- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB - Success
-- Performing Test LLVM_HAS_ATOMICS
-- Performing Test LLVM_HAS_ATOMICS - Success
CMake Error at /var/no-tmpfs/portage/dev-util/lldb-15.0.4/work/cmake/Modules/FindLibEdit.cmake:24 (cmake_push_check_state):
  Unknown CMake command "cmake_push_check_state".
Call Stack (most recent call first):
  cmake/modules/LLDBConfig.cmake:52 (find_package)
  cmake/modules/LLDBConfig.cmake:59 (add_optional_dependency)
  CMakeLists.txt:28 (include)


-- Configuring incomplete, errors occurred!
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".
 * ERROR: dev-util/lldb-15.0.4::gentoo failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  122:  Called src_configure
 *   environment, line 3585:  Called cmake_src_configure
 *   environment, line 1709:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of `emerge --info '=dev-util/lldb-15.0.4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-util/lldb-15.0.4::gentoo'`.
 * The complete build log is located at '/var/log/portage/dev-util:lldb-15.0.4:20221106-161655.log.gz'.
 * For convenience, a symlink to the build log is located at '/var/no-tmpfs/portage/dev-util/lldb-15.0.4/temp/build.log.gz'.
 * The ebuild environment file is located at '/var/no-tmpfs/portage/dev-util/lldb-15.0.4/temp/environment'.
 * Working directory: '/var/no-tmpfs/portage/dev-util/lldb-15.0.4/work/lldb_build'
 * S: '/var/no-tmpfs/portage/dev-util/lldb-15.0.4/work/lldb'

>>> Failed to emerge dev-util/lldb-15.0.4, Log file:

>>>  '/var/log/portage/dev-util:lldb-15.0.4:20221106-161655.log.gz'
Comment 1 CaptainBlood 2022-11-06 15:22:11 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"
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-06 19:44:37 UTC
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".
```
Comment 3 CaptainBlood 2022-11-06 20:11:58 UTC
Created attachment 828145 [details]
CMakeOutput.log
Comment 4 CaptainBlood 2022-11-06 20:13:13 UTC
Created attachment 828147 [details]
CMakeError.log
Comment 5 CaptainBlood 2022-11-07 10:03:10 UTC
Same here on:
emerge -1 mrg --nodeps =dev-util/lldb-15.0.3
Comment 6 CaptainBlood 2022-11-07 11:36:38 UTC
configured fine with USE=-libedit.
currently building here with USE='-python -xml' as preferences.
Comment 7 CaptainBlood 2022-11-07 12:46:24 UTC
module seems here:
ls /usr/share/cmake/Modules/CMakePushCheckState.cmake
/usr/share/cmake/Modules/CMakePushCheckState.cmake
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-11-07 13:33:03 UTC
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.
Comment 9 CaptainBlood 2022-11-07 15:45:19 UTC
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 :)
Comment 10 CaptainBlood 2022-11-07 15:47:15 UTC
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")
Comment 11 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-11-07 15:48:47 UTC
Ok, thanks.
Comment 12 Larry the Git Cow gentoo-dev 2022-11-07 17:27:40 UTC
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(-)
Comment 13 CaptainBlood 2022-11-07 18:34:14 UTC
(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.
Comment 14 CaptainBlood 2022-11-07 18:40:32 UTC
Created attachment 828517 [details]
dev-util/lldb-15.0.3 build log
Comment 15 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-18 07:30:37 UTC
This is fixed in lldb 15.0.5.