Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

[SOLVED] unable to emerge KDE-related apps, ninja error

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
leifdotwav
n00b
n00b
Posts: 24
Joined: Thu Oct 21, 2021 4:29 pm

[SOLVED] unable to emerge KDE-related apps, ninja error

  • Quote

Post by leifdotwav » Thu Nov 18, 2021 3:38 am

hey all,
i'm trying to do a fresh install of gentoo using the kde plasma environment. however, i can't seem to emerge konsole or dolphin, as both of them fail to compile. during the build process, this one line stuck out to me the most:

Code: Select all

[0/1] /usr/bin/cmake --regenerate-during-build -S/var/tmp/portage/kde-apps/konsole-21.04.3-r4/work/konsole-21.04.3 -B/var/tmp/portage/kde-apps/konsole-21.04.3-r4/work/konsole-21.04.3_build
CMake Warning (dev) at /usr/share/ECM/modules/ECMFindModuleHelpers.cmake:112 (message):
  Your project should require at least CMake 3.16.0 to use FindKF5.cmake
Call Stack (most recent call first):
  /usr/share/ECM/find-modules/FindKF5.cmake:30 (ecm_find_package_version_check)
  CMakeLists.txt:50 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.
the build attempt also said:

Code: Select all

ninja: error: manifest 'build.ninja' still dirty after 100 tries
info on the build:

Code: Select all

Portage 3.0.28 (python 3.9.8-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-11.2.0, glibc-2.33-r7, 5.13.0-19-generic x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.13.0-19-generic-x86_64-AMD_Ryzen_3_3100_4-Core_Processor-with-glibc2.33
KiB Mem:    16267072 total,   8954236 free
KiB Swap:    2097148 total,   2097148 free
Timestamp of repository gentoo: Thu, 18 Nov 2021 03:00:01 +0000
Head commit of repository gentoo: 029532544d5edfe5fc70413a827831932e3c0b21
sh bash 5.1_p8
ld GNU ld (Gentoo 2.37_p1 p0) 2.37
app-shells/bash:          5.1_p8::gentoo
dev-lang/perl:            5.34.0-r3::gentoo
dev-lang/python:          3.9.8::gentoo
dev-lang/rust:            1.56.1::gentoo
dev-util/cmake:           3.20.5::gentoo
sys-apps/baselayout:      2.7-r3::gentoo
sys-apps/openrc:          0.44.8::gentoo
sys-apps/sandbox:         2.25::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:       1.16.4::gentoo
sys-devel/binutils:       2.37_p1::gentoo
sys-devel/gcc:            11.2.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=znver2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=znver2"
DISTDIR="/var/cache/distfiles"
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"
FCFLAGS="-O2 -pipe -march=znver2"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-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 strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=znver2"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_CA"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
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"
USE="X a52 aac acl acpi activities alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus declarative dri dts dvd dvdr elogind emboss encode exif ffmpeg flac fontconfig fortran gdbm gif gimp gpm gtk gui iconv icu ipv6 jpeg jpeg2k kde kipi kwallet lcms libglvnd libnotify libtirpc lm-sensors mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf plasma png policykit ppds pulseaudio qml qt5 quicktime readline sdl seccomp semantic-desktop spell split-usr ssl startup-notification svg tiff truetype udev udisks unicode upower usb vim-syntax vnc vorbis webp widgets wifi wxwidgets x264 xattr xcb xinerama xml xv xvid zip zlib zsh-completion" ABI_X86="64" ADA_TARGET="gnat_2019" 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_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
if needed, i can post the entire output of the build, but i think this is what's wrong. thanks in advance.
Last edited by leifdotwav on Thu Nov 18, 2021 7:17 pm, edited 1 time in total.
Top
sam_
Developer
Developer
User avatar
Posts: 2818
Joined: Fri Aug 14, 2020 12:33 am

Re: unable to emerge KDE-related apps, cmake/ninja error

  • Quote

Post by sam_ » Thu Nov 18, 2021 5:00 am

leifdotwav wrote:hey all,

Code: Select all

ninja: error: manifest 'build.ninja' still dirty after 100 tries
This almost certainly means your clock is wrong. Try chrony or similar.
Top
leifdotwav
n00b
n00b
Posts: 24
Joined: Thu Oct 21, 2021 4:29 pm

Re: unable to emerge KDE-related apps, cmake/ninja error

  • Quote

Post by leifdotwav » Thu Nov 18, 2021 3:27 pm

sam_ wrote:
leifdotwav wrote:hey all,

Code: Select all

ninja: error: manifest 'build.ninja' still dirty after 100 tries
This almost certainly means your clock is wrong. Try chrony or similar.
synced my time, and waited a few hours just to be safe (i also had to sleep), logged back into my setup, and the emerge worked??? thanks so much! it looks like you're a dev for gentoo, so could you explain why the time needs to be synced for certain emerges to work? thanks in advance.
Top
sam_
Developer
Developer
User avatar
Posts: 2818
Joined: Fri Aug 14, 2020 12:33 am

Re: unable to emerge KDE-related apps, cmake/ninja error

  • Quote

Post by sam_ » Fri Nov 19, 2021 9:31 am

leifdotwav wrote:
sam_ wrote:
leifdotwav wrote:hey all,

Code: Select all

ninja: error: manifest 'build.ninja' still dirty after 100 tries
This almost certainly means your clock is wrong. Try chrony or similar.
synced my time, and waited a few hours just to be safe (i also had to sleep), logged back into my setup, and the emerge worked??? thanks so much! it looks like you're a dev for gentoo, so could you explain why the time needs to be synced for certain emerges to work? thanks in advance.
Sure! The idea is that it needs to be sure that there aren't stale files left over by e.g. the upstream developer who made the tarball. Or maybe that the generated Makefiles (or ninja files) are out of sync with the list of things to build. The generated files must have a timestamp after the list of things to build, which ensures it is fully up to date.

If the generated files look like they were modified before the list of things to build (which we use to generate them), it implies that our generator is doing something wrong. That's what it means when it says "still dirty after 100 tries". It's trying to regenerate over and over but the timestamps still don't make sense to it.

I hope that kind of makes sense, I think I've got it the right way around :lol:
Top
Hu
Administrator
Administrator
Posts: 24403
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Fri Nov 19, 2021 8:28 pm

Generally, most build systems will have this requirement regarding time. Only the simplest ones, which run every step from beginning to end, every time, can ignore the clock. Anything that supports resuming (and most developers quickly find themselves wanting that) will inspect times to determine what steps to skip. As sam_ says, if a newly generated file is older than the file from which it was created, the build system will usually react badly. The careful ones abort with an error. The sloppy ones just keep going, and risk producing nonsensical results.
Top
Post Reply

5 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic