Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 618786 - sys-devel/crossdev: 'crossdev -t powerpc64-unknown-linux-gnu --g ">=7.1" --show-fail-log' failed with ICE on x86_64 system (USE=vtv)
Summary: sys-devel/crossdev: 'crossdev -t powerpc64-unknown-linux-gnu --g ">=7.1" --sh...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Crossdev team
: 588664 (view as bug list)
Depends on:
Blocks: crossdev-bugs
  Show dependency tree
Reported: 2017-05-17 17:40 UTC by Jiří Moravec
Modified: 2017-12-30 23:21 UTC (History)
6 users (show)

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

info (cross-powerpc64-unknown-linux-gnu-info.log,22.89 KB, text/x-log)
2017-05-17 17:48 UTC, Jiří Moravec
cross-powerpc64-unknown-linux-gnu-gcc-stage2.log.xz (cross-powerpc64-unknown-linux-gnu-gcc-stage2.log.xz,65.28 KB, application/x-xz)
2017-05-17 17:50 UTC, Jiří Moravec
gcc-config.logs.tar.xz (gcc-config.logs.tar.xz,70.48 KB, application/x-xz)
2017-05-17 17:51 UTC, Jiří Moravec

Note You need to log in before you can comment on or make changes to this bug.
Description Jiří Moravec 2017-05-17 17:40:50 UTC
'crossdev -t powerpc64-unknown-linux-gnu --g ">=7.1" --show-fail-log' failed with ICE in gcc stage2 phase on x86_64 system.

Reproducible: Always

Steps to Reproduce:
1. crossdev -t powerpc64-unknown-linux-gnu --g ">=7.1" --show-fail-log

Actual Results:  
/var/tmp/portage/cross-powerpc64-unknown-linux-gnu/gcc-7.1.0-r1/work/gcc-7.1.0/libstdc++-v3/src/c++11/ In member function ‘void std::ctype<char>::_M_narrow_init() const’:
/var/tmp/portage/cross-powerpc64-unknown-linux-gnu/gcc-7.1.0-r1/work/gcc-7.1.0/libstdc++-v3/src/c++11/ internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <> for instructions.
make[5]: *** [Makefile:558: ctype.lo] Error 1

and many other similar ICEs

Expected Results:  
Building powerpc64-unknown-linux-gnu/gcc-7.1.0 exec without problem.

Portage 2.3.5 (python 3.4.5-final-0, hardened/linux/amd64, gcc-5.4.0, glibc-2.23-r3, 4.10.14-x1 x86_64)
System uname: Linux-4.10.14-x1-x86_64-AMD_FX-tm-8350_Eight-Core_Processor-with-gentoo-2.3
KiB Mem:    32784820 total,   7689592 free
KiB Swap:   50331632 total,  50274952 free
Timestamp of repository gentoo: Wed, 17 May 2017 13:04:01 +0000
sh bash 4.3_p48-r1
ld GNU gold (Gentoo 2.27 p1.0 2.27) 1.12
ccache version 3.2.7 [enabled]
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r1::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/ccache:          3.2.7::gentoo
dev-util/cmake:           3.7.2-r1::gentoo
dev-util/pkgconfig:       0.28-r3::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.26.2::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.4_p6-r2::gentoo, 1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.26.1::gentoo, 2.27::gentoo
sys-devel/gcc:            5.4.0-r3::jim-private, 6.3.0::jim-private, 7.1.0-r1::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo

    location: /usr/portage/ebuilds
    sync-type: git
    priority: -1000

    location: /usr/portage/overlays/jim
    masters: gentoo
    priority: 19

    location: /usr/portage/overlays/crossdev
    masters: gentoo
    priority: 20

    location: /usr/portage/overlays/layman/bliss-overlay
    sync-type: laymansync
    masters: gentoo
    priority: 50

    location: /usr/portage/overlays/layman/grub2-themes
    sync-type: laymansync
    masters: gentoo
    priority: 50

    location: /usr/portage/overlays/layman/java
    sync-type: laymansync
    sync-uri: git://
    masters: gentoo
    priority: 50

    location: /usr/portage/overlays/layman/seden
    sync-type: laymansync
    sync-uri: git://
    masters: gentoo
    priority: 50

    location: /usr/portage/overlays/layman/x11
    sync-type: laymansync
    sync-uri: git://
    masters: gentoo
    priority: 50

