Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cross build mips-mulitilib, emerge gcc problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
XiaoaiX
n00b
n00b


Joined: 30 May 2015
Posts: 30

PostPosted: Sun May 09, 2021 2:21 am    Post subject: cross build mips-mulitilib, emerge gcc problem Reply with quote

I am trying to build a mips-multilib n32 system for a loongson-2f system and follows the crossdev instruction here https://wiki.gentoo.org/wiki/Cross_build_environment

The target-triplet is mips64el-multilib-linux-gnu. I used " crossdev -t mips64el-multilib-linux-gnu". It emerges gcc-11.1.0 version. The crossdev seems to be successful.

Then when I build the @system it seems that when it emerges the gcc-11.1.0, it failed. The build.log shows:
Code:

...

In file included from /usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/cfenv:41,
                 from /usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/gcc-11.1.0/libstdc++-v3/src/c++17/floating_to_chars.cc:31:
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/fenv.h:58:11: error: ‘fenv_t’ has not been declared in ‘::’
   58 |   using ::fenv_t;
      |           ^~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/fenv.h:59:11: error: ‘fexcept_t’ has not been declared in ‘::’
   59 |   using ::fexcept_t;
      |           ^~~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/fenv.h:62:11: error: ‘feclearexcept’ has not been declared in ‘::’
   62 |   using ::feclearexcept;
      |           ^~~~~~~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/fenv.h:63:11: error: ‘fegetexceptflag’ has not been declared in ‘::’
   63 |   using ::fegetexceptflag;
      |           ^~~~~~~~~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/fenv.h:64:11: error: ‘feraiseexcept’ has not been declared in ‘::’
   64 |   using ::feraiseexcept;
      |           ^~~~~~~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/fenv.h:65:11: error: ‘fesetexceptflag’ has not been declared in ‘::’
   65 |   using ::fesetexceptflag;
      |           ^~~~~~~~~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/fenv.h:66:11: error: ‘fetestexcept’ has not been declared in ‘::’
   66 |   using ::fetestexcept;
      |           ^~~~~~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/fenv.h:68:11: error: ‘fegetround’ has not been declared in ‘::’
   68 |   using ::fegetround;
      |           ^~~~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/fenv.h:69:11: error: ‘fesetround’ has not been declared in ‘::’
   69 |   using ::fesetround;
      |           ^~~~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/fenv.h:71:11: error: ‘fegetenv’ has not been declared in ‘::’
   71 |   using ::fegetenv;
      |           ^~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/fenv.h:72:11: error: ‘feholdexcept’ has not been declared in ‘::’
   72 |   using ::feholdexcept;
      |           ^~~~~~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/fenv.h:73:11: error: ‘fesetenv’ has not been declared in ‘::’
   73 |   using ::fesetenv;
      |           ^~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/fenv.h:74:11: error: ‘feupdateenv’ has not been declared in ‘::’
   74 |   using ::feupdateenv;
      |           ^~~~~~~~~~~
In file included from /usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/gcc-11.1.0/libstdc++-v3/src/c++17/floating_to_chars.cc:31:
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/cfenv:61:11: error: ‘fenv_t’ has not been declared in ‘::’
   61 |   using ::fenv_t;
      |           ^~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/cfenv:62:11: error: ‘fexcept_t’ has not been declared in ‘::’
   62 |   using ::fexcept_t;
      |           ^~~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/cfenv:65:11: error: ‘feclearexcept’ has not been declared in ‘::’
   65 |   using ::feclearexcept;
      |           ^~~~~~~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/cfenv:66:11: error: ‘fegetexceptflag’ has not been declared in ‘::’
   66 |   using ::fegetexceptflag;
      |           ^~~~~~~~~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/cfenv:67:11: error: ‘feraiseexcept’ has not been declared in ‘::’
   67 |   using ::feraiseexcept;
      |           ^~~~~~~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/cfenv:68:11: error: ‘fesetexceptflag’ has not been declared in ‘::’
   68 |   using ::fesetexceptflag;
      |           ^~~~~~~~~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/cfenv:69:11: error: ‘fetestexcept’ has not been declared in ‘::’
   69 |   using ::fetestexcept;
      |           ^~~~~~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/cfenv:71:11: error: ‘fegetround’ has not been declared in ‘::’
   71 |   using ::fegetround;
      |           ^~~~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/cfenv:72:11: error: ‘fesetround’ has not been declared in ‘::’
   72 |   using ::fesetround;
      |           ^~~~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/cfenv:74:11: error: ‘fegetenv’ has not been declared in ‘::’
   74 |   using ::fegetenv;
      |           ^~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/cfenv:75:11: error: ‘feholdexcept’ has not been declared in ‘::’
   75 |   using ::feholdexcept;
      |           ^~~~~~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/cfenv:76:11: error: ‘fesetenv’ has not been declared in ‘::’
   76 |   using ::fesetenv;
      |           ^~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/cfenv:77:11: error: ‘feupdateenv’ has not been declared in ‘::’
   77 |   using ::feupdateenv;
      |           ^~~~~~~~~~~
