Forums

Skip to content

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

[SOLVED] qtwebengine 5.15.1 fails to build

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
Troopo
Guru
Guru
Posts: 310
Joined: Sun Jun 14, 2015 9:17 pm

[SOLVED] qtwebengine 5.15.1 fails to build

  • Quote

Post by Troopo » Sun Oct 25, 2020 11:15 pm

Hi,

Recent update to qtwebengine has failed to build on my system for some reason.


Regular build fails on dom_window:

Code: Select all

[16033/27764] /usr/bin/x86_64-pc-linux-gnu-g++ -MMD -MF obj/third_party/blink/renderer/core/frame/frame/dom_window.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 -DVK_NO_PROTOTYPES -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 -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DHAVE_PTHREAD -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 -DHAVE_SCTP -DNO_MAIN_THREAD_WRAPPING -DSK_HAS_PNG_LIBRARY -DSK_HAS_WEBP_LIBRARY -DSK_USER_CONFIG_HEADER=\"../../skia/config/SkUserConfig.h\" -DSK_GL -DSK_HAS_JPEG_LIBRARY -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\" -DVK_NO_PROTOTYPES -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DUCHAR_TYPE=uint16_t -DLEVELDB_PLATFORM_CHROMIUM=1 -DLEVELDB_PLATFORM_CHROMIUM=1 -DSUPPORT_WEBGL2_COMPUTE_CONTEXT=1 -DWTF_USE_WEBAUDIO_PFFFT=1 -DUSE_SYSTEM_LIBJPEG -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DUSE_SYSTEM_ZLIB=1 -Igen -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium -Igen -Igen -Igen -Igen -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/libyuv/include -Igen -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/jsoncpp/source/include -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/jsoncpp/generated -Igen -Igen -Igen -Igen -Igen -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen -Igen -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/vulkan/include -Igen -Igen -Igen -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/khronos -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/gpu -Igen/third_party/dawn/src/include -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/dawn/src/include -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/boringssl/src/include -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/ced/src -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/protobuf/src -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/protobuf/src -Igen/protoc_out -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/webrtc_overrides -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/webrtc -Igen/third_party/webrtc -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/abseil-cpp -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/skia -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/libgifcodec -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/vulkan/include -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/skia/third_party/vulkanmemoryallocator -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/vulkan/include -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/angle/include -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/angle/src/common/third_party/base -Igen/angle -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/angle/include -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/v8/include -Igen/v8/include -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/crashpad/crashpad -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/crashpad/crashpad/compat/non_mac -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/crashpad/crashpad/compat/linux -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/crashpad/crashpad/compat/non_win -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/libwebm/source -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/leveldatabase -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/leveldatabase/src -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/leveldatabase/src/include -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -Igen/third_party/perfetto -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/iccjpeg -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/ots/include -I../../../../qtwebengine-everywhere-src-5.15.1/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 ../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/blink/renderer/core/frame/dom_window.cc -o obj/third_party/blink/renderer/core/frame/frame/dom_window.o
ninja: build stopped: subcommand failed.
Here is the full log:
https://www117.zippyshare.com/v/o47EUQKt/file.html

While Jumbo has a different issue, usually i don't use it since it never worked for me but i wanted to compare both attempts.

Code: Select all

[13677/18305] /usr/bin/x86_64-pc-linux-gnu-g++ -MMD -MF obj/gpu/command_buffer/service/gles2_sources/gles2_sources_jumbo_2.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 -DGPU_GLES2_IMPLEMENTATION -DRASTER_IMPLEMENTATION -DWEBGPU_IMPLEMENTATION -DGL_GLEXT_PROTOTYPES -DUSE_GLX -DUSE_EGL -DVK_NO_PROTOTYPES -DSK_HAS_PNG_LIBRARY -DSK_HAS_WEBP_LIBRARY -DSK_USER_CONFIG_HEADER=\"../../skia/config/SkUserConfig.h\" -DSK_GL -DSK_HAS_JPEG_LIBRARY -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\" -DVK_NO_PROTOTYPES -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DHAVE_PTHREAD -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DUCHAR_TYPE=uint16_t -DUSE_SYSTEM_ZLIB=1 -DUSE_VULKAN_XLIB -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/mesa_headers -I. -Igen -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/khronos -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/gpu -Igen -Igen -Igen -Igen -Igen -Igen -Igen -Igen/third_party/dawn/src/include -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/dawn/src/include -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/vulkan/include -Igen -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/perfetto/include -Igen/third_party/perfetto/build_config -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/skia -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/libgifcodec -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/vulkan/include -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/skia/third_party/vulkanmemoryallocator -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/vulkan/include -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/boringssl/src/include -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/protobuf/src -Igen/protoc_out -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/protobuf/src -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/crashpad/crashpad -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/crashpad/crashpad/compat/non_mac -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/crashpad/crashpad/compat/linux -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/crashpad/crashpad/compat/non_win -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/ced/src -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/angle/include -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/angle/src -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/angle/src/common/third_party/base -Igen/angle -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/angle/include -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/angle/include -I../../../../qtwebengine-everywhere-src-5.15.1/src/3rdparty/chromium/third_party/mesa_headers -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 -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g0 -fvisibility=hidden -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 -c gen/gpu/command_buffer/service/gles2_sources_jumbo_2.cc -o obj/gpu/command_buffer/service/gles2_sources/gles2_sources_jumbo_2.o
ninja: build stopped: subcommand failed.
Here is my emerge info:

