Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Emerge sci-libs/keras-2.7.0 failing due to ebazel [solved]

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
12 posts • Page 1 of 1
Author
Message
majzik
n00b
n00b
Posts: 8
Joined: Tue Dec 28, 2021 6:59 am

Emerge sci-libs/keras-2.7.0 failing due to ebazel [solved]

  • Quote

Post by majzik » Sat Jan 01, 2022 12:00 am

Emerge for sci-libs/keras-2.7.0 has been failing due to ebazel.

Code: Select all

 * ERROR: sci-libs/tensorflow-2.7.0::gentoo failed (compile phase):
 *   ebazel failed
 *
 * Call stack:
 *     ebuild.sh, line  127:  Called src_compile
 *   environment, line 4230:  Called ebazel 'build' '//tensorflow:libtensorflow_framework.so' '//tensorflow:libtensorflow.so'
 *   environment, line 2561:  Called die
 * The specific snippet of code:
 *       "${@}" || die "ebazel failed"
I tried with lowering the dev-libs/protobuf to 3.16.0
>=dev-python/protobuf-python to 3.16.0, however the crashing still happens.

https://bugs.gentoo.org/800824

I also dried a depcelan but still does not compile.

I also lowered the MAKEOPTS="-j1", still no success.

Code: Select all

emerge --info '=sci-libs/tensorflow-2.7.0'
Portage 3.0.30 (python 3.8.12-final-0, default/linux/amd64/17.1/desktop/gnome/systemd, gcc-11.2.1, glibc-2.34-r4, 5.15.10-zen1-x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.15.10-zen1-x86_64-x86_64-AMD_Ryzen_9_5900HS_with_Radeon_Graphics-with-glibc2.34
KiB Mem:    15832980 total,   7064892 free
KiB Swap:    2097148 total,   1772028 free
Timestamp of repository gentoo: Thu, 30 Dec 2021 00:45:01 +0000
Head commit of repository gentoo: c781bd6c988e76b21300a1d7c4a143ff1749ccd6
sh bash 5.1_p12
ld GNU ld (Gentoo 2.37_p1 p1) 2.37
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p12::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.0-r6::gentoo
dev-lang/python:           3.8.12_p1::gentoo, 3.9.9::gentoo, 3.10.1-r1::gentoo
dev-lang/rust:             1.57.0::gentoo
dev-util/cmake:            3.22.1::gentoo
dev-util/meson:            0.60.3::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          250-r1::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.37_p1-r1::gentoo
sys-devel/binutils-config: 5.4::gentoo
sys-devel/clang:           13.0.0::gentoo
sys-devel/gcc:             11.2.1_p20211127::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/llvm:            13.0.0::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r4::gentoo
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-extra-opts:
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=znver3 -pipe"
CHOST="x86_64-pc-linux-gnu"
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/revdep-rebuild /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=znver3 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS=" --jobs=16 --load-average=16"
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 -march=znver3 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live 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 -march=znver3 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
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"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa alsa-plugin amd64 bluetooth branding build bzip2 cairo cdda cdr cli colord crypt cryptsetup cuda cups daemon dbus dri dts dvd dvdr eds emboss encode equalizer evo exif experimental extra flac fonts fortran gdbm gif glib gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gui iconv icu introspection ipv6 jpeg lcms libglvnd libnotify libsecret libtirpc lvm2create-initrd mad mng mount mp3 mp4 mpeg mpi multilib nautilus ncurses networkmanager nls nptl nsight ogg opengl openmp pam pango pcre pdf perl png policykit ppds pulseaudio qt5 readline redistributable samba scanner science sdl seccomp sftp spell split-usr ssl startup-notification svg sysprof systemd themes tiff tracker truetype udev udisks unicode unknown-license upower usb vorbis wayland wxwidgets x264 xattr xcb xla xml xv xvid zeroconf zlib" ABI_X86="(64) 64" ADA_TARGET="gnat_2020" 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" CPU_FLAGS_X86="mmx mmxext sse sse2" 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 synaptics" KERNEL="linux" L10N="hu en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="NVPTX" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby26 ruby27 ruby30" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="nvidia amdgpu radeonsi" 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:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
[Moderator edit: added [code] tags to preserve output layout; changed [quote] tags to [code] tags to preserve output layout. -Hu]
Last edited by majzik on Sun Jan 09, 2022 5:28 am, edited 1 time in total.
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Sat Jan 01, 2022 8:22 am

You can post full build.log with wgetpaste?
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
majzik
n00b
n00b
Posts: 8
Joined: Tue Dec 28, 2021 6:59 am

  • Quote

Post by majzik » Sun Jan 02, 2022 12:55 am

fedeliallalinea wrote:You can post full build.log with wgetpaste?

Thank you for the help and I appreciate any ideas.
Here is the snippets for the build.log:
https://gitlab.com/-/snippets/2228884
Top
larrys
Tux's lil' helper
Tux's lil' helper
Posts: 81
Joined: Mon Jul 20, 2020 9:41 pm
Location: New Jersey

  • Quote

Post by larrys » Sun Jan 02, 2022 1:00 am

May have been able to replicate this problem, and may have a workaround. Originally tried to emerge with latest stable packages plus required masked packages (~amd64). Got a slot conflict:

Code: Select all

Total: 66 packages (66 new), Size of downloads: 9,884 KiB

WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict:

dev-cpp/abseil-cpp:0

  (dev-cpp/abseil-cpp-20211102.0:0/20211102::gentoo, ebuild scheduled for merge) USE="-test" ABI_X86="(64)" conflicts with
    =dev-cpp/abseil-cpp-20210324*:= required by (net-libs/grpc-1.41.1:0/19.141::gentoo, ebuild scheduled for merge) USE="-doc -examples (-test)" ABI_X86="(64)"
    ^                   ^^^^^^^^^  
Tried to add net-libs/grpc to /etc/portage/package.accept_keywords to get the testing version of grpc (1.43). Emerge was able to generate the dependency tree, but one of the link commands failed for sci-libs/tensorflow:

Code: Select all

ERROR: sci-libs/tensorflow-2.7.0::gentoo failed (compile phase):
ebazel failed

Call stack:
    ebuild.sh, line  127:  Called src_compile
    environment, line 4218:  Called ebazel 'build' '//tensorflow:libtensorflow_framework.so' '//tensorflow:libtensorflow.so'
    environment, line 2549:  Called die
First and last 1000 lines of build.log (size is 3.9MB): http://dpaste.com/2XD8N6GKG.

Noticed that grpc-1.41 ebuild specified a specific version of abseil-cpp, while tensorflow did not. Tried masking abseil-cpp, and commented out grcp in package.acccept_keywords (i.e. went back to grpc-1.41). This built successfully. Did get a message. I use a 16GB tmpfs for /var/tmp/portage, and tensorflow uses 16GB of space. But the build did run to the end.

Will include full pretend emerge output of successful configuration. Noticed OP was using ACCEPT_KEYWORDS="~amd64", and may need speciific versions. I try to stay with stable.

Masking:

Code: Select all

$ cat /etc/portage/package.mask/abseil 
dev-cpp/abseil-cpp
$ cat /etc/portage/package.unmask/abseil 
=dev-cpp/abseil-cpp-20210324*
Accept keywords (testing packages, all others were stable):

Code: Select all

$ cat /etc/portage/package.accept_keywords/keras 
# net-libs/grpc stable creates a slot conflict with dev-cpp/abseil-cpp
# net-libs/grpc
dev-libs/re2
dev-python/google-auth-oauthlib
dev-python/grpcio
dev-python/grpcio-tools
sci-libs/tensorflow-estimator
sci-visualization/tensorboard
net-libs/google-cloud-cpp
dev-python/google-pasta
sci-libs/tensorflow
#sci-libs/tensorflow-2.5.0-r3
sci-libs/keras
Final working emerge pretend output. Build was successful.

Code: Select all

$ emerge -1pv sci-libs/keras

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] dev-libs/xxhash-0.8.0::gentoo  USE="-static-libs" 0 KiB
[ebuild  N     ] dev-python/gast-0.5.3::gentoo  USE="-test" PYTHON_TARGETS="python3_9 -python3_8 -python3_10" 0 KiB
[ebuild  N     ] dev-python/absl-py-0.12.0::gentoo  PYTHON_TARGETS="python3_9 -python3_8" 0 KiB
[ebuild  N    #] dev-cpp/abseil-cpp-20210324.2:0/20210324::gentoo  USE="-test" 1,733 KiB
[ebuild  N     ] dev-python/wheel-0.37.0::gentoo  USE="-test" PYTHON_TARGETS="python3_9 (-pypy3) -python3_8 -python3_10" 0 KiB
[ebuild  N     ] dev-python/namespace-google-1-r1::gentoo  PYTHON_TARGETS="python3_9 -python3_8 -python3_10" 0 KiB
[ebuild  N     ] app-arch/snappy-1.1.9:0/1::gentoo  USE="-test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] dev-libs/nsync-1.24.0::gentoo  USE="-test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] dev-libs/flatbuffers-2.0.0-r1:0/2::gentoo  USE="-static-libs -test" 0 KiB
[ebuild  N     ] dev-python/astor-0.8.1::gentoo  USE="-test" PYTHON_TARGETS="python3_9 -python3_8 -python3_10" 0 KiB
[ebuild  N     ] dev-python/dill-0.3.4::gentoo  PYTHON_TARGETS="python3_9 -python3_8 -python3_10" 0 KiB
[ebuild  N     ] dev-python/flatbuffers-2.0::gentoo  PYTHON_TARGETS="python3_9 -python3_8 -python3_10" 0 KiB
[ebuild  N    ~] dev-python/google-pasta-0.2.0-r1::gentoo  USE="-test" PYTHON_TARGETS="python3_9 -python3_8 -python3_10" 0 KiB
[ebuild  N     ] dev-python/tblib-1.7.0::gentoo  USE="-test" PYTHON_TARGETS="python3_9 -python3_8 -python3_10" 0 KiB
[ebuild  N     ] dev-python/termcolor-1.1.0-r2::gentoo  PYTHON_TARGETS="python3_9 (-pypy3) -python3_8 -python3_10" 0 KiB
[ebuild  N     ] dev-python/typing-extensions-4.0.1::gentoo  PYTHON_TARGETS="python3_9 (-pypy3) -python3_8 -python3_10" 0 KiB
[ebuild  N     ] dev-python/wrapt-1.13.2::gentoo  USE="-doc -test" PYTHON_TARGETS="python3_9 (-pypy3) -python3_8 -python3_10" 0 KiB
[ebuild  N     ] dev-python/mock-4.0.3::gentoo  PYTHON_TARGETS="python3_9 (-pypy3) -python3_8 -python3_10" 0 KiB
[ebuild  N     ] dev-python/werkzeug-2.0.2::gentoo  USE="-test" PYTHON_TARGETS="python3_9 (-pypy3) -python3_8 -python3_10" 0 KiB
[ebuild  N     ] dev-python/webencodings-0.5.1-r1::gentoo  USE="-test" PYTHON_TARGETS="python3_9 (-pypy3) -python3_8 -python3_10" 0 KiB
[ebuild  N     ] dev-python/click-8.0.3::gentoo  USE="-doc -examples -test" PYTHON_TARGETS="python3_9 (-pypy3) -python3_8 -python3_10" 0 KiB
[ebuild  N     ] dev-python/pyjwt-2.3.0::gentoo  USE="-test" PYTHON_TARGETS="python3_9 -python3_8 -python3_10" 0 KiB
[ebuild  N     ] dev-python/blinker-1.4-r2::gentoo  USE="-doc -test" PYTHON_TARGETS="python3_9 (-pypy3) -python3_8 -python3_10" 0 KiB
[ebuild  N     ] dev-python/cachetools-4.2.4::gentoo  USE="-test" PYTHON_TARGETS="python3_9 -python3_8 -python3_10" 0 KiB
[ebuild  N     ] dev-python/pyasn1-modules-0.2.8-r1::gentoo  USE="-test" PYTHON_TARGETS="python3_9 (-pypy3) -python3_8 -python3_10" 0 KiB
[ebuild  N     ] dev-libs/crc32c-1.1.1::gentoo  USE="-test" 0 KiB
[ebuild  N     ] dev-cpp/gtest-1.11.0::gentoo  USE="-doc -examples -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] dev-cpp/eigen-3.4.0-r1:3::gentoo  USE="openmp (-cuda) -debug -doc -test" 0 KiB
[ebuild  N     ] dev-python/pytz-2021.3::gentoo  PYTHON_TARGETS="python3_9 (-pypy3) -python3_8 -python3_10" 0 KiB
[ebuild  N     ] dev-python/protobuf-python-3.19.1:0/30::gentoo  USE="-test" PYTHON_TARGETS="python3_9 -python3_8 -python3_10" 0 KiB
[ebuild  N     ] dev-util/bazel-3.7.2-r1::gentoo  USE="-examples -tools" 0 KiB
[ebuild  N     ] dev-libs/re2-0.2021.11.01:0/9::gentoo  USE="icu" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] sci-libs/lapack-3.10.0::gentoo  USE="-deprecated -doc -eselect-ldso -lapacke -test" 0 KiB
[ebuild  N     ] dev-python/pybind11-2.8.1::gentoo  USE="-test" PYTHON_TARGETS="python3_9 -python3_8 -python3_10" 0 KiB
[ebuild  N     ] dev-python/google-auth-2.3.3::gentoo  USE="-test" PYTHON_TARGETS="python3_9 -python3_8" 0 KiB
[ebuild  N     ] dev-python/html5lib-1.1::gentoo  USE="-test" PYTHON_TARGETS="python3_9 (-pypy3) -python3_8 -python3_10" 0 KiB
[ebuild  N     ] sys-apps/hwloc-2.6.0:0/15::gentoo  USE="X cairo cpuid pci svg udev xml (-cuda) -debug -gl -nvml -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] dev-python/astunparse-1.6.3::gentoo  USE="-test" PYTHON_TARGETS="python3_9 -python3_8 -python3_10" 0 KiB
[ebuild  N     ] dev-python/beniget-0.4.1::gentoo  USE="-test" PYTHON_TARGETS="python3_9 -python3_8 -python3_10" 0 KiB
[ebuild  N     ] dev-python/oauthlib-3.1.1::gentoo  USE="-test" PYTHON_TARGETS="python3_9 -python3_8 -python3_10" 0 KiB
[ebuild  N     ] dev-python/pkgconfig-1.5.5::gentoo  USE="-test" PYTHON_TARGETS="python3_9 (-pypy3) -python3_8 -python3_10" 0 KiB
[ebuild  N    ~] dev-python/grpcio-1.43.0::gentoo  PYTHON_TARGETS="python3_9 -python3_8 -python3_10" 0 KiB
[ebuild  N     ] virtual/lapack-3.10::gentoo  USE="-eselect-ldso" 0 KiB
[ebuild  N     ] net-libs/grpc-1.41.1:0/19.141::gentoo  USE="-doc -examples (-test)" 8,151 KiB
[ebuild  N     ] virtual/cblas-3.8::gentoo  USE="-eselect-ldso" 0 KiB
[ebuild  N     ] dev-python/bleach-4.1.0::gentoo  USE="-test" PYTHON_TARGETS="python3_9 (-pypy3) -python3_8 -python3_10" 0 KiB
[ebuild  N     ] dev-python/requests-oauthlib-1.3.0::gentoo  USE="-test" PYTHON_TARGETS="python3_9 -python3_8 -python3_10" 0 KiB
[ebuild  N     ] virtual/blas-3.8::gentoo  USE="-eselect-ldso" 0 KiB
[ebuild  N     ] dev-python/numpy-1.21.4-r2::gentoo  USE="lapack -doc -test" PYTHON_TARGETS="python3_9 -python3_8 -python3_10" 0 KiB
[ebuild  N    ~] net-libs/google-cloud-cpp-0.10.0-r1::gentoo  0 KiB
[ebuild  N    ~] dev-python/grpcio-tools-1.43.0::gentoo  PYTHON_TARGETS="python3_9 -python3_8 -python3_10" 0 KiB
[ebuild  N    ~] dev-python/google-auth-oauthlib-0.4.6::gentoo  USE="-test" PYTHON_TARGETS="python3_9 -python3_8" 0 KiB
[ebuild  N     ] sci-libs/arpack-3.8.0::gentoo  USE="-doc -examples -mpi" 0 KiB
[ebuild  N     ] dev-python/h5py-3.3.0::gentoo  USE="-doc -examples -test" PYTHON_TARGETS="python3_9 -python3_8 -python3_10" 0 KiB
[ebuild  N     ] sci-libs/keras-applications-1.0.8-r1::gentoo  PYTHON_TARGETS="python3_9 -python3_8" 0 KiB
[ebuild  N     ] dev-python/opt-einsum-3.3.0::gentoo  USE="-test" PYTHON_TARGETS="python3_9 -python3_8 -python3_10" 0 KiB
[ebuild  N     ] dev-python/pythran-0.10.0::gentoo  USE="-test" PYTHON_TARGETS="python3_9 -python3_8 -python3_10" 0 KiB
[ebuild  N     ] dev-python/bottleneck-1.3.2-r1::gentoo  USE="-test" PYTHON_TARGETS="python3_9 -python3_8 -python3_10" 0 KiB
[ebuild  N     ] dev-python/numexpr-2.7.3::gentoo  USE="(-mkl)" PYTHON_TARGETS="python3_9 -python3_8 -python3_10" 0 KiB
[ebuild  N     ] dev-python/scipy-1.7.3::gentoo  USE="pythran -doc -sparse -test" PYTHON_TARGETS="python3_9 -python3_8 -python3_10" 0 KiB
[ebuild  N     ] dev-python/pandas-1.3.4::gentoo  USE="X (-doc) -full-support -minimal -test" PYTHON_TARGETS="python3_9 -python3_8 -python3_10" 0 KiB
[ebuild  N     ] sci-libs/keras-preprocessing-1.1.2::gentoo  PYTHON_TARGETS="python3_9 -python3_8" 0 KiB
[ebuild  N    ~] sci-visualization/tensorboard-2.7.0::gentoo  PYTHON_TARGETS="python3_9 -python3_8" 0 KiB
[ebuild  N    ~] sci-libs/tensorflow-2.7.0::gentoo  USE="python -cuda -mpi -xla" CPU_FLAGS_X86="avx avx2 fma3 sse sse2 sse3 sse4_1 sse4_2 -fma4" PYTHON_TARGETS="python3_9 -python3_8" 0 KiB
[ebuild  N    ~] sci-libs/keras-2.7.0::gentoo  PYTHON_TARGETS="python3_9 -python3_8" 0 KiB
[ebuild  N    ~] sci-libs/tensorflow-estimator-2.7.0::gentoo  PYTHON_TARGETS="python3_9 -python3_8" 0 KiB

