Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 828428 - dev-qt/qtwebengine-5.15.2_p20211019 fails to build
Summary: dev-qt/qtwebengine-5.15.2_p20211019 fails to build
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-05 19:02 UTC by i.hamsa
Modified: 2021-12-07 21:25 UTC (History)
2 users (show)

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


Attachments
Build log (build.log.bz2,643.57 KB, application/octet-stream)
2021-12-05 20:04 UTC, i.hamsa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description i.hamsa 2021-12-05 19:02:16 UTC
The package fails to build with a compilation error.

Reproducible: Always

Steps to Reproduce:
emerge dev-qt/qtwebengine
Actual Results:  
After a long frustrating run the build fails

Expected Results:  
The build succeeds (preferably quickly) 

The error message (pulled from the log) goes like this:

[24984/33808] /usr/bin/x86_64-pc-linux-gnu-g++ -MMD -MF obj/content/browser/browser/network_handler.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_NSS_CERT
FAILED: obj/content/browser/browser/network_handler.o
/usr/bin/x86_64-pc-linux-gnu-g++ -MMD -MF obj/content/browser/browser/network_handler.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_NSS_CERTS=1 -DUSE_OZON
{standard input}: Assembler messages:
{standard input}: Warning: end of file not at end of a line; newline inserted
{standard input}:71: Error: no such instruction: `_znst16_s'
x86_64-pc-linux-gnu-g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.

---

emerge --info:

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.4.38-gentoo-x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.4.38-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i7-4770K_CPU_@_3.50GHz-with-glibc2.33
KiB Mem:    16066548 total,  11890708 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 05 Dec 2021 18:30:01 +0000
Head commit of repository gentoo: 0d41ce99e95a7364cd3821748f6c5a992bf526a2
Timestamp of repository raiagent: Sat, 20 Nov 2021 04:36:26 +0000
Head commit of repository raiagent: b515e60da3c1ab581cadfb24ebf31d023b7d777a

sh bash 5.1_p8
ld GNU ld (Gentoo 2.37_p1 p0) 2.37
app-shells/bash:          5.1_p8::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.34.0-r3::gentoo
dev-lang/python:          2.7.18_p13::gentoo, 3.6.15::gentoo, 3.7.12_p1::gentoo, 3.8.12_p1::gentoo, 3.9.9::gentoo, 3.10.0_p1::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.9::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.15.1-r2::gentoo, 1.16.4::gentoo
sys-devel/binutils:       2.37_p1::gentoo
sys-devel/gcc:            9.3.0-r2::gentoo, 10.3.0-r2::gentoo, 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-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    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: 

raiagent
    location: /var/db/repos/raiagent
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/raiagent.git
    masters: gentoo

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

jorgicio
    location: /var/lib/layman/jorgicio
    sync-type: laymansync
    sync-uri: https://github.com/jorgicio/jorgicio-gentoo.git
    masters: gentoo
    priority: 50

sage-on-gentoo
    location: /var/lib/layman/sage-on-gentoo
    sync-type: laymansync
    sync-uri: git://github.com/cschwan/sage-on-gentoo.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/bind"
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="-O2 -pipe -march=native"
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 splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_IL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en ru he"
MAKEOPTS="-j7"
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="/var/tmp"
USE="X a52 aac aacplus aacs acl acpi activities addons adobe-cff allow-bsd allow-sendfilefd alsa alsa-plugin amd64 apng arp asm asn1 autoconf-archive avahi avcodec avformat berkdb bidi bindist bounds-checking branding bzip2 cairo caps cdda cdr cdrom clang cleartype_hinting cli comonad compiler-rt containers contravariant corefonts cracklib cramfs crypt cups curl cxx dbus declarative distributive djvu dlz dri dri3 drm dts dvd dvdr e2fsprogs efi egl eglfs elogind encode epub equalizer espeak exif extra-filters fam ffi ffmpeg filecaps flac fontconfig foomatic gallium gdbm gif glamor gles gles1 gold gpm gtk gtk3 handbook harfbuzz hashable highbitdepth hostname hunspell hyphen iconv icu idn integer-gmp introspection jit jpeg kde kdm kipi kmod kwallet lame latex lcms legacy-systray libcxxabi libffi libglvnd libinput libnotify libtirpc libunwind llvm luatex mad man matroska mesh mmx mmxext mng modules mouse mp3 mp4 mpeg mtl2 mtp mudflap multilib native-exceptions native-extensions ncurses net network-uri nls nptl obex ogg okteta opengl openmp openssl orc ozone pam pango pci pcre pcre16 pdf phonon pie plasma plugin plugins png policykit ppds printsupport properties pulseaudio qml qt5 qthelp rdesktop readline recursion-limit rsync-verify sanitize scripttools sdl seccomp semantic-desktop sha512 sna spell split-usr sse sse2 ssh-agent ssl startup-notification svg swscale tagged tcpd template-haskell themes theora threads tiff tls-heartbeat transformers truetype trust udev udisks unicode unordered-containers upower usb use-network-uri uuid uxa v4l vim-syntax vmci vnc vorbis vsock wallpapers wayland wayland-compositor webengine webkit widgets xattr xcb xcomposite xetex xft xml xnest xorg xv xvmc zeroconf zlib" ABI_X86="64" CAMERAS="ptp2 canon" CPU_FLAGS_X86="mmx sse sse2 sse3 avx avx2 sse4_1 sse4_2" CURL_SSL="openssl" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en ru he" LLVM_TARGETS="X86 BPF" LUA_SINGLE_TARGET="lua5-4" LUA_TARGETS="lua5-4" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" SANE_BACKENDS="gt68xx" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS

=================================================================
                        Package Settings
=================================================================

dev-qt/qtwebengine-5.15.2_p20211019::gentoo was built with the following:
USE="alsa bindist pulseaudio widgets -debug -designer -geolocation -jumbo-build -kerberos -system-ffmpeg -system-icu -test" ABI_X86="(64)"
FEATURES="unmerge-orphans ipc-sandbox usersync userfetch merge-sync splitdebug protect-owned usersandbox preserve-libs fixlafiles ebuild-locks assume-digests userpriv config-protect-if-modified binpkg-dostrip distlocks binpkg-logs unmerge-logs sfperms xattr parallel-fetch network-sandbox multilib-strict pid-sandbox binpkg-docompress sandbox news strict unknown-features-warn qa-unresolved-soname-deps"

papa@gentoojr /tmp $
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-05 19:08:38 UTC
It seems likely it ran out of RAM given it was killed.

Please include the full build.log.
Comment 2 i.hamsa 2021-12-05 19:59:36 UTC
I doubt it. I do not see any messages about killed process in any of the system logs.

It rarely happens that the compiler complains about a non-existing instruction just before being OOM-killed. The complaint about a non-existing instruction and going out of memory could be two manifestations of the same bug. 

network_handler.cc is a relatively small file.

Will attach the log.
Comment 3 i.hamsa 2021-12-05 20:04:42 UTC
Created attachment 757510 [details]
Build log
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-05 23:22:23 UTC
(In reply to i.hamsa from comment #3)
> Created attachment 757510 [details]
> Build log

This still almost certainly seems like OOM or "pre-OOM". Every time I've seen failures like this, it's when memory pressure is extremely high and the OOM killer either got invoked or was about to get invoked.

The "2GB per job" thing is only rough and I'd try again with -j5 or -j6, maybe even lower if your system is in active use. your emerge --info shows 11GB free, hence at most you should be using ~ -j5 or lower.

Please try again with a lower job count. I do understand your point, but I've _only_ ever seen it in situations like I described
Comment 5 i.hamsa 2021-12-06 17:35:10 UTC
The build fails even with -j2.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-06 23:49:08 UTC
(In reply to i.hamsa from comment #5)
> The build fails even with -j2.

Please share the log of it failing with -j2 then, or ideally -j1.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-06 23:52:20 UTC
(In reply to Sam James from comment #6)
> (In reply to i.hamsa from comment #5)
> > The build fails even with -j2.
> 
> Please share the log of it failing with -j2 then, or ideally -j1.

... and verify nothing else is open consuming huge amounts of RAM at the same time when doing the build.
Comment 8 i.hamsa 2021-12-07 21:25:27 UTC
My bad. I did the `ebuild compile` command instead of `emerge` as I didn't want to run a massively long build again just to discover that it fails near the end. I'd rather reuse already built objects. But at this stage `-j7` was already embedded in the generated build script, hardcoded, and no environment variable had any effect. I had to edit the generated script and replace `-j7` with `-j2`, then it worked.