Code: Select all

Portage 3.0.8 (python 3.7.9-final-0, default/linux/amd64/17.0/desktop/plasma/systemd, gcc-9.3.0, glibc-2.31-r6, 5.4.66-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-5.4.66-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-gentoo-2.7
KiB Mem:    16361652 total,   3466660 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 25 Oct 2020 09:00:01 +0000
Head commit of repository gentoo: 03503548a25e12f5271d3fe15f933655e90fac84
sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18-r4::gentoo, 3.7.9::gentoo, 3.8.5::gentoo
dev-util/cmake:           3.17.4-r1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.34-r2::gentoo
sys-devel/gcc:            9.3.0-r1::gentoo
sys-devel/gcc-config:     2.3.2::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r6::gentoo
Repositories:

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

Tron
    location: /usr/local/portage
    masters: gentoo

brother-overlay
    location: /var/lib/layman/brother-overlay
    masters: gentoo
    priority: 50

jOverlay
    location: /var/lib/layman/jOverlay
    masters: gentoo
    priority: 50

jorgicio
    location: /var/lib/layman/jorgicio
    masters: gentoo
    priority: 50

nest
    location: /var/lib/layman/nest
    masters: gentoo
    priority: 50

ricerlay
    location: /var/lib/layman/ricerlay
    masters: gentoo
    priority: 50

stha09
    location: /var/lib/layman/stha09
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/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"
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="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/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="/tmp"
USE="X a52 aac acl acpi activities alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus declarative dri dts dvd dvdr emboss encode exif ffmpeg flac fortran gdbm gif gpm gstreamer gtk gui iconv icu ipv6 jpeg kde kipi kwallet lcms libglvnd libnotify libtirpc mad minizip mng mp3 mp4 mpeg mtp multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qml qt5 readline sdl seccomp semantic-desktop spell split-usr sqlite ssl startup-notification svg systemd tcpd tiff tk truetype udev udisks unicode upower usb vorbis widgets wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby25 ruby26" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Any help is appreciated also let me know if you need any other info.
Last edited by Troopo on Thu Oct 29, 2020 4:14 pm, edited 1 time in total.
Top
Buffoon
Veteran
Veteran
User avatar
Posts: 1369
Joined: Wed Jun 17, 2015 2:22 pm
Location: EU or US

  • Quote

Post by Buffoon » Sun Oct 25, 2020 11:42 pm

Next time please post the log using Gentoo tool wgetpaste. If the log is too big for pastebin just cut a big chunk from the end. Most people do not want to download and unpack any logs. I did it only because I got curious and I had some free time. You are running parallel make, thus the error is way back in the log. Your compiler process is being killed, most likely you are running too many make instances concurrently and as a result you are running out of resources.
Top
Ionen
Developer
Developer
User avatar
Posts: 3013
Joined: Thu Dec 06, 2018 2:23 pm

  • Quote

Post by Ionen » Sun Oct 25, 2020 11:52 pm

Code: Select all

PORTAGE_TMPDIR="/tmp"
Since /tmp over /var/tmp I "assume" that's tmpfs, combined with -j8 and only 16GB ram+noswap, there's good odds you ran out of ram/resources as post above pointed.

For ram there may be a note about it near the end of your `dmesg` output, and the build log likely has a line containing this:

Code: Select all

fatal error: Killed signal terminated program cc1plus
Alternatively perhaps your tmpfs ran out of space (long story short, in either cases don't build this on tmpfs).

If something else, need to see more complete logs, just guessing here.
Top
Hu
Administrator
Administrator
Posts: 24385
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Mon Oct 26, 2020 12:39 am

Writing as someone who just today briefly exhausted a tmpfs while building something a bit too big for it, I can say that you won't get a SIGKILL over exhausting tmpfs (that is, trying to write 8G of files into a tmpfs mounted with size=7G). Instead, any attempt to write to the tmpfs fails with ENOSPC ("No space left on device"), which will in almost all cases be an unhandled error, and the build will terminate. Well behaved builds will write a message to stderr mentioning "No space left on device" as the failure reason. In my case, I had sufficient RAM+swap to accommodate the tmpfs being full and still keep all my programs alive, so the only negative was that I had to restart the build with more space.

However, to Ionen's point, if you don't have sufficient RAM+swap to support all your open programs, plus all the space used by the tmpfs, then you will get an Out Of Memory, and likely a SIGKILL. This would happen even if you had mounted the tmpfs with size= set to a value far greater than the package needs. In such a scenario, you haven't exhausted your tmpfs - but you have exhausted your virtual memory.
Top
Troopo
Guru
Guru
Posts: 310
Joined: Sun Jun 14, 2015 9:17 pm

  • Quote

Post by Troopo » Thu Oct 29, 2020 4:13 pm

Buffoon wrote:Next time please post the log using Gentoo tool wgetpaste. If the log is too big for pastebin just cut a big chunk from the end. Most people do not want to download and unpack any logs. I did it only because I got curious and I had some free time. You are running parallel make, thus the error is way back in the log. Your compiler process is being killed, most likely you are running too many make instances concurrently and as a result you are running out of resources.
Sorry, you are right but it was just too big and i had cases where people needed the full log but i did add the end as part of my post here in the forums, was it not long enough?
I'm curious where did you see signs of the problem you described?

Ionen wrote:

Code: Select all

PORTAGE_TMPDIR="/tmp"
Since /tmp over /var/tmp I "assume" that's tmpfs, combined with -j8 and only 16GB ram+noswap, there's good odds you ran out of ram/resources as post above pointed.

For ram there may be a note about it near the end of your `dmesg` output, and the build log likely has a line containing this:

Code: Select all

fatal error: Killed signal terminated program cc1plus
Alternatively perhaps your tmpfs ran out of space (long story short, in either cases don't build this on tmpfs).

If something else, need to see more complete logs, just guessing here.
Thanks this is exactly right on both
Hu wrote:Writing as someone who just today briefly exhausted a tmpfs while building something a bit too big for it, I can say that you won't get a SIGKILL over exhausting tmpfs (that is, trying to write 8G of files into a tmpfs mounted with size=7G). Instead, any attempt to write to the tmpfs fails with ENOSPC ("No space left on device"), which will in almost all cases be an unhandled error, and the build will terminate. Well behaved builds will write a message to stderr mentioning "No space left on device" as the failure reason. In my case, I had sufficient RAM+swap to accommodate the tmpfs being full and still keep all my programs alive, so the only negative was that I had to restart the build with more space.

However, to Ionen's point, if you don't have sufficient RAM+swap to support all your open programs, plus all the space used by the tmpfs, then you will get an Out Of Memory, and likely a SIGKILL. This would happen even if you had mounted the tmpfs with size= set to a value far greater than the package needs. In such a scenario, you haven't exhausted your tmpfs - but you have exhausted your virtual memory.
Thanks for the additional info it really helps, when i created this system i made it RAM only at that time 16G was a lot and i didn't think anything will eat that much ram so no swap was needed (also hdd is slow and ssd didn't exist yet).
I was wrong and didn't take into account many thing including building packages on the system as heavy as qt and chrome and\or having programs like firefox eat up big portions of ram while attempting to build such heavy packages on the system.
So this is a recipe for running out of memory, strangely enough some version compile without a hitch while others failed like this, my guess is it depends on the programs running at the time of a build and the version being build, just luck of sorts.

Lessons learned, with this i just wanted to improve my debugging skills and understand what is the issue since the build wasn't being the most user friendly one.
Thanks everyone for the help.
Top
ff11
l33t
l33t
User avatar
Posts: 665
Joined: Mon Mar 10, 2014 10:24 pm

  • Quote

Post by ff11 » Thu Oct 29, 2020 4:41 pm

Troopo wrote:...
Thanks for the additional info it really helps, when i created this system i made it RAM only at that time 16G was a lot and i didn't think anything will eat that much ram so no swap was needed (also hdd is slow and ssd didn't exist yet).
I was wrong and didn't take into account many thing including building packages on the system as heavy as qt and chrome and\or having programs like firefox eat up big portions of ram while attempting to build such heavy packages on the system.
So this is a recipe for running out of memory, strangely enough some version compile without a hitch while others failed like this, my guess is it depends on the programs running at the time of a build and the version being build, just luck of sorts.

Lessons learned, with this i just wanted to improve my debugging skills and understand what is the issue since the build wasn't being the most user friendly one.
Thanks everyone for the help.
Remember that you can also work the solution for a middle ground:

1- You can reduce the number of threads, per package:

/etc/portage/env/makeopts-j2.conf

Code: Select all

MAKEOPTS='-j2'
/etc/portage/package.env

Code: Select all

dev-qt/qtwebengine makeopts-j2.conf
This will reduce a lot the use of RAM memory in this package.

2- You can also use zram instead of tmpfs. I'm getting good results using zram with zstd. But remember to create a much larger partition (it may even be larger than the RAM total size, because of the compression).
In one of my builds, portage was using around 4GB of space, but with zstd compression, zram was actually only using around 1.5GB of RAM for the files. The compression rate for build artifacts is quite good.
| Proverbs 26:12 |
| There is more hope for a fool than for a wise man that are wise in his own eyes. |
* AlphaGo - The Movie - Full Documentary "I want to apologize for being so powerless" - Lee
Top
Troopo
Guru
Guru
Posts: 310
Joined: Sun Jun 14, 2015 9:17 pm

  • Quote

Post by Troopo » Thu Oct 29, 2020 5:35 pm

ff11 wrote:
Troopo wrote:...
Thanks for the additional info it really helps, when i created this system i made it RAM only at that time 16G was a lot and i didn't think anything will eat that much ram so no swap was needed (also hdd is slow and ssd didn't exist yet).
I was wrong and didn't take into account many thing including building packages on the system as heavy as qt and chrome and\or having programs like firefox eat up big portions of ram while attempting to build such heavy packages on the system.
So this is a recipe for running out of memory, strangely enough some version compile without a hitch while others failed like this, my guess is it depends on the programs running at the time of a build and the version being build, just luck of sorts.

