Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 582002 - sys-devel/gcc-5: cross-compilers have trouble moving libcc1 due to ABI libdir mismatch
Summary: sys-devel/gcc-5: cross-compilers have trouble moving libcc1 due to ABI libdir...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Crossdev team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: crossdev-bugs
  Show dependency tree
 
Reported: 2016-05-03 18:34 UTC by Xavier Miller (RETIRED)
Modified: 2018-04-10 21:11 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (xz) (build.log.xz,48.77 KB, application/x-xz)
2016-05-03 18:34 UTC, Xavier Miller (RETIRED)
Details
build log for cross-armv6j-hardfloat-linux-gnueabi/gcc-5.3.0 (build.log.xz,90.54 KB, application/x-xz)
2016-05-03 19:00 UTC, Xavier Miller (RETIRED)
Details
patch for toolchain.eclass (toolchain.eclass.patch,453 bytes, patch)
2016-05-10 01:07 UTC, Alexandre Ferreira
Details | Diff
gcc-build-logs.tar.bz2 for cross-avr/gcc-5.4.0 (CHOST=x86_64-pc-linux-gnu) (gcc-build-logs.tar.bz2,393.99 KB, application/x-bzip)
2016-12-30 07:01 UTC, Matt Whitlock
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xavier Miller (RETIRED) gentoo-dev 2016-05-03 18:34:23 UTC
Created attachment 433126 [details]
build.log (xz)

I switched from a multilib to a no-multilib profile, and needed to re-emerge cross-i686-gentoo-linux-gnu/gcc-5.3.0. It ended with :
mv: cannot stat '/var/tmp/portage-notmpfs/portage/cross-i686-gentoo-linux-gnu/gcc-5.3.0/image//usr/lib64/libcc1*': No such file or directory

Same problem with armv6j-hardfloat-linux-gnueabi/gcc-5.3.0

emerge --info 
Portage 2.2.28 (python 3.5.1-final-0, default/linux/amd64/13.0/no-multilib, gcc-5.3.0, glibc-2.23-r2, 4.5.2-gentoo x86_64)
=================================================================
System uname: Linux-4.5.2-gentoo-x86_64-Intel-R-_Celeron-R-_2957U_@_1.40GHz-with-gentoo-2.2
KiB Mem:     3967872 total,   1219144 free
KiB Swap:    2097148 total,   2095084 free
Timestamp of repository gentoo: Tue, 03 May 2016 18:00:01 +0000
sh bash 4.3_p42-r2
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.2rc1 x86_64-gentoo-linux-gnu [enabled]
app-shells/bash:          4.3_p42-r2::gentoo
dev-lang/perl:            5.22.2::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.5.1-r2::gentoo
dev-util/cmake:           3.5.2::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.20.5::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.69-r2::gentoo
sys-devel/automake:       1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.5::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

local
    location: /usr/local/portage/overlay
    masters: gentoo
    priority: 0

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

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE as-is freedist"
CBUILD="x86_64-gentoo-linux-gnu"
CFLAGS="-march=core2 -mcx16 -msahf -mpclmul -mpopcnt -msse4.2 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=256 -mtune=core2 -fomit-frame-pointer -O2"
CHOST="x86_64-gentoo-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/php/apache2-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -mcx16 -msahf -mpclmul -mpopcnt -msse4.2 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=256 -mtune=core2 -fomit-frame-pointer -O2"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy config-protect-if-modified distcc distcc-pump distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LANG="fr_BE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu -Wl,--as-needed"
MAKEOPTS="-j5 -l2"
PKGDIR="/var/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="3dnow 3dnowext amd64 bzip2 cdda cddb cdio cli cracklib crypt cryptsetup cups cxx dbus djvu dlna dri dvb dvd fontconfig fpx gif iconv jbig jpeg jpeg2k libcanberra libsamplerate lzma mmx mmxext modules natspec ncurses nls nptl ocr openexr openmp osc pango pcre pdf png postscript qt5 raw readline samba sane scanner seccomp session sna sndfile snmp sqli sqlite sse sse2 sse4_1 sse4_2 ssl ssse3 svg tcpd te threads tiff truetype unicode upnp uxa webp wmf xattr xinerama xosd xvmc zlib" ABI_X86="64" ALSA_CARDS="hda-intel usb-audio virmidi" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" DVB_CARDS="usb-af9015" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr fr_BE fr_FR nl nl_BE" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python3_5" RUBY_TARGETS="ruby23" SANE_BACKENDS="hp" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Xavier Miller (RETIRED) gentoo-dev 2016-05-03 19:00:14 UTC
Created attachment 433128 [details]
build log for cross-armv6j-hardfloat-linux-gnueabi/gcc-5.3.0