In file included from /usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/cfenv:41,
                 from /usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/gcc-11.1.0/libstdc++-v3/src/c++17/floating_from_chars.cc:36:
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/fenv.h:58:11: error: ‘fenv_t’ has not been declared in ‘::’
   58 |   using ::fenv_t;
      |           ^~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/fenv.h:59:11: error: ‘fexcept_t’ has not been declared in ‘::’
   59 |   using ::fexcept_t;
      |           ^~~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/fenv.h:62:11: error: ‘feclearexcept’ has not been declared in ‘::’
   62 |   using ::feclearexcept;
      |           ^~~~~~~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/fenv.h:63:11: error: ‘fegetexceptflag’ has not been declared in ‘::’
   63 |   using ::fegetexceptflag;
      |           ^~~~~~~~~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/fenv.h:64:11: error: ‘feraiseexcept’ has not been declared in ‘::’
   64 |   using ::feraiseexcept;
      |           ^~~~~~~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/fenv.h:65:11: error: ‘fesetexceptflag’ has not been declared in ‘::’
   65 |   using ::fesetexceptflag;
      |           ^~~~~~~~~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/fenv.h:66:11: error: ‘fetestexcept’ has not been declared in ‘::’
   66 |   using ::fetestexcept;
      |           ^~~~~~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/fenv.h:68:11: error: ‘fegetround’ has not been declared in ‘::’
   68 |   using ::fegetround;
      |           ^~~~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/fenv.h:69:11: error: ‘fesetround’ has not been declared in ‘::’
   69 |   using ::fesetround;
      |           ^~~~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/fenv.h:71:11: error: ‘fegetenv’ has not been declared in ‘::’
   71 |   using ::fegetenv;
      |           ^~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/fenv.h:72:11: error: ‘feholdexcept’ has not been declared in ‘::’
   72 |   using ::feholdexcept;
      |           ^~~~~~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/fenv.h:73:11: error: ‘fesetenv’ has not been declared in ‘::’
   73 |   using ::fesetenv;
      |           ^~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/fenv.h:74:11: error: ‘feupdateenv’ has not been declared in ‘::’
   74 |   using ::feupdateenv;
      |           ^~~~~~~~~~~
In file included from /usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/gcc-11.1.0/libstdc++-v3/src/c++17/floating_from_chars.cc:36:
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/cfenv:61:11: error: ‘fenv_t’ has not been declared in ‘::’
   61 |   using ::fenv_t;
      |           ^~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/cfenv:62:11: error: ‘fexcept_t’ has not been declared in ‘::’
   62 |   using ::fexcept_t;
      |           ^~~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/cfenv:65:11: error: ‘feclearexcept’ has not been declared in ‘::’
   65 |   using ::feclearexcept;
      |           ^~~~~~~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/cfenv:66:11: error: ‘fegetexceptflag’ has not been declared in ‘::’
   66 |   using ::fegetexceptflag;
      |           ^~~~~~~~~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/cfenv:67:11: error: ‘feraiseexcept’ has not been declared in ‘::’
   67 |   using ::feraiseexcept;
      |           ^~~~~~~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/cfenv:68:11: error: ‘fesetexceptflag’ has not been declared in ‘::’
   68 |   using ::fesetexceptflag;
      |           ^~~~~~~~~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/cfenv:69:11: error: ‘fetestexcept’ has not been declared in ‘::’
   69 |   using ::fetestexcept;
      |           ^~~~~~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/cfenv:71:11: error: ‘fegetround’ has not been declared in ‘::’
   71 |   using ::fegetround;
      |           ^~~~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/cfenv:72:11: error: ‘fesetround’ has not been declared in ‘::’
   72 |   using ::fesetround;
      |           ^~~~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/cfenv:74:11: error: ‘fegetenv’ has not been declared in ‘::’
   74 |   using ::fegetenv;
      |           ^~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/cfenv:75:11: error: ‘feholdexcept’ has not been declared in ‘::’
   75 |   using ::feholdexcept;
      |           ^~~~~~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/cfenv:76:11: error: ‘fesetenv’ has not been declared in ‘::’
   76 |   using ::fesetenv;
      |           ^~~~~~~~