CFLAGS="-march=native -mtune=native -O2 -pipe -fdiagnostics-color=auto -mno-tbm -mvzeroupper -ftree-vectorize -fuse-ld=gold -flto=8 -fuse-linker-plugin -fno-fat-lto-objects -fno-delete-null-pointer-checks -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -fgraphite-identity"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -mtune=native -O2 -pipe -fdiagnostics-color=auto -mno-tbm -mvzeroupper -ftree-vectorize -fuse-ld=gold -flto=8 -fuse-linker-plugin -fno-fat-lto-objects -fno-delete-null-pointer-checks -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -fgraphite-identity"
EMERGE_DEFAULT_OPTS="--keep-going --ask-enter-invalid --quiet-build=y --quiet-fail=y --jobs=8 --load-average=7.8 --autounmask-keep-masks"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg ccache 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"
LDFLAGS="-march=native -mtune=native -O2 -pipe -fdiagnostics-color=auto -ftree-vectorize -fuse-ld=gold -flto=8 -fuse-linker-plugin -fno-fat-lto-objects -fno-delete-null-pointer-checks -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -fgraphite-identity -Wl,-O1,--sort-common,--hash-style=gnu,--as-needed "
MAKEOPTS="-j8 -l7.8"
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"
USE="7zip X aac acl acpi alsa amd64 bash-completion berkdb bzip2 cairo caps cli consolekit cracklib crypt cxx dbus dri dvd egl encode evdev faac faad fbcon fbcondecor fbsplash ffmpeg fftw flac gallium gdbm gif glamor gles gnutls gpm graphite gtk hardened hvm iconv id3tag infinality int64 introspection iproute2 ipv6 java jpeg jpeg2k justify kerberos lto lzma lzo mad matroska mng mod modules mp3 mp4 mpeg mpeg2 mpeg4 multilib mysql ncurses netlink nfs nfsv3 nfsv4 nls nptl nsplugin ntfs ogg openal opencl opengl openmp opus pam pax_kernel pcre pdf perl php pic pie png postgres python qt3support qt5 rdp readline samba sdl sdl2 seccomp semantic-desktop session slang ssl ssp svg tcpd theora tiff truetype unicode urandom usb userlocales vdpau vhosts virgl vlc vnc vorbis vpx vulkan wayland webkit webp x264 x265 xattr xen xml xtpax xv 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 proxy proxy_fcgi proxy_ftp proxy_http" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx fma3 fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc efi-64 xen" INPUT_DEVICES="evdev" KERNEL="linux" L10N="cs" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="cs" LLVM_TARGETS="AMDGPU BPF NVPTX X86 PowerPC AArch64 ARM Hexagon MSP430 Mips Sparc SystemZ XCore Lanai RISCV" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="i386 x86_64 or32 ppc64" QEMU_USER_TARGETS="i386 x86_64 or32 ppc64" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="radeon r600 radeonsi amdgpu virgl" 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"
Comment 1 Jiří Moravec 2017-05-17 17:48:57 UTC
Created attachment 473038 [details]
Comment 2 Jiří Moravec 2017-05-17 17:50:05 UTC
Created attachment 473040 [details]
Comment 3 Jiří Moravec 2017-05-17 17:51:42 UTC
Created attachment 473042 [details]
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2017-11-21 20:20:11 UTC
Is it better for 7.2.0 for you?