Portage 2.2.28 (python 3.5.1-final-0, default/linux/amd64/13.0/no-multilib, gcc-5.3.0, glibc-2.23-r2, 4.5.2-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.5.2-gentoo-x86_64-Intel-R-_Core-TM-_i5-4200U_CPU_@_1.60GHz-with-gentoo-2.2
KiB Mem:     8081756 total,   3419500 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of repository gentoo: Tue, 03 May 2016 18:00:01 +0000
sh bash 4.3_p42-r2
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.2rc1 x86_64-gentoo-linux-gnu [disabled]
app-shells/bash:          4.3_p42-r2::gentoo
dev-lang/perl:            5.22.2::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.5.1-r2::gentoo
dev-util/cmake:           3.5.2::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.20.5::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.5::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

local
    location: /usr/local/portage/overlay
    masters: gentoo
    priority: 0

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

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE as-is freedist"
CBUILD="x86_64-gentoo-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=native -mtune=native"
CHOST="x86_64-gentoo-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="-O2 -pipe -fomit-frame-pointer -march=native -mtune=native"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LANG="fr_BE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu -Wl,--as-needed"
MAKEOPTS="-j7 -l5"
PKGDIR="/var/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="3dnow 3dnowext X a52 aac acpi alsa amd64 apng branding bzip2 cairo cdda cddb cdio cli cracklib crypt cryptsetup cups cxx dbus dlna dri dssi dts dvb dvd exif flac gif gpm gtk gudev iconv jack jpeg lcms libcanberra libnotify libsamplerate mad matroska mmx mmxext mng modules mp3 mpeg natspec ncurses nls nptl ocr ogg opengl openmp opus osc pam pango pcre pdf png python3 qt4 qt5 readline rubberband sane scanner sdl seccomp session sna sndfile snmp spell sqlite sse sse2 ssl startup-notification svg tcpd threads tiff truetype udev unicode upnp upower usb uxa vorbis wmf wps x264 xattr xcb xinerama xml xosd xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="ice1712 hda-intel usb-audio virmidi" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" DVB_CARDS="usb-af9015" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr fr_BE fr_FR nl nl_BE" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python3_5" RUBY_TARGETS="ruby23" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="intel i965" XFCE_PLUGINS="power brightness trash" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

cross-armv6j-hardfloat-linux-gnueabi/gcc-5.3.0::local was built with the following:
USE="cxx nls nptl openmp sanitize (-altivec) -awt -cilk -debug -doc (-fixed-point) -fortran -gcj -go -graphite -hardened -jit -libssp -multilib -multislot -nopie -nossp -objc -objc++ -objc-gc -regression-test -vanilla"
CFLAGS="-O2 -pipe"
CXXFLAGS=""
Comment 2 Alexandre Ferreira 2016-05-10 01:07:46 UTC
Created attachment 433804 [details, diff]
patch for toolchain.eclass

Changes toolchain.eclass to remove the reference of get_libdir on the origin of the transfer (not the destination).
Comment 3 Alexandre Ferreira 2016-05-10 01:10:31 UTC
Same here.
It seems that the problem is related to where gcc-5.3.0 put the libcc1 files (/usr/lib64) in my case. The documentation states that get_libdir should be used on the destination, but it is used in the origin here.
Attachment 433804 [details, diff] has a patch for that.
Comment 4 Alexandre Ferreira 2016-05-10 04:23:57 UTC
The patch does not work. The problem is related to toolchain.eclass but this patch breaks all the other cross-compilers.
Comment 5 Xavier Miller (RETIRED) gentoo-dev 2016-05-10 19:23:53 UTC
not related to multilib
Comment 6 Xavier Miller (RETIRED) gentoo-dev 2016-05-19 19:29:30 UTC
UP !

This bug is not yet assigned, what's happening?
Comment 7 Michael Weiser 2016-05-25 15:36:51 UTC
I seem to have the same problem although it presents slightly differently: 

mv: cannot stat '/var/tmp/portage/cross-armv5teb-softfloat-linux-gnueabi/gcc-5.3.0/image//usr/lib/libcc1*': No such file or directory
 * ERROR: cross-armv5teb-softfloat-linux-gnueabi/gcc-5.3.0::local-overlay failed (install phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  133:  Called src_install
 *   environment, line 3774:  Called toolchain_src_install
 *   environment, line 4883:  Called gcc_movelibs
 *   environment, line 1969:  Called die
 * The specific snippet of code:
 *           mv "${D}"/usr/$(get_libdir)/libcc1* "${D}${HOSTLIBPATH}" || die;

libcc1* seems to be expected in "${D}"/usr/lib but is actually installed in "${D}"/usr/lib64. When overriding via CONF_LIBDIR_OVERRIDE=lib64 installation succeeds. It seems get_libdir uses the target ABI to determine libdir but should in this case use the host ABI.

emerge --info cross-armv5teb-softfloat-linux-gnueabi/gcc
Portage 2.3.0_rc1 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop, gcc-5.3.0, glibc-2.23-r2, 4.5.1-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.5.1-gentoo-x86_64-Intel-R-_Core-TM-_i5-6500_CPU_@_3.20GHz-with-gentoo-2.2
KiB Mem:    16310228 total,   5700816 free
KiB Swap:    1023996 total,   1022836 free
Timestamp of repository gentoo: Tue, 24 May 2016 08:00:01 +0000
sh bash 4.3_p42-r2
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.3_p42-r2::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.0::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.3-r7::gentoo
dev-util/cmake:           3.5.2-r1::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.20.5::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.3.0::local-overlay
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2-r1::gentoo
sys-kernel/linux-headers: 4.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://annuminas/gentoo-portage
    priority: -1000

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 AdobeFlash-10.1 Oracle-BCLA-JavaSE AdobeFlash-10.3 AdobeFlash-11.x"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=broadwell -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/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="-O2 -march=broadwell -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=10"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp.halifax.rwth-aachen.de/gentoo/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
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 alsa amd64 apng berkdb branding bzip2 cairo cdda cdr cli cracklib crypt cups cxx dri dts dvd dvdr emboss encode firefox flac gcj glamor gnutls hardened iconv idn ipv6 jpeg kerberos kpathsea lm_sensors logrotate mad mbox mmap mmx mmxext modules mp3 mp4 mpm-worker multilib ncurses nptl nsplugin ogg opengl openssl pam pango pcre pdf pic png policykit python qt3support readline recode sasl sdl seccomp session sse sse2 ssl svg sysvipc tcpd threads tidy tiff udev udisks unicode upower usb vorbis webstart wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" 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 itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" 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="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="x86_64" QEMU_USER_TARGETS="x86_64" USERLAND="GNU" VIDEO_CARDS="intel" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

cross-armv5teb-softfloat-linux-gnueabi/gcc-5.3.0::local-overlay was built with the following:
USE="cxx hardened nptl sanitize vtv (-altivec) -awt -cilk -debug -doc (-fixed-point) -fortran -gcj -go -graphite -jit -libssp -mpx -multilib -multislot -nls -nopie -nossp -objc -objc++ -objc-gc -openmp -regression-test -vanilla" ABI_X86="64"
CFLAGS="-O2 -pipe"
CXXFLAGS=""
Comment 8 Michael Weiser 2016-06-24 20:14:25 UTC
Just ran into it again. Anything I can provide to help fix this?
Comment 9 Michael Weiser 2016-06-24 20:47:20 UTC
Okay, I thought I had stumbled across the solution by accident: /etc/portage/env/cross-*/*.conf of the failing toolchains (e.g. armv5teb-softfloat-linux-gnueabi) contained:

CHOST_x32='x86_64-pc-linux-gnu'
CTARGET_x32='x86_64-pc-linux-gnu'

Two other toolchains (armv7ve{,b}-hardfloat-linux-gnueabi) I installed recently had

CHOST_x32='x86_64-pc-linux-gnux32'
CTARGET_x32='x86_64-pc-linux-gnux32'

and emerged without the problem. But after amending the old toolchains' configs the problem still persists. Apart from CTARGET_default the env-snippets are identical now.

Are there any similar places I might look for stuff like this?
Comment 10 Xavier Miller (RETIRED) gentoo-dev 2016-07-11 07:24:53 UTC
Sorry to bump, but are there any news on this problem?
Comment 11 Martin von Gagern 2016-07-19 15:41:43 UTC
(In reply to Michael Weiser from comment #7)
> I seem to have the same problem although it presents slightly differently: 

I see the same as you: cross-mingw32 installed to lib64 but mv refers to lib. My crossdev install appears to be from 2010. Its /etc/portage/env/cross-mingw32/gcc contains

LIBDIR_pos="lib"

I wonder whether there is any established way to update the settings of a crossdev chain after it has been set up. Trying out ways to do this, I did --clean this cross setup, so I probably won't be able to contribute more information on the old setup I had there, but I'm trying to emerge a new cross-i686-w32-mingw32 setup now.
Comment 12 Xavier Miller (RETIRED) gentoo-dev 2016-09-02 19:11:20 UTC
So, is there any workaround for now?
Comment 13 Xavier Miller (RETIRED) gentoo-dev 2016-09-15 08:03:40 UTC
Adding "EXTRA_ECONF=--disable-libstdc++-v3" to the crossdev commandline seems working

[1] https://forums.gentoo.org/viewtopic-p-7965546.html#7965546
Comment 14 Xavier Miller (RETIRED) gentoo-dev 2016-09-15 10:20:08 UTC
The workaround doesn't work to cross-compile i686-pc-linux-gnu from an amd64 host
Comment 15 Xavier Miller (RETIRED) gentoo-dev 2016-09-21 08:08:35 UTC
If I remove the hacks introduced last months "EXTRA_ECONF=...", vanilla crossdev works very well.

Can this "bug" be closed then?
Comment 16 Matt Whitlock 2016-12-30 07:01:39 UTC
Created attachment 457904 [details]
gcc-build-logs.tar.bz2 for cross-avr/gcc-5.4.0 (CHOST=x86_64-pc-linux-gnu)

(In reply to Xavier Miller from comment #15)
> Can this "bug" be closed then?

cross-avr/gcc-5.4.0 still fails on x86_64-pc-linux-gnu:

mv: cannot stat '/var/tmp/portage/cross-avr/gcc-5.4.0/image//usr/lib/libcc1*': No such file or directory

The libcc1* libraries are in image/usr/lib64/ (as they are for x86_64).


# emerge -pqv '=cross-avr/gcc-5.4.0::crossdev'

[ebuild   R   ] cross-avr/gcc-5.4.0 [5.4.0] USE="multilib nptl (-altivec) -awt -cilk -cxx -debug -doc (-fixed-point) -fortran -gcj -go -graphite -hardened -jit -libssp -mpx -nls -nopie -nossp -objc -objc++ -objc-gc -openmp -regression-test -sanitize* -vanilla -vtv (-multislot%)"


# emerge --info '=cross-avr/gcc-5.4.0::crossdev'
Portage 2.3.3 (python 2.7.12-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-5.4.0, glibc-2.23-r3, 4.9.0-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.9.0-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.3
KiB Mem:     8165948 total,    302900 free
KiB Swap:    8388604 total,   7894568 free
Timestamp of repository gentoo: Fri, 30 Dec 2016 03:15:01 +0000
sh dash 0.5.9.1-r1
ld GNU gold (Gentoo 2.27 p1.0 2.27) 1.12
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.3.3 [enabled]
app-shells/bash:          4.4_p5-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/ccache:          3.3.3::gentoo
dev-util/cmake:           3.7.1::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.23::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.27::gentoo
sys-devel/gcc:            5.4.0-r2::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.9::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

local
    location: /var/db/portage/repos/local
    masters: gentoo
    priority: -2000

bitcoin
    location: /var/lib/layman/bitcoin
    sync-type: laymansync
    sync-uri: https://gitlab.com/bitcoin/gentoo.git
    masters: gentoo
    priority: -1500

fw-overlay
    location: /var/lib/layman/fw-overlay
    sync-type: laymansync
    sync-uri: https://github.com/no-hope/fw-overlay.git
    masters: gentoo
    priority: -1500

kde
    location: /var/lib/layman/kde
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/proj/kde.git
    masters: gentoo
    priority: -1500

vmware
    location: /var/lib/layman/vmware
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/vmware.git
    masters: gentoo
    priority: -1500

gentoo
    location: /var/db/portage/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.us.gentoo.org/gentoo-portage/
    priority: -1000

crossdev
    location: /var/db/portage/repos/crossdev
    masters: gentoo

lbry
    location: /var/db/portage/repos/lbry
    sync-type: git
    sync-uri: https://github.com/lbryio/lbry-gentoo-overlay.git
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -ggdb -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/X11/xkb /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/yp/Makefile"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dbus-1 /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.0/ext-active/ /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O3 -ggdb -pipe"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner --unordered-display --usepkg"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.leaseweb.com/gentoo/ http://mirrors.rit.edu/gentoo/ http://mirror.lug.udel.edu/pub/gentoo/ http://gentoo.mirrors.pair.com/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O2 -Wl,--as-needed"
MAKEOPTS="-j5 -l8"
PKGDIR="/var/cache/portage/packages"
PORTAGE_COMPRESS="xz"
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 acpi alsa amd64 berkdb branding bzip2 cairo cdda cdparanoia cdr cli consolekit cracklib crypt cups curl cxx dbus declarative dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fontconfig gdbm gif git glamor gmp gstreamer gtk iconv icu ipv6 jpeg kde kipi lame lcms libnotify libsamplerate lzma mad matroska mmx mmxext mng modules mp3 mp4 mpeg multilib mysql ncurses nptl nsplugin ogg opengl openmp pango pcre pdf phonon php plasma png policykit ppds qml qt3support qt4 qt5 quicktime readline sdl seccomp session smp spell sse sse2 ssl startup-notification subversion svg taglib tcmalloc theora threads tiff truetype udev udisks unicode upower usb v4l vaapi vdpau vnc vorbis vpx webkit widgets x264 xcb xcomposite xml xscreensaver xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="hda-intel" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en-US en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_US en" LIRC_DEVICES="mceusb" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" QEMU_SOFTMMU_TARGETS="arm" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="amdgpu radeon radeonsi" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 17 Matt Whitlock 2016-12-30 10:30:05 UTC
Please disregard my comment, as I am now strangely unable to reproduce the failure. I have successfully built the following on x86_64-pc-linux-gnu with no hacks needed:

* cross-armv5teb-softfloat-linux-gnueabi/gcc-5.4.0-r2 (new install)
* cross-armv6j-hardfloat-linux-gnueabi/gcc-5.4.0 (reinstall)
* cross-avr/gcc-5.4.0 (reinstall)
* cross-i686-gentoo-linux-gnu/gcc-5.4.0-r2 (new install)
* cross-x86_64-amazon-linux-gnu/gcc-5.4.0 (reinstall)
Comment 18 Ben 2017-10-07 02:38:33 UTC
I've been exhibiting this failure on just one of my machines and do not recall doing any hacks for this machine.  This showed up while trying to build during a world update (i.e. not a fresh crossdev run) though it failed during a initial subsequent crossdev as well.

This is a multilib amd64 building for target x86, stable gcc-5.4.0.  I had the crossdev there for a while so it was a fairly old setup, though there had been no warnings about any migrations.

I was looking through files in /etc/portage/env/cross-i686-pc-linux-gnu and it looks like there are two sets of files - one with .conf and other, older set without.

At wit's end (because there seems to be both reports of it working and not working, as well as the fact that I do have two other machines where a world update worked) I tried crossdev -C x86 (note: I had to type 'y' to delete old existing directores because some extra files I don't recall putting in got placed) and rebuilding crossdev -S x86 from scratch again.  This seems to have fixed the problem!

Thus there's some bad config in the stored options somewhere and unfortunately crossdev -C blew away my 4.9.4 cross compiler (and the old glibc that was built by 4.x) that I wanted to keep, but at least gcc 5.4.0 now completes build.
Comment 19 Sergei Trofimovich (RETIRED) gentoo-dev 2018-04-10 21:11:16 UTC
Let's close as obsolete then. Please report new bug if happens again and we'll try to investigate.