Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc not compiling
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
gurbirsidhu
n00b
n00b


Joined: 07 Sep 2020
Posts: 11

PostPosted: Mon Sep 07, 2020 10:43 am    Post subject: gcc not compiling Reply with quote

Hello,
I am new to Gentoo. It has been only 4 days since I installed Gentoo.
I was going for a full system upgrade today with the command:
Code:
sudo emerge --ask --update @world

However, portage was not able to compile gcc-10.2.0-r1.
Then I tried to emerge it separately, by running the command
Code:
sudo emerge gcc

However, the compilation again failed.
The output of "emerge --info '=sys-devel/gcc-10.2.0-r1::gentoo'" is:
Code:
Portage 3.0.5 (python 3.7.8-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-9.3.0, glibc-2.32-r1, 5.4.60-gentoo-x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.4.60-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i5-8265U_CPU_@_1.60GHz-with-gentoo-2.7
KiB Mem:     8005640 total,   1697284 free
KiB Swap:    9215996 total,   9215996 free
Timestamp of repository gentoo: Mon, 07 Sep 2020 03:30:01 +0000
Head commit of repository gentoo: d4d6f16ec3b59224fc83281f119b9669275f654d
sh bash 5.0_p18
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
app-shells/bash:          5.0_p18::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18-r1::gentoo, 3.7.8-r2::gentoo, 3.8.5::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.33.1-r1::gentoo, 2.34-r2::gentoo
sys-devel/gcc:            9.3.0-r1::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-r1::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-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts:

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/sandbox.d /etc/terminfo"
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 protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://gentoo.aditsu.net:8000/ http://gentoo.modulix.net/gentoo/ http://ftp.romnet.org/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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 berkdb bluetooth branding bzip2 cairo cdda cdr 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 ldap libglvnd libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds 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="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" GRUB_PLATFORMS="efi-64" 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" 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, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

There is no build log at "/var/tmp/portage/sys-devel/gcc-10.2.0-r1/temp/build.log"
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54577
Location: 56N 3W

PostPosted: Mon Sep 07, 2020 10:53 am    Post subject: Reply with quote

gurbirsidhu,

Welcome to Gentoo.

You appear to have been able to install sudo.
What error do you get when you run
Code:
sudo emerge gcc --ask --verbose --oneshot


I don't use sudo for updates. Thege are other things that only root can do too.
Portage starts as root then drops to the portage user to do non root things.

--oneshot is important for debugging. It provends things being added to your world file.
Accidental world file entries store up problems for later.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2852

PostPosted: Mon Sep 07, 2020 10:55 am    Post subject: Reply with quote

Code:
default/linux/amd64/17.0/desktop/plasma
Given it's been 4 days since you installed gentoo I assume you had a 17.1 stage3 and then downgraded profile to 17.0. Will cause issues and isn't a supported switch.
Back to top
View user's profile Send private message
gurbirsidhu
n00b
n00b


Joined: 07 Sep 2020
Posts: 11

PostPosted: Mon Sep 07, 2020 11:04 am    Post subject: Reply with quote

NeddySeagoon wrote:
gurbirsidhu,

Welcome to Gentoo.

You appear to have been able to install sudo.
What error do you get when you run
Code:
sudo emerge gcc --ask --verbose --oneshot


I don't use sudo for updates. Thege are other things that only root can do too.
Portage starts as root then drops to the portage user to do non root things.

--oneshot is important for debugging. It provends things being added to your world file.
Accidental world file entries store up problems for later.


The error message is same as before:
Code:
/usr/x86_64-pc-linux-gnu/bin/ld: cannot find crti.o: No such file or directory
collect2: error: ld returned 1 exit status
make[5]: *** [Makefile:994: libgcc_s.so] Error 1
make[5]: Leaving directory '/var/tmp/portage/sys-devel/gcc-10.2.0-r1/work/build/x86_64-pc-linux-gnu/32/libgcc'
make[4]: *** [Makefile:1212: multi-do] Error 1
make[4]: Leaving directory '/var/tmp/portage/sys-devel/gcc-10.2.0-r1/work/build/x86_64-pc-linux-gnu/libgcc'
make[3]: *** [Makefile:127: all-multi] Error 2
make[3]: Leaving directory '/var/tmp/portage/sys-devel/gcc-10.2.0-r1/work/build/x86_64-pc-linux-gnu/libgcc'
make[2]: *** [Makefile:18614: all-stage1-target-libgcc] Error 2
make[2]: Leaving directory '/var/tmp/portage/sys-devel/gcc-10.2.0-r1/work/build'
make[1]: *** [Makefile:23570: stage1-bubble] Error 2
make[1]: Leaving directory '/var/tmp/portage/sys-devel/gcc-10.2.0-r1/work/build'
make: *** [Makefile:23902: bootstrap-lean] Error 2
 * ERROR: sys-devel/gcc-10.2.0-r1::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sys-devel/gcc-10.2.0-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/gcc-10.2.0-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-devel/gcc-10.2.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-10.2.0-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-devel/gcc-10.2.0-r1/work/build'
 * S: '/var/tmp/portage/sys-devel/gcc-10.2.0-r1/work/gcc-10.2.0'
 *
 * Please include /var/tmp/portage/sys-devel/gcc-10.2.0-r1/work/gcc-build-logs.tar.bz2 in your bug report.
 *

>>> Failed to emerge sys-devel/gcc-10.2.0-r1, Log file:

>>>  '/var/tmp/portage/sys-devel/gcc-10.2.0-r1/temp/build.log'

 * Messages for package sys-devel/gcc-10.2.0-r1:

 * ERROR: sys-devel/gcc-10.2.0-r1::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sys-devel/gcc-10.2.0-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/gcc-10.2.0-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-devel/gcc-10.2.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-10.2.0-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-devel/gcc-10.2.0-r1/work/build'
 * S: '/var/tmp/portage/sys-devel/gcc-10.2.0-r1/work/gcc-10.2.0'
 *
 * Please include /var/tmp/portage/sys-devel/gcc-10.2.0-r1/work/gcc-build-logs.tar.bz2 in your bug report.
 *
Back to top
View user's profile Send private message
gurbirsidhu
n00b
n00b


Joined: 07 Sep 2020
Posts: 11

PostPosted: Mon Sep 07, 2020 11:10 am    Post subject: Reply with quote

Ionen wrote:
Code:
default/linux/amd64/17.0/desktop/plasma
Given it's been 4 days since you installed gentoo I assume you had a 17.1 stage3 and then downgraded profile to 17.0. Will cause issues and isn't a supported switch.

Does it mean I have to install it again?? :(
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2852

PostPosted: Mon Sep 07, 2020 11:13 am    Post subject: Reply with quote

If you haven't managed to install anything since the change, simply changing the profile to a 17.1 version should be fine.

If something did install, then "might" have left some damage that would need some looking into (Edit: if nothing major, just re-installing those may be enough though).

Edit: also, may want to remove ~amd64 from your accept_keywords, not really recommended for new users (this is notably what is causing gcc10 to be installed and gcc10 leads to a long list of issues that may or may not affect you). You can selectively accept things from ~testing if need be rather than have the whole system use it.
Back to top
View user's profile Send private message
gurbirsidhu
n00b
n00b


Joined: 07 Sep 2020
Posts: 11

PostPosted: Mon Sep 07, 2020 11:55 am    Post subject: Reply with quote

Ionen wrote:
If you haven't managed to install anything since the change, simply changing the profile to a 17.1 version should be fine.

If something did install, then "might" have left some damage that would need some looking into (Edit: if nothing major, just re-installing those may be enough though).

Edit: also, may want to remove ~amd64 from your accept_keywords, not really recommended for new users (this is notably what is causing gcc10 to be installed and gcc10 leads to a long list of issues that may or may not affect you). You can selectively accept things from ~testing if need be rather than have the whole system use it.

I think I selected the 17.0 profile during installation.I have now set the profile to 17.1. And yes, I had installed packages after setting profile to 17.0. So what steps should I take now?

I have removed "~amd64" from ACCEPT_KEYWORDS. Now, "emerge --ask --update @world" doesn't show latest updates for installed packages (eg. it was showing update of kernel to 5.8.7 but now no update is shown).
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54577
Location: 56N 3W

PostPosted: Mon Sep 07, 2020 12:02 pm    Post subject: Reply with quote

gurbirsidhu,

What was the file name of the stage3 you used?
It may still be in /.
That will tell us if it was expecting a /17.0/ or /17.1/ profile

Switching to the correct profile the emerging that packages you installed while the incorrect profile was set should fix any damage but may leave orphaned files on your system.
Read /var/log/emerge.log to see all the packages you have ever installed, along with dates and times.

-- Edit --

Changing ACCEPT_KEYWORDS will not fix the problem. Its still there, you just don't see it any more.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
gurbirsidhu
n00b
n00b


Joined: 07 Sep 2020
Posts: 11

PostPosted: Mon Sep 07, 2020 12:20 pm    Post subject: Reply with quote

NeddySeagoon wrote:
gurbirsidhu,

What was the file name of the stage3 you used?
It may still be in /.
That will tell us if it was expecting a /17.0/ or /17.1/ profile

Switching to the correct profile the emerging that packages you installed while the incorrect profile was set should fix any damage but may leave orphaned files on your system.
Read /var/log/emerge.log to see all the packages you have ever installed, along with dates and times.

-- Edit --

Changing ACCEPT_KEYWORDS will not fix the problem. Its still there, you just don't see it any more.


There is no such file. But I think I had downloaded "stage3-amd64-20200906T214503Z.tar.xz"
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54577
Location: 56N 3W

PostPosted: Mon Sep 07, 2020 12:34 pm    Post subject: Reply with quote

gurbirsidhu,

That stage3 expects a /17.1/ profile.

Choose the default/linux/amd64/17.1/desktop/plasma profile and run al root,
Code:
emerge binutils--ask --verbose --oneshot

binutils provides the linker, which is what provoked the
Code:
/usr/x86_64-pc-linux-gnu/bin/ld: cannot find crti.o: No such file or directory
collect2: error: ld returned 1 exit status
message.

The difference between the 17.0 and 17.1 profiles are where some files are located on disk.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
gurbirsidhu
n00b
n00b


Joined: 07 Sep 2020
Posts: 11

PostPosted: Tue Sep 08, 2020 4:23 am    Post subject: Reply with quote

Ok... I have done that . And it completed without any error. Any other thing to be done?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54577
Location: 56N 3W

PostPosted: Tue Sep 08, 2020 7:41 am    Post subject: Reply with quote

gurbirsidhu,

Try it and see :)
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
gurbirsidhu
n00b
n00b


Joined: 07 Sep 2020
Posts: 11

PostPosted: Tue Sep 08, 2020 10:25 am    Post subject: Reply with quote

I again added ACCEPT_KEYWORDS="~amd64" in /etc/portage/make.conf file and then tried to emerge gcc (version 10.2.0-r1). Sadly, it is showing the same error which is reported in the first message of this thread. :?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54577
Location: 56N 3W

PostPosted: Tue Sep 08, 2020 4:13 pm    Post subject: Reply with quote

gurbirsidhu,

A long time ago when there was a stage1 install, there was a script called bootstrap.sh. Its purpose is to rebuild your toolchain in the right order.
The stage1 install is long gone but the script is still there.

As root, run
Code:
/var/db/repos/gentoo/scripts/bootstrap.sh
and go for a coffee.

If this fails we will look at installing some binary packages on your system.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
gurbirsidhu
n00b
n00b


Joined: 07 Sep 2020
Posts: 11

PostPosted: Wed Sep 09, 2020 3:14 am    Post subject: Reply with quote

NeddySeagoon wrote:
gurbirsidhu,

A long time ago when there was a stage1 install, there was a script called bootstrap.sh. Its purpose is to rebuild your toolchain in the right order.
The stage1 install is long gone but the script is still there.

As root, run
Code:
/var/db/repos/gentoo/scripts/bootstrap.sh
and go for a coffee.

If this fails we will look at installing some binary packages on your system.


I ran this command. It failed at 3rd Step of (Emerging Packages) with following error:
Code:
(sys-devel/gcc-9.3.0-r1:9.3.0/9.3.0::gentoo, ebuild scheduled for merge) USE="(cxx) (multilib) nls nptl (pie) (-ada) (-altivec) -d -debug -doc (-fixed-point) -fortran -go -graphite (-hardened) -jit (-libssp) -lto -objc -objc++ -objc-gc -openmp -pch -pgo -sanitize -ssp -systemtap -test -vanilla -vtv" ABI_X86="(64)" pulled in by
    sys-devel/gcc (Argument)

  (sys-devel/gcc-9.3.0-r1-3:9.3.0/9.3.0::gentoo, installed) 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" ABI_X86="(64)" pulled in by
    sys-devel/gcc[fortran,openmp?] required by (virtual/fortran-0:0/0::gentoo, installed) USE="openmp" ABI_X86="(64)"
                  ^^^^^^^ ^^^^^^^                                                                                                                                                                                 
    >=sys-devel/gcc-4.2:*[openmp] required by (app-portage/portage-utils-0.87:0/0::gentoo, installed) USE="nls openmp qmanifest qtegrity -libressl -static" ABI_X86="(64)"
                          ^^^^^^                                                                                                                                                                                                                                                                                                                   
    >=sys-devel/gcc-4.2:*[openmp] required by (app-crypt/libb2-0.98.1-r2:0/0::gentoo, installed) USE="openmp -native-cflags -static-libs" ABI_X86="(64) -32 (-x32)"
                          ^^^^^^                                                                                                                                                                                                                                                                                         

sys-libs/zlib:0

  (sys-libs/zlib-1.2.11-r2:0/1::gentoo, ebuild scheduled for merge) USE="(split-usr) -minizip -static-libs" ABI_X86="(64) -32 (-x32)" pulled in by
    sys-libs/zlib (Argument)

  (sys-libs/zlib-1.2.11-r2:0/1::gentoo, installed) USE="minizip (split-usr) -static-libs" ABI_X86="(64) -32 (-x32)" pulled in by
    sys-libs/zlib[minizip] required by (media-video/vlc-3.0.11.1:0/5-9::gentoo, installed) USE="X a52 alsa dbus dts dvbpsi dvd encode ffmpeg flac gcrypt jpeg libnotify libsamplerate mad mp3 mpeg ncurses ogg png qt5 ssl svg truetype udev vorbis x264 xml -aom -archive -aribsub -bidi -bluray -cddb -chromaprint -chromecast -dav1d -dc1394 -debug (-directx) -faad -fdk -fluidsynth -fontconfig -gme -gnome-keyring -gstreamer -ieee1394 -jack -kate -libass -libcaca -libtar -libtiger -linsys -lirc -live -lua -macosx-notifications -matroska -modplug -mtp -musepack -nfs -omxil -optimisememory -opus -projectm -pulseaudio -rdp -run-as-root -samba -sdl-image -sftp -shout -sid -skins -soxr -speex -srt -taglib -test -theora -tremor -twolame -upnp -v4l -vaapi -vdpau -vnc -vpx -wayland -x265 -zeroconf -zvbi" ABI_X86="(64)" CPU_FLAGS_X86="mmx sse"
                  ^^^^^^^                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     


It might be possible to solve these slot collisions
by applying all of the following changes:
   - sys-devel/gcc-9.3.0-r1 (Change USE: +openmp +fortran)
   - sys-libs/zlib-1.2.11-r2 (Change USE: +minizip)


So, as per the instructions in the last 2 lines, I added openmp, fortran and minizip to the USE variable in /etc/portage/make.conf (I could only think of this way to add USE flags). After that I again ran that command, and this is what I got:
Code:
/var/db/repos/gentoo/scripts/bootstrap.sh
 * Resuming bootstrap at internal stage #2 ...

Gentoo Linux; http://www.gentoo.org/
Copyright 1999-2020 Gentoo Authors; Distributed under the GPLv2
Starting Bootstrap of base system ...
-------------------------------------------------------------------------------
  [[ (0/3) Locating packages ]]
/usr/lib/python3.7/site-packages/portage/package/ebuild/_config/KeywordsManager.py:69: UserWarning: /etc/portage/package.keywords is deprecated, use /etc/portage/package.accept_keywords instead
  UserWarning)
