Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Emerging ltoize returns gcc version error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Pietrog
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2021
Posts: 125
Location: Italy

PostPosted: Wed Aug 11, 2021 2:23 pm    Post subject: Emerging ltoize returns gcc version error Reply with quote

Hi all,

I was tying to install ltoize as part of the lto overlay and I ancountered this error where ltoize complains about an outdated version of gcc when on my system I've installed the latest:
Code:
* Warning: Active GCC version '4.2.1' is lower then the expected version '10.2.0', it is recommended that you use the newest GCC if you want LTO.
 * Aborting LTOize installation due to older GCC version '4.2.1' -- set I_KNOW_WHAT_I_AM_DOING=y if you want to override this behaviour.
 * ERROR: sys-config/ltoize-0.9.10::lto-overlay failed (setup phase):
 *   (no error message)
 *
 * Call stack:
 *              ebuild.sh, line 127:  Called pkg_setup
 *   ltoize-0.9.10.ebuild, line  38:  Called die
 * The specific snippet of code:
 *                      die
 *
 * If you need support, post the output of `emerge --info '=sys-config/ltoize-0.9.10::lto-overlay'`,
 * the complete build log and the output of `emerge -pqv '=sys-config/ltoize-0.9.10::lto-overlay'`.
 * The complete build log is located at '/var/tmp/portage/sys-config/ltoize-0.9.10/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-config/ltoize-0.9.10/temp/die.env'.
 * Working directory: '/var/tmp/portage/sys-config/ltoize-0.9.10/empty'
 * S: '/var/tmp/portage/sys-config/ltoize-0.9.10/work/ltoize-0.9.10'