Lessons learned, with this i just wanted to improve my debugging skills and understand what is the issue since the build wasn't being the most user friendly one.
Thanks everyone for the help.
Remember that you can also work the solution for a middle ground:

1- You can reduce the number of threads, per package:

/etc/portage/env/makeopts-j2.conf

Code: Select all

MAKEOPTS='-j2'
/etc/portage/package.env

Code: Select all

dev-qt/qtwebengine makeopts-j2.conf
This will reduce a lot the use of RAM memory in this package.

2- You can also use zram instead of tmpfs. I'm getting good results using zram with zstd. But remember to create a much larger partition (it may even be larger than the RAM total size, because of the compression).
In one of my builds, portage was using around 4GB of space, but with zstd compression, zram was actually only using around 1.5GB of RAM for the files. The compression rate for build artifacts is quite good.
Interesting :D
How do i know how many threads do i need?
Similarly with zram how much is enough?
Top
ff11
l33t
l33t
User avatar
Posts: 665
Joined: Mon Mar 10, 2014 10:24 pm

  • Quote

Post by ff11 » Thu Oct 29, 2020 5:49 pm

Troopo wrote:...
How do i know how many threads do i need?
Well, this is just a suggestion, as it varies from package to package, but for dev-qt/qtwebengine, you can think of 2GB of RAM per thread. And do the calculations based on your use, as it's good to be able to use the machine while installing in the background.
Troopo wrote:Similarly with zram how much is enough?
Well, as for zram, it will only allocate what it's using (and unlike tmpfs, it actually tells the system how much it's using, making it easier to monitor). Since you have 16GB of ram, you can easily create 16GB partitions, which will not be an issue (this 16GB, will use something around 6GB of the real RAM with zstd, and only if it's full). You can monitor with the zramctl command.

I recommend reading these 2 guides:
Discovering zram and replacing all tmpfs
https://wiki.gentoo.org/wiki/Zram
| Proverbs 26:12 |
| There is more hope for a fool than for a wise man that are wise in his own eyes. |
* AlphaGo - The Movie - Full Documentary "I want to apologize for being so powerless" - Lee
Top
Troopo
Guru
Guru
Posts: 310
Joined: Sun Jun 14, 2015 9:17 pm

  • Quote

Post by Troopo » Fri Oct 30, 2020 1:25 am

ff11 wrote:
Troopo wrote:...
How do i know how many threads do i need?
Well, this is just a suggestion, as it varies from package to package, but for dev-qt/qtwebengine, you can think of 2GB of RAM per thread. And do the calculations based on your use, as it's good to be able to use the machine while installing in the background.
Troopo wrote:Similarly with zram how much is enough?
Well, as for zram, it will only allocate what it's using (and unlike tmpfs, it actually tells the system how much it's using, making it easier to monitor). Since you have 16GB of ram, you can easily create 16GB partitions, which will not be an issue (this 16GB, will use something around 6GB of the real RAM with zstd, and only if it's full). You can monitor with the zramctl command.

I recommend reading these 2 guides:
Discovering zram and replacing all tmpfs
https://wiki.gentoo.org/wiki/Zram
Thank you!
Top
Post Reply

9 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