Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Failed to emerge sys-devel/gcc
View unanswered posts
View posts from last 24 hours

 
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
Pelvur
n00b
n00b


Joined: 06 Jul 2020
Posts: 21

PostPosted: Fri Oct 02, 2020 12:40 am    Post subject: [SOLVED] Failed to emerge sys-devel/gcc Reply with quote

Hello!

First of all, I did notice that there is a topic with issue similar to mine right at the top. The topic though does not seem to come to any resolution. I tried some suggestions from it, and it did not help. Thus new topic.

Output of `emerge --info '=sys-devel/gcc-9.3.0-r1::gentoo'`:

Code:
Portage 3.0.4 (python 3.7.7-final-0, default/linux/amd64/17.1/desktop, gcc-9.3.0, glibc-2.31-r6, 5.4.48-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.4.48-gentoo-x86_64-Intel-R-_Core-TM-2_Extreme_CPU_X9100_@_3.06GHz-with-gentoo-2.7
KiB Mem:     8075484 total,   1356108 free
KiB Swap:   10239996 total,  10239996 free
Timestamp of repository gentoo: Wed, 30 Sep 2020 00:30:01 +0000
Head commit of repository gentoo: f60946ba6398fac3388cb690d6c687b03d7d8d4d
sh bash 5.0_p18
app-shells/bash:          5.0_p18::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          3.7.7-r2::gentoo
dev-util/cmake:           3.16.5::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.34-r2::gentoo
sys-devel/gcc:            9.3.0::gentoo
sys-devel/gcc-config:     2.3.1::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: /var/db/repos/gentoo
    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:

localrepo
    location: /var/db/repos/localrepo
    masters: gentoo

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

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -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=native -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 qa-unresolved-soname-deps sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersync"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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 alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus dri dts dvd dvdr elogind emboss encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg lcms libglvnd libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt5 readline sdl seccomp spell split-usr ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis 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" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" 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="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" 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, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



Output of `emerge -pqv '=sys-devel/gcc-9.3.0-r1::gentoo'`:


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


Build log from '/var/tmp/portage/sys-devel/gcc-9.3.0-r1/temp/build.log'
Code:
* Package:    sys-devel/gcc-9.3.0-r1
 * Repository: gentoo
 * Maintainer: toolchain@gentoo.org
 * USE:        abi_x86_64 amd64 cxx elibc_glibc fortran kernel_linux multilib nls nptl openmp pch pie sanitize ssp userland_GNU vtv
 * FEATURES:   network-sandbox preserve-libs userpriv
>>> Unpacking source...
>>> Unpacking gcc-9.3.0.tar.xz to /var/tmp/portage/sys-devel/gcc-9.3.0-r1/work
>>> Unpacking gcc-9.3.0-patches-3.tar.bz2 to /var/tmp/portage/sys-devel/gcc-9.3.0-r1/work
>>> Source unpacked in /var/tmp/portage/sys-devel/gcc-9.3.0-r1/work
>>> Preparing source in /var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/gcc-9.3.0 ...
 * Applying Gentoo patches ...
 * Applying 01_all_default-fortify-source.patch ...                                                                   [ ok ]
 * Applying 02_all_default-warn-format-security.patch ...
patching file gcc/c-family/c.opt
Hunk #1 succeeded at 576 with fuzz 1 (offset 117 lines).
Hunk #2 succeeded at 597 with fuzz 1 (offset 122 lines).                                                              [ ok ]
 * Applying 03_all_default-warn-trampolines.patch ...                                                                 [ ok ]
 * Applying 04_all_nossp-on-nostdlib.patch ...
patching file gcc/gcc.c
Hunk #1 succeeded at 875 with fuzz 1 (offset 18 lines).
Hunk #2 succeeded at 1162 with fuzz 1 (offset 25 lines).                                                              [ ok ]
 * Applying 05_all_alpha-mieee-default.patch ...                                                                      [ ok ]
 * Applying 06_all_ia64_note.GNU-stack.patch ...                                                                      [ ok ]
 * Applying 07_all_i386_libgcc_note.GNU-stack.patch ...                                                               [ ok ]
 * Applying 08_all_libiberty-asprintf.patch ...
patching file include/libiberty.h
Hunk #1 succeeded at 641 with fuzz 2 (offset 32 lines).                                                               [ ok ]
 * Applying 09_all_libiberty-pic.patch ...                                                                            [ ok ]
 * Applying 10_all_nopie-all-flags.patch ...                                                                          [ ok ]
 * Applying 11_all_extra-options.patch ...
patching file gcc/common.opt
Hunk #1 succeeded at 2447 (offset 80 lines).
patching file gcc/defaults.h
Hunk #1 succeeded at 1443 (offset 8 lines).
patching file gcc/toplev.c
Hunk #1 succeeded at 1723 (offset 41 lines).
patching file libgcc/Makefile.in
Hunk #1 succeeded at 245 (offset 20 lines).
Hunk #2 succeeded at 299 with fuzz 1 (offset 20 lines).
patching file gcc/gcc.c
Hunk #1 succeeded at 892 with fuzz 2 (offset 24 lines).
Hunk #2 succeeded at 1050 with fuzz 1 (offset 31 lines).                                                              [ ok ]
 * Applying 12_all_pr55930-dependency-tracking.patch ...                                                              [ ok ]
 * Applying 13_all_sh-drop-sysroot-suffix.patch ...                                                                   [ ok ]
 * Applying 14_all_ia64-TEXTREL.patch ...                                                                             [ ok ]
 * Applying 15_all_disable-systemtap-switch.patch ...                                                                 [ ok ]
 * Applying 16_all_m68k-textrel-on-libgcc.patch ...                                                                   [ ok ]
 * Applying 17_all_respect-build-cxxflags.patch ...                                                                   [ ok ]
 * Applying 18_all_libgfortran-Werror.patch ...
patching file libgfortran/configure.ac
Hunk #1 succeeded at 139 (offset -1 lines).
patching file libgfortran/configure
Hunk #1 succeeded at 5967 with fuzz 2 (offset 203 lines).                                                             [ ok ]
 * Applying 19_all_libgomp-Werror.patch ...
patching file libgomp/configure.ac
Hunk #1 succeeded at 115 with fuzz 1 (offset -4167 lines).
patching file libgomp/configure
Hunk #1 succeeded at 4583 with fuzz 1 (offset 301 lines).                                                             [ ok ]
 * Applying 20_all_libitm-Werror.patch ...
patching file libitm/configure.ac
Hunk #1 succeeded at 255 with fuzz 1 (offset -4027 lines).
patching file libitm/configure
Hunk #1 succeeded at 17824 with fuzz 1 (offset 13542 lines).                                                          [ ok ]
 * Applying 21_all_libatomic-Werror.patch ...
patching file libatomic/configure.ac
Hunk #1 succeeded at 245 with fuzz 1 (offset -4037 lines).
patching file libatomic/configure
Hunk #1 succeeded at 15538 with fuzz 1 (offset 11256 lines).                                                          [ ok ]
 * Applying 22_all_libbacktrace-Werror.patch ...                                                                      [ ok ]
 * Applying 23_all_libsanitizer-Werror.patch ...                                                                      [ ok ]
 * Applying 24_all_libstdcxx-no-vtv.patch ...                                                                         [ ok ]
 * Applying 25_all_ia64-bootstrap.patch ...                                                                           [ ok ]
 * Applying 26_all_disable-riscv32-ABIs.patch ...                                                                     [ ok ]
 * Applying 27_all_default_ssp-buffer-size.patch ...                                                                  [ ok ]
 * Applying 28_all_hppa-faster-synth_mult.patch ...                                                                   [ ok ]
 * Applying 29_all_libcpp-ar.patch ...                                                                                [ ok ]
 * Updating gcc to use automatic PIE building ...
 * Updating gcc to use automatic SSP building ...
 * using upstream multilib; disabling lib32 autodetection
 * Running elibtoolize in: gcc-9.3.0/
 *   Applying portage/2.2 patch ...
 *   Applying sed/1.5.6 patch ...
 *   Applying as-needed/2.2.6 patch ...
 * Using GNU config files from /usr/share/gnuconfig
 *   Updating config.sub                                                                                              [ ok ]
 *   Updating config.guess                                                                                            [ ok ]
 * Fixing misc issues in configure files
 * Remove texinfo (bug #198182, bug #464008)
 * Applying gcc-configure-texinfo.patch ...                                                                           [ ok ]
 * Touching generated files
 *   Touching gcc/configure
 *   Touching gcc/cstamp-h.in
 *   Touching gcc/config.in
 *   Touching libgfortran/aclocal.m4
 *   Touching libgfortran/Makefile.in
 *   Touching libquadmath/Makefile.in
 *   Touching libgfortran/configure
 *   Touching libcpp/aclocal.m4
 *   Touching libcpp/Makefile.in
 *   Touching libcpp/configure
 *   Touching libgomp/aclocal.m4
 *   Touching libgomp/Makefile.in
 *   Touching libgomp/testsuite/Makefile.in
 *   Touching libgomp/configure
 *   Touching libgomp/config.h.in
 *   Touching libitm/aclocal.m4
 *   Touching libitm/Makefile.in
 *   Touching libitm/testsuite/Makefile.in
 *   Touching libitm/configure
 *   Touching libitm/config.h.in
 *   Touching libatomic/aclocal.m4
 *   Touching libatomic/Makefile.in
 *   Touching libatomic/testsuite/Makefile.in
 *   Touching libatomic/configure
 *   Touching libatomic/auto-config.h.in
 *   Touching libbacktrace/aclocal.m4
 *   Touching libbacktrace/Makefile.in
 *   Touching libbacktrace/configure
 *   Touching libbacktrace/config.h.in
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/gcc-9.3.0 ...
 * CFLAGS="-march=core2 -pipe -O2"
 * CXXFLAGS="-march=core2 -pipe -O2"
 * LDFLAGS=""

 * PREFIX:          /usr
 * BINPATH:         /usr/x86_64-pc-linux-gnu/gcc-bin/9.3.0
 * LIBPATH:         /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0
 * DATAPATH:        /usr/share/gcc-data/x86_64-pc-linux-gnu/9.3.0
 * STDCXX_INCDIR:   /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/g++-v9

 * Languages:       c,c++,fortran

 * Configuring GCC with:
 *    --host=x86_64-pc-linux-gnu
 *    --build=x86_64-pc-linux-gnu
 *    --prefix=/usr
 *    --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/9.3.0
 *    --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include
 *    --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/9.3.0
 *    --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/9.3.0/man
 *    --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/9.3.0/info
 *    --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/g++-v9
 *    --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/9.3.0/python
 *    --enable-languages=c,c++,fortran
 *    --enable-obsolete
 *    --enable-secureplt
 *    --disable-werror
 *    --with-system-zlib
 *    --enable-nls
 *    --without-included-gettext
 *    --enable-checking=release
 *    --with-bugurl=https://bugs.gentoo.org/
 *    --with-pkgversion=Gentoo 9.3.0-r1 p3
 *    --disable-esp
 *    --enable-libstdcxx-time
 *    --enable-shared
 *    --enable-threads=posix
 *    --enable-__cxa_atexit
 *    --enable-clocale=gnu
 *    --enable-multilib
 *    --with-multilib-list=m32,m64
 *    --disable-fixed-point
 *    --enable-targets=all
 *    --enable-libgomp
 *    --disable-libssp
 *    --disable-libada
 *    --disable-systemtap
 *    --enable-vtable-verify
 *    --enable-lto
 *    --without-isl
 *    --enable-default-pie
 *    --enable-default-ssp

/var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/gcc-9.3.0/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/9.3.0 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/9.3.0 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/9.3.0/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/9.3.0/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/g++-v9 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/9.3.0/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion=Gentoo 9.3.0-r1 p3 --disable-esp --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-fixed-point --enable-targets=all --enable-libgomp --disable-libssp --disable-libada --disable-systemtap --enable-vtable-verify --enable-lto --without-isl --enable-default-pie --enable-default-ssp
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for libatomic support... yes
checking for libitm support... yes
checking for libsanitizer support... yes
checking for libvtv support... yes
checking for libhsail-rt support... yes
checking for libphobos support... yes
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... no
configure: error: in `/var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/build':
configure: error: C compiler cannot create executables
See `config.log' for more details
 * ERROR: sys-devel/gcc-9.3.0-r1::gentoo failed (configure phase):
 *   failed to run configure
 *
 * Call stack:
 *     ebuild.sh, line  125:  Called src_configure
 *   environment, line 2537:  Called toolchain_src_configure
 *   environment, line 3917:  Called die
 * The specific snippet of code:
 *       CONFIG_SHELL="${EPREFIX}/bin/bash" bash "${S}"/configure "${confgcc[@]}" || die "failed to run configure";
 *
 * If you need support, post the output of `emerge --info '=sys-devel/gcc-9.3.0-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/gcc-9.3.0-r1::gentoo'`.
 *
 * Please include /var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/gcc-build-logs.tar.bz2 in your bug report.
 *
 * The complete build log is located at '/var/tmp/portage/sys-devel/gcc-9.3.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-9.3.0-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/build'
 * S: '/var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/gcc-9.3.0'


Last edited by Pelvur on Sat Oct 03, 2020 2:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3925

PostPosted: Fri Oct 02, 2020 1:24 am    Post subject: Reply with quote

Hi please try
Code:

CFLAGS="-march=native -O2 -pipe"

in /etc/portage/make.conf
and re emerge.
See if it helps..
:D
Back to top
View user's profile Send private message
Pelvur
n00b
n00b


Joined: 06 Jul 2020
Posts: 21

PostPosted: Fri Oct 02, 2020 1:37 am    Post subject: Reply with quote

alamahant wrote:
Hi please try
Code:

CFLAGS="-march=native -O2 -pipe"

in /etc/portage/make.conf
and re emerge.
See if it helps..
:D

No change.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22853

PostPosted: Fri Oct 02, 2020 1:43 am    Post subject: Re: Failed to emerge sys-devel/gcc Reply with quote

Pelvur wrote:
Code:
configure: error: C compiler cannot create executables
See `config.log' for more details
Please pastebin this file. Its details are likely to be helpful.
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Fri Oct 02, 2020 1:48 am    Post subject: Reply with quote

  1. Please post the last lines of '/var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/build/config.log', starting with 'configure:3406: checking for libphobos support'.

    EDIT: I just saw Hu's post. He is right: you'd better pastebin the whole file.

  2. I don't know whether it's related - but the FEATURES on your machine differ from the FEATURES on my machine:

    Output on your machine:
    Code:
    FEATURES:   network-sandbox preserve-libs userpriv

    Output on my machine:
    Code:
    FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox

Back to top
View user's profile Send private message
Pelvur
n00b
n00b


Joined: 06 Jul 2020
Posts: 21

PostPosted: Fri Oct 02, 2020 1:58 am    Post subject: Reply with quote

mike155 wrote:
[list=1]

EDIT: I just saw Hu's post. He is right: you'd better pastebin the whole file.


Never used pastebin before, hope this is what you are asking for: https://pastebin.com/2zwv0R8c
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Fri Oct 02, 2020 2:06 am    Post subject: Reply with quote

Thanks, Pelvur, that's exactly what we need! The line below shows that the linker doesn't work :(
Code:
configure:4394: x86_64-pc-linux-gnu-gcc -march=native -pipe -O2   conftest.c  >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot execute binary file
collect2: error: ld returned 126 exit status

Please post the output of
Code:
ls -la /usr/x86_64-pc-linux-gnu/binutils-bin/2*/*
and of
Code:
eselect binutils list
Back to top
View user's profile Send private message
Pelvur
n00b
n00b


Joined: 06 Jul 2020
Posts: 21

PostPosted: Fri Oct 02, 2020 2:22 am    Post subject: Reply with quote

mike155 wrote:
Thanks, Pelvur, that's exactly what we need! The line below shows that the linker doesn't work :(
Code:
configure:4394: x86_64-pc-linux-gnu-gcc -march=native -pipe -O2   conftest.c  >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot execute binary file
collect2: error: ld returned 126 exit status

Please post the output of
Code:
ls -la /usr/x86_64-pc-linux-gnu/binutils-bin/2*/*
and of
Code:
eselect binutils list


ls -la /usr/x86_64-pc-linux-gnu/binutils-bin/2*/*:

Code:
-rwxr-xr-x 1 root root   35840 Oct  1 14:13 /usr/x86_64-pc-linux-gnu/binutils-bin/2.34/addr2line
-rwxr-xr-x 1 root root   64392 Oct  1 14:13 /usr/x86_64-pc-linux-gnu/binutils-bin/2.34/ar
-rwxr-xr-x 1 root root  693144 Oct  1 14:13 /usr/x86_64-pc-linux-gnu/binutils-bin/2.34/as
-rwxr-xr-x 1 root root   31176 Oct  1 14:13 /usr/x86_64-pc-linux-gnu/binutils-bin/2.34/c++filt
-rwxr-xr-x 1 root root 2576104 Oct  1 14:13 /usr/x86_64-pc-linux-gnu/binutils-bin/2.34/dwp
-rwxr-xr-x 1 root root   39640 Oct  1 14:13 /usr/x86_64-pc-linux-gnu/binutils-bin/2.34/elfedit
-rwxr-xr-x 1 root root  102576 Oct  1 14:13 /usr/x86_64-pc-linux-gnu/binutils-bin/2.34/gprof
-rwxr-xr-x 2 root root    1168 Oct  1 15:34 /usr/x86_64-pc-linux-gnu/binutils-bin/2.34/ld
-rwxr-xr-x 2 root root    1168 Oct  1 15:34 /usr/x86_64-pc-linux-gnu/binutils-bin/2.34/ld.bfd
-rwxr-xr-x 1 root root 5190464 Oct  1 14:13 /usr/x86_64-pc-linux-gnu/binutils-bin/2.34/ld.gold
-rwxr-xr-x 1 root root   53024 Oct  1 14:13 /usr/x86_64-pc-linux-gnu/binutils-bin/2.34/nm
-rwxr-xr-x 1 root root  183600 Oct  1 14:13 /usr/x86_64-pc-linux-gnu/binutils-bin/2.34/objcopy
-rwxr-xr-x 1 root root  399032 Oct  1 14:13 /usr/x86_64-pc-linux-gnu/binutils-bin/2.34/objdump
-rwxr-xr-x 1 root root   64424 Oct  1 14:13 /usr/x86_64-pc-linux-gnu/binutils-bin/2.34/ranlib
-rwxr-xr-x 1 root root  654560 Oct  1 14:13 /usr/x86_64-pc-linux-gnu/binutils-bin/2.34/readelf
-rwxr-xr-x 1 root root   35552 Oct  1 14:13 /usr/x86_64-pc-linux-gnu/binutils-bin/2.34/size
-rwxr-xr-x 1 root root   35720 Oct  1 14:13 /usr/x86_64-pc-linux-gnu/binutils-bin/2.34/strings
-rwxr-xr-x 1 root root  183608 Oct  1 14:13 /usr/x86_64-pc-linux-gnu/binutils-bin/2.34/strip



eselect binutils list:
Code:
[1] x86_64-pc-linux-gnu-2.34 *
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Fri Oct 02, 2020 2:30 am    Post subject: Reply with quote

Your linker seems to be broken.

On my machine:
Code:
-rwxr-xr-x 2 root root 1484648 Sep 20 16:50 /usr/x86_64-pc-linux-gnu/binutils-bin/2.34/ld
-rwxr-xr-x 2 root root 1484648 Sep 20 16:50 /usr/x86_64-pc-linux-gnu/binutils-bin/2.34/ld.bfd
-rwxr-xr-x 1 root root 5194560 Sep 20 16:50 /usr/x86_64-pc-linux-gnu/binutils-bin/2.34/ld.gold

On your machine:
Code:
-rwxr-xr-x 2 root root    1168 Oct  1 15:34 /usr/x86_64-pc-linux-gnu/binutils-bin/2.34/ld
-rwxr-xr-x 2 root root    1168 Oct  1 15:34 /usr/x86_64-pc-linux-gnu/binutils-bin/2.34/ld.bfd
-rwxr-xr-x 1 root root 5190464 Oct  1 14:13 /usr/x86_64-pc-linux-gnu/binutils-bin/2.34/ld.gold

Something happened on your machine at 15:34. Look at the file size of 'ld'. Do you have any idea what happened?
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Fri Oct 02, 2020 2:32 am    Post subject: Reply with quote

Please post the output of
Code:
qcheck binutils
Back to top
View user's profile Send private message
Pelvur
n00b
n00b


Joined: 06 Jul 2020
Posts: 21

PostPosted: Fri Oct 02, 2020 2:38 am    Post subject: Reply with quote

mike155 wrote:

Something happened on your machine at 15:34. Look at the file size of 'ld'. Do you have any idea what happened?


I was playing around trying to fix it, I might have screwed something up. But the issue with gcc was before that for sure.
I think I had different error at first though when I tried to merge gcc. It was saying that crti.o was missing in /usr/x86_64-pc-linux-gnu/binutils-bin/2.34/ld or something like that. I tried to copy it there from different location but I don't think it worked as ld is not a directory. I don't know though if this is what caused changes in error message. I recall that previous emerge gcc attempts used to run for quite some time before exiting with error (like the whole compiling process would go through and only then it failed), and now it exits much sooner.


qcheck binutils:

Code:
 MD5-DIGEST: /usr/x86_64-pc-linux-gnu/binutils-bin/2.34/ld
 MD5-DIGEST: /usr/x86_64-pc-linux-gnu/binutils-bin/2.34/ld.bfd
  * 544 out of 546 files are good
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Fri Oct 02, 2020 2:49 am    Post subject: Reply with quote

You could try the following:
  1. Download the binary package 'sys-devel/binutils-2.33.1-r1.tbz2' from http://packages.gentooexperimental.org/packages/amd64-stable/
  2. Install the binary package: 'emerge --oneshot binutils-2.33.1-r1.tbz2'
  3. Switch to binutils-2.33: 'eselect binutils list', 'eselect binutils set <N>', '. /etc/profile'
  4. Emerge binutils-2.34
  5. Switch to binutils-2.34
  6. Uninstall binutils-2.33
Back to top
View user's profile Send private message
Pelvur
n00b
n00b


Joined: 06 Jul 2020
Posts: 21

PostPosted: Fri Oct 02, 2020 3:26 am    Post subject: Reply with quote

mike155 wrote:
You could try the following:
[*]Install the binary package: 'emerge --oneshot binutils-2.33.1-r1.tbz2'


I am afraid I need more instructions on thjs. I placed binutils into /var/cache/binpkgs as this is what assigned as PKGDIR in my make.conf. Yet I get following error:

Code:
*** emerging by path is broken and may not always work!!!

Calculating dependencies -
*** You need to adjust PKGDIR to emerge this package: /var/cache/binpkgs/binutils-2.33.1-r1.tbz2

... done!


Upd: never mind, I figured it out, had to do "All" directory and put file there.


Last edited by Pelvur on Fri Oct 02, 2020 4:56 am; edited 1 time in total
Back to top
View user's profile Send private message
Pelvur
n00b
n00b


Joined: 06 Jul 2020
Posts: 21

PostPosted: Fri Oct 02, 2020 4:55 am    Post subject: Reply with quote

mike155 wrote:
You could try the following:
  1. Download the binary package 'sys-devel/binutils-2.33.1-r1.tbz2' from http://packages.gentooexperimental.org/packages/amd64-stable/
  2. Install the binary package: 'emerge --oneshot binutils-2.33.1-r1.tbz2'
  3. Switch to binutils-2.33: 'eselect binutils list', 'eselect binutils set <N>', '. /etc/profile'
  4. Emerge binutils-2.34
  5. Switch to binutils-2.34
  6. Uninstall binutils-2.33


So I did this and I came back to initial error I had.So I am reposting all information again.

`emerge --info '=sys-devel/gcc-9.3.0-r1::gentoo'`:

Code:
Portage 3.0.4 (python 3.7.7-final-0, default/linux/amd64/17.1/desktop, gcc-9.3.0, glibc-2.31-r6, 5.4.48-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.4.48-gentoo-x86_64-Intel-R-_Core-TM-2_Extreme_CPU_X9100_@_3.06GHz-with-gentoo-2.7
KiB Mem:     8075484 total,   1308316 free
KiB Swap:   10239996 total,  10239740 free
Timestamp of repository gentoo: Wed, 30 Sep 2020 00:30:01 +0000
Head commit of repository gentoo: f60946ba6398fac3388cb690d6c687b03d7d8d4d
sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
app-shells/bash:          5.0_p18::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          3.7.7-r2::gentoo
dev-util/cmake:           3.16.5::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.34-r2::gentoo
sys-devel/gcc:            9.3.0::gentoo
sys-devel/gcc-config:     2.3.1::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: /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-extra-opts:
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes

localrepo
    location: /var/db/repos/localrepo
    masters: gentoo

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

waebbl
    location: /var/lib/layman/waebbl
    sync-type: laymansync
    sync-uri: https://github.com/waebbl/waebbl-gentoo.git
    masters: gentoo raiagent
    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/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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -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=native -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 qa-unresolved-soname-deps sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersync"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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 alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus dri dts dvd dvdr elogind emboss encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg lcms libglvnd libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt5 readline sdl seccomp spell split-usr ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis 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" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" 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="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" 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, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


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


The size of the build.log exceeds pastebin limit, so I only put as much as I can fit:
https://pastebin.com/HZdJSLmy
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3457
Location: Canada

PostPosted: Fri Oct 02, 2020 5:54 am    Post subject: Reply with quote

/usr/x86_64-pc-linux-gnu/bin/ld: cannot find crti.o: No such file or directory

/usr/lib/crti.o is part of glibc . Do you have this file ?
Back to top
View user's profile Send private message
Pelvur
n00b
n00b


Joined: 06 Jul 2020
Posts: 21

PostPosted: Fri Oct 02, 2020 6:00 am    Post subject: Reply with quote

dmpogo wrote:
/usr/x86_64-pc-linux-gnu/bin/ld: cannot find crti.o: No such file or directory

/usr/lib/crti.o is part of glibc . Do you have this file ?


Yes, here is what I get for qfile crti.o:
Code:

sys-libs/glibc: /usr/lib32/crti.o
sys-libs/glibc: /usr/lib64/crti.o
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Fri Oct 02, 2020 10:26 am    Post subject: Reply with quote

Something seems to be wrong with your 32 bit environment... Have you switched from the 17.0 profile to 17.1 recently? Did you follow the instructions in the news item?

Please post the output of:
Code:
ls -la  /usr/lib*/*crt*.o

Code:
qcheck glibc
Back to top
View user's profile Send private message
Pelvur
n00b
n00b


Joined: 06 Jul 2020
Posts: 21

PostPosted: Fri Oct 02, 2020 1:37 pm    Post subject: Reply with quote

mike155 wrote:
Something seems to be wrong with your 32 bit environment... Have you switched from the 17.0 profile to 17.1 recently? Did you follow the instructions in the news item?

Please post the output of:
Code:
ls -la  /usr/lib*/*crt*.o

Code:
qcheck glibc


I did switch profiles recently. I don't think I followed any instructions though.

ls -la /usr/lib*/*crt*.o:
Code:
-rw-r--r-- 1 root root 1468 Sep 29 20:11 /usr/lib32/crt1.o
-rw-r--r-- 1 root root 1128 Sep 29 20:11 /usr/lib32/crti.o
-rw-r--r-- 1 root root  440 Sep 29 20:11 /usr/lib32/crtn.o
-rw-r--r-- 1 root root 2092 Sep 29 20:11 /usr/lib32/gcrt1.o
-rw-r--r-- 1 root root  416 Sep 29 20:11 /usr/lib32/Mcrt1.o
-rw-r--r-- 1 root root 1440 Sep 29 20:11 /usr/lib32/Scrt1.o
-rw-r--r-- 1 root root 1880 Sep 29 20:12 /usr/lib64/crt1.o
-rw-r--r-- 1 root root 1168 Sep 29 20:12 /usr/lib64/crti.o
-rw-r--r-- 1 root root  648 Sep 29 20:12 /usr/lib64/crtn.o
-rw-r--r-- 1 root root 2400 Sep 29 20:12 /usr/lib64/gcrt1.o
-rw-r--r-- 1 root root  600 Sep 29 20:12 /usr/lib64/Mcrt1.o
-rw-r--r-- 1 root root 1848 Sep 29 20:12 /usr/lib64/Scrt1.o


qcheck glibc:
Code:
Checking sys-libs/glibc ...
 MD5-DIGEST: /etc/locale.gen
  * 1964 out of 1965 files are good
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Fri Oct 02, 2020 2:21 pm    Post subject: Reply with quote

Pelvur wrote:
I did switch profiles recently. I don't think I followed any instructions though.

The location of 32 bit libraries changed between 17.0 and 17.1. It is therefore necessary to follow the instructions in the news item: https://www.gentoo.org/support/news-items/2019-06-05-amd64-17-1-profiles-are-now-stable.html

Switching from 17.0 to 17.1 without executing the commands shown in the news item may lead to a ruined machine...

Please post the output of:
Code:
ls -la | grep lib

Code:
ls -la usr | grep lib
Back to top
View user's profile Send private message
Pelvur
n00b
n00b


Joined: 06 Jul 2020
Posts: 21

PostPosted: Fri Oct 02, 2020 2:56 pm    Post subject: Reply with quote

mike155 wrote:

Switching from 17.0 to 17.1 without executing the commands shown in the news item may lead to a ruined machine...

Yeah, that's may be what is going on then. I haven't mentioned it earlier but I lost my wifi as well. I hope resolving issues with gcc and running update will fix it.
I ended up doing the same with gcc as with binutils: installed binary package from the same link and running update currently (takes forever). Once it is done, I plan to replace gcc and then probably will follow proper instruction for switching the profile (unless I break something else before that).

Quote:
Please post the output of:
Code:
ls -la | grep lib

Code:
ls -la usr | grep lib


'ls -la | grep lib' does not return anything.

'ls -la usr | grep lib':
Code:
ls: cannot access 'usr': No such file or directory


So I though may be it should be '/usr' instead.

'ls -la /usr | grep lib':
Code:

drwxr-xr-x  17 root root   4096 Oct  2 05:27 lib
drwxr-xr-x   5 root root   4096 Sep 29 20:12 lib32
drwxr-xr-x  93 root root 118784 Oct  2 08:35 lib64
drwxr-xr-x  21 root root   4096 Oct  2 08:34 libexec


And similarly for root folder
'ls -la / | grep lib':
Code:
drwxr-xr-x  11 root root  4096 Oct  2 00:10 lib
drwxr-xr-x   2 root root  4096 Sep 29 20:12 lib32
drwxr-xr-x   7 root root 12288 Oct  2 01:00 lib64
lrwxrwxrwx   1 root root     5 Sep 29 20:11 lib.backup.0000 -> lib64
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3457
Location: Canada

PostPosted: Fri Oct 02, 2020 4:03 pm    Post subject: Reply with quote

After profiles properly switched, you should have

/usr/lib
/usr/lib64

and no /usr/lib32

crti.o should be in /usr/lib. This is where gcc looks for it and cannot find.

So the issue is going back to procedure for switching from 17.0 to 17.1 and completing it or recovering. I see you have backup files left
Back to top
View user's profile Send private message
Pelvur
n00b
n00b


Joined: 06 Jul 2020
Posts: 21

PostPosted: Sat Oct 03, 2020 1:14 am    Post subject: Reply with quote

Yes, it was incomplete switch of profiles. I think so at least.
So after I installed gcc from binaries, I ran updates and everything compiled fine. I then tried to compile gcc and got the same mistake. So I switched prifile back to 17.0 and then performed switching procedure properly. Everything went fine this time. My wifi is still not working though, so may be it was unrelated, still need to look into it.

Update: ok, wifi issue is related to updated kernel, switching back to 5.4.48 fixes it.

Thank you all for your help! And sorry for not checking news first.
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Gentoo on AMD64 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