/usr/lib/python3.7/site-packages/portage/package/ebuild/_config/KeywordsManager.py:69: UserWarning: /etc/portage/package.keywords is deprecated, use /etc/portage/package.accept_keywords instead
  UserWarning)
 * Using baselayout : >=sys-apps/baselayout-2
 * Using portage    : sys-apps/portage
 * Using os-headers : >=sys-kernel/linux-headers-5.4-r1
 * Using binutils   : sys-devel/binutils
 * Using gcc        : sys-devel/gcc
 * Using gettext    : sys-devel/gettext
 * Using libc       : sys-libs/glibc:2.2
 * Using texinfo    : sys-apps/texinfo
 * Using zlib       : sys-libs/zlib
 * Using ncurses    : sys-libs/ncurses
-------------------------------------------------------------------------------
  [[ (1/3) Configuring environment ]]
-------------------------------------------------------------------------------
  [[ (3/3) Emerging packages ]]
/usr/lib/python3.7/site-packages/portage/package/ebuild/_config/KeywordsManager.py:69: UserWarning: /etc/portage/package.keywords is deprecated, use /etc/portage/package.accept_keywords instead
  UserWarning)
!!! CONFIG_PROTECT is empty
emerge: It seems we have nothing to resume...
-------------------------------------------------------------------------------
/usr/lib/python3.7/site-packages/portage/package/ebuild/_config/KeywordsManager.py:69: UserWarning: /etc/portage/package.keywords is deprecated, use /etc/portage/package.accept_keywords instead
  UserWarning)
