The package dev-qt/qtwebengine-5.15.2_p20211216 fails to build. I initially had ccache enabled. Next I tried without ccache. Till now, I have tried 3-4 times and it always fails. Build in done in tmpfs, but there's always enough space available when it fails. Any pointers on what could be the reason for this failure will be much appreciated. Reproducible: Always Steps to Reproduce: 1. FEATURES="-ccache" emerge -auDv dev-qt/qtwebengine 2. 3. Actual Results: failed to install tmpfs size when it failed. ~ » df -h /tmp / Filesystem Size Used Avail Use% Mounted on tmpfs 13G 4.7G 7.7G 38% /tmp /dev/root 48G 25G 23G 52% / emerge --info: ~ » emerge --info dev-qt/qtwebengine Portage 3.0.28 (python 3.9.9-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-11.2.0, glibc-2.33-r7, 5.15.11-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.15.11-gentoo-x86_64-Intel-R-_Core-TM-_i7-8550U_CPU_@_1.80GHz-with-glibc2.33 KiB Mem: 16137840 total, 4699056 free KiB Swap: 0 total, 0 free Head commit of repository gentoo: 1e206bc77f4a5cf072bbfffde9b0f93bdc717f32 Head commit of repository tlp: 96db20c75e0f9a934013a77c573f16b8d598f193 sh bash 5.1_p8 ld GNU ld (Gentoo 2.37_p1 p0) 2.37 ccache version 4.5.1 [disabled] app-misc/pax-utils: 1.3.3::gentoo app-shells/bash: 5.1_p8::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.34.0-r6::gentoo dev-lang/python: 2.7.18_p13::gentoo, 3.9.9::gentoo, 3.10.0_p1::gentoo dev-lang/rust-bin: 1.56.1::gentoo dev-util/ccache: 4.5.1::gentoo dev-util/cmake: 3.21.4::gentoo dev-util/meson: 0.59.4::gentoo sys-apps/baselayout: 2.7-r3::gentoo sys-apps/openrc: 0.44.10::gentoo sys-apps/sandbox: 2.25::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.71-r1::gentoo sys-devel/automake: 1.13.4-r2::gentoo, 1.16.4::gentoo sys-devel/binutils: 2.37_p1::gentoo sys-devel/binutils-config: 5.4::gentoo sys-devel/clang: 13.0.0::gentoo sys-devel/gcc: 11.2.0::gentoo sys-devel/gcc-config: 2.5-r1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/llvm: 13.0.0::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.15-r3::gentoo (virtual/os-headers) sys-libs/glibc: 2.33-r7::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: git sync-uri: https://github.com/gentoo/gentoo.git priority: -1000 myself location: /usr/local/portage masters: gentoo priority: 0 tlp location: /var/db/repos/tlp sync-type: git sync-uri: https://github.com/dywisor/tlp-portage masters: gentoo ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/xsessions" 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 /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="--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" FCFLAGS="-O2 -pipe" 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" GENTOO_MIRRORS="https://mirror.rackspace.com/gentoo/ https://ftp.jaist.ac.jp/pub/Linux/Gentoo/ https://download.nus.edu.sg/mirror/gentoo/ http://ftp.twaren.net/Linux/Gentoo/" LANG="en_US.UTF8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en en_US" MAKEOPTS="-j2" PKGDIR="/var/cache/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="/tmp/var_tmp" SHELL="/bin/zsh" USE="X a52 aac accessibility acl acpi activities alsa amd64 aspell avahi ayatana bash-completion bluetooth branding bzip2 cairo cdda cddb cdr clang cli crypt cryptsetup cups curl curlwrappers dbus declarative device-mapper djvu dri drm dts dvd dvdr elogind encode exif fbcon ffmpeg flac fontconfig ftp fuse g3dvl gallium gdbm gif git glamor gnutls gphoto2 gpm gstreamer gtk gtk3 gtkstyle gui iconv icu imagemagick inotify jpeg jpeg2k kde kipi kwallet lame latex lcms libglvnd libinput libsamplerate libtirpc llvm lzma mad matroska mmap mng mp3 mp4 mpeg mpris multilib musepack ncurses networkmanager nls nptl ogg opengl openmp opus oss pam pango pch pcmcia pcre pdf plasma png policykit ppds pth pulseaudio qml qt5 readline replaygain savedconfig sdl seccomp smp speex spell split-usr sqlite srt ssl svg system-sqlite taglib theora threads tiff truetype udev unicode upower usb uxa v4l v4l2 vaapi vim-syntax vorbis webp widgets wifi wmf x264 x265 xattr xcb xcf xcomposite xft xinerama xml xmp xorg xosd xpm xv xvid yv12 zeroconf zlib zsh-completion" ABI_X86="64" ADA_TARGET="gnat_2020" ALSA_CARDS="hda-intel" 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" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="avx avx2 f16c fma fma3 mmx mmx2 sse sse2 sse3 ssse3 mmxext popcnt sse4_1 sse4_2" 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 wacom" KERNEL="linux" L10N="en en_US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="BPF" 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" USERLAND="GNU" VIDEO_CARDS="intel vesa i965 iris" 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: ADDR2LINE, AR, 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, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS ================================================================= Package Settings ================================================================= dev-qt/qtwebengine-5.15.2_p20211019::gentoo was built with the following: USE="alsa jumbo-build pulseaudio system-ffmpeg system-icu widgets -bindist -debug -designer -geolocation -kerberos -test" ABI_X86="(64)" FEATURES="news strict xattr merge-sync multilib-strict distlocks sandbox pid-sandbox assume-digests ccache unmerge-logs qa-unresolved-soname-deps usersync ipc-sandbox unmerge-orphans network-sandbox binpkg-logs usersandbox binpkg-docompress unknown-features-warn userfetch binpkg-dostrip ebuild-locks config-protect-if-modified preserve-libs notitles protect-owned sfperms fixlafiles parallel-fetch userpriv"
No build.log?
gzipped build.log (original size 35M). FAILED: obj/third_party/blink/renderer/core/inspector/inspector/inspector_jumbo_3.o /usr/bin/x86_64-pc-linux-gnu-g++ -MMD -MF obj/third_party/blink/renderer/core/inspector/inspector/inspector_jumbo_3.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -DTOOLKIT_QT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DBLINK_CORE_IMPLEMENTATION=1 -DGL_GLEXT_PROTOTYPES -DUSE_GLX -DUSE_EGL -DBLINK_IMPLEMENTATION=1 -DINSIDE_BLINK -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DUCHAR_TYPE=uint16_t -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_POSIX -DWEBRTC_LINUX -DABSL_ALLOCATOR_NOTHROW=1 -DWEBRTC_USE_BUILTIN_ISAC_FIX=0 -DWEBRTC_USE_BUILTIN_ISAC_FLOAT=1 -DWEBRTC_USE_X11 -DWEBRTC_USE_X11 -DHAVE_SCTP -DNO_MAIN_THREAD_WRAPPING -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DHAVE_PTHREAD -DSK_CODEC_DECODES_PNG -DSK_CODEC_DECODES_WEBP -DSK_ENCODE_PNG -DSK_ENCODE_WEBP -DSK_USER_CONFIG_HEADER=\"../../skia/config/SkUserConfig.h\" -DSK_GL -DSK_CODEC_DECODES_JPEG -DSK_ENCODE_JPEG -DSK_USE_LIBGIFCODEC -DSK_VULKAN_HEADER=\"../../skia/config/SkVulkanConfig.h\" -DSK_VULKAN=1 -DSK_SUPPORT_GPU=1 -DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\" -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DV8_REVERSE_JSARGS -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DUCHAR_TYPE=uint16_t -DCRASHPAD_ZLIB_SOURCE_EXTERNAL -DUSE_SYSTEM_ZLIB=1 -DLEVELDB_PLATFORM_CHROMIUM=1 -DLEVELDB_PLATFORM_CHROMIUM=1 -DSUPPORT_WEBGL2_COMPUTE_CONTEXT=1 -DWTF_USE_WEBAUDIO_PFFFT=1 -DUSE_BLINK_V8_BINDING_NEW_IDL_INTERFACE -DUSE_SYSTEM_LIBJPEG -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DV8_REVERSE_JSARGS -I. -Igen -I../../../../qtwebengine-5.15.2_p20211216/src/3rdparty/chromium -I../../../../qtwebengine-5.15.2_p20211216/src/3rdparty/chromium/third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -Igen -Igen -Igen -Igen -I../../../../qtwebengine-5.15.2_p20211216/src/3rdparty/chromium/third_party/libyuv/include -Igen -I../../../../qtwebengine-5.15.2_p20211216/src/3rdparty/chromium/third_party/jsoncpp/source/include -Igen -Igen -Igen -Igen -Igen -Igen -Igen -I../../../../qtwebengine-5.15.2_p20211216/src/3rdparty/chromium/third_party/vulkan_headers/include -Igen -Igen -Igen -I../../../../qtwebengine-5.15.2_p20211216/src/3rdparty/chromium/third_party/khronos -I../../../../qtwebengine-5.15.2_p20211216/src/3rdparty/chromium/gpu -Igen/third_party/dawn/src/include -I../../../../qtwebengine-5.15.2_p20211216/src/3rdparty/chromium/third_party/dawn/src/include -I../../../../qtwebengine-5.15.2_p20211216/src/3rdparty/chromium/third_party/abseil-cpp -I../../../../qtwebengine-5.15.2_p20211216/src/3rdparty/chromium/third_party/boringssl/src/include -I../../../../qtwebengine-5.15.2_p20211216/src/3rdparty/chromium/third_party/protobuf/src -Igen/protoc_out -I../../../../qtwebengine-5.15.2_p20211216/src/3rdparty/chromium/third_party/ced/src -I../../../../qtwebengine-5.15.2_p20211216/src/3rdparty/chromium/third_party/webrtc_overrides -I../../../../qtwebengine-5.15.2_p20211216/src/3rdparty/chromium/third_party/webrtc -Igen/third_party/webrtc -I../../../../qtwebengine-5.15.2_p20211216/src/3rdparty/chromium/third_party/protobuf/src -I../../../../qtwebengine-5.15.2_p20211216/src/3rdparty/chromium/third_party/skia -I../../../../qtwebengine-5.15.2_p20211216/src/3rdparty/chromium/third_party/libgifcodec -I../../../../qtwebengine-5.15.2_p20211216/src/3rdparty/chromium/third_party/vulkan/include -I../../../../qtwebengine-5.15.2_p20211216/src/3rdparty/chromium/third_party/vulkan_headers/include -I../../../../qtwebengine-5.15.2_p20211216/src/3rdparty/chromium/third_party/angle/include -I../../../../qtwebengine-5.15.2_p20211216/src/3rdparty/chromium/third_party/angle/src/common/third_party/base -Igen/angle -I../../../../qtwebengine-5.15.2_p20211216/src/3rdparty/chromium/third_party/angle/include -I../../../../qtwebengine-5.15.2_p20211216/src/3rdparty/chromium/v8/include -Igen/v8/include -I../../../../qtwebengine-5.15.2_p20211216/src/3rdparty/chromium/third_party/crashpad/crashpad -I../../../../qtwebengine-5.15.2_p20211216/src/3rdparty/chromium/third_party/crashpad/crashpad/compat/non_mac -I../../../../qtwebengine-5.15.2_p20211216/src/3rdparty/chromium/third_party/crashpad/crashpad/compat/linux -I../../../../qtwebengine-5.15.2_p20211216/src/3rdparty/chromium/third_party/crashpad/crashpad/compat/non_win -I../../../../qtwebengine-5.15.2_p20211216/src/3rdparty/chromium/third_party/mesa_headers -I../../../../qtwebengine-5.15.2_p20211216/src/3rdparty/chromium/third_party/libwebm/source -I../../../../qtwebengine-5.15.2_p20211216/src/3rdparty/chromium/third_party/leveldatabase -I../../../../qtwebengine-5.15.2_p20211216/src/3rdparty/chromium/third_party/leveldatabase/src -I../../../../qtwebengine-5.15.2_p20211216/src/3rdparty/chromium/third_party/leveldatabase/src/include -I../../../../qtwebengine-5.15.2_p20211216/src/3rdparty/chromium/third_party/iccjpeg -I../../../../qtwebengine-5.15.2_p20211216/src/3rdparty/chromium/third_party/ots/include -I../../../../qtwebengine-5.15.2_p20211216/src/3rdparty/chromium/v8/include -Igen/v8/include -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pipe -pthread -m64 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -fno-delete-null-pointer-checks -Wno-comments -Wno-packed-not-aligned -Wno-dangling-else -Wno-missing-field-initializers -Wno-unused-parameter -fno-omit-frame-pointer -fvisibility=hidden -O2 -fno-ident -fdata-sections -ffunction-sections -g0 -Wno-unused-variable -I/usr/include/nss -I/usr/include/nspr -I/usr/include/libpng16 -I/usr/include/libxml2 -I/usr/include/libxml2 -std=gnu++14 -Wno-narrowing -Wno-class-memaccess -Wno-attributes -Wno-class-memaccess -Wno-subobject-linkage -Wno-invalid-offsetof -Wno-return-type -Wno-deprecated-copy -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -Wno-deprecated-declarations -c gen/third_party/blink/renderer/core/inspector/inspector_jumbo_3.cc -o obj/third_party/blink/renderer/core/inspector/inspector/inspector_jumbo_3.o x86_64-pc-linux-gnu-g++: fatal error: Killed signal terminated program cc1plus compilation terminated. ninja: build stopped: subcommand failed. make[3]: *** [Makefile.gn_run:573: run_ninja] Error 1 make[3]: Leaving directory '/tmp/var_tmp/portage/dev-qt/qtwebengine-5.15.2_p20211216/work/qtwebengine-5.15.2_p20211216_build/src/core' make[2]: *** [Makefile:82: sub-gn_run-pro-make_first] Error 2 make[2]: Leaving directory '/tmp/var_tmp/portage/dev-qt/qtwebengine-5.15.2_p20211216/work/qtwebengine-5.15.2_p20211216_build/src/core' make[1]: *** [Makefile:78: sub-core-make_first] Error 2 make[1]: Leaving directory '/tmp/var_tmp/portage/dev-qt/qtwebengine-5.15.2_p20211216/work/qtwebengine-5.15.2_p20211216_build/src' make: *** [Makefile:49: sub-src-make_first] Error 2 * ERROR: dev-qt/qtwebengine-5.15.2_p20211216::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=dev-qt/qtwebengine-5.15.2_p20211216::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-qt/qtwebengine-5.15.2_p20211216::gentoo'`. * The complete build log is located at '/tmp/var_tmp/portage/dev-qt/qtwebengine-5.15.2_p20211216/temp/build.log'.
Can't seem to attach build.log.gz . Server is giving me error. emerge -pv here: ~ » emerge -pv qtwebengine These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild U ] dev-qt/qtwebengine-5.15.2_p20211216:5/5.15::gentoo [5.15.2_p20211019:5/5.15::gentoo] USE="alsa jumbo-build pulseaudio system-ffmpeg system-icu widgets -bindist -debug -designer -geolocation -kerberos -test" 0 KiB Total: 1 package (1 upgrade), Size of downloads: 0 KiB
Created attachment 761773 [details] build.log for dev-qt/qtwebengine-5.15.2_p20211216 Attached. Had permission issue earlier.
You've run out of RAM: x86_64-pc-linux-gnu-g++: fatal error: Killed signal terminated program cc1plus compilation terminated. ninja: build stopped: subcommand failed. make[3]: *** [Makefile.gn_run:573: run_ninja] Error 1 I would really not use a tmpfs for compiling qtwebengine as it'll consume your RAM.
Thank you for diagnosing this so quickly! I will turn off compilation in ram. Perhaps the newer version requires more ram (previous version was fine).
No problem, glad you're sorted! Yeah, that wouldn't surprise me at all. fwiw zram does help a bit but not ideal.
you should consider adding just a bit of swap to system too. 4G will be enough just as a safety blanket. don't even need a partition for that, it can be a file on filesystem.