Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 913879 - sys-devel/gcc-13.2.0 fail on loongson 2f notebook
Summary: sys-devel/gcc-13.2.0 fail on loongson 2f notebook
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: MIPS Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-09 04:05 UTC by TongHui
Modified: 2023-09-12 05:27 UTC (History)
3 users (show)

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


Attachments
emerge gcc-13.2.0 build.log (build.log.xz,148.74 KB, application/x-xz)
2023-09-09 04:05 UTC, TongHui
Details

Note You need to log in before you can comment on or make changes to this bug.
Description TongHui 2023-09-09 04:05:11 UTC
Created attachment 870157 [details]
emerge gcc-13.2.0 build.log

emerge Error info:
/usr/mips64el-unknown-linux-gnu/bin/ld: /var/tmp/portage/sys-devel/gcc-13.2.0/work/gcc-13.2.0/libstdc++-v3/src/c++98/misc-inst.cc:92: undefined reference to `std::__verify_grouping_impl(char const*, unsigned int, char const*, unsigned int)'
collect2: error: ld returned 1 exit status
make[3]: *** [/var/tmp/portage/sys-devel/gcc-13.2.0/work/gcc-13.2.0/gcc/lto/Make-lang.in:96: lto1] Error 1
make[3]: Leaving directory '/var/tmp/portage/sys-devel/gcc-13.2.0/work/build/gcc'
make[2]: *** [Makefile:5010: all-stage2-gcc] Error 2
make[2]: Leaving directory '/var/tmp/portage/sys-devel/gcc-13.2.0/work/build'
make[1]: *** [Makefile:25366: stage2-bubble] Error 2
make[1]: Leaving directory '/var/tmp/portage/sys-devel/gcc-13.2.0/work/build'
make: *** [Makefile:25589: bootstrap-lean] Error 2

More build info please see the build.log which I add to attach.
Thank you.
Comment 1 Mike Gilbert gentoo-dev 2023-09-09 20:28:51 UTC
Please provide emerge --info.
Comment 2 TongHui 2023-09-10 06:37:25 UTC
emerge --info
Portage 3.0.30 (python 3.10.10-final-0, default/linux/mips/17.0/mipsel/multilib/                                                                                                        n32, gcc-12.2.0, glibc-2.32-r8, 4.19.112 mips64)
=================================================================
System uname: Linux-4.19.112-mips64-ICT_Loongson-2_V0.3_FPU_V0.1-with-glibc2.32
KiB Mem:     1013296 total,     40544 free
KiB Swap:    3911808 total,   3808384 free
Timestamp of repository gentoo: Sat, 29 Jul 2023 00:45:01 +0000
Head commit of repository gentoo: 67161ffc7262540be3638479f5c6fb00d18a3f23
sh bash 5.0_p11
ld GNU ld (Gentoo 2.39 p4) 2.39.0
ccache version 3.7.4 [disabled]
app-misc/pax-utils:        1.2.4::gentoo
app-shells/bash:           5.0_p11::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.1::gentoo
dev-lang/python:           2.7.18_p13::gentoo, 3.5.7::gentoo, 3.6.9::gentoo, 3.7                                                                                                        .12::gentoo, 3.8.16::gentoo, 3.9.16::gentoo, 3.10.10_p3::gentoo, 3.11.2_p2::gent                                                                                                        oo
dev-lang/rust-bin:         1.69.0::gentoo
dev-util/ccache:           3.7.4::gentoo
dev-util/cmake:            3.22.3::gentoo
dev-util/meson:            0.63.1::gentoo
sys-apps/baselayout:       2.6-r1::gentoo
sys-apps/openrc:           0.48::gentoo
sys-apps/sandbox:          2.25::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.69-r4::gentoo, 2.71-r5::gentoo
sys-devel/automake:        1.11.6-r3::gentoo, 1.14.1::gentoo, 1.15.1-r1::gentoo,                                                                                                         1.16.5::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-r1::gentoo, 2.34-r2::gentoo, 2.35.2::gentoo, 2.36.1-r2                                                                                                        ::gentoo, 2.37_p1-r2::gentoo, 2.38-r2::gentoo, 2.39-r2::gentoo, 2.40-r6::gentoo
sys-devel/binutils-config: 5.1-r1::gentoo
sys-devel/clang:           6.0.0-r1::gentoo
sys-devel/gcc:             4.8.3::gentoo, 5.4.0-r6::gentoo, 6.4.0-r5::gentoo, 6.                                                                                                        5.0-r4::gentoo, 7.3.0-r3::gentoo, 8.2.0-r6::gentoo, 8.3.0::gentoo, 9.3.0::gentoo                                                                                                        , 10.3.0-r2::gentoo, 11.3.0::gentoo, 12.2.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/llvm:            13.0.0_rc3::gentoo
sys-devel/make:            4.2.1-r4::gentoo
sys-kernel/linux-headers:  5.14::gentoo (virtual/os-headers)
sys-libs/glibc:            2.32-r8::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://mirrors.tuna.tsinghua.edu.cn/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts:
    sync-rsync-verify-jobs: 1

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"
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/ /e                                                                                                        tc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cgi-p                                                                                                        hp7.4/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/php/cli-php7.4/ext-active                                                                                                        / /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=loongson2f -Wa,-mfix-loongson2f-nop -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GO                                                                                                        BIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHO                                                                                                        RITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME                                                                                                        "
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-l                                                                                                        ive config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox mer                                                                                                        ge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve                                                                                                        -libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-fea                                                                                                        tures-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync                                                                                                         xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.163.com/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 --timeou                                                                                                        t=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X acl alsa artworkextra avahi bzip2 cairo cli crypt cups dbus exif ffmpeg f                                                                                                        lac gdbm gdu glchess gtk gtk3 gudev hwdb iconv id3tag ipv6 jpeg latex lcms libsa                                                                                                        mplerate lock math midi mips mp3 multilib ncurses nls nptl openssl openxml ots p                                                                                                        cre pic png policykit python readline seccomp session soundtouch spell split-usr                                                                                                         ssl startup-notification suid test-rust threads thunar tiff twolame udev udisks                                                                                                         unicode vamp vorbis wmf wordperfect xattr zlib" ABI_MIPS="n32" ADA_TARGET="gnat                                                                                                        _2021" 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 a                                                                                                        uthz_default authz_groupfile authz_host authz_owner authz_user autoindex cache c                                                                                                        gi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_c                                                                                                        ache filter headers include info log_config logio mem_cache mime mime_magic nego                                                                                                        tiation 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="as                                                                                                        htech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax                                                                                                         mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf s                                                                                                        kytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keybo                                                                                                        ard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216                                                                                                         lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presente                                                                                                        r-minimizer" LLVM_TARGETS="Mips" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1"                                                                                                         OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="post                                                                                                        gres15" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_11 python3_10                                                                                                         python3_8 python3_9" QEMU_SOFTMMU_TARGETS="arm x86_64 sparc mips mipsel mips64"                                                                                                         QEMU_USER_TARGETS="arm x86_64 i386 mips mips64 mipsel mips64el mipsn32 mipsn32el                                                                                                        " RUBY_TARGETS="ruby31" VIDEO_CARDS="fbdev" XTABLES_ADDONS="quota2 psd pknock ls                                                                                                        can length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq                                                                                                         proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLA                                                                                                        GS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS,                                                                                                         FC, GCOV, GPROF, INSTALL_MASK, LANG, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS,                                                                                                         MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP                                                                                                        2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, R                                                                                                        ANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 3 TongHui 2023-09-10 06:39:25 UTC
(In reply to Mike Gilbert from comment #1)
> Please provide emerge --info.

Ok, add emerge --info, Thank you.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-12 04:05:04 UTC
You appear to have a very old userland (and to have.. never? depcleaned).
Comment 5 TongHui 2023-09-12 05:27:54 UTC
(In reply to Sam James from comment #4)
> You appear to have a very old userland (and to have.. never? depcleaned).

Yes, emerge --depclean need a lot of packages to be rebuild and spend very long time on the loongson 2f CPU, and some packages can't build success, so I almost never do it.