View previous topic :: View next topic |
Author |
Message |
manu.rhel n00b
Joined: 11 Apr 2014 Posts: 44
|
Posted: Tue Oct 29, 2024 9:40 am Post subject: error while upgrading gcc |
|
|
Hi Experts, I am facing issues while upgrade gcc to 11.5.0 from 9.3.0. I am getting something like make: *** [Makefile:24884: bootstrap-lean] Error 2, and then it fails.
please suggest how to get over this . Thanks in advance for all your help in advance.
Quote: | Linux TEST-SRV 5.10.156-gentoo #1 SMP Thu Nov 9 19:02:08 IST 2023 x86_64 Intel(R) Core(TM) i9-10900X CPU @ 3.70GHz GenuineIntel GNU/Linux
|
Quote: | # gcc-config -l
[1] x86_64-pc-linux-gnu-4.9.4
[2] x86_64-pc-linux-gnu-9.3.0 *
|
Quote: | configure: FPU dependent file will be fpu-387.h
configure: Support for IEEE modules: yes
checking POSIX version of getpwuid_r with 5 arguments... yes
checking whether the target supports hidden visibility... yes
checking whether the target supports symbol aliases... yes
checking whether the target supports __atomic_fetch_add... yes
checking whether pragma weak works... yes
checking whether the target supports weakref... yes
checking whether the target can unlink an open file... yes
checking whether the target has CRLF as line terminator... no
configure: updating cache ./config.cache
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libgfortran.spec
config.status: creating config.h
config.status: executing default-1 commands
Adding multilib support to Makefile in /var/tmp/portage/sys-devel/gcc-13.3.1_p20240614/work/gcc-13-20240614/libgfortran
with_multisubdir=32
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing gstdint.h commands
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing gstdint.h commands
make[1]: Leaving directory '/var/tmp/portage/sys-devel/gcc-13.3.1_p20240614/work/build'
make: *** [Makefile:24884: bootstrap-lean] Error 2
* ERROR: sys-devel/gcc-13.3.1_p20240614::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=sys-devel/gcc-13.3.1_p20240614::gentoo'`,
* the complete build log and the output of `emerge -pqv '=sys-devel/gcc-13.3.1_p20240614::gentoo'`.
* The complete build log is located at '/var/tmp/portage/sys-devel/gcc-13.3.1_p20240614/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-13.3.1_p20240614/temp/environment'.
* Working directory: '/var/tmp/portage/sys-devel/gcc-13.3.1_p20240614/work/build'
* S: '/var/tmp/portage/sys-devel/gcc-13.3.1_p20240614/work/gcc-13-20240614'
*
* Please include /var/tmp/portage/sys-devel/gcc-13.3.1_p20240614/work/gcc-build-logs.tar.xz in your bug report.
*
>>> Failed to emerge sys-devel/gcc-13.3.1_p20240614, Log file:
>>> '/var/tmp/portage/sys-devel/gcc-13.3.1_p20240614/temp/build.log'
* Messages for package sys-devel/gcc-13.3.1_p20240614:
* ERROR: sys-devel/gcc-13.3.1_p20240614::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=sys-devel/gcc-13.3.1_p20240614::gentoo'`,
* the complete build log and the output of `emerge -pqv '=sys-devel/gcc-13.3.1_p20240614::gentoo'`.
* The complete build log is located at '/var/tmp/portage/sys-devel/gcc-13.3.1_p20240614/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-13.3.1_p20240614/temp/environment'.
* Working directory: '/var/tmp/portage/sys-devel/gcc-13.3.1_p20240614/work/build'
* S: '/var/tmp/portage/sys-devel/gcc-13.3.1_p20240614/work/gcc-13-20240614'
*
* Please include /var/tmp/portage/sys-devel/gcc-13.3.1_p20240614/work/gcc-build-logs.tar.xz in your bug report.
*
|
Quote: | # emerge --info '=sys-devel/gcc-13.3.1_p20240614::gentoo'
Portage 3.0.51 (python 3.11.5-final-0, default/linux/amd64/23.0/split-usr, gcc-9.3.0, glibc-2.39-r6, 5.10.156-gentoo x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-5.10.156-gentoo-x86_64-Intel-R-_Core-TM-_i9-10900X_CPU_@_3.70GHz-with-glibc2.39
KiB Mem: 65537032 total, 7760556 free
KiB Swap: 0 total, 0 free
Timestamp of repository gentoo: Tue, 29 Oct 2024 00:45:00 +0000
Head commit of repository gentoo: 0d4f045899711d1a2b3dd5f7b236f03f1d3ded51
sh bash 5.2_p37
ld GNU ld (Gentoo 2.42 p6) 2.42.0
app-misc/pax-utils: 1.3.7::gentoo
app-shells/bash: 5.2_p37::gentoo
dev-build/autoconf: 2.69-r4::gentoo, 2.71-r6::gentoo, 2.72-r1::gentoo
dev-build/automake: 1.16.5-r2::gentoo
dev-build/cmake: 3.26.5-r2::gentoo
dev-build/libtool: 2.4.7-r4::gentoo
dev-build/make: 4.2.1-r4::gentoo
dev-build/meson: 1.5.2::gentoo
dev-lang/perl: 5.30.1::gentoo
dev-lang/python: 3.7.7-r2::gentoo, 3.8.2-r2::gentoo, 3.9.17::gentoo, 3.10.13::gentoo, 3.11.5::gentoo, 3.12.3-r1::gentoo
sys-apps/baselayout: 2.15::gentoo
sys-apps/openrc: 0.42.1::gentoo
sys-apps/sandbox: 2.39::gentoo
sys-devel/binutils: 2.33.1-r1::gentoo, 2.42-r2::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc: 4.9.4-r1::gentoo, 9.3.0::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-kernel/linux-headers: 6.1::gentoo (virtual/os-headers)
sys-libs/glibc: 2.39-r6::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
volatile: False
sync-rsync-verify-jobs: 1
sync-rsync-verify-metamanifest: yes
sync-rsync-verify-max-age: 24
sync-rsync-extra-opts:
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-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 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live 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.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
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"
SHELL="/bin/bash"
USE="acl amd64 bzip2 cet crypt gdbm iconv ipv6 libtirpc multilib ncurses nls openmp pam pcre readline seccomp split-usr ssl test-rust unicode xattr zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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 navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
|
Quote: | # emerge -pqv '=sys-devel/gcc-13.3.1_p20240614::gentoo'
[ebuild NS ] sys-devel/gcc-13.3.1_p20240614 [4.9.4-r1, 9.3.0] USE="cet%* (cxx) (default-stack-clash-protection%*) (default-znow%*) fortran (multilib) nls openmp (pie) sanitize ssp zstd%* -ada (-custom-cflags) -d -debug -doc (-fixed-point) -go -graphite -hardened (-ieee-long-double) -jit (-libssp) -lto -modula2% -objc -objc++ -objc-gc (-pch*) -pgo -systemtap -test -valgrind% -vanilla -vtv* (-altivec%) (-nptl%*)"
!!! The following installed packages are masked:
- sys-libs/binutils-libs-2.33.1-r1::gentoo (masked by: package.mask)
/var/db/repos/gentoo/profiles/package.mask:
# Andreas K. Hüttel <dilfridge@gentoo.org> (2017-05-21)
# (and others, updated later)
# These old versions of toolchain packages (binutils, gcc, glibc) are no
# longer officially supported and are not suitable for general use. Using
# these packages can result in build failures (and possible breakage) for
# many packages, and may leave your system vulnerable to known security
# exploits.
# If you still use one of these old toolchain packages, please upgrade (and
# switch the compiler / the binutils) ASAP. If you need them for a specific
# (isolated) use case, feel free to unmask them on your system.
- virtual/libcrypt-1-r1::gentoo (masked by: package.mask)
/var/db/repos/gentoo/profiles/base/package.mask:
# Sam James <sam@gentoo.org> (2021-11-22)
# Mask the older libcrypt virtual (which accepted glibc[crypt]) to ease
# dependency resolution. In a fair number of cases, this has helped
# upgrades go through cleanly.
# Read the news item if you need help!
# (This mask is undone in musl profiles where the transition is not yet being
# made.)
# bug #699422.
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
* IMPORTANT: 34 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items. |
|
|
Back to top |
|
|
finoderi Tux's lil' helper
Joined: 29 Oct 2021 Posts: 75
|
Posted: Tue Oct 29, 2024 9:46 am Post subject: |
|
|
I'm no expert but reading those 34 news you continue ignoring might be a good start. |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3717 Location: Rasi, Finland
|
Posted: Tue Oct 29, 2024 10:05 am Post subject: Re: error while upgrading gcc |
|
|
manu.rhel wrote: | Quote: | # gcc-config -l
[1] x86_64-pc-linux-gnu-4.9.4
[2] x86_64-pc-linux-gnu-9.3.0 *
|
| You haven't updated in a while? Right?
Can you pastebin the whole gcc log? _________________ ..: Zucca :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
wjb l33t
Joined: 10 Jul 2005 Posts: 631 Location: Fife, Scotland
|
Posted: Tue Oct 29, 2024 11:05 am Post subject: |
|
|
The log is showing a build of gcc 13.3.1_p20240614, which is the current stable version.
To get gcc 11.5.0 (why?), you need to ask for it explicitly:
Code: | # emerge =sys-devel/gcc-11.5.0 |
But that's probably going to have issues as well given the length of time since the PC was last updated, 3+ years?
Posting the output of would answer a lot of questions. |
|
Back to top |
|
|
manu.rhel n00b
Joined: 11 Apr 2014 Posts: 44
|
Posted: Tue Oct 29, 2024 12:32 pm Post subject: |
|
|
Hi finoderi, I read them after you pointed, but nothing relevant to the error we are facing
Here is the requested o.p WJB - JFYI - I even tried both gcc-11.5 and 13.3, both failing -
Quote: | # emerge --info
Portage 3.0.51 (python 3.11.5-final-0, default/linux/amd64/23.0/split-usr, gcc-9.3.0, glibc-2.39-r6, 5.10.156-gentoo x86_64)
=================================================================
System uname: Linux-5.10.156-gentoo-x86_64-Intel-R-_Core-TM-_i9-10900X_CPU_@_3.70GHz-with-glibc2.39
KiB Mem: 65537032 total, 30514812 free
KiB Swap: 0 total, 0 free
Timestamp of repository gentoo: Tue, 29 Oct 2024 00:45:00 +0000
Head commit of repository gentoo: 0d4f045899711d1a2b3dd5f7b236f03f1d3ded51
sh bash 5.2_p37
ld GNU ld (Gentoo 2.42 p6) 2.42.0
app-misc/pax-utils: 1.3.7::gentoo
app-shells/bash: 5.2_p37::gentoo
dev-build/autoconf: 2.69-r4::gentoo, 2.71-r6::gentoo, 2.72-r1::gentoo
dev-build/automake: 1.16.5-r2::gentoo
dev-build/cmake: 3.26.5-r2::gentoo
dev-build/libtool: 2.4.7-r4::gentoo
dev-build/make: 4.2.1-r4::gentoo
dev-build/meson: 1.5.2::gentoo
dev-lang/perl: 5.30.1::gentoo
dev-lang/python: 3.7.7-r2::gentoo, 3.8.2-r2::gentoo, 3.9.17::gentoo, 3.10.13::gentoo, 3.11.5::gentoo, 3.12.3-r1::gentoo
sys-apps/baselayout: 2.15::gentoo
sys-apps/openrc: 0.42.1::gentoo
sys-apps/sandbox: 2.39::gentoo
sys-devel/binutils: 2.33.1-r1::gentoo, 2.42-r2::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc: 4.9.4-r1::gentoo, 9.3.0::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-kernel/linux-headers: 6.1::gentoo (virtual/os-headers)
sys-libs/glibc: 2.39-r6::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
volatile: False
sync-rsync-verify-jobs: 1
sync-rsync-verify-metamanifest: yes
sync-rsync-verify-max-age: 24
sync-rsync-extra-opts:
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-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 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live 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.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
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"
SHELL="/bin/bash"
USE="acl amd64 bzip2 cet crypt gdbm iconv ipv6 libtirpc multilib ncurses nls openmp pam pcre readline seccomp split-usr ssl test-rust unicode xattr zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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 navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
|
|
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1972
|
Posted: Tue Oct 29, 2024 2:58 pm Post subject: |
|
|
Please do share that full build.log. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|