This is the output of merege --info:
Code:
emerge --info ltoize
Portage 3.0.20 (python 3.9.6-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-11.2.0, glibc-2.33-r5, 5.13.9-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.13.9-gentoo-x86_64-Intel-R-_Core-TM-_i7-8700K_CPU_@_3.70GHz-with-glibc2.33
KiB Mem:    16316140 total,   8420580 free
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Wed, 11 Aug 2021 09:30:02 +0000
Head commit of repository gentoo: d0cc44d0fa89d11a0c34bb1f79332017d8c46c76
Timestamp of repository lto-overlay: Sat, 07 Aug 2021 14:09:57 +0000
Head commit of repository lto-overlay: c47948e6d58f790a7b0febd2702d12db1d45b7b8

Timestamp of repository mv: Mon, 09 Aug 2021 15:36:46 +0000
Head commit of repository mv: 14db78a565da97de8f5e9247b9248f4f1299ce07

sh bash 5.1_p8
ld GNU ld (Gentoo 2.36.1 p5) 2.36.1
ccache version 4.3 [enabled]
app-shells/bash:          5.1_p8::gentoo
dev-lang/perl:            5.34.0-r2::gentoo
dev-lang/python:          2.7.18_p11-r100::lto-overlay, 3.9.6_p1::gentoo, 3.10.0_rc1_p1::gentoo
dev-lang/rust:            1.54.0::gentoo
dev-util/ccache:          4.3-r3::gentoo
dev-util/cmake:           3.21.1::gentoo
sys-apps/baselayout:      2.7-r3::gentoo
sys-apps/openrc:          0.43.3::gentoo
sys-apps/sandbox:         2.24::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:       1.16.4::gentoo
sys-devel/binutils:       2.36.1-r2::gentoo
sys-devel/gcc:            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.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r5::gentoo
Repositories:

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

custom-profiles
    location: /var/db/repos/custom-profiles
    masters: gentoo

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

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

samba-llvm
    location: /var/db/repos/samba-llvm
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CC="clang"
CFLAGS="-march=skylake -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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXX="clang++"
CXXFLAGS="-march=skylake -O2 -pipe"
DISTDIR="/var/cache/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="-march=skylake -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache 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="-march=skylake -O2 -pipe"
GENTOO_MIRRORS="https://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ rsync://ftp-stud.hs-esslingen.de/gentoo/ https://gentoo.mirror.garr.it/ http://gentoo.mirror.garr.it/"
LANG="it_IT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="it"
MAKEOPTS="-j8"
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="X a52 aac acl acpi activities alsa amd64 bluetooth branding bzip2 cairo cdda cdr clang cli crypt cups dbus declarative dri dts dvd dvdr elogind emboss encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg kde kipi kwallet lcms libglvnd libnotify libtirpc mad mng mp3 mp4 mpeg 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 ssl startup-notification svg tcpd tiff 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="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" 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" L10N="it" 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-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="nvidia" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS

I'm using clang on my system so I tried to fall back ltoize adding it in the /etc/portage/package.env and make it use the default environment but nothing seem to change.
Furthermore running emerge --update --deep @world displays another error from sys-apps/man:
Code:
Calculating dependencies \ * ERROR: sys-apps/man-1.6g-r3::mv failed (depend phase):
 *   l10n.eclass could not be found by inherit()
 *
 * Call stack:
 *            ebuild.sh, line 645:  Called source '/var/db/repos/mv/sys-apps/man/man-1.6g-r3.ebuild'
 *   man-1.6g-r3.ebuild, line   6:  Called inherit 'l10n' 'prefix' 'toolchain-funcs'
 *            ebuild.sh, line 295:  Called die
 * The specific snippet of code:
 *              [[ -z ${location} ]] && die "${1}.eclass could not be found by inherit()"
 *
 * If you need support, post the output of `emerge --info '=sys-apps/man-1.6g-r3::mv'`,
 * the complete build log and the output of `emerge -pqv '=sys-apps/man-1.6g-r3::mv'`.
 * Working directory: '/usr/lib/python3.9/site-packages'
 * S: '/var/tmp/portage/sys-apps/man-1.6g-r3/work/man-1.6g'
... done!

Here is the emerge --info:
Code:
emerge --info sys-apps/man
 * ERROR: sys-apps/man-1.6g-r3::mv failed (depend phase):
 *   l10n.eclass could not be found by inherit()
 *
 * Call stack:
 *            ebuild.sh, line 645:  Called source '/var/db/repos/mv/sys-apps/man/man-1.6g-r3.ebuild'
 *   man-1.6g-r3.ebuild, line   6:  Called inherit 'l10n' 'prefix' 'toolchain-funcs'
 *            ebuild.sh, line 295:  Called die
 * The specific snippet of code:
 *              [[ -z ${location} ]] && die "${1}.eclass could not be found by inherit()"
 *
 * If you need support, post the output of `emerge --info '=sys-apps/man-1.6g-r3::mv'`,
 * the complete build log and the output of `emerge -pqv '=sys-apps/man-1.6g-r3::mv'`.
 * Working directory: '/usr/lib/python3.9/site-packages'
 * S: '/var/tmp/portage/sys-apps/man-1.6g-r3/work/man-1.6g'
Portage 3.0.20 (python 3.9.6-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-11.2.0, glibc-2.33-r5, 5.13.9-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.13.9-gentoo-x86_64-Intel-R-_Core-TM-_i7-8700K_CPU_@_3.70GHz-with-glibc2.33
KiB Mem:    16316140 total,   8350424 free
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Wed, 11 Aug 2021 09:30:02 +0000
Head commit of repository gentoo: d0cc44d0fa89d11a0c34bb1f79332017d8c46c76
Timestamp of repository lto-overlay: Sat, 07 Aug 2021 14:09:57 +0000
Head commit of repository lto-overlay: c47948e6d58f790a7b0febd2702d12db1d45b7b8

Timestamp of repository mv: Mon, 09 Aug 2021 15:36:46 +0000
Head commit of repository mv: 14db78a565da97de8f5e9247b9248f4f1299ce07

sh bash 5.1_p8
ld GNU ld (Gentoo 2.36.1 p5) 2.36.1
ccache version 4.3 [enabled]
app-shells/bash:          5.1_p8::gentoo
dev-lang/perl:            5.34.0-r2::gentoo
dev-lang/python:          2.7.18_p11-r100::lto-overlay, 3.9.6_p1::gentoo, 3.10.0_rc1_p1::gentoo
dev-lang/rust:            1.54.0::gentoo
dev-util/ccache:          4.3-r3::gentoo
dev-util/cmake:           3.21.1::gentoo
sys-apps/baselayout:      2.7-r3::gentoo
sys-apps/openrc:          0.43.3::gentoo
sys-apps/sandbox:         2.24::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:       1.16.4::gentoo
sys-devel/binutils:       2.36.1-r2::gentoo
sys-devel/gcc:            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.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r5::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    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

custom-profiles
    location: /var/db/repos/custom-profiles
    masters: gentoo

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

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

samba-llvm
    location: /var/db/repos/samba-llvm
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CC="clang"
CFLAGS="-march=skylake -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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXX="clang++"
CXXFLAGS="-march=skylake -O2 -pipe"
DISTDIR="/var/cache/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="-march=skylake -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache 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="-march=skylake -O2 -pipe"
GENTOO_MIRRORS="https://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ rsync://ftp-stud.hs-esslingen.de/gentoo/ https://gentoo.mirror.garr.it/ http://gentoo.mirror.garr.it/"
LANG="it_IT.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="it"
MAKEOPTS="-j8"
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="X a52 aac acl acpi activities alsa amd64 bluetooth branding bzip2 cairo cdda cdr clang cli crypt cups dbus declarative dri dts dvd dvdr elogind emboss encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg kde kipi kwallet lcms libglvnd libnotify libtirpc mad mng mp3 mp4 mpeg 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 ssl startup-notification svg tcpd tiff 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="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" 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" L10N="it" 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-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="nvidia" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS

If you have any suggestion it would be much appreciated :)
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 8953
Location: almost Mile High in the USA

PostPosted: Wed Aug 11, 2021 3:38 pm    Post subject: Reply with quote

You have a bunch of overlays here that are producing errors - you should contact the overlay maintainer for issues, or remove the overlays and see if the problem still exists...
_________________
Intel Core i7 2700K/Radeon FirePro V3900/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 2771

PostPosted: Wed Aug 11, 2021 3:39 pm    Post subject: ~ Reply with quote

Yntil you get your system stabilized do not use clang.
Also try another version of ltoize
This works just fine
Code:

sys-config/ltoize-0.9.10::lto-overlay

Also you man package originates in mv overlay.
It SHOULDNT
Generally mv will pull many bloatware bs.
Plz create two files
Code:

/etc/portage/package.mask/MV
/etc/portage/package.unmask/MV

The first
Code:

*/*::mv


And the second
Code:

app-portage/portage-bashrc-mv::mv
app-shells/runtitle::mv


These are the only two packages you need from mv for lto.
All the rest is uneeded.
Also it helps if your system is ~arch for lto.
_________________
:)


Last edited by alamahant on Wed Aug 11, 2021 3:54 pm; edited 3 times in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 28560
Location: here

PostPosted: Wed Aug 11, 2021 3:41 pm    Post subject: Reply with quote

Moved from Portage & Programming to Unsupported Software.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 19121

PostPosted: Wed Aug 11, 2021 7:07 pm    Post subject: Re: Emerging ltoize returns gcc version error Reply with quote

Pietrog wrote:
I was tying to install ltoize as part of the lto overlay and I ancountered this error where ltoize complains about an outdated version of gcc when on my system I've installed the latest:
Code:
* Warning: Active GCC version '4.2.1' is lower then the expected version '10.2.0', it is recommended that you use the newest GCC if you want LTO.
 * Aborting LTOize installation due to older GCC version '4.2.1' -- set I_KNOW_WHAT_I_AM_DOING=y if you want to override this behaviour.
For strange historical reasons, modern clang identifies as gcc 4.2.1. This can cause strange test failures whenever a package tests for gcc, and does not have a special exception to ignore clang giving bogus results.
Code:
$ cat a.c
GNUC = __GNUC__
GNUC_MINOR = __GNUC_MINOR__
GNUC_PATCHLEVEL = __GNUC_PATCHLEVEL__
Code:
$ gcc-10.3.0 -E a.c
# 1 "a.c"
# 1 "<built-in>"
# 1 "<command-line>"
# 31 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 32 "<command-line>" 2
# 1 "a.c"
GNUC = 10
GNUC_MINOR = 3
GNUC_PATCHLEVEL = 0
Code:
$ clang-11 -E a.c
# 1 "a.c"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 341 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "a.c" 2
GNUC = 4
GNUC_MINOR = 2
GNUC_PATCHLEVEL = 1
Back to top
View user's profile Send private message
Pietrog
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2021
Posts: 125
Location: Italy

PostPosted: Wed Aug 11, 2021 9:10 pm    Post subject: Re: Emerging ltoize returns gcc version error Reply with quote

Hu wrote:
For strange historical reasons, modern clang identifies as gcc 4.2.1. This can cause strange test failures whenever a package tests for gcc, and does not have a special exception to ignore clang giving bogus results.

Oh alright that explains it
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
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