Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Portage advice broke toolchain; unable to compile anything
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
tessa
n00b
n00b


Joined: 17 Dec 2018
Posts: 14

PostPosted: Sat Oct 19, 2019 3:45 pm    Post subject: Portage advice broke toolchain; unable to compile anything Reply with quote

Hi,

I need desperately advice regarding my Gentoo installation. Yesterday I posted this https://forums.gentoo.org/viewtopic-t-1103084.html and thought I solved it using the advice from portage and users.
I created two files in package.use to solve the circular dependencies Portage complained about:
Code:

dev-util/pkgconfig internal-glib
media-libs/mesa -gallium -vaapi

When doing emerge -uDU --keep-going --with-bdeps=y @world Portage wanted some changes regarding Python and I went with it.
This morning the computer was riddled with error messages from emerge. GCC was also recompiled and there were a lot of errors from packages including:
Code:

C compiler cannot create executables

I guessed the toolchain is broken because of the recompiling of GCC So I tried recompiling libtool. That worked. After that I did: emerge --ask --oneshot --usepkg=n --verbose sys-devel/llvm sys-devel/clang dev-python/wxpython x11-libs/wxGTK but LLVM failed during installation with the following error.
build.log
Code:

-- Installing: /var/tmp/portage/sys-devel/llvm-9.0.0/image/usr/lib/llvm/9/lib/libLLVMX86Desc.so.9
CMake Error at lib/Target/X86/MCTargetDesc/cmake_install.cmake:41 (file):
  file INSTALL cannot copy file
  "/var/tmp/portage/sys-devel/llvm-9.0.0/work/llvm-9.0.0.src-abi_x86_32.x86/lib/libLLVMX86Desc.so.9"
  to
  "/var/tmp/portage/sys-devel/llvm-9.0.0/image/usr/lib/llvm/9/lib/libLLVMX86Desc.so.9".
Call Stack (most recent call first):
  lib/Target/X86/cmake_install.cmake:64 (include)
  lib/Target/cmake_install.cmake:65 (include)
  lib/cmake_install.cmake:61 (include)
  cmake_install.cmake:61 (include)