/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/include/cfenv:77:11: error: ‘feupdateenv’ has not been declared in ‘::’
   77 |   using ::feupdateenv;
      |           ^~~~~~~~~~~
make[5]: *** [Makefile:577: floating_to_chars.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: *** [Makefile:577: floating_from_chars.lo] Error 1
make[5]: Leaving directory '/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/src/c++17'
make[4]: *** [Makefile:764: all-recursive] Error 1
make[4]: Leaving directory '/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3/src'
make[3]: *** [Makefile:568: all-recursive] Error 1
make[3]: Leaving directory '/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3'
make[2]: *** [Makefile:493: all] Error 2
make[2]: Leaving directory '/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build/mips64el-multilib-linux-gnu/libstdc++-v3'
make[1]: *** [Makefile:11847: all-target-libstdc++-v3] Error 2
make[1]: Leaving directory '/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build'
make: *** [Makefile:961: all] Error 2
 * ERROR: sys-devel/gcc-11.1.0::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sys-devel/gcc-11.1.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/gcc-11.1.0::gentoo'`.
 * The complete build log is located at '/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/temp/build.log'.
 * The ebuild environment file is located at '/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/temp/environment'.
 * Working directory: '/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/build'
 * S: '/usr/mips64el-multilib-linux-gnu/tmp/portage/sys-devel/gcc-11.1.0/work/gcc-11.1.0'


The file is too long and I just copied the lines from the first error message.

I don't know what the problem is. My buld host system is an old x86_64 system. Any help is appreciated. Thanks.

The emerge --info shows:
Code:

Portage 3.0.18 (python 3.8.8-final-0, default/linux/mips/17.0/mipsel/multilib/n32, gcc-11.1.0, unavailable, 5.10.27-gentoo x86_64)
=================================================================
System uname: Linux-5.10.27-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-glibc2.2.5
KiB Mem:     3990436 total,   3170292 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of repository gentoo: Wed, 05 May 2021 23:30:02 +0000
Head commit of repository gentoo: b165349eb4cf8ca2a0c94537524e3c090dfea9bf
sh bash 5.0_p18
ld GNU ld (Gentoo 2.36.1 p3) 2.36.1
ccache version 4.2.1 [disabled]
app-shells/bash:          5.1_p8::gentoo
sys-apps/baselayout:      2.7-r2::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-devel/binutils:       2.36.1-r1::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.12::gentoo (virtual/os-headers)
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24

ACCEPT_KEYWORDS="mips ~mips"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Og -ggdb -pipe -march=loongson2f -mtune=loongson2f -mabi=n32 -fomit-frame-pointer"
CHOST="mips64el-multilib-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/terminfo"
CXXFLAGS="-Og -ggdb -pipe -march=loongson2f -mtune=loongson2f -mabi=n32 -fomit-frame-pointer"
DISTDIR="/var/cache/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="-Og -ggdb -pipe -march=loongson2f -mtune=loongson2f -mabi=n32 -fomit-frame-pointer"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news nodoc noinfo noman 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="-Og -ggdb -pipe -march=loongson2f -mtune=loongson2f -mabi=n32 -fomit-frame-pointer"
GENTOO_MIRRORS="https://mirrors.ustc.edu.cn/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/mips64el-multilib-linux-gnu/packages/"
PORTAGE_CONFIGROOT="/usr/mips64el-multilib-linux-gnu/"
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="/usr/mips64el-multilib-linux-gnu/tmp/"
USE="berkdb bzip2 cli crypt gdbm iconv ipv6 libglvnd mips multilib ncurses nls nptl pcre readline seccomp split-usr ssl tcpd unicode 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" 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="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" 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="python3_8" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="fbdev impact dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS


Last edited by XiaoaiX on Sun May 09, 2021 7:16 am; edited 1 time in total
Back to top
View user's profile Send private message
XiaoaiX
n00b
n00b


Joined: 30 May 2015
Posts: 30

PostPosted: Sun May 09, 2021 2:47 am    Post subject: Reply with quote

Should I just use "mips64el-unknown-linux-gnu" as the target?

Is the problem caused by this?
Back to top
View user's profile Send private message
XiaoaiX
n00b
n00b


Joined: 30 May 2015
Posts: 30

PostPosted: Mon May 10, 2021 1:12 am    Post subject: Reply with quote

It seems that this is not the problem. Using the "mips64el-unknown-linux-gnu" target still got the same problem.

Maybe I should choose gcc-10.2.0, which is the same one for the building-host system.
Back to top
View user's profile Send private message
britaliope
n00b
n00b


Joined: 04 Mar 2020
Posts: 4
Location: France

PostPosted: Wed May 12, 2021 11:33 pm    Post subject: Reply with quote

I have exactly the same problem with the `aarch64-linux-gnu` target, i am still investigating the issue.

I also noticed the following issue when cross-emerging dev-db/sqlite :

Code:

libtool: link: aarch64-linux-gnu-gcc -DSQLITE_SOUNDEX -DSQLITE_USE_URI -mcpu=cortex-a53+sha2+aes+crc -O2 -pipe -fomit-frame-pointer -DSQLITE_OS_UNIX=1 -I. -I/usr/aarch64-linux-gnu/tmp/portage/dev-db/sqlite-3.35.4/work/sqlite-src-3350400-.arm64/src -I/usr/aarch64-linux-gnu/tmp/portage/dev-db/sqlite-3.35.4/work/sqlite-src-3350400-.arm64/ext/rtree -I/usr/aarch64-linux-gnu/tmp/portage/dev-db/sqlite-3.35.4/work/sqlite-src-3350400-.arm64/ext/icu -I/usr/aarch64-linux-gnu/tmp/portage/dev-db/sqlite-3.35.4/work/sqlite-src-3350400-.arm64/ext/fts3 -I/usr/aarch64-linux-gnu/tmp/portage/dev-db/sqlite-3.35.4/work/sqlite-src-3350400-.arm64/ext/async -I/usr/aarch64-linux-gnu/tmp/portage/dev-db/sqlite-3.35.4/work/sqlite-src-3350400-.arm64/ext/session -I/usr/aarch64-linux-gnu/tmp/portage/dev-db/sqlite-3.35.4/work/sqlite-src-3350400-.arm64/ext/userauth -D_HAVE_SQLITE_CONFIG_H -DBUILD_sqlite -DNDEBUG -DSQLITE_THREADSAFE=1 -DSQLITE_ENABLE_MATH_FUNCTIONS -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_API_ARMOR -DSQLITE_ENABLE_BYTECODE_VTAB -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_DBPAGE_VTAB -DSQLITE_ENABLE_DBSTAT_VTAB -DSQLITE_ENABLE_DESERIALIZE -DSQLITE_ENABLE_EXPLAIN_COMMENTS -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_HIDDEN_COLUMNS -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_MEMSYS5 -DSQLITE_ENABLE_NORMALIZE -DSQLITE_ENABLE_OFFSET_SQL_FUNC -DSQLITE_ENABLE_PREUPDATE_HOOK -DSQLITE_ENABLE_RBU -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_GEOPOLY -DSQLITE_ENABLE_SESSION -DSQLITE_ENABLE_STMT_SCANSTATUS -DSQLITE_ENABLE_STMTVTAB -DSQLITE_ENABLE_UNKNOWN_SQL_FUNCTION -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT -DSQLITE_ENABLE_ICU -DSQLITE_HAVE_ZLIB=1 -Wl,-O1 -DHAVE_READLINE=1 -I/usr/aarch64-linux-gnu/usr/include/readline -DHAVE_EDITLINE=0 -o .libs/sqlite3 shell.c  -Wl,--as-needed ./.libs/libsqlite3.so -lm -ldl -lz -lpthread -licui18n -licuuc -lreadline
/usr/libexec/gcc/aarch64-linux-gnu/ld: warning: libstdc++.so.6, needed by /usr/aarch64-linux-gnu/usr/lib/../lib64/libicui18n.so, not found (try using -rpath or -rpath-link)
/usr/libexec/gcc/aarch64-linux-gnu/ld: /usr/aarch64-linux-gnu/usr/lib/../lib64/libicui18n.so: undefined reference to `__cxa_throw_bad_array_new_length@CXXABI_1.3.8'
/usr/libexec/gcc/aarch64-linux-gnu/ld: /usr/aarch64-linux-gnu/usr/lib/../lib64/libicuuc.so: undefined reference to `std::condition_variable::condition_variable()@GLIBCXX_3.4.11'
/usr/libexec/gcc/aarch64-linux-gnu/ld: /usr/aarch64-linux-gnu/usr/lib/../lib64/libicuuc.so: undefined reference to `std::__throw_system_error(int)@GLIBCXX_3.4.11'
/usr/libexec/gcc/aarch64-linux-gnu/ld: /usr/aarch64-linux-gnu/usr/lib/../lib64/libicuuc.so: undefined reference to `std::condition_variable::~condition_variable()@GLIBCXX_3.4.11'
/usr/libexec/gcc/aarch64-linux-gnu/ld: /usr/aarch64-linux-gnu/usr/lib/../lib64/libicuuc.so: undefined reference to `std::condition_variable::notify_all()@GLIBCXX_3.4.11'
/usr/libexec/gcc/aarch64-linux-gnu/ld: /usr/aarch64-linux-gnu/usr/lib/../lib64/libicui18n.so: undefined reference to `vtable for __cxxabiv1::__class_type_info@CXXABI_1.3'
/usr/libexec/gcc/aarch64-linux-gnu/ld: /usr/aarch64-linux-gnu/usr/lib/../lib64/libicuuc.so: undefined reference to `std::__once_call@GLIBCXX_3.4.11'
/usr/libexec/gcc/aarch64-linux-gnu/ld: /usr/aarch64-linux-gnu/usr/lib/../lib64/libicuuc.so: undefined reference to `std::condition_variable::wait(std::unique_lock<std::mutex>&)@GLIBCXX_3.4.11'
/usr/libexec/gcc/aarch64-linux-gnu/ld: /usr/aarch64-linux-gnu/usr/lib/../lib64/libicuuc.so: undefined reference to `std::__once_callable@GLIBCXX_3.4.11'
/usr/libexec/gcc/aarch64-linux-gnu/ld: /usr/aarch64-linux-gnu/usr/lib/../lib64/libicuuc.so: undefined reference to `__once_proxy@GLIBCXX_3.4.11'
/usr/libexec/gcc/aarch64-linux-gnu/ld: /usr/aarch64-linux-gnu/usr/lib/../lib64/libicui18n.so: undefined reference to `__gxx_personality_v0@CXXABI_1.3'
/usr/libexec/gcc/aarch64-linux-gnu/ld: /usr/aarch64-linux-gnu/usr/lib/../lib64/libicui18n.so: undefined reference to `__dynamic_cast@CXXABI_1.3'
/usr/libexec/gcc/aarch64-linux-gnu/ld: /usr/aarch64-linux-gnu/usr/lib/../lib64/libicui18n.so: undefined reference to `vtable for __cxxabiv1::__si_class_type_info@CXXABI_1.3'
/usr/libexec/gcc/aarch64-linux-gnu/ld: /usr/aarch64-linux-gnu/usr/lib/../lib64/libicui18n.so: undefined reference to `vtable for __cxxabiv1::__vmi_class_type_info@CXXABI_1.3'
/usr/libexec/gcc/aarch64-linux-gnu/ld: /usr/aarch64-linux-gnu/usr/lib/../lib64/libicui18n.so: undefined reference to `operator delete(void*, unsigned long)@CXXABI_1.3.9'
collect2: error: ld returned 1 exit status
make: *** [Makefile:666: sqlite3] Error 1
 * ERROR: dev-db/sqlite-3.35.4::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-db/sqlite-3.35.4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-db/sqlite-3.35.4::gentoo'`.
 * The complete build log is located at '/usr/aarch64-linux-gnu/tmp/portage/dev-db/sqlite-3.35.4/temp/build.log'.
 * The ebuild environment file is located at '/usr/aarch64-linux-gnu/tmp/portage/dev-db/sqlite-3.35.4/temp/environment'.
 * Working directory: '/usr/aarch64-linux-gnu/tmp/portage/dev-db/sqlite-3.35.4/work/sqlite-src-3350400-.arm64'
 * S: '/usr/aarch64-linux-gnu/tmp/portage/dev-db/sqlite-3.35.4/work/sqlite-src-3350400'


I am not sure this is related, but both errors seems to be related to libstdc++, so maybe there is some correlation...
Back to top
View user's profile Send private message
britaliope
n00b
n00b


Joined: 04 Mar 2020
Posts: 4
Location: France

PostPosted: Thu May 13, 2021 12:28 pm    Post subject: Reply with quote

Found this bug in GCC bug tracker : https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100017

looks like it's a known bug of gcc-11.0 and above, i think reverting back to gcc 10 will fix the issue.
Back to top
View user's profile Send private message
britaliope
n00b
n00b


Joined: 04 Mar 2020
Posts: 4
Location: France

PostPosted: Thu May 13, 2021 5:03 pm    Post subject: Reply with quote

I cleaned the toolchain and reinstalled the stable version
Code:
crossdev -t aarch64-linux-gnu --stable
and emerged the stable gcc version and it compiled without problems
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum