https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98616
Bug ID: 98616 Summary: Compile gcc 10.2.0 error for loongson 2f CPU use MIPS n32 ABI on Gentoo OS Product: gcc Version: 10.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: tong__hui at 163 dot com Target Milestone: --- emerge --info '=sys-devel/gcc-10.2.0-r5::gentoo' Portage 3.0.12 (python 3.8.6-final-0, default/linux/mips/17.0/mipsel/multilib/n32, gcc-8.3.0, glibc-2.32-r2, 4.19.121 mips64) ================================================================= System Settings ================================================================= System uname: Linux-4.19.121-mips64-ICT_Loongson-2_V0.3_FPU_V0.1-with-glibc2.2 KiB Mem: 1013280 total, 18496 free KiB Swap: 3911808 total, 3837312 free Timestamp of repository gentoo: Sat, 09 Jan 2021 00:45:01 +0000 sh bash 5.0_p18 ld GNU ld (Gentoo 2.30 p3) 2.30.0 ccache version 3.7.12 [disabled] app-shells/bash: 5.0_p18::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.30.3-r1::gentoo dev-lang/python: 2.7.18-r4::gentoo, 3.5.7::gentoo, 3.6.12::gentoo, 3.7.9::gentoo, 3.8.6::gentoo, 3.9.0::gentoo dev-util/ccache: 3.7.12::gentoo dev-util/cmake: 3.18.4::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/openrc: 0.42.1::gentoo sys-apps/sandbox: 2.20::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo, 2.70::gentoo sys-devel/automake: 1.11.6-r3::gentoo, 1.14.1::gentoo, 1.15.1-r1::gentoo, 1.16.3-r1::gentoo sys-devel/binutils: 2.29.1-r1::gentoo, 2.30-r3::gentoo, 2.31.1-r4::gentoo, 2.32-r1::gentoo, 2.33.1::gentoo, 2.34::gentoo, 2.35.1-r1::gentoo sys-devel/gcc: 4.8.3::gentoo, 5.4.0-r6::gentoo, 5.5.0::gentoo, 6.4.0-r5::gentoo, 7.3.0-r3::gentoo, 8.2.0-r6::gentoo, 8.3.0::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-r2::gentoo Repositories: gentoo location: /usr/portage sync-type: webrsync sync-uri: https://mirrors.163.com/gentoo/ priority: -1000 sync-webrsync-verify-signature: yes python location: /var/lib/layman/python masters: gentoo priority: 50 ACCEPT_KEYWORDS="mips ~mips" ACCEPT_LICENSE="*" CBUILD="mips64el-unknown-linux-gnu" CFLAGS="-O2 -march=loongson2f -Wa,-mfix-loongson2f-nop -pipe -fPIC" CHOST="mips64el-unknown-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/apache2-php7.4/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -march=loongson2f -Wa,-mfix-loongson2f-nop -pipe -fPIC" DISTDIR="/usr/portage/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="-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="-O2 -pipe" GENTOO_MIRRORS="https://mirrors.tuna.tsinghua.edu.cn/gentoo" LDFLAGS="-Wl,-O1 -Wl,--as-needed" 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 acl alsa artworkextra avahi berkdb bzip2 cairo cli crypt cups dbus exif ffmpeg flac gdbm gdu glchess gtk gtk3 gudev hwdb iconv id3tag ipv6 jpeg latex lcms libglvnd libsamplerate lock math midi mips mp3 multilib ncurses nls nptl openssl openxml ots pcre pic png policykit python readline seccomp session soundtouch spell split-usr ssl startup-notification suid tcpd threads thunar tiff twolame udev udisks unicode vamp vorbis wmf wordperfect xattr zlib" ABI_MIPS="n32" ADA_TARGET="gnat_2018" ALSA_CARDS="au1x00" 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" CURL_SSL="openssl" 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="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="Mips" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python2_7 python3_8" QEMU_SOFTMMU_TARGETS="arm x86_64 sparc" QEMU_USER_TARGETS="mips64el" RUBY_TARGETS="ruby25 ruby26" USERLAND="GNU" VIDEO_CARDS="fbdev" 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, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS emerge -pqv '=sys-devel/gcc-10.2.0-r5::gentoo' [ebuild NS ] sys-devel/gcc-10.2.0-r5 [4.8.3, 5.4.0-r6, 5.5.0, 6.4.0-r5, 7.3.0-r3, 8.2.0-r6, 8.3.0] USE="(cxx) fortran (multilib) nls nptl openmp pch (pie) ssp (-ada) -d% -debug -doc -fixed-point -go -graphite (-hardened) -jit (-libssp) -lto% -objc -objc++ -objc-gc -pgo (-sanitize) -systemtap -test -vanilla (-vtv) -zstd% (-altivec%) (-mpx%)" error build log: checking whether ln -s works... yes checking for mips64el-unknown-linux-gnu-gcc... /var/tmp/portage/sys-devel/gcc-10.2.0-r5/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-10.2.0-r5/work/build/./gcc/ -B/usr/mips64el-unknown-linux-gnu/bin/ -B/usr/mips64el-unknown-linux-gnu/lib/ -isystem /usr/mips64el-unknown-linux-gnu/include -isystem /usr/mips64el-unknown-linux-gnu/sys-include -fno-checking checking for suffix of object files... configure: error: in `/var/tmp/portage/sys-devel/gcc-10.2.0-r5/work/build/mips64el-unknown-linux-gnu/libgcc': configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details make[2]: *** [Makefile:16845: configure-stage1-target-libgcc] Error 1 make[2]: Leaving directory '/var/tmp/portage/sys-devel/gcc-10.2.0-r5/work/build' make[1]: *** [Makefile:21857: stage1-bubble] Error 2 make[1]: Leaving directory '/var/tmp/portage/sys-devel/gcc-10.2.0-r5/work/build' make: *** [Makefile:22189: bootstrap-lean] Error 2 [31;01m*[0m ERROR: sys-devel/gcc-10.2.0-r5::gentoo failed (compile phase): [31;01m*[0m emake failed