FAILED: CMakeFiles/install.util
cd /var/tmp/portage/sys-devel/llvm-9.0.0/work/llvm-9.0.0.src-abi_x86_32.x86 && /usr/bin/cmake -P cmake_install.cmake
ninja: build stopped: subcommand failed.
 ^[[31;01m*^[[0m ERROR: sys-devel/llvm-9.0.0::gentoo failed (install phase):
 ^[[31;01m*^[[0m   died running ninja install


So I figured that GCC could be the problem but when recompiling I get the folloring error in build.log
Code:

/var/tmp/portage/sys-devel/gcc-9.2.0-r1/work/build/./prev-gcc/xg++ -B/var/tmp/portage/sys-devel/gcc-9.2.0-r1/work/build/./prev-gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -nostdinc++ -B/var/tmp/port>
      cp/cp-lang.o c-family/stub-objc.o cp/call.o cp/class.o cp/constexpr.o cp/constraint.o cp/cp-gimplify.o cp/cp-objcp-common.o cp/cp-ubsan.o cp/cvt.o cp/cxx-pretty-print.o cp/decl.o cp/dec>
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
make[3]: *** [/var/tmp/portage/sys-devel/gcc-9.2.0-r1/work/gcc-9.2.0/gcc/cp/Make-lang.in:120: cc1plus] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [/var/tmp/portage/sys-devel/gcc-9.2.0-r1/work/gcc-9.2.0/gcc/fortran/Make-lang.in:97: f951] Error 1
make[3]: *** [/var/tmp/portage/sys-devel/gcc-9.2.0-r1/work/gcc-9.2.0/gcc/lto/Make-lang.in:81: lto1] Error 1
make[3]: *** [/var/tmp/portage/sys-devel/gcc-9.2.0-r1/work/gcc-9.2.0/gcc/c/Make-lang.in:85: cc1] Error 1
rm gcc.pod gfortran.pod
make[3]: Leaving directory '/var/tmp/portage/sys-devel/gcc-9.2.0-r1/work/build/gcc'
make[2]: *** [Makefile:4832: all-stageprofile-gcc] Error 2
make[2]: Leaving directory '/var/tmp/portage/sys-devel/gcc-9.2.0-r1/work/build'
make[1]: *** [Makefile:23778: stageprofile-bubble] Error 2
make[1]: Leaving directory '/var/tmp/portage/sys-devel/gcc-9.2.0-r1/work/build'
make: *** [Makefile:24032: profiledbootstrap] Error 2
 ^[[31;01m*^[[0m ERROR: sys-devel/gcc-9.2.0-r1::gentoo failed (compile phase):
 ^[[31;01m*^[[0m   emake failed
 ^[[31;01m*^[[0m
 ^[[31;01m*^[[0m If you need support, post the output of `emerge --info '=sys-devel/gcc-9.2.0-r1::gentoo'`,
 ^[[31;01m*^[[0m the complete build log and the output of `emerge -pqv '=sys-devel/gcc-9.2.0-r1::gentoo'`.
 ^[[31;01m*^[[0m The complete build log is located at '/var/tmp/portage/sys-devel/gcc-9.2.0-r1/temp/build.log'.
 ^[[31;01m*^[[0m The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-9.2.0-r1/temp/environment'.
 ^[[31;01m*^[[0m Working directory: '/var/tmp/portage/sys-devel/gcc-9.2.0-r1/work/build'
 ^[[31;01m*^[[0m S: '/var/tmp/portage/sys-devel/gcc-9.2.0-r1/work/gcc-9.2.0'
 ^[[31;01m*^[[0m
 ^[[31;01m*^[[0m Please include /var/tmp/portage/sys-devel/gcc-9.2.0-r1/work/gcc-build-logs.tar.bz2 in your bug report.
 ^[[31;01m*^[[0m


Please help how to get out of this mess


Last edited by tessa on Sat Oct 19, 2019 4:29 pm; edited 4 times in total
Back to top
View user's profile Send private message
fturco
Veteran
Veteran


Joined: 08 Dec 2010
Posts: 1181
Location: Italy

PostPosted: Sat Oct 19, 2019 4:01 pm    Post subject: Reply with quote

Please post the output of:
Code:
emerge --info
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


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

PostPosted: Sat Oct 19, 2019 4:15 pm    Post subject: Reply with quote

tessa,

the real problem is that you haven't read the manual.
  1. You use "-O3" although it's not recommended
  2. You switched to testing (although it's not recommended, at least for beginners)
  3. You don't seem to know the difference between USE flags in the command line, in /etc/portage/make.conf or in /etc/portage/package.use.
  4. You don't seem to know when to use "--oneshot", what /var/lib/portage/world is for and which packages should or should not be included in /var/lib/portage/world

And then you're surpised that you get strange messages abour circular dependencies from emerge? And then you totally screwed up your system?

Please read the manual before you go on.

BTW: Even the link you posted above doesn't work (klick on it)
Back to top
View user's profile Send private message
tessa
n00b
n00b


Joined: 17 Dec 2018
Posts: 14

PostPosted: Sat Oct 19, 2019 4:32 pm    Post subject: Reply with quote

fturco wrote:
Please post the output of:
Code:
emerge --info

Code:

Portage 2.3.76 (python 3.6.9-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-9.2.0, glibc-2.29-r5, 5.3.6-gentoo-r1 x86_64)
=================================================================
System uname: Linux-5.3.6-gentoo-r1-x86_64-Intel-R-_Core-TM-_i5-2520M_CPU_@_2.50GHz-with-gentoo-2.6
KiB Mem:    12141864 total,   3370604 free
KiB Swap:    7194292 total,    334784 free
Timestamp of repository gentoo: Mon, 14 Oct 2019 14:15:01 +0000
Head commit of repository gentoo: a4b7ca362995ebc610c403eeb0be4f67726b3d6f
sh bash 5.0_p11
ld GNU ld (Gentoo 2.32 p2) 2.32.0
ccache version 3.7.4 [disabled]
app-shells/bash:          5.0_p11::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.0::gentoo
dev-lang/python:          2.7.16-r102::lto-overlay, 3.6.9-r1::lto-overlay
dev-util/ccache:          3.7.4::gentoo
dev-util/cmake:           3.15.4::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::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.32-r1::gentoo
sys-devel/gcc:            9.2.0-r1::gentoo
sys-devel/gcc-config:     2.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r5::gentoo
Repositories:

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

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

dotnet
    location: /var/lib/layman/dotnet
    masters: gentoo
    priority: 50

kde
    location: /var/lib/layman/kde
    masters: gentoo
    priority: 50

lto-overlay
    location: /var/lib/layman/lto-overlay
    masters: gentoo mv
    priority: 50

mv
    location: /var/lib/layman/mv
    masters: gentoo
    priority: 50

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

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

zugaina
    location: /var/lib/layman/zugaina
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -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/php/apache2-php7.3/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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 -O3 -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 sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O3 -pipe"
GENTOO_MIRRORS="https://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="nl_NL.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
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 cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gles gpm gtk iconv icu ipv6 jpeg kde kipi kwallet lcms ldap libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qml qt5 readline samba sdl seccomp semantic-desktop spell split-usr ssl startup-notification svg systemd tcpd tiff truetype udev udisks unicode upower usb vaapi vorbis widgets wxwidgets x264 xattr xcb xcomposite 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 mmx mmxext pclmul popcnt 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" INPUT_DEVICES="synaptics libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25 ruby26" USERLAND="GNU" VIDEO_CARDS="intel i965" 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
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21607

PostPosted: Sat Oct 19, 2019 4:57 pm    Post subject: Reply with quote

tessa wrote:
When doing emerge -uDU --keep-going --with-bdeps=y @world Portage wanted some changes regarding Python and I went with it.
What changes did you make here?
tessa wrote:
This morning the computer was riddled with error messages from emerge. GCC was also recompiled and there were a lot of errors from packages including:
Code:
C compiler cannot create executables
In what way was it broken? The package's configure log should give more detail.
tessa wrote:
I guessed the toolchain is broken because of the recompiling of GCC So I tried recompiling libtool. That worked. After that I did: emerge --ask --oneshot --usepkg=n --verbose sys-devel/llvm sys-devel/clang dev-python/wxpython x11-libs/wxGTK but LLVM failed during installation with the following error.
build.log
Code:
-- Installing: /var/tmp/portage/sys-devel/llvm-9.0.0/image/usr/lib/llvm/9/lib/libLLVMX86Desc.so.9
CMake Error at lib/Target/X86/MCTargetDesc/cmake_install.cmake:41 (file):
  file INSTALL cannot copy file
  "/var/tmp/portage/sys-devel/llvm-9.0.0/work/llvm-9.0.0.src-abi_x86_32.x86/lib/libLLVMX86Desc.so.9"
  to
  "/var/tmp/portage/sys-devel/llvm-9.0.0/image/usr/lib/llvm/9/lib/libLLVMX86Desc.so.9".
Call Stack (most recent call first):
  lib/Target/X86/cmake_install.cmake:64 (include)
  lib/Target/cmake_install.cmake:65 (include)
  lib/cmake_install.cmake:61 (include)
  cmake_install.cmake:61 (include)


FAILED: CMakeFiles/install.util
cd /var/tmp/portage/sys-devel/llvm-9.0.0/work/llvm-9.0.0.src-abi_x86_32.x86 && /usr/bin/cmake -P cmake_install.cmake
ninja: build stopped: subcommand failed.
 ^[[31;01m*^[[0m ERROR: sys-devel/llvm-9.0.0::gentoo failed (install phase):
 ^[[31;01m*^[[0m   died running ninja install
Why is it not able to copy this file? Are you out of space? Does the origin not exist? Is the destination a nonexistent directory?
tessa wrote:
So I figured that GCC could be the problem but when recompiling I get the folloring error in build.log
Code:
/var/tmp/portage/sys-devel/gcc-9.2.0-r1/work/build/./prev-gcc/xg++ -B/var/tmp/portage/sys-devel/gcc-9.2.0-r1/work/build/./prev-gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -nostdinc++ -B/var/tmp/port>
      cp/cp-lang.o c-family/stub-objc.o cp/call.o cp/class.o cp/constexpr.o cp/constraint.o cp/cp-gimplify.o cp/cp-objcp-common.o cp/cp-ubsan.o cp/cvt.o cp/cxx-pretty-print.o cp/decl.o cp/dec>
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
What is the error here? Also, your build log is strangely mangled. How did you copy it? It is losing the content of long lines.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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