Total: 66 packages (66 new), Size of downloads: 9,884 KiB
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Sun Jan 02, 2022 7:35 am

Code: Select all

nvcc warning : The 'compute_35', 'compute_37', 'compute_50', 'sm_35', 'sm_37' and 'sm_50' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/include/g++-v11/bits/std_function.h:435:145: error: parameter packs not expanded with ‘...’:
  435 |         function(_Functor&& __f)
      |                                                                                                                                                 ^ 
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/include/g++-v11/bits/std_function.h:435:145: note:         ‘_ArgTypes’
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/include/g++-v11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’:
  530 |         operator=(_Functor&& __f)
      |                                                                                                                                                  ^ 
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/include/g++-v11/bits/std_function.h:530:146: note:         ‘_ArgTypes’
[8,715 / 10,552] Compiling tensorflow/core/data/stats_utils.cc; 0s local
INFO: Elapsed time: 4933.652s, Critical Path: 75.68s
[8,716 / 10,552] checking cached actions
INFO: 8716 processes: 3382 internal, 5334 local.
[8,716 / 10,552] checking cached actions
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully
[bug=829716#c6]Another way is try to compile with gcc 11.2.0[/bug]
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
majzik
n00b
n00b
Posts: 8
Joined: Tue Dec 28, 2021 6:59 am

  • Quote

Post by majzik » Sun Jan 02, 2022 8:27 pm

fedeliallalinea wrote:

Code: Select all

nvcc warning : The 'compute_35', 'compute_37', 'compute_50', 'sm_35', 'sm_37' and 'sm_50' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/include/g++-v11/bits/std_function.h:435:145: error: parameter packs not expanded with ‘...’:
  435 |         function(_Functor&& __f)
      |                                                                                                                                                 ^ 
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/include/g++-v11/bits/std_function.h:435:145: note:         ‘_ArgTypes’
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/include/g++-v11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’:
  530 |         operator=(_Functor&& __f)
      |                                                                                                                                                  ^ 
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/include/g++-v11/bits/std_function.h:530:146: note:         ‘_ArgTypes’
[8,715 / 10,552] Compiling tensorflow/core/data/stats_utils.cc; 0s local
INFO: Elapsed time: 4933.652s, Critical Path: 75.68s
[8,716 / 10,552] checking cached actions
INFO: 8716 processes: 3382 internal, 5334 local.
[8,716 / 10,552] checking cached actions
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully
[bug=829716#c6]Another way is try to compile with gcc 11.2.0[/bug]
Thanks, I have was using sys-devel/gcc-11.2.1_p20211127:11::gentoo and will return gcc-11.2.0.
Top
majzik
n00b
n00b
Posts: 8
Joined: Tue Dec 28, 2021 6:59 am

  • Quote

Post by majzik » Sun Jan 09, 2022 5:26 am

Thank you, everyone, it turns out that the return to gcc-11.2.0 solved the issue.

I have been using and no issues so far and work very well with my GPU.
Top
arturs
n00b
n00b
Posts: 17
Joined: Sat Jan 25, 2020 3:36 pm

  • Quote

Post by arturs » Thu Jan 13, 2022 6:25 am

I had identical issue/errors with the same gcc version. Switched back to gcc-12.2.0, and now I'm getting these errors when trying to emerge (after 1h of compiling on 8cores):

Code: Select all

^M^[[1A^[[K^[[31m^[[1mERROR: ^[[0m/var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0-python3_9/tensorflow/BUILD:994:20: Linking of rule '//tensorflow:libtensorflow.so.2.7.0' failed (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command
  (cd /var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0-python3_9-bazel-base/execroot/org_tensorflow && \
  exec env - \
    CUDA_TOOLKIT_PATH=/opt/cuda \
    GCC_HOST_COMPILER_PATH=/usr/x86_64-pc-linux-gnu/gcc-bin/11.2.0/x86_64-pc-linux-gnu-gcc \
    HOME=/var/tmp/portage/sci-libs/tensorflow-2.7.0/homedir \
    KERAS_HOME=/var/tmp/portage/sci-libs/tensorflow-2.7.0/temp/.keras \
    PATH=/var/tmp/portage/sci-libs/tensorflow-2.7.0/temp/python3.9/bin:/usr/lib/portage/python3.9/ebuild-helpers/xattr:/usr/lib/portage/python3.9/ebuild-helpers:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/13/bin:/usr/lib/root/6.24/bin:/opt/cuda/bin \
    PWD=/proc/self/cwd \
    PYTHON_BIN_PATH=/usr/bin/python3.9 \
    PYTHON_LIB_PATH=/usr/lib/python3.9/site-packages \
    TF2_BEHAVIOR=1 \
    TF_CUDA_COMPUTE_CAPABILITIES=3.5,7.0 \
    TF_CUDA_PATHS=/opt/cuda \
    TF_CUDA_VERSION=11.5 \
    TF_CUDNN_VERSION=8.3 \
    TF_SYSTEM_LIBS=absl_py,astor_archive,astunparse_archive,boringssl,com_github_googlecloudplatform_google_cloud_cpp,com_github_grpc_grpc,com_google_protobuf,curl,cython,dill_archive,double_conversion,enum34_archive,flatbuffers,functools32_archive,gast_archive,gif,hwloc,icu,jsoncpp_git,libjpeg_turbo,lmdb,nasm,nsync,opt_einsum_archive,org_sqlite,pasta,png,pybind11,six_archive,snappy,tblib_archive,termcolor_archive,typing_extensions_archive,wrapt,zlib \
  external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc @bazel-out/k8-opt/bin/tensorflow/libtensorflow.so.2.7.0-2.params)
Execution platform: @local_execution_config_platform//:platform
^[[32m[17,751 / 17,753]^[[0m checking cached actions
^M^[[1A^[[K/usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/debug/libdebug_service_proto_cc_impl.pic.lo(debug_service.grpc.pb.pic.o): in function `grpc::internal::ClientCallbackReaderWriterImpl<tensorflow::Event, tensorflow::EventReply>::Read(tensorflow::EventReply*)':
debug_service.grpc.pb.cc:(.text._ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE4ReadEPS4_[_ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE4ReadEPS4_]+0x4b): undefined reference to `absl::lts_20211102::Mutex::Lock()'
/usr/bin/ld: debug_service.grpc.pb.cc:(.text._ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE4ReadEPS4_[_ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE4ReadEPS4_]+0x65): undefined reference to `absl::lts_20211102::Mutex::Unlock()'
/usr/bin/ld: debug_service.grpc.pb.cc:(.text._ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE4ReadEPS4_[_ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE4ReadEPS4_]+0x74): undefined reference to `absl::lts_20211102::Mutex::Unlock()'
/usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/debug/libdebug_service_proto_cc_impl.pic.lo(debug_service.grpc.pb.pic.o): in function `grpc::internal::ClientCallbackReaderWriterImpl<tensorflow::Event, tensorflow::EventReply>::Write(tensorflow::Event const*, grpc::WriteOptions)':
debug_service.grpc.pb.cc:(.text._ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE5WriteEPKS3_NS_12WriteOptionsE[_ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE5WriteEPKS3_NS_12WriteOptionsE]+0x15b): undefined reference to `absl::lts_20211102::Mutex::Lock()'
/usr/bin/ld: debug_service.grpc.pb.cc:(.text._ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE5WriteEPKS3_NS_12WriteOptionsE[_ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE5WriteEPKS3_NS_12WriteOptionsE]+0x175): undefined reference to `absl::lts_20211102::Mutex::Unlock()'
/usr/bin/ld: debug_service.grpc.pb.cc:(.text._ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE5WriteEPKS3_NS_12WriteOptionsE[_ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE5WriteEPKS3_NS_12WriteOptionsE]+0x19c): undefined reference to `absl::lts_20211102::Mutex::Unlock()'
/usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/debug/libdebug_service_proto_cc_impl.pic.lo(debug_service.grpc.pb.pic.o): in function `grpc::internal::ClientCallbackReaderWriterImpl<tensorflow::Event, tensorflow::EventReply>::WritesDone()':
debug_service.grpc.pb.cc:(.text._ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE10WritesDoneEv[_ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE10WritesDoneEv]+0x12b): undefined reference to `absl::lts_20211102::Mutex::Lock()'
/usr/bin/ld: debug_service.grpc.pb.cc:(.text._ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE10WritesDoneEv[_ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE10WritesDoneEv]+0x145): undefined reference to `absl::lts_20211102::Mutex::Unlock()'
/usr/bin/ld: debug_service.grpc.pb.cc:(.text._ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE10WritesDoneEv[_ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE10WritesDoneEv]+0x16c): undefined reference to `absl::lts_20211102::Mutex::Unlock()'
/usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/debug/libdebug_service_proto_cc_impl.pic.lo(debug_service.grpc.pb.pic.o): in function `grpc::internal::ClientCallbackReaderWriterImpl<tensorflow::Event, tensorflow::EventReply>::~ClientCallbackReaderWriterImpl()':
debug_service.grpc.pb.cc:(.text._ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEED2Ev[_ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEED5Ev]+0x2a): undefined reference to `absl::lts_20211102::Mutex::~Mutex()'
/usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/debug/libdebug_service_proto_cc_impl.pic.lo(debug_service.grpc.pb.pic.o): in function `grpc::internal::ClientCallbackReaderWriterImpl<tensorflow::Event, tensorflow::EventReply>::~ClientCallbackReaderWriterImpl()':
debug_service.grpc.pb.cc:(.text._ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEED0Ev[_ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEED5Ev]+0x2a): undefined reference to `absl::lts_20211102::Mutex::~Mutex()'
/usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/debug/libdebug_service_proto_cc_impl.pic.lo(debug_service.grpc.pb.pic.o): in function `grpc::ClientReaderWriter<tensorflow::Event, tensorflow::EventReply>::ClientReaderWriter(grpc::ChannelInterface*, grpc::internal::RpcMethod const&, grpc::ClientContext*)':
debug_service.grpc.pb.cc:(.text._ZN4grpc18ClientReaderWriterIN10tensorflow5EventENS1_10EventReplyEEC2EPNS_16ChannelInterfaceERKNS_8internal9RpcMethodEPNS_13ClientContextE[_ZN4grpc18ClientReaderWriterIN10tensorflow5EventENS1_10EventReplyEEC5EPNS_16ChannelInterfaceERKNS_8internal9RpcMethodEPNS_13ClientContextE]+0x34c): undefined reference to `absl::lts_20211102::Mutex::~Mutex()'
/usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/debug/libdebug_service_proto_cc_impl.pic.lo(debug_service.grpc.pb.pic.o): in function `grpc::internal::ClientCallbackReaderWriterImpl<tensorflow::Event, tensorflow::EventReply>::ClientCallbackReaderWriterImpl(grpc::internal::Call, grpc::ClientContext*, grpc::ClientBidiReactor<tensorflow::Event, tensorflow::EventReply>*)':
debug_service.grpc.pb.cc:(.text._ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEEC2ENS0_4CallEPNS_13ClientContextEPNS_17ClientBidiReactorIS3_S4_EE[_ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEEC5ENS0_4CallEPNS_13ClientContextEPNS_17ClientBidiReactorIS3_S4_EE]+0x700): undefined reference to `absl::lts_20211102::Mutex::~Mutex()'
/usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/debug/libdebug_service_proto_cc_impl.pic.lo(debug_service.grpc.pb.pic.o): in function `grpc::internal::ClientCallbackReaderWriterImpl<tensorflow::Event, tensorflow::EventReply>::StartCall()':
debug_service.grpc.pb.cc:(.text._ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE9StartCallEv[_ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE9StartCallEv]+0x89): undefined reference to `absl::lts_20211102::Mutex::Lock()'
/usr/bin/ld: debug_service.grpc.pb.cc:(.text._ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE9StartCallEv[_ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE9StartCallEv]+0x119): undefined reference to `absl::lts_20211102::Mutex::Unlock()'
/usr/bin/ld: debug_service.grpc.pb.cc:(.text._ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE9StartCallEv[_ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE9StartCallEv]+0x13c): undefined reference to `absl::lts_20211102::Mutex::Unlock()'
/usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/distributed_runtime/rpc/libgrpc_master_service_impl.pic.a(grpc_master_service_impl.pic.o): in function `grpc::CompletionQueue::CompletionQueue(grpc_completion_queue_attributes const&)':
grpc_master_service_impl.cc:(.text._ZN4grpc15CompletionQueueC2ERK32grpc_completion_queue_attributes[_ZN4grpc15CompletionQueueC5ERK32grpc_completion_queue_attributes]+0x10c): undefined reference to `absl::lts_20211102::Mutex::~Mutex()'
/usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/profiler/libprofiler_analysis_proto_cc_impl.pic.lo(profiler_analysis.grpc.pb.pic.o): in function `grpc::CompletionQueue::~CompletionQueue()':
profiler_analysis.grpc.pb.cc:(.text._ZN4grpc15CompletionQueueD2Ev[_ZN4grpc15CompletionQueueD5Ev]+0x5a): undefined reference to `absl::lts_20211102::Mutex::~Mutex()'
/usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/profiler/libprofiler_analysis_proto_cc_impl.pic.lo(profiler_analysis.grpc.pb.pic.o): in function `grpc::CompletionQueue::~CompletionQueue()':
profiler_analysis.grpc.pb.cc:(.text._ZN4grpc15CompletionQueueD0Ev[_ZN4grpc15CompletionQueueD5Ev]+0x5b): undefined reference to `absl::lts_20211102::Mutex::~Mutex()'
/usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/profiler/libprofiler_analysis_proto_cc_impl.pic.lo(profiler_analysis.grpc.pb.pic.o): in function `grpc::internal::BlockingUnaryCallImpl<google::protobuf::MessageLite, google::protobuf::MessageLite>::BlockingUnaryCallImpl(grpc::ChannelInterface*, grpc::internal::RpcMethod const&, grpc::ClientContext*, google::protobuf::MessageLite const&, google::protobuf::MessageLite*)':
profiler_analysis.grpc.pb.cc:(.text._ZN4grpc8internal21BlockingUnaryCallImplIN6google8protobuf11MessageLiteES4_EC2EPNS_16ChannelInterfaceERKNS0_9RpcMethodEPNS_13ClientContextERKS4_PS4_[_ZN4grpc8internal21BlockingUnaryCallImplIN6google8protobuf11MessageLiteES4_EC5EPNS_16ChannelInterfaceERKNS0_9RpcMethodEPNS_13ClientContextERKS4_PS4_]+0x82e): undefined reference to `absl::lts_20211102::Mutex::~Mutex()'
/usr/bin/ld: profiler_analysis.grpc.pb.cc:(.text._ZN4grpc8internal21BlockingUnaryCallImplIN6google8protobuf11MessageLiteES4_EC2EPNS_16ChannelInterfaceERKNS0_9RpcMethodEPNS_13ClientContextERKS4_PS4_[_ZN4grpc8internal21BlockingUnaryCallImplIN6google8protobuf11MessageLiteES4_EC5EPNS_16ChannelInterfaceERKNS0_9RpcMethodEPNS_13ClientContextERKS4_PS4_]+0x9ce): undefined reference to `absl::lts_20211102::Mutex::~Mutex()'
/usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/profiler/libprofiler_analysis_proto_cc_impl.pic.lo(profiler_analysis.grpc.pb.pic.o):profiler_analysis.grpc.pb.cc:(.text._ZN4grpc8internal21BlockingUnaryCallImplIN6google8protobuf11MessageLiteES4_EC2EPNS_16ChannelInterfaceERKNS0_9RpcMethodEPNS_13ClientContextERKS4_PS4_[_ZN4grpc8internal21BlockingUnaryCallImplIN6google8protobuf11MessageLiteES4_EC5EPNS_16ChannelInterfaceERKNS0_9RpcMethodEPNS_13ClientContextERKS4_PS4_]+0x1031): more undefined references to `absl::lts_20211102::Mutex::~Mutex()' follow
collect2: error: ld returned 1 exit status
^[[32m[17,751 / 17,753]^[[0m checking cached actions
^M^[[1A^[[K^[[32mINFO: ^[[0mElapsed time: 5204.301s, Critical Path: 519.11s
^[[32m[17,751 / 17,753]^[[0m checking cached actions
^M^[[1A^[[K^[[32mINFO: ^[[0m17751 processes: 5387 internal, 12364 local.
^[[32m[17,751 / 17,753]^[[0m checking cached actions
^M^[[1A^[[K^[[31m^[[1mFAILED:^[[0m Build did NOT complete successfully
^M^[[1A^[[K^[[31m^[[1mFAILED:^[[0m Build did NOT complete successfully
^[[0m * ERROR: sci-libs/tensorflow-2.7.0::gentoo failed (compile phase):
 *   ebazel failed
 *
 * Call stack:
 *     ebuild.sh, line  127:  Called src_compile
 *   environment, line 4261:  Called ebazel 'build' '//tensorflow:libtensorflow_framework.so' '//tensorflow:libtensorflow.so'
 *   environment, line 2586:  Called die
 * The specific snippet of code:
 *       "${@}" || die "ebazel failed"
 *
 * If you need support, post the output of `emerge --info '=sci-libs/tensorflow-2.7.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-libs/tensorflow-2.7.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sci-libs/tensorflow-2.7.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-libs/tensorflow-2.7.0/temp/environment'.
 * Working directory: '/var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0-python3_9'
 * S: '/var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0'
Any ideas of how to deal with this? In the worst case scenario I could use pip or anaconda, but would really rather have it through portage...
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Thu Jan 13, 2022 6:52 am

Try to see in dmeg if there is a out of memory message or post full build.log and your emerge --info.
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
arturs
n00b
n00b
Posts: 17
Joined: Sat Jan 25, 2020 3:36 pm

  • Quote

Post by arturs » Thu Jan 13, 2022 7:31 am

I found this in dmesg:

Code: Select all

[   40.034133] ACPI Warning: \_SB.PC00.PEG1.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20210730/nsarguments-61)
[ 5960.329619] ACPI Error: Thread 2853011456 cannot release Mutex [ECMX] acquired by thread 2854148416 (20210730/exmutex-378)
[ 5960.329627] ACPI Error: Aborting method \_SB.PC00.LPCB.ECDV._Q66 due to previous error (AE_AML_NOT_OWNER) (20210730/psparse-529)
[ 5960.361586] ACPI Error: Thread 848855040 cannot release Mutex [ECMX] acquired by thread 2854148416 (20210730/exmutex-378)
[ 5960.361595] ACPI Error: Aborting method \_SB.PC00.LPCB.ECDV._Q66 due to previous error (AE_AML_NOT_OWNER) (20210730/psparse-529)
[ 5960.369542] ACPI Error: Thread 4014987584 cannot release Mutex [ECMX] acquired by thread 2854148416 (20210730/exmutex-378)
[ 5960.369549] ACPI Error: Aborting method \_SB.PC00.LPCB.ECDV._Q66 due to previous error (AE_AML_NOT_OWNER) (20210730/psparse-529)
I'm not sure if the first line is related, I think it was from the first time I tried to install tensorflow? I tried few more times and I got the same ACPI Errors, but without the ACPI warning beforehand.

Here are my emerge--info and build.log from tensorflow:

emerge --info:

Code: Select all

Portage 3.0.30 (python 3.9.9-final-0, default/linux/amd64/17.1/desktop, gcc-11.2.0, glibc-2.34-r6, 5.15.11-gentoo x86_64)
=================================================================
System uname: Linux-5.15.11-gentoo-x86_64-11th_Gen_Intel-R-_Core-TM-_i7-11800H_@_2.30GHz-with-glibc2.34
KiB Mem:    32589576 total,  24732660 free
KiB Swap:   67108860 total,  66756604 free
Timestamp of repository gentoo: Thu, 13 Jan 2022 00:30:01 +0000
Head commit of repository gentoo: 33d1e367129c3ddef0558e989fbd75a8a39738ea
Timestamp of repository steam-overlay: Sun, 09 Jan 2022 10:36:35 +0000
Head commit of repository steam-overlay: 166259fb598aae8c8fea17f93576d2b1ed7ff773

sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p1) 2.37
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.0-r6::gentoo
dev-lang/python:           3.9.9-r1::gentoo, 3.10.1-r3::gentoo
dev-lang/rust-bin:         1.57.0::gentoo
dev-util/cmake:            3.22.1::gentoo
dev-util/meson:            0.60.3::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.37_p1-r1::gentoo
sys-devel/binutils-config: 5.4::gentoo
sys-devel/clang:           13.0.0::gentoo
sys-devel/gcc:             11.2.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/llvm:            13.0.0::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.16::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r6::gentoo
Repositories:

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

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
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="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live 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="-march=native -O2 -pipe"
GENTOO_MIRRORS="ftp://mirror.bytemark.co.uk/gentoo/ https://mirror.bytemark.co.uk/gentoo/ http://mirror.bytemark.co.uk/gentoo/ rsync://mirror.bytemark.co.uk/gentoo/ ftp://mirrors.gethosted.online/gentoo https://mirrors.gethosted.online/gentoo http://mirrors.gethosted.online/gentoo https://www.mirrorservice.org/sites/distfiles.gentoo.org/ http://www.mirrorservice.org/sites/distfiles.gentoo.org/ rsync://rsync.mirrorservice.org/distfiles.gentoo.org/ https://gentoo.osuosl.org/ http://gentoo.osuosl.org/ https://mirrors.rit.edu/gentoo/ http://mirrors.rit.edu/gentoo/ ftp://mirrors.rit.edu/gentoo/ rsync://mirrors.rit.edu/gentoo/"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j16"
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"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus dri dts dvd dvdr elogind emboss encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg lcms libglvnd libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline sdl seccomp spell split-usr ssl startup-notification svg tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2020" 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" CPU_FLAGS_X86="mmx mmxext sse sse2" 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev 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="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="intel i965 iris nvidia" 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:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
And the full build.log:

Code: Select all

 * Package:    sci-libs/tensorflow-2.7.0
 * Repository: gentoo
 * Maintainer: perfinion@gentoo.org
 * USE:        abi_x86_64 amd64 cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_fma3 cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse4_1 cpu_flags_x86_sse4_2 cuda elibc_glibc kernel_linux mpi python python_targets_python3_9 userland_GNU xla
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
 * TensorFlow 2.0 is a major release that contains some incompatibilities
 * with TensorFlow 1.x. For more information about migrating to TF2.0 see:
 * https://www.tensorflow.org/guide/migrate
 * python3_9: running count_impls
 * Checking for at least 5 GiB RAM ...
 [ ok ]
 * Checking for at least 16 GiB disk space at "/var/tmp/portage/sci-libs/tensorflow-2.7.0/temp" ...
 [ ok ]
>>> Unpacking source...
>>> Unpacking tensorflow-2.7.0.tar.gz to /var/tmp/portage/sci-libs/tensorflow-2.7.0/work
>>> Unpacking tensorflow-patches-2.7.0.tar.bz2 to /var/tmp/portage/sci-libs/tensorflow-2.7.0/work
Copying abseil-cpp-997aaf3a28308eba1b9156aa35ab7bca9688e9f6.tar.gz to bazel distdir as 997aaf3a28308eba1b9156aa35ab7bca9688e9f6.tar.gz
Copying bazelbuild-platforms-0.0.2.tar.gz to bazel distdir as platforms-0.0.2.tar.gz
Copying bazel-skylib-1.0.3.tar.gz to bazel distdir
Copying bazel-toolchains-dfc67056200b674accd08d8f9a21e328098c07e2.tar.gz to bazel distdir as dfc67056200b674accd08d8f9a21e328098c07e2.tar.gz
Copying bazelbuild-rules_android-v0.1.1.zip to bazel distdir as v0.1.1.zip
Copying bazelbuild-rules_cc-40548a2974f1aea06215272d9c2b47a14a24e556.tar.gz to bazel distdir as 40548a2974f1aea06215272d9c2b47a14a24e556.tar.gz
Copying bazelbuild-rules_closure-308b05b2419edb5c8ee0471b67a40403df940149.tar.gz to bazel distdir as 308b05b2419edb5c8ee0471b67a40403df940149.tar.gz
Copying bazelbuild-rules_docker-v0.10.0.tar.gz to bazel distdir as rules_docker-v0.10.0.tar.gz
Copying bazelbuild-rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip to bazel distdir as 7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip
Copying bazelbuild-rules_proto-97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz to bazel distdir as 97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz
Copying bazelbuild-rules_python-0.0.1.tar.gz to bazel distdir as rules_python-0.0.1.tar.gz
Copying bazelbuild-rules_swift-3eeeb53cebda55b349d64c9fc144e18c5f7c0eb8.tar.gz to bazel distdir as 3eeeb53cebda55b349d64c9fc144e18c5f7c0eb8.tar.gz
Copying dlpack-3efc489b55385936531a06ff83425b719387ec63.tar.gz to bazel distdir as 3efc489b55385936531a06ff83425b719387ec63.tar.gz
Copying farmhash-0d859a811870d10f53a594927d0d0b97573ad06d.tar.gz to bazel distdir as 0d859a811870d10f53a594927d0d0b97573ad06d.tar.gz
Copying gemmlowp-fda83bdc38b118cc6b56753bd540caa49e570745.zip to bazel distdir as fda83bdc38b118cc6b56753bd540caa49e570745.zip
Copying highwayhash-fd3d9af80465e4383162e4a7c5e2f406e82dd968.tar.gz to bazel distdir as fd3d9af80465e4383162e4a7c5e2f406e82dd968.tar.gz
Copying re2-506cfa4bffd060c06ec338ce50ea3468daa6c814.tar.gz to bazel distdir as 506cfa4bffd060c06ec338ce50ea3468daa6c814.tar.gz
Copying ruy-e6c1b8dc8a8b00ee74e7268aac8b18d7260ab1ce.zip to bazel distdir as e6c1b8dc8a8b00ee74e7268aac8b18d7260ab1ce.zip
Copying sobol_data-835a7d7b1ee3bc83e575e302a985c66ec4b65249.tar.gz to bazel distdir as 835a7d7b1ee3bc83e575e302a985c66ec4b65249.tar.gz
Copying llvm-project-43d6991c2a4cc2ac374e68c029634f2b59ffdfdf.tar.gz to bazel distdir as 43d6991c2a4cc2ac374e68c029634f2b59ffdfdf.tar.gz
Copying llvmorg-10.0.1-openmp-10.0.1.src.tar.xz to bazel distdir as openmp-10.0.1.src.tar.xz
Copying kissfft-36dbc057604f00aacfc0288ddad57e3b21cfc1b8.tar.gz to bazel distdir as 36dbc057604f00aacfc0288ddad57e3b21cfc1b8.tar.gz
Copying oneDNN-v2.4.1.tar.gz to bazel distdir as v2.4.1.tar.gz
Copying OouraFFT-v1.0.tar.gz to bazel distdir as v1.0.tar.gz
Copying pytorch-cpuinfo-5916273f79a21551890fd3d56fc5375a78d1598d.zip to bazel distdir as 5916273f79a21551890fd3d56fc5375a78d1598d.zip
Copying pytorch-cpuinfo-d5e37adf1406cf899d7d9ec1d317c47506ccb970.tar.gz to bazel distdir as d5e37adf1406cf899d7d9ec1d317c47506ccb970.tar.gz
Copying tensorflow-toolchains-v1.2.7.tar.gz to bazel distdir as v1.2.7.tar.gz
Copying tensorflow-runtime-64c92c8013b557087351c91b5423b6046d10f206.tar.gz to bazel distdir as 64c92c8013b557087351c91b5423b6046d10f206.tar.gz
Copying eigen-7792b1e909a98703181aecb8810b4b654004c25d.tar.gz to bazel distdir
Copying XNNPACK-694d2524757f9040e65a02c374e152a462fe57eb.zip to bazel distdir as 694d2524757f9040e65a02c374e152a462fe57eb.zip
Copying cudnn-frontend-73210a930333eaf66b42b01693bce7b70719c354.zip to bazel distdir as 73210a930333eaf66b42b01693bce7b70719c354.zip
Copying cub-1.9.9.zip to bazel distdir as 1.9.9.zip
Copying nvidia-nccl-v2.8.3-1.tar.gz to bazel distdir as v2.8.3-1.tar.gz
Copying ARM_NEON_2_x86_SSE-1200fe90bb174a6224a525ee60148671a786a71f.tar.gz to bazel distdir as 1200fe90bb174a6224a525ee60148671a786a71f.tar.gz
Copying tensorflow-1.15.0-python-license.rst.txt to bazel distdir as license.rst.txt
Copying backports.weakref-1.0rc1.tar.gz to bazel distdir
>>> Source unpacked in /var/tmp/portage/sci-libs/tensorflow-2.7.0/work
>>> Preparing source in /var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0 ...
 * Applying 0001-ci_build-update-check_system_libs-for-numbered-works.patch ...
 [ ok ]
 * Applying 0002-WORKSPACE-add-rules-docker-http_archive-bazel-toolch.patch ...
 [ ok ]
 * Applying 0003-example_parsing_ops-compatibility-with-protobuf-3.16.patch ...
 [ ok ]
 * Applying 0004-Relax-setup.py-version-requirements.patch ...
 [ ok ]
 * Will copy sources from /var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0
 * python3_9: copying to /var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0-python3_9
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0 ...
 * python3_9: running run_in_build_dir do_configure
 * Setting CUDA version: 11.5
 * Setting CUDNN version: 8.3
 * WARNING: TensorFlow is being built with its default CUDA compute capabilities: 3.5 and 7.0.
 * These may not be optimal for your GPU.
 *
 * To configure TensorFlow with the CUDA compute capability that is optimal for your GPU,
 * set TF_CUDA_COMPUTE_CAPABILITIES in your make.conf, and re-emerge tensorflow.
 * For example, to use CUDA capability 7.5 & 3.5, add: TF_CUDA_COMPUTE_CAPABILITIES=7.5,3.5
 *
 * You can look up your GPU's CUDA compute capability at https://developer.nvidia.com/cuda-gpus
 * or by running /opt/cuda/extras/demo_suite/deviceQuery | grep 'CUDA Capability'
You have bazel 3.7.2- (@non-git) installed.
Found CUDA 11.5 in:
    /opt/cuda/targets/x86_64-linux/lib
    /opt/cuda/targets/x86_64-linux/include
Found cuDNN 8 in:
    /opt/cuda/targets/x86_64-linux/lib
    /opt/cuda/targets/x86_64-linux/include


Please specify a list of comma-separated CUDA compute capabilities you want to build with.
You can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus. Each capability can be specified as "x.y" or "compute_xy" to include both virtual and binary GPU code, or as "sm_xy" to only include the binary code.
Please note that each additional compute capability significantly increases your build time and binary size, and that TensorFlow only supports compute capabilities >= 3.5 [Default is: 3.5,7.0]:

Preconfigured Bazel build configs. You can use any of the below by adding "--config=<>" to your build command. See .bazelrc for more details.
	--config=mkl         	# Build with MKL support.
	--config=mkl_aarch64 	# Build with oneDNN and Compute Library for the Arm Architecture (ACL).
	--config=monolithic  	# Config for mostly static monolithic build.
	--config=numa        	# Build with NUMA support.
	--config=dynamic_kernels	# (Experimental) Build kernels into separate shared objects.
	--config=v1          	# Build with TensorFlow 1 API instead of TF 2 API.
Preconfigured Bazel build configs to DISABLE default on features:
	--config=nogcp       	# Disable GCP support.
	--config=nonccl      	# Disable NVIDIA NCCL support.
Configuration finished
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0 ...
 * Using python3.9 in global scope
bazel --bazelrc=/var/tmp/portage/sci-libs/tensorflow-2.7.0/temp/bazelrc --output_base=/var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0-python3_9-bazel-base build -k --nobuild //tensorflow:libtensorflow_framework.so //tensorflow:libtensorflow.so //tensorflow:libtensorflow_cc.so //tensorflow/tools/pip_package:build_pip_package
Extracting Bazel installation...
WARNING: ignoring LD_PRELOAD in environment.
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=1 --terminal_columns=0
INFO: Reading rc options for 'build' from /var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0-python3_9/.bazelrc:
  Inherited 'common' options: --experimental_repo_remote_exec
INFO: Reading rc options for 'build' from /var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0-python3_9/.bazelrc:
  'build' options: --define framework_shared_object=true --java_toolchain=@tf_toolchains//toolchains/java:tf_java_toolchain --host_java_toolchain=@tf_toolchains//toolchains/java:tf_java_toolchain --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true
INFO: Reading rc options for 'build' from /var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0-python3_9/.tf_configure.bazelrc:
  'build' options: --action_env PYTHON_BIN_PATH=/usr/bin/python3.9 --action_env PYTHON_LIB_PATH=/usr/lib/python3.9/site-packages --python_path=/usr/bin/python3.9 --define=with_xla_support=true --action_env TF_CUDA_VERSION=11.5 --action_env TF_CUDNN_VERSION=8.3 --action_env TF_CUDA_PATHS=/opt/cuda --action_env CUDA_TOOLKIT_PATH=/opt/cuda --action_env TF_CUDA_COMPUTE_CAPABILITIES=3.5,7.0 --action_env GCC_HOST_COMPILER_PATH=/usr/x86_64-pc-linux-gnu/gcc-bin/11.2.0/x86_64-pc-linux-gnu-gcc --config=cuda --action_env TF_SYSTEM_LIBS=absl_py,astor_archive,astunparse_archive,boringssl,com_github_googlecloudplatform_google_cloud_cpp,com_github_grpc_grpc,com_google_protobuf,curl,cython,dill_archive,double_conversion,enum34_archive,flatbuffers,functools32_archive,gast_archive,gif,hwloc,icu,jsoncpp_git,libjpeg_turbo,lmdb,nasm,nsync,opt_einsum_archive,org_sqlite,pasta,png,pybind11,six_archive,snappy,tblib_archive,termcolor_archive,typing_extensions_archive,wrapt,zlib
INFO: Reading rc options for 'build' from /var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0-python3_9/.bazelrc:
  'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/common,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/fallback,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils --config=noaws --config=nohdfs --define tensorflow_mkldnn_contraction_kernel=0 --action_env=KERAS_HOME=/var/tmp/portage/sci-libs/tensorflow-2.7.0/temp/.keras --host_action_env=KERAS_HOME=/var/tmp/portage/sci-libs/tensorflow-2.7.0/temp/.keras --copt=-I/usr/include/jsoncpp --host_copt=-I/usr/include/jsoncpp
INFO: Reading rc options for 'build' from /var/tmp/portage/sci-libs/tensorflow-2.7.0/temp/bazelrc:
  'build' options: --action_env HOME --jobs=16 --compilation_mode=opt --host_compilation_mode=opt --conlyopt=-march=native --conlyopt=-O2 --conlyopt=-pipe --conlyopt=-msse --conlyopt=-msse2 --conlyopt=-msse4.1 --conlyopt=-msse4.2 --conlyopt=-mavx --conlyopt=-mavx2 --conlyopt=-mfma --cxxopt=-march=native --cxxopt=-O2 --cxxopt=-pipe --cxxopt=-msse --cxxopt=-msse2 --cxxopt=-msse4.1 --cxxopt=-msse4.2 --cxxopt=-mavx --cxxopt=-mavx2 --cxxopt=-mfma --cxxopt=-std=c++14 --linkopt=-Wl,-O1 --linkopt=-Wl,--as-needed --spawn_strategy=standalone --genrule_strategy=standalone --strip=never --verbose_failures --noshow_loading_progress --repository_cache=/var/tmp/portage/sci-libs/tensorflow-2.7.0/temp/bazel-cache/ --distdir=/var/tmp/portage/sci-libs/tensorflow-2.7.0/temp/bazel-distdir/ --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib64 --define=INCLUDEDIR=$(PREFIX)/include --nodistinct_host_configuration
INFO: Found applicable config definition build:short_logs in file /var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0-python3_9/.bazelrc: --output_filter=DONT_MATCH_ANYTHING
INFO: Found applicable config definition build:v2 in file /var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0-python3_9/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
INFO: Found applicable config definition build:cuda in file /var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0-python3_9/.bazelrc: --repo_env TF_NEED_CUDA=1 --crosstool_top=@local_config_cuda//crosstool:toolchain --@local_config_cuda//:enable_cuda
INFO: Found applicable config definition build:noaws in file /var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0-python3_9/.bazelrc: --define=no_aws_support=true
INFO: Found applicable config definition build:nohdfs in file /var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0-python3_9/.bazelrc: --define=no_hdfs_support=true
INFO: Found applicable config definition build:linux in file /var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0-python3_9/.bazelrc: --copt=-w --host_copt=-w --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++14 --host_cxxopt=-std=c++14 --config=dynamic_kernels --distinct_host_configuration=false --experimental_guard_against_concurrent_changes
INFO: Found applicable config definition build:dynamic_kernels in file /var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0-python3_9/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS
INFO: Analyzed 4 targets (444 packages loaded, 25555 targets configured).
INFO: Found 4 targets...
INFO: Elapsed time: 20.138s
INFO: 0 processes.
INFO: Build completed successfully, 0 total actions
bazel --bazelrc=/var/tmp/portage/sci-libs/tensorflow-2.7.0/temp/bazelrc --output_base=/var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0-python3_9-bazel-base build //tensorflow:libtensorflow_framework.so //tensorflow:libtensorflow.so
WARNING: ignoring LD_PRELOAD in environment.
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=1 --terminal_columns=0
INFO: Reading rc options for 'build' from /var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0-python3_9/.bazelrc:
  Inherited 'common' options: --experimental_repo_remote_exec
INFO: Reading rc options for 'build' from /var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0-python3_9/.bazelrc:
  'build' options: --define framework_shared_object=true --java_toolchain=@tf_toolchains//toolchains/java:tf_java_toolchain --host_java_toolchain=@tf_toolchains//toolchains/java:tf_java_toolchain --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true
INFO: Reading rc options for 'build' from /var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0-python3_9/.tf_configure.bazelrc:
  'build' options: --action_env PYTHON_BIN_PATH=/usr/bin/python3.9 --action_env PYTHON_LIB_PATH=/usr/lib/python3.9/site-packages --python_path=/usr/bin/python3.9 --define=with_xla_support=true --action_env TF_CUDA_VERSION=11.5 --action_env TF_CUDNN_VERSION=8.3 --action_env TF_CUDA_PATHS=/opt/cuda --action_env CUDA_TOOLKIT_PATH=/opt/cuda --action_env TF_CUDA_COMPUTE_CAPABILITIES=3.5,7.0 --action_env GCC_HOST_COMPILER_PATH=/usr/x86_64-pc-linux-gnu/gcc-bin/11.2.0/x86_64-pc-linux-gnu-gcc --config=cuda --action_env TF_SYSTEM_LIBS=absl_py,astor_archive,astunparse_archive,boringssl,com_github_googlecloudplatform_google_cloud_cpp,com_github_grpc_grpc,com_google_protobuf,curl,cython,dill_archive,double_conversion,enum34_archive,flatbuffers,functools32_archive,gast_archive,gif,hwloc,icu,jsoncpp_git,libjpeg_turbo,lmdb,nasm,nsync,opt_einsum_archive,org_sqlite,pasta,png,pybind11,six_archive,snappy,tblib_archive,termcolor_archive,typing_extensions_archive,wrapt,zlib
INFO: Reading rc options for 'build' from /var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0-python3_9/.bazelrc:
  'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/common,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/fallback,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils --config=noaws --config=nohdfs --define tensorflow_mkldnn_contraction_kernel=0 --action_env=KERAS_HOME=/var/tmp/portage/sci-libs/tensorflow-2.7.0/temp/.keras --host_action_env=KERAS_HOME=/var/tmp/portage/sci-libs/tensorflow-2.7.0/temp/.keras --copt=-I/usr/include/jsoncpp --host_copt=-I/usr/include/jsoncpp
INFO: Reading rc options for 'build' from /var/tmp/portage/sci-libs/tensorflow-2.7.0/temp/bazelrc:
  'build' options: --action_env HOME --jobs=16 --compilation_mode=opt --host_compilation_mode=opt --conlyopt=-march=native --conlyopt=-O2 --conlyopt=-pipe --conlyopt=-msse --conlyopt=-msse2 --conlyopt=-msse4.1 --conlyopt=-msse4.2 --conlyopt=-mavx --conlyopt=-mavx2 --conlyopt=-mfma --cxxopt=-march=native --cxxopt=-O2 --cxxopt=-pipe --cxxopt=-msse --cxxopt=-msse2 --cxxopt=-msse4.1 --cxxopt=-msse4.2 --cxxopt=-mavx --cxxopt=-mavx2 --cxxopt=-mfma --cxxopt=-std=c++14 --linkopt=-Wl,-O1 --linkopt=-Wl,--as-needed --spawn_strategy=standalone --genrule_strategy=standalone --strip=never --verbose_failures --noshow_loading_progress --repository_cache=/var/tmp/portage/sci-libs/tensorflow-2.7.0/temp/bazel-cache/ --distdir=/var/tmp/portage/sci-libs/tensorflow-2.7.0/temp/bazel-distdir/ --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib64 --define=INCLUDEDIR=$(PREFIX)/include --nodistinct_host_configuration
INFO: Found applicable config definition build:short_logs in file /var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0-python3_9/.bazelrc: --output_filter=DONT_MATCH_ANYTHING
INFO: Found applicable config definition build:v2 in file /var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0-python3_9/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
INFO: Found applicable config definition build:cuda in file /var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0-python3_9/.bazelrc: --repo_env TF_NEED_CUDA=1 --crosstool_top=@local_config_cuda//crosstool:toolchain --@local_config_cuda//:enable_cuda
INFO: Found applicable config definition build:noaws in file /var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0-python3_9/.bazelrc: --define=no_aws_support=true
INFO: Found applicable config definition build:nohdfs in file /var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0-python3_9/.bazelrc: --define=no_hdfs_support=true
INFO: Found applicable config definition build:linux in file /var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0-python3_9/.bazelrc: --copt=-w --host_copt=-w --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++14 --host_cxxopt=-std=c++14 --config=dynamic_kernels --distinct_host_configuration=false --experimental_guard_against_concurrent_changes
INFO: Found applicable config definition build:dynamic_kernels in file /var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0-python3_9/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS
INFO: Analyzed 2 targets (235 packages loaded, 19493 targets configured).
INFO: Found 2 targets...
ERROR: /var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0-python3_9/tensorflow/BUILD:994:20: Linking of rule '//tensorflow:libtensorflow.so.2.7.0' failed (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command
  (cd /var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0-python3_9-bazel-base/execroot/org_tensorflow && \
  exec env - \
    CUDA_TOOLKIT_PATH=/opt/cuda \
    GCC_HOST_COMPILER_PATH=/usr/x86_64-pc-linux-gnu/gcc-bin/11.2.0/x86_64-pc-linux-gnu-gcc \
    HOME=/var/tmp/portage/sci-libs/tensorflow-2.7.0/homedir \
    KERAS_HOME=/var/tmp/portage/sci-libs/tensorflow-2.7.0/temp/.keras \
    PATH=/var/tmp/portage/sci-libs/tensorflow-2.7.0/temp/python3.9/bin:/usr/lib/portage/python3.9/ebuild-helpers/xattr:/usr/lib/portage/python3.9/ebuild-helpers:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/13/bin:/usr/lib/root/6.24/bin:/opt/cuda/bin \
    PWD=/proc/self/cwd \
    PYTHON_BIN_PATH=/usr/bin/python3.9 \
    PYTHON_LIB_PATH=/usr/lib/python3.9/site-packages \
    TF2_BEHAVIOR=1 \
    TF_CUDA_COMPUTE_CAPABILITIES=3.5,7.0 \
    TF_CUDA_PATHS=/opt/cuda \
    TF_CUDA_VERSION=11.5 \
    TF_CUDNN_VERSION=8.3 \
    TF_SYSTEM_LIBS=absl_py,astor_archive,astunparse_archive,boringssl,com_github_googlecloudplatform_google_cloud_cpp,com_github_grpc_grpc,com_google_protobuf,curl,cython,dill_archive,double_conversion,enum34_archive,flatbuffers,functools32_archive,gast_archive,gif,hwloc,icu,jsoncpp_git,libjpeg_turbo,lmdb,nasm,nsync,opt_einsum_archive,org_sqlite,pasta,png,pybind11,six_archive,snappy,tblib_archive,termcolor_archive,typing_extensions_archive,wrapt,zlib \
  external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc @bazel-out/k8-opt/bin/tensorflow/libtensorflow.so.2.7.0-2.params)
Execution platform: @local_execution_config_platform//:platform
/usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/debug/libdebug_service_proto_cc_impl.pic.lo(debug_service.grpc.pb.pic.o): in function `grpc::internal::ClientCallbackReaderWriterImpl<tensorflow::Event, tensorflow::EventReply>::Read(tensorflow::EventReply*)':
debug_service.grpc.pb.cc:(.text._ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE4ReadEPS4_[_ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE4ReadEPS4_]+0x4b): undefined reference to `absl::lts_20211102::Mutex::Lock()'
/usr/bin/ld: debug_service.grpc.pb.cc:(.text._ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE4ReadEPS4_[_ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE4ReadEPS4_]+0x65): undefined reference to `absl::lts_20211102::Mutex::Unlock()'
/usr/bin/ld: debug_service.grpc.pb.cc:(.text._ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE4ReadEPS4_[_ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE4ReadEPS4_]+0x74): undefined reference to `absl::lts_20211102::Mutex::Unlock()'
/usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/debug/libdebug_service_proto_cc_impl.pic.lo(debug_service.grpc.pb.pic.o): in function `grpc::internal::ClientCallbackReaderWriterImpl<tensorflow::Event, tensorflow::EventReply>::Write(tensorflow::Event const*, grpc::WriteOptions)':
debug_service.grpc.pb.cc:(.text._ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE5WriteEPKS3_NS_12WriteOptionsE[_ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE5WriteEPKS3_NS_12WriteOptionsE]+0x15b): undefined reference to `absl::lts_20211102::Mutex::Lock()'
/usr/bin/ld: debug_service.grpc.pb.cc:(.text._ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE5WriteEPKS3_NS_12WriteOptionsE[_ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE5WriteEPKS3_NS_12WriteOptionsE]+0x175): undefined reference to `absl::lts_20211102::Mutex::Unlock()'
/usr/bin/ld: debug_service.grpc.pb.cc:(.text._ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE5WriteEPKS3_NS_12WriteOptionsE[_ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE5WriteEPKS3_NS_12WriteOptionsE]+0x19c): undefined reference to `absl::lts_20211102::Mutex::Unlock()'
/usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/debug/libdebug_service_proto_cc_impl.pic.lo(debug_service.grpc.pb.pic.o): in function `grpc::internal::ClientCallbackReaderWriterImpl<tensorflow::Event, tensorflow::EventReply>::WritesDone()':
debug_service.grpc.pb.cc:(.text._ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE10WritesDoneEv[_ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE10WritesDoneEv]+0x12b): undefined reference to `absl::lts_20211102::Mutex::Lock()'
/usr/bin/ld: debug_service.grpc.pb.cc:(.text._ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE10WritesDoneEv[_ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE10WritesDoneEv]+0x145): undefined reference to `absl::lts_20211102::Mutex::Unlock()'
/usr/bin/ld: debug_service.grpc.pb.cc:(.text._ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE10WritesDoneEv[_ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE10WritesDoneEv]+0x16c): undefined reference to `absl::lts_20211102::Mutex::Unlock()'
/usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/debug/libdebug_service_proto_cc_impl.pic.lo(debug_service.grpc.pb.pic.o): in function `grpc::internal::ClientCallbackReaderWriterImpl<tensorflow::Event, tensorflow::EventReply>::~ClientCallbackReaderWriterImpl()':
debug_service.grpc.pb.cc:(.text._ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEED2Ev[_ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEED5Ev]+0x2a): undefined reference to `absl::lts_20211102::Mutex::~Mutex()'
/usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/debug/libdebug_service_proto_cc_impl.pic.lo(debug_service.grpc.pb.pic.o): in function `grpc::internal::ClientCallbackReaderWriterImpl<tensorflow::Event, tensorflow::EventReply>::~ClientCallbackReaderWriterImpl()':
debug_service.grpc.pb.cc:(.text._ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEED0Ev[_ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEED5Ev]+0x2a): undefined reference to `absl::lts_20211102::Mutex::~Mutex()'
/usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/debug/libdebug_service_proto_cc_impl.pic.lo(debug_service.grpc.pb.pic.o): in function `grpc::ClientReaderWriter<tensorflow::Event, tensorflow::EventReply>::ClientReaderWriter(grpc::ChannelInterface*, grpc::internal::RpcMethod const&, grpc::ClientContext*)':
debug_service.grpc.pb.cc:(.text._ZN4grpc18ClientReaderWriterIN10tensorflow5EventENS1_10EventReplyEEC2EPNS_16ChannelInterfaceERKNS_8internal9RpcMethodEPNS_13ClientContextE[_ZN4grpc18ClientReaderWriterIN10tensorflow5EventENS1_10EventReplyEEC5EPNS_16ChannelInterfaceERKNS_8internal9RpcMethodEPNS_13ClientContextE]+0x34c): undefined reference to `absl::lts_20211102::Mutex::~Mutex()'
/usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/debug/libdebug_service_proto_cc_impl.pic.lo(debug_service.grpc.pb.pic.o): in function `grpc::internal::ClientCallbackReaderWriterImpl<tensorflow::Event, tensorflow::EventReply>::ClientCallbackReaderWriterImpl(grpc::internal::Call, grpc::ClientContext*, grpc::ClientBidiReactor<tensorflow::Event, tensorflow::EventReply>*)':
debug_service.grpc.pb.cc:(.text._ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEEC2ENS0_4CallEPNS_13ClientContextEPNS_17ClientBidiReactorIS3_S4_EE[_ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEEC5ENS0_4CallEPNS_13ClientContextEPNS_17ClientBidiReactorIS3_S4_EE]+0x700): undefined reference to `absl::lts_20211102::Mutex::~Mutex()'
/usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/debug/libdebug_service_proto_cc_impl.pic.lo(debug_service.grpc.pb.pic.o): in function `grpc::internal::ClientCallbackReaderWriterImpl<tensorflow::Event, tensorflow::EventReply>::StartCall()':
debug_service.grpc.pb.cc:(.text._ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE9StartCallEv[_ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE9StartCallEv]+0x89): undefined reference to `absl::lts_20211102::Mutex::Lock()'
/usr/bin/ld: debug_service.grpc.pb.cc:(.text._ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE9StartCallEv[_ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE9StartCallEv]+0x119): undefined reference to `absl::lts_20211102::Mutex::Unlock()'
/usr/bin/ld: debug_service.grpc.pb.cc:(.text._ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE9StartCallEv[_ZN4grpc8internal30ClientCallbackReaderWriterImplIN10tensorflow5EventENS2_10EventReplyEE9StartCallEv]+0x13c): undefined reference to `absl::lts_20211102::Mutex::Unlock()'
/usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/distributed_runtime/rpc/libgrpc_master_service_impl.pic.a(grpc_master_service_impl.pic.o): in function `grpc::CompletionQueue::CompletionQueue(grpc_completion_queue_attributes const&)':
grpc_master_service_impl.cc:(.text._ZN4grpc15CompletionQueueC2ERK32grpc_completion_queue_attributes[_ZN4grpc15CompletionQueueC5ERK32grpc_completion_queue_attributes]+0x10c): undefined reference to `absl::lts_20211102::Mutex::~Mutex()'
/usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/profiler/libprofiler_analysis_proto_cc_impl.pic.lo(profiler_analysis.grpc.pb.pic.o): in function `grpc::CompletionQueue::~CompletionQueue()':
profiler_analysis.grpc.pb.cc:(.text._ZN4grpc15CompletionQueueD2Ev[_ZN4grpc15CompletionQueueD5Ev]+0x5a): undefined reference to `absl::lts_20211102::Mutex::~Mutex()'
/usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/profiler/libprofiler_analysis_proto_cc_impl.pic.lo(profiler_analysis.grpc.pb.pic.o): in function `grpc::CompletionQueue::~CompletionQueue()':
profiler_analysis.grpc.pb.cc:(.text._ZN4grpc15CompletionQueueD0Ev[_ZN4grpc15CompletionQueueD5Ev]+0x5b): undefined reference to `absl::lts_20211102::Mutex::~Mutex()'
/usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/profiler/libprofiler_analysis_proto_cc_impl.pic.lo(profiler_analysis.grpc.pb.pic.o): in function `grpc::internal::BlockingUnaryCallImpl<google::protobuf::MessageLite, google::protobuf::MessageLite>::BlockingUnaryCallImpl(grpc::ChannelInterface*, grpc::internal::RpcMethod const&, grpc::ClientContext*, google::protobuf::MessageLite const&, google::protobuf::MessageLite*)':
profiler_analysis.grpc.pb.cc:(.text._ZN4grpc8internal21BlockingUnaryCallImplIN6google8protobuf11MessageLiteES4_EC2EPNS_16ChannelInterfaceERKNS0_9RpcMethodEPNS_13ClientContextERKS4_PS4_[_ZN4grpc8internal21BlockingUnaryCallImplIN6google8protobuf11MessageLiteES4_EC5EPNS_16ChannelInterfaceERKNS0_9RpcMethodEPNS_13ClientContextERKS4_PS4_]+0x82e): undefined reference to `absl::lts_20211102::Mutex::~Mutex()'
/usr/bin/ld: profiler_analysis.grpc.pb.cc:(.text._ZN4grpc8internal21BlockingUnaryCallImplIN6google8protobuf11MessageLiteES4_EC2EPNS_16ChannelInterfaceERKNS0_9RpcMethodEPNS_13ClientContextERKS4_PS4_[_ZN4grpc8internal21BlockingUnaryCallImplIN6google8protobuf11MessageLiteES4_EC5EPNS_16ChannelInterfaceERKNS0_9RpcMethodEPNS_13ClientContextERKS4_PS4_]+0x9ce): undefined reference to `absl::lts_20211102::Mutex::~Mutex()'
/usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/profiler/libprofiler_analysis_proto_cc_impl.pic.lo(profiler_analysis.grpc.pb.pic.o):profiler_analysis.grpc.pb.cc:(.text._ZN4grpc8internal21BlockingUnaryCallImplIN6google8protobuf11MessageLiteES4_EC2EPNS_16ChannelInterfaceERKNS0_9RpcMethodEPNS_13ClientContextERKS4_PS4_[_ZN4grpc8internal21BlockingUnaryCallImplIN6google8protobuf11MessageLiteES4_EC5EPNS_16ChannelInterfaceERKNS0_9RpcMethodEPNS_13ClientContextERKS4_PS4_]+0x1031): more undefined references to `absl::lts_20211102::Mutex::~Mutex()' follow
collect2: error: ld returned 1 exit status
INFO: Elapsed time: 5204.301s, Critical Path: 519.11s
INFO: 17751 processes: 5387 internal, 12364 local.
FAILED: Build did NOT complete successfully
 * ERROR: sci-libs/tensorflow-2.7.0::gentoo failed (compile phase):
 *   ebazel failed
 *
 * Call stack:
 *     ebuild.sh, line  127:  Called src_compile
 *   environment, line 4261:  Called ebazel 'build' '//tensorflow:libtensorflow_framework.so' '//tensorflow:libtensorflow.so'
 *   environment, line 2586:  Called die
 * The specific snippet of code:
 *       "${@}" || die "ebazel failed"
 *
 * If you need support, post the output of `emerge --info '=sci-libs/tensorflow-2.7.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-libs/tensorflow-2.7.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sci-libs/tensorflow-2.7.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-libs/tensorflow-2.7.0/temp/environment'.
 * Working directory: '/var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0-python3_9'
 * S: '/var/tmp/portage/sci-libs/tensorflow-2.7.0/work/tensorflow-2.7.0'
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Thu Jan 13, 2022 7:47 am

Code: Select all

/usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/profiler/libprofiler_analysis_proto_cc_impl.pic.lo(profiler_analysis.grpc.pb.pic.o): in function `grpc::internal::BlockingUnaryCallImpl<google::protobuf::MessageLite, google::protobuf::MessageLite>::BlockingUnaryCallImpl(grpc::ChannelInterface*, grpc::internal::RpcMethod const&, grpc::ClientContext*, google::protobuf::MessageLite const&, google::protobuf::MessageLite*)':
profiler_analysis.grpc.pb.cc:(.text._ZN4grpc8internal21BlockingUnaryCallImplIN6google8protobuf11MessageLiteES4_EC2EPNS_16ChannelInterfaceERKNS0_9RpcMethodEPNS_13ClientContextERKS4_PS4_[_ZN4grpc8internal21BlockingUnaryCallImplIN6google8protobuf11MessageLiteES4_EC5EPNS_16ChannelInterfaceERKNS0_9RpcMethodEPNS_13ClientContextERKS4_PS4_]+0x82e): undefined reference to `absl::lts_20211102::Mutex::~Mutex()'
/usr/bin/ld: profiler_analysis.grpc.pb.cc:(.text._ZN4grpc8internal21BlockingUnaryCallImplIN6google8protobuf11MessageLiteES4_EC2EPNS_16ChannelInterfaceERKNS0_9RpcMethodEPNS_13ClientContextERKS4_PS4_[_ZN4grpc8internal21BlockingUnaryCallImplIN6google8protobuf11MessageLiteES4_EC5EPNS_16ChannelInterfaceERKNS0_9RpcMethodEPNS_13ClientContextERKS4_PS4_]+0x9ce): undefined reference to `absl::lts_20211102::Mutex::~Mutex()'
/usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/profiler/libprofiler_analysis_proto_cc_impl.pic.lo(profiler_analysis.grpc.pb.pic.o):profiler_analysis.grpc.pb.cc:(.text._ZN4grpc8internal21BlockingUnaryCallImplIN6google8protobuf11MessageLiteES4_EC2EPNS_16ChannelInterfaceERKNS0_9RpcMethodEPNS_13ClientContextERKS4_PS4_[_ZN4grpc8internal21BlockingUnaryCallImplIN6google8protobuf11MessageLiteES4_EC5EPNS_16ChannelInterfaceERKNS0_9RpcMethodEPNS_13ClientContextERKS4_PS4_]+0x1031): more undefined references to `absl::lts_20211102::Mutex::~Mutex()' follow
There is an open bug for this, unfortunately still without solution.
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
larrys
Tux's lil' helper
Tux's lil' helper
Posts: 81
Joined: Mon Jul 20, 2020 9:41 pm
Location: New Jersey

  • Quote

Post by larrys » Thu Jan 13, 2022 10:42 pm

I was able to get past this particular link error by using dev-cpp/abseil-cpp 20210324.2 and net-libs/grpc 1.41.1. I rebuilt today and had no errors. Keras loads in python.
Top
Post Reply

12 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic