Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 692188 - sys-devel/gcc-9.2.0: fails on ppc64le with USE="lto pgo" relocation truncated to fit: R_PPC64_REL24
Summary: sys-devel/gcc-9.2.0: fails on ppc64le with USE="lto pgo" relocation truncated...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-15 08:07 UTC by Georgy Yakovlev
Modified: 2019-08-16 19:36 UTC (History)
0 users

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


Attachments
temp directory tarball (build-temp.tar.gz,182.99 KB, application/gzip)
2019-08-15 08:07 UTC, Georgy Yakovlev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Georgy Yakovlev archtester gentoo-dev 2019-08-15 08:07:37 UTC
Created attachment 586808 [details]
temp directory tarball

Portage 2.3.71 (python 3.6.9-final-0, default/linux/powerpc/ppc64/17.0/64bit-userland/little-endian, gcc-8.3.0, glibc-2.29-r4, 5.2.8-gentoo ppc64le)
=================================================================
System uname: Linux-5.2.8-gentoo-ppc64le-POWER9,_altivec_supported-with-gentoo-2.6
KiB Mem:   536007616 total, 450053312 free
KiB Swap:  134217600 total, 134217600 free
Timestamp of repository gentoo: Wed, 14 Aug 2019 21:06:31 +0000
Head commit of repository gentoo: 7db45467f003471b2ee14bf56a13e6807af8cb11

sh bash 5.0_p7
ld GNU ld (Gentoo 2.32 p2) 2.32.0
app-shells/bash:          5.0_p7::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.0::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.9::gentoo
dev-util/cmake:           3.15.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.41.2::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            8.3.0-r1::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r4::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
    priority: -1000
    sync-git-verify-commit-signature: true
    sync-git-clone-extra-opts: -b master

Installed sets: @mycompress
ACCEPT_KEYWORDS="ppc64"
ACCEPT_LICENSE="@FREE"
CBUILD="powerpc64le-unknown-linux-gnu"
CFLAGS=""
CHOST="powerpc64le-unknown-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"
CXXFLAGS="-mcpu=native -O2 -pipe -frecord-gcc-switches"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--ask-enter-invalid --jobs=128 --load-average 128 --quiet-build"
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="-mcpu=native -O2 -pipe -frecord-gcc-switches"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs cgroup collision-protect compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox mount-sandbox multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned sandbox sfperms sign splitdebug strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-mcpu=native -O2 -pipe -frecord-gcc-switches"
GENTOO_MIRRORS="https://gentoo.osuosl.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0"
LINGUAS="en"
MAKEOPTS="--jobs=176 --load-average=128"
PKGDIR="/var/cache/binpkgs/powerpc64le-unknown-linux-gnu"
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 acl alsa altivec berkdb branding bzip2 cairo caps cli crypt cups cxx dbus dri elogind exif filecaps flac fontconfig fortran gdbm gif gpm gtk iconv icu introspection ipv6 jpeg lcms libnotify mp3 mp4 mpeg ncurses nptl numa ogg opengl openmp pam pango pcre png policykit ppc64 readline seccomp split-usr ssl startup-notification svg tcpd truetype udev udisks unicode upower usb vim-syntax xattr xcb xml xscreensaver zlib" ABI_PPC="64" ALSA_CARDS="emu10k1" 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" 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" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en" 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="python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="amdgpu 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_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Georgy Yakovlev archtester gentoo-dev 2019-08-15 08:09:29 UTC
/var/tmp/portage/sys-devel/gcc-9.2.0/work/build/./prev-gcc/xg++ -B/var/tmp/portage/sys-devel/gcc-9.2.0/work/build/./prev-gcc/ -B/usr/powerpc64le-unknown-linux-gnu/bin/ -nostdinc++ -B/var/tmp/portage/sys-devel/gcc-9.2.0/work/build/prev-powerpc64le-unknown-linux-gnu/libstdc++-v3/src/.libs -B/var/tmp/portage/sys-devel/gcc-9.2.0/work/build/prev-powerpc64le-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs  -I/var/tmp/portage/sys-devel/gcc-9.2.0/work/build/prev-powerpc64le-unknown-linux-gnu/libstdc++-v3/include/powerpc64le-unknown-linux-gnu  -I/var/tmp/portage/sys-devel/gcc-9.2.0/work/build/prev-powerpc64le-unknown-linux-gnu/libstdc++-v3/include  -I/var/tmp/portage/sys-devel/gcc-9.2.0/work/gcc-9.2.0/libstdc++-v3/libsupc++ -L/var/tmp/portage/sys-devel/gcc-9.2.0/work/build/prev-powerpc64le-unknown-linux-gnu/libstdc++-v3/src/.libs -L/var/tmp/portage/sys-devel/gcc-9.2.0/work/build/prev-powerpc64le-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -fno-PIE -c -fno-PIE   -DIN_GCC_FRONTEND -m64  -fno-checking -flto=jobserver -frandom-seed=1 -fprofile-generate -flto=jobserver -frandom-seed=1 -DIN_GCC     -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/sys-devel/gcc-9.2.0/work/gcc-9.2.0/gcc -I/var/tmp/portage/sys-devel/gcc-9.2.0/work/gcc-9.2.0/gcc/. -I/var/tmp/portage/sys-devel/gcc-9.2.0/work/gcc-9.2.0/gcc/../include -I/var/tmp/portage/sys-devel/gcc-9.2.0/work/gcc-9.2.0/gcc/../libcpp/include  -I/var/tmp/portage/sys-devel/gcc-9.2.0/work/gcc-9.2.0/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-9.2.0/work/gcc-9.2.0/gcc/../libdecnumber/dpd -I../libdecnumber -I/var/tmp/portage/sys-devel/gcc-9.2.0/work/gcc-9.2.0/gcc/../libbacktrace   -o cc1plus-checksum.o -MT cc1plus-checksum.o -MMD -MP -MF ./.deps/cc1plus-checksum.TPo cc1plus-checksum.c
/var/tmp/portage/sys-devel/gcc-9.2.0/work/build/./prev-gcc/xg++ -B/var/tmp/portage/sys-devel/gcc-9.2.0/work/build/./prev-gcc/ -B/usr/powerpc64le-unknown-linux-gnu/bin/ -nostdinc++ -B/var/tmp/portage/sys-devel/gcc-9.2.0/work/build/prev-powerpc64le-unknown-linux-gnu/libstdc++-v3/src/.libs -B/var/tmp/portage/sys-devel/gcc-9.2.0/work/build/prev-powerpc64le-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs  -I/var/tmp/portage/sys-devel/gcc-9.2.0/work/build/prev-powerpc64le-unknown-linux-gnu/libstdc++-v3/include/powerpc64le-unknown-linux-gnu  -I/var/tmp/portage/sys-devel/gcc-9.2.0/work/build/prev-powerpc64le-unknown-linux-gnu/libstdc++-v3/include  -I/var/tmp/portage/sys-devel/gcc-9.2.0/work/gcc-9.2.0/libstdc++-v3/libsupc++ -L/var/tmp/portage/sys-devel/gcc-9.2.0/work/build/prev-powerpc64le-unknown-linux-gnu/libstdc++-v3/src/.libs -L/var/tmp/portage/sys-devel/gcc-9.2.0/work/build/prev-powerpc64le-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -no-pie -fno-PIE    -m64  -fno-checking -flto=jobserver -frandom-seed=1 -fprofile-generate -flto=jobserver -frandom-seed=1 -DIN_GCC     -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc  -o cc1plus \
      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/decl2.o cp/dump.o cp/error.o cp/except.o cp/expr.o cp/friend.o cp/init.o cp/lambda.o cp/lex.o cp/logic.o cp/mangle.o cp/method.o cp/name-lookup.o cp/optimize.o cp/parser.o cp/pt.o cp/ptree.o cp/repo.o cp/rtti.o cp/search.o cp/semantics.o cp/tree.o cp/typeck.o cp/typeck2.o cp/vtable-class-hierarchy.o attribs.o incpath.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-indentation.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o c-family/c-ubsan.o c-family/known-headers.o c-family/c-attribs.o c-family/c-warn.o c-family/c-spellcheck.o glibc-c.o rs6000-c.o cc1plus-checksum.o libbackend.a main.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a   ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a   -lmpc -lmpfr -lgmp -rdynamic -ldl  -lz
/var/tmp/portage/sys-devel/gcc-9.2.0/temp/lto1.PEDlCH.ltrans0.ltrans.o: in function `gimple_simplify_CFN_BUILT_IN_IFLOOR(gimple_match_op*, gimple**, tree_node* (*)(tree_node*), code_helper, tree_node*, tree_node*)':
...
<artificial>:(.text+0x1ffed88): relocation truncated to fit: R_PPC64_REL24 (stub) against symbol `__stack_chk_fail@@GLIBC_2.17' defined in .text section in /lib64/libc.so.6
/var/tmp/portage/sys-devel/gcc-9.2.0/temp/lto1.PEDlCH.ltrans0.ltrans.o: in function `gimple_simplify_CFN_BUILT_IN_IROUND(gimple_match_op*, gimple**, tree_node* (*)(tree_node*), code_helper, tree_node*, tree_node*)':
<artificial>:(.text+0x1fff290): relocation truncated to fit: R_PPC64_REL24 (stub) against symbol `fprintf@@GLIBC_2.17' defined in .text section in /lib64/libc.so.6
<artificial>:(.text+0x1fff520): relocation truncated to fit: R_PPC64_REL24 (stub) against symbol `fprintf@@GLIBC_2.17' defined in .text section in /lib64/libc.so.6
<artificial>:(.text+0x1fff5f8): relocation truncated to fit: R_PPC64_REL24 (stub) against symbol `__stack_chk_fail@@GLIBC_2.17' defined in .text section in /lib64/libc.so.6
/var/tmp/portage/sys-devel/gcc-9.2.0/temp/lto1.PEDlCH.ltrans0.ltrans.o: in function `gimple_simplify_CFN_BUILT_IN_LROUND(gimple_match_op*, gimple**, tree_node* (*)(tree_node*), code_helper, tree_node*, tree_node*)':
<artificial>:(.text+0x1fffae4): relocation truncated to fit: R_PPC64_REL24 (stub) against symbol `fprintf@@GLIBC_2.17' defined in .text section in /lib64/libc.so.6
<artificial>:(.text+0x1fffbd8): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status
make[3]: *** [/var/tmp/portage/sys-devel/gcc-9.2.0/work/gcc-9.2.0/gcc/lto/Make-lang.in:81: lto1] Error 1
make[3]: *** Waiting for unfinished jobs....
/var/tmp/portage/sys-devel/gcc-9.2.0/temp/cc1.TjmKPS.ltrans0.ltrans.o: in function `wi::divmod_internal(long*, unsigned int*, long*, long const*, unsigned int, unsigned int, long const*, unsigned int, unsigned int, signop, wi::overflow_type*)':
<artificial>:(.text+0x1ffcf68): relocation truncated to fit: R_PPC64_REL24 (stub) against symbol `memset@@GLIBC_2.17' defined in .text section in /lib64/libc.so.6
<artificial>:(.text+0x1ffd1a8): relocation truncated to fit: R_PPC64_REL24 (stub) against symbol `__stack_chk_fail@@GLIBC_2.17' defined in .text section in /lib64/libc.so.6
/var/tmp/portage/sys-devel/gcc-9.2.0/temp/cc1.TjmKPS.ltrans0.ltrans.o: in function `wi::ffs(generic_wide_int<wide_int_ref_storage<false, true> > const&)':
<artificial>:(.text+0x1ffea30): relocation truncated to fit: R_PPC64_REL24 (stub) against symbol `__stack_chk_fail@@GLIBC_2.17' defined in .text section in /lib64/libc.so.6
/var/tmp/portage/sys-devel/gcc-9.2.0/temp/cc1.TjmKPS.ltrans0.ltrans.o: in function `wi::round_down_for_mask(generic_wide_int<wide_int_storage> const&, generic_wide_int<wide_int_storage> const&)':
<artificial>:(.text+0x1ffef74): relocation truncated to fit: R_PPC64_REL24 (stub) against symbol `__stack_chk_fail@@GLIBC_2.17' defined in .text section in /lib64/libc.so.6
/var/tmp/portage/sys-devel/gcc-9.2.0/temp/cc1.TjmKPS.ltrans0.ltrans.o: in function `wi::round_up_for_mask(generic_wide_int<wide_int_storage> const&, generic_wide_int<wide_int_storage> const&)':
<artificial>:(.text+0x1fff2fc): relocation truncated to fit: R_PPC64_REL24 (stub) against symbol `__stack_chk_fail@@GLIBC_2.17' defined in .text section in /lib64/libc.so.6
/var/tmp/portage/sys-devel/gcc-9.2.0/temp/cc1.TjmKPS.ltrans0.ltrans.o: in function `generic_wide_int<wide_int_storage>::dump() const':
<artificial>:(.text+0x1fff6c4): relocation truncated to fit: R_PPC64_REL24 (stub) against symbol `fputc@@GLIBC_2.17' defined in .text section in /lib64/libc.so.6
<artificial>:(.text+0x1fff738): relocation truncated to fit: R_PPC64_REL24 (stub) against symbol `fwrite@@GLIBC_2.17' defined in .text section in /lib64/libc.so.6
<artificial>:(.text+0x1fff7dc): relocation truncated to fit: R_PPC64_REL24 (stub) against symbol `fprintf@@GLIBC_2.17' defined in .text section in /lib64/libc.so.6
<artificial>:(.text+0x1fff83c): relocation truncated to fit: R_PPC64_REL24 (stub) against symbol `fprintf@@GLIBC_2.17' defined in .text section in /lib64/libc.so.6
/var/tmp/portage/sys-devel/gcc-9.2.0/temp/cc1.TjmKPS.ltrans0.ltrans.o: in function `generic_wide_int<wide_int_ref_storage<false, true> >::dump() const':
<artificial>:(.text+0x1fff9cc): relocation truncated to fit: R_PPC64_REL24 (stub) against symbol `fputc@@GLIBC_2.17' defined in .text section in /lib64/libc.so.6
<artificial>:(.text+0x1fffa40): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status
make[3]: *** [/var/tmp/portage/sys-devel/gcc-9.2.0/work/gcc-9.2.0/gcc/c/Make-lang.in:85: cc1] Error 1
/var/tmp/portage/sys-devel/gcc-9.2.0/temp/f951.4gHb9I.ltrans0.ltrans.o: in function `link_use_stmts_after(ssa_use_operand_t*, imm_use_iterator*) [clone .lto_priv.27]':
<artificial>:(.text+0x2000d04): relocation truncated to fit: R_PPC64_REL24 (stub) against symbol `__stack_chk_fail@@GLIBC_2.17' defined in .text section in /lib64/libc.so.6
/var/tmp/portage/sys-devel/gcc-9.2.0/temp/f951.4gHb9I.ltrans0.ltrans.o: in function `gsi_start_bb(basic_block_def*) [clone .lto_priv.85]':
<artificial>:(.text+0x20012b0): relocation truncated to fit: R_PPC64_REL24 (stub) against symbol `__stack_chk_fail@@GLIBC_2.17' defined in .text section in /lib64/libc.so.6
/var/tmp/portage/sys-devel/gcc-9.2.0/temp/f951.4gHb9I.ltrans0.ltrans.o: in function `lookup_attribute(char const*, tree_node*) [clone .lto_priv.45]':
<artificial>:(.text+0x2001c20): relocation truncated to fit: R_PPC64_REL24 (stub) against symbol `strlen@@GLIBC_2.17' defined in .text section in /lib64/libc.so.6
/var/tmp/portage/sys-devel/gcc-9.2.0/temp/f951.4gHb9I.ltrans0.ltrans.o: in function `auto_purge_vect_location::~auto_purge_vect_location()':
<artificial>:(.text+0x2001d88): relocation truncated to fit: R_PPC64_REL24 (stub) against symbol `__stack_chk_fail@@GLIBC_2.17' defined in .text section in /lib64/libc.so.6
/var/tmp/portage/sys-devel/gcc-9.2.0/temp/f951.4gHb9I.ltrans0.ltrans.o: in function `dump_stmt_cost(_IO_FILE*, void*, int, vect_cost_for_stmt, _stmt_vec_info*, int, unsigned int, vect_cost_model_location)':
<artificial>:(.text+0x2001e9c): relocation truncated to fit: R_PPC64_REL24 (stub) against symbol `fprintf@@GLIBC_2.17' defined in .text section in /lib64/libc.so.6
<artificial>:(.text+0x2001f28): relocation truncated to fit: R_PPC64_REL24 (stub) against symbol `fputc@@GLIBC_2.17' defined in .text section in /lib64/libc.so.6
<artificial>:(.text+0x2001f64): relocation truncated to fit: R_PPC64_REL24 (stub) against symbol `fwrite@@GLIBC_2.17' defined in .text section in /lib64/libc.so.6
<artificial>:(.text+0x2001f9c): relocation truncated to fit: R_PPC64_REL24 (stub) against symbol `fprintf@@GLIBC_2.17' defined in .text section in /lib64/libc.so.6
<artificial>:(.text+0x200233c): relocation truncated to fit: R_PPC64_REL24 (stub) against symbol `fprintf@@GLIBC_2.17' defined in .text section in /lib64/libc.so.6
<artificial>:(.text+0x20023c4): relocation truncated to fit: R_PPC64_REL24 (stub) against symbol `fprintf@@GLIBC_2.17' defined in .text section in /lib64/libc.so.6
<artificial>:(.text+0x20023fc): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status
make[3]: *** [/var/tmp/portage/sys-devel/gcc-9.2.0/work/gcc-9.2.0/gcc/fortran/Make-lang.in:97: f951] Error 1
/var/tmp/portage/sys-devel/gcc-9.2.0/temp/cc1plus.EfJenC.ltrans0.ltrans.o: in function `bool known_size_p<unsigned long>(unsigned long const&)':
<artificial>:(.text+0x1ffd084): relocation truncated to fit: R_PPC64_REL24 (stub) against symbol `__stack_chk_fail@@GLIBC_2.17' defined in .text section in /lib64/libc.so.6
/var/tmp/portage/sys-devel/gcc-9.2.0/temp/cc1plus.EfJenC.ltrans0.ltrans.o: in function `__static_initialization_and_destruction_0(int, int) [clone .lto_priv.32]':
....