!!! CONFIG_PROTECT is empty

Calculating dependencies... done!
>>> No packages selected for removal by prune
>>> To see reverse dependencies, use --verbose
>>> To ignore dependencies, use --nodeps
-------------------------------------------------------------------------------
 * Please note that you should now add the '-e' option for emerge system:

 *   # emerge <other_opts> -e @system


I think it completed successfully (but I didn't have to go for a coffee, it completed in a couple of seconds).
And yes, emerging gcc is giving same error even now.
Back to top
View user's profile Send private message
lefsha
Veteran
Veteran


Joined: 30 Aug 2004
Posts: 1235
Location: Burgas, Bulgaria

PostPosted: Wed Sep 23, 2020 8:10 pm    Post subject: Reply with quote

gurbirsidhu wrote:


The error message is same as before:
Code:
/usr/x86_64-pc-linux-gnu/bin/ld: cannot find crti.o: No such file or directory
collect2: error: ld returned 1 exit status


Why not follow error messages you are receiving?

It stands - crti.o is not found.

Code:
# qfile crti.o
sys-libs/glibc: /usr/lib64/crti.o


Do you have that file? Do you have glibc properly installed?

Your system seems to be broken independent from profile you are using.

Frankly I don't believe any profile will cause these problems.


My suggestions:

0. Never change anything you have no idea about how it works.
But if you really do that think twice and rebuild the whole system.

1. Make first a clean system w/o issues and w/o any gcc upgrade.
2. Clean-up you make.conf file and run emerge deepclean.
3. You have 3! python version installed, but only 2 are allowed by your profile.
The highest python version supported by most packages at the moment 3.7
Others are only partly supported. Remove all besides 1.
4. Rebuild the world with gcc9 and make sure everything else is working well.

Summary - you don't have any issue with building of gcc10, but you have an issue with everything else.
_________________
Lefsha
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    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