I have powerpc64-unknown-linux-gnu-gcc-7.2.0 built here locally.
Comment 5 Jiří Moravec 2017-11-25 11:38:09 UTC
(In reply to Sergei Trofimovich from comment #4)
> Is it better for 7.2.0 for you?
> I have powerpc64-unknown-linux-gnu-gcc-7.2.0 built here locally.

It's fine with USE="cxx graphite hardened nls nptl openmp pch pie ssp"
With USE+="sanitize vtv" flags it's failing with same ICEs.
Comment 6 Sergei Trofimovich (RETIRED) gentoo-dev 2017-11-25 13:21:54 UTC
Aha! Got the same crash. Looks simiar to

Program received signal SIGSEGV, Segmentation fault.
0x0000000000889de8 in symtab_node::ultimate_alias_target(availability*, symtab_node*) ()
(gdb) bt
#0  0x0000000000889de8 in symtab_node::ultimate_alias_target(availability*, symtab_node*) ()
#1  0x0000000000a47d05 in cgraph_node::ultimate_alias_target(availability*, symtab_node*) ()
#2  0x00000000012b9d27 in call_ABI_of_interest(tree_node*) ()
#3  0x00000000012b9fee in init_cumulative_args(rs6000_args*, tree_node*, rtx_def*, int, int, int, tree_node*, machine_mode) ()
#4  0x00000000009ed43b in expand_call(tree_node*, rtx_def*, int) ()
#5  0x0000000000b5a63a in expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ()
#6  0x0000000000b50a9b in expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ()
#7  0x0000000000b4a04a in store_expr_with_bounds(tree_node*, rtx_def*, int, bool, bool, tree_node*) ()
#8  0x0000000000b49477 in expand_assignment(tree_node*, tree_node*, bool) ()
Comment 7 Sergei Trofimovich (RETIRED) gentoo-dev 2017-12-28 18:57:00 UTC
*** Bug 588664 has been marked as a duplicate of this bug. ***
Comment 8 Larry the Git Cow gentoo-dev 2017-12-29 20:44:11 UTC
The bug has been referenced in the following commit(s):

commit 6027263a03cbfaa177399c466d48aa04f2e93f1d
Author:     Sergei Trofimovich <>
AuthorDate: 2017-12-29 20:30:54 +0000
Commit:     Sergei Trofimovich <>
CommitDate: 2017-12-29 20:30:54 +0000

    crossdev: change USE=vtv to whitelist
    Gentoo profiles enable vtv only for x86, amd64, arm and arm64.
    vtv is known to be broken at least for:
    - musl libc
    - bare metal targets
    - powerpc, powerpc64 (compiler SEGISEGVs: bug #618786)
    - hppa, ia64 (missing vtv crt* files)
    User can still explicitly enable vtv by tweaking
    Signed-off-by: Sergei Trofimovich <>

 crossdev | 24 +++++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)}
Comment 9 Larry the Git Cow gentoo-dev 2017-12-30 17:59:21 UTC
The bug has been closed via the following commit(s):

commit 390435ad20e62c5fa0fc8a3b9a09f0f0ddcdf58c
Author:     Sergei Trofimovich <>
AuthorDate: 2017-12-30 17:57:04 +0000
Commit:     Sergei Trofimovich <>
CommitDate: 2017-12-30 17:59:15 +0000

    sys-devel/crossdev: bump up to 20171230
    A few user-facing changes:
    - CROSSCOMPILE_OPTS=headers-only -> USE=headers-only transition (bug #642712)
    - USE=sanitize and USE=vtv are enabled only for whitelisted targets (bug #618786)
    Package-Manager: Portage-2.3.19, Repoman-2.3.6

 sys-devel/crossdev/Manifest                 |  1 +
 sys-devel/crossdev/crossdev-20171230.ebuild | 35 +++++++++++++++++++++++++++++
 2 files changed, 36 insertions(+)
Comment 10 Sergei Trofimovich (RETIRED) gentoo-dev 2017-12-30 23:21:34 UTC
I've disable USE=vtv for powerpc and other arches. Let's try to sort it out upstream first before bringing it back to gentoo.