/var/tmp/portage/sys-devel/gcc-9.2.0/temp/cc1plus.EfJenC.ltrans0.ltrans.o: in function `gsi_after_labels(basic_block_def*) [clone .lto_priv.30]':
<artificial>:(.text+0x200b600): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status
make[3]: *** [/var/tmp/portage/sys-devel/gcc-9.2.0/work/gcc-9.2.0/gcc/cp/Make-lang.in:120: cc1plus] Error 1
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2019-08-15 23:13:03 UTC
> CFLAGS=""
> CXXFLAGS="-mcpu=native -O2 -pipe -frecord-gcc-switches"

Oh, that makes libgcc and friends to compile without any optimisations.

> <artificial>:(.text+0x1ffd084): relocation truncated to fit: R_PPC64_REL24 (stub) against symbol `__stack_chk_fail@@GLIBC_2.17' defined in .text section in /lib64/libc.so.6

This caused 24-bit relocations to overflow code segment. I'm a bit surprised gcc does not use -fPIC mode here (64-bit relocs) as opposed to default -fpic (24-bit relocs).

I'll poke a bit locally and will try to reproduce.
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2019-08-16 19:36:33 UTC
Yeah, -O1 was enough to bootstrap the compiler. Let's close it as INVALID. Many things don't like -O0.