Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 750236 - GCC 9.3.0 bootstrap-lean error on 32bit
Summary: GCC 9.3.0 bootstrap-lean error on 32bit
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-19 19:07 UTC by PetaMem R&D
Modified: 2020-11-16 17:03 UTC (History)
2 users (show)

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


Attachments
GCC build logs (gcc-build-logs.tar.bz2,304.15 KB, application/x-bzip)
2020-10-19 19:07 UTC, PetaMem R&D
Details

Note You need to log in before you can comment on or make changes to this bug.
Description PetaMem R&D 2020-10-19 19:07:25 UTC
Created attachment 667181 [details]
GCC build logs

All tries to compile GCC above 9.2.0 on 32bit KVM machines (each got more than 3GB RAM) fail.

* If you need support, post the output of `emerge --info '=sys-devel/gcc-9.3.0-r1::gentoo'`,

=>

Portage 3.0.8 (python 3.8.6-final-0, default/linux/x86/17.0, gcc-9.2.0, glibc-2.32-r2, 5.4.22 i686)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.4.22-i686-Intel-R-_Xeon-R-_CPU_E5-2620_v3_@_2.40GHz-with-glibc2.1.3
KiB Mem:     3425136 total,   2560880 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 18 Oct 2020 23:15:01 +0000
Head commit of repository gentoo: a2d83857f2628bc1ced7e32e7f3c45819fc6d789
sh bash 5.0_p18
ld GNU ld (Gentoo 2.35.1 p1) 2.35.1
app-shells/bash:          5.0_p18::gentoo
dev-lang/perl:            5.30.3-r1::gentoo
dev-lang/python:          2.7.18-r4::gentoo, 3.6.12::gentoo, 3.7.9::gentoo, 3.8.6::gentoo, 3.9.0::gentoo, 3.10.0_alpha1::gentoo
dev-util/cmake:           3.18.4::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.69-r5::gentoo
sys-devel/automake:       1.15.1-r2::gentoo, 1.16.2::gentoo
sys-devel/binutils:       2.35.1::gentoo
sys-devel/gcc:            9.2.0-r4::gentoo
sys-devel/gcc-config:     2.3.2::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.8::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r2::gentoo
Repositories:

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

Installed sets: @system
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="@FREE"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=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 -march=i686 -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"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
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="ctype cxx libglvnd ncurses pcre perl session split-usr ssl svn threads unicode x86 xml" ABI_X86="32" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cachedav cgid dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" CURL_SSL="gnutls" ELIBC="glibc" KERNEL="linux" NGINX_MODULES_HTTP="gzip limit_conn limit_req perl proxy rewrite scgi fastcgi" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python3_7 python3_8" USERLAND="GNU"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



* the complete build log and the output of `emerge -pqv '=sys-devel/gcc-9.3.0-r1::gentoo'`.

=>

[ebuild  NS   ] sys-devel/gcc-9.3.0-r1 [9.2.0-r4] USE="(cxx) (pie) (-ada) (-altivec) -d -debug -doc (-fixed-point) -fortran -go -graphite (-hardened) -jit (-libssp) -lto (-multilib) -nls -nptl -objc -objc++ -objc-gc -openmp -pch -pgo -sanitize -ssp -systemtap -test -vanilla -vtv" 


Please include /var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/gcc-build-logs.tar.bz2 in your bug report.

see attachment
Comment 1 Ionen Wolkens gentoo-dev 2020-10-19 19:50:28 UTC
> cc1plus: out of memory allocating 24082176 bytes after a total of 50466816 bytes
Seems just ran out of ram. Try lower MAKEOPTS=-jX value (with your ram I'd suggest -j2), could also add some swap.

I'd suggest support channels (forums/IRC/etc..) if need more help.
Comment 2 PetaMem R&D 2020-10-20 00:05:11 UTC
The -j 1 has been tested already

compare https://bugs.gentoo.org/739552

32bit machine with 3.3GB RAM + 1GB swap cannot compile anything GCC 9.3.0 or later even with -j 1

9.2.0 works with -j 4, without swap and with 2GB RAM