Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 873295 - sci-libs/tensorflow-2.10.0 failed to emerge
Summary: sci-libs/tensorflow-2.10.0 failed to emerge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Jason Zaman
URL:
Whiteboard:
Keywords:
: 890712 (view as bug list)
Depends on:
Blocks: 922374
  Show dependency tree
 
Reported: 2022-09-28 14:25 UTC by Leonid Kopylov
Modified: 2024-02-24 12:53 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,36.16 KB, text/plain)
2022-09-28 14:25 UTC, Leonid Kopylov
Details
tf-2.11.0 buil.log (build.log,11.80 KB, text/plain)
2023-01-05 09:30 UTC, kitenok@gmail.com
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leonid Kopylov 2022-09-28 14:25:23 UTC
# emerge -pqv '=sci-libs/tensorflow-2.10.0::gentoo'
[ebuild  N    ] sci-libs/tensorflow-2.10.0  USE="cuda mpi python xla" CPU_FLAGS_X86="avx avx2 fma3 sse sse2 sse3 sse4_1 sse4_2 -fma4" PYTHON_TARGETS="python3_10 -python3_8 -python3_9"
[ebuild  N    ] sci-libs/keras-2.10.0  PYTHON_TARGETS="python3_10 -python3_8 -python3_9"
[ebuild  N    ] sci-libs/tensorflow-estimator-2.10  PYTHON_TARGETS="python3_10 -python3_8 -python3_9"

# emerge --info '=sci-libs/tensorflow-2.10.0::gentoo'
Portage 3.0.37 (python 3.10.7-final-0, default/linux/amd64/17.1/desktop/gnome/systemd, gcc-11.3.1, glibc-2.36-r3, 5.19.11-gentoo-amd64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.19.11-gentoo-amd64-x86_64-12th_Gen_Intel-R-_Core-TM-_i7-12700-with-glibc2.36
KiB Mem:   131649552 total, 101585912 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Tue, 27 Sep 2022 10:30:01 +0000
Head commit of repository gentoo: 48176e12fc9523e05f1f81c8a53e8baab05fd6d5
sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.39 p4) 2.39.0
ccache version 4.6.3 [enabled]
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r2::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.0::gentoo
dev-lang/python:           3.10.7::gentoo, 3.11.0_rc2::gentoo
dev-lang/rust-bin:         1.64.0::gentoo
dev-util/ccache:           4.6.3::gentoo
dev-util/cmake:            3.24.2::gentoo
dev-util/meson:            0.63.2-r1::gentoo
sys-apps/baselayout:       2.9::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          251.4::gentoo
sys-devel/autoconf:        2.13-r3::gentoo, 2.71-r4::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.39-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           14.0.6-r1::gentoo, 15.0.1::gentoo
sys-devel/gcc:             11.3.1_p20220909::gentoo, 12.2.0::gentoo
sys-devel/gcc-config:      2.6::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             14.0.6::gentoo
sys-devel/llvm:            14.0.6-r2::gentoo, 15.0.1::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.19::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r3::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-verify-max-age: 24
    sync-rsync-extra-opts:
    sync-rsync-verify-jobs: 1

HomeAssistantRepository
    location: /var/lib/layman/HomeAssistantRepository
    sync-type: laymansync
    sync-uri: https://git.edevau.net/onkelbeh/HomeAssistantRepository.git
    masters: gentoo
    priority: 50

brave-overlay
    location: /var/lib/layman/brave-overlay
    sync-type: laymansync
    sync-uri: https://gitlab.com/jason.oliveira/brave-overlay.git
    masters: gentoo
    priority: 50

guru
    location: /var/lib/layman/guru
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/repo/proj/guru.git
    masters: gentoo
    priority: 50

haskell
    location: /var/lib/layman/haskell
    sync-type: laymansync
    sync-uri: https://github.com/gentoo-haskell/gentoo-haskell.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA android AnyDesk-TOS geekbench google-chrome microsoft-edge Microsoft-vscode NVIDIA-CUDA OPERA-2018 PUEL RAR TeamViewer Vivaldi"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT=""/var/lib/mythtv" /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/php/apache2-php8.1/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /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 -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="-march=native -O2 -pipe -fomit-frame-pointer"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live ccache 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 strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
GENTOO_MIRRORS="https://mirror.isoc.org.il/pub/gentoo/"
LANG="en_US.utf8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j12"
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 aalib accessibility acl acpi alsa amd64 ao appindicator archive aspell audit bash-completion berkdb bidi bluetooth bluray boost bpf branding brotli btrfs bzip2 cairo cdda cddb cdio cdr cgi cli colord contrib cron crypt cryptsetup cuda cups curl dbi dbus designer device-mapper djvu doc dri dts dvb dvd dvdr eds emacs enchant encode evo examples executable exif experimental extra extras fam fastcgi fbcon fdk ffmpeg fftw flac fluidsynth fontconfig fontforge fortran ftp fuse gamepad games gcrypt gd gdbm gdk-pixbuf geoip geolocation gif git glade gme gmp gnome gnome-keyring gnome-online-accounts gnutls go gpg gphoto2 gpm graphite graphviz gsm gssapi gstreamer gtk gtk-doc gtk3 gui guile harfbuzz hddtemp hdf5 heif help highlight hscolour html http http2 ibus iconv icu idn imagemagick imap imlib introspection iodbc ipv6 iso jack java javascript jbig jemalloc joystick jpeg jpeg2k json kerberos ladspa lame latex lcms ldap libass libcaca libevent libglvnd libnotify libsamplerate libsecret libtirpc libxml2 lm-sensors lmdb lua lv2 lvm lz4 lzma lzo mad magic maildir man mbedtls mbox memcached midi mng modplug mp3 mp4 mpeg mpi mtp multilib multimedia musepack mysql nas nautilus ncurses netlink nettle network networkmanager nfs nls nptl nss ntlm nvenc odbc offensive ogg openal opencl openexr opengl openmp openssl opus pam pango pcap pcre pdf perl phonon pkcs11 plugins png policykit portaudio postgres postscript ppds pulseaudio python qdbm qml qrcode qt5 raw rdma readline redis rss samba sasl screencast sctp sdl seccomp semantic-desktop skey smtp snappy sndfile sndio snmp sockets sound source sox speech speex spell split-usr sql sqlite ssh ssl startup-notification svg symlink syslog sysprof systemd taglib tbb tcl theora threads tiff tk tools tpm tracker tremor truetype twolame udev udisks unicode unwind upnp upnp-av upower usb utils uuid v4l vala vcd vdpau vim-syntax vnc vorbis vpx vulkan wavpack wayland webengine webkit webp websockets widgets wifi wmf wxwidgets x264 x265 xattr xcb xface xft xine xinerama xml xmp xpm xscreensaver xv xvid yaml zeroconf zeromq zip zlib zsh-completion zstd" ABI_X86="64 32" 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 stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 ssse3" 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 joystick libinput" KERNEL="linux" L10N="en en-US he ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27 ruby30 ruby31" USERLAND="GNU" VIDEO_CARDS="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, 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
Comment 1 Leonid Kopylov 2022-09-28 14:25:58 UTC
Created attachment 814486 [details]
build.log
Comment 2 Aleksander Zatserkovnyy 2022-10-04 08:31:11 UTC
I had the same problem when using bazel-5.1.1 with openjdk-bin-17.
I chose openjdk-bin-11, and tf-2.10 has built.
Comment 3 Leonid Kopylov 2022-10-21 14:18:06 UTC
(In reply to Aleksander Zatserkovnyy from comment #2)
> I had the same problem when using bazel-5.1.1 with openjdk-bin-17.
> I chose openjdk-bin-11, and tf-2.10 has built.

Your workaround worked for me, but only with USE=-cuda.
When USE=cuda it still fails:

Invalid gcc path. /usr/*pc-linux-gnu/gcc-bin/11.3*/x86_64-pc-linux-gnu-gcc cannot be found.
Please specify which gcc should be used by nvcc as the host compiler. [Default is /usr/*pc-linux-gnu/gcc-bin/11.3*/x86_64-pc-linux-gnu-gcc]: 

Invalid gcc path. /usr/*pc-linux-gnu/gcc-bin/11.3*/x86_64-pc-linux-gnu-gcc cannot be found.
Please specify which gcc should be used by nvcc as the host compiler. [Default is /usr/*pc-linux-gnu/gcc-bin/11.3*/x86_64-pc-linux-gnu-gcc]: 

Invalid gcc path. /usr/*pc-linux-gnu/gcc-bin/11.3*/x86_64-pc-linux-gnu-gcc cannot be found.
Please specify which gcc should be used by nvcc as the host compiler. [Default is /usr/*pc-linux-gnu/gcc-bin/11.3*/x86_64-pc-linux-gnu-gcc]: 

Invalid gcc path. /usr/*pc-linux-gnu/gcc-bin/11.3*/x86_64-pc-linux-gnu-gcc cannot be found.
Please specify which gcc should be used by nvcc as the host compiler. [Default is /usr/*pc-linux-gnu/gcc-bin/11.3*/x86_64-pc-linux-gnu-gcc]: 

Invalid gcc path. /usr/*pc-linux-gnu/gcc-bin/11.3*/x86_64-pc-linux-gnu-gcc cannot be found.
Please specify which gcc should be used by nvcc as the host compiler. [Default is /usr/*pc-linux-gnu/gcc-bin/11.3*/x86_64-pc-linux-gnu-gcc]: 

Invalid gcc path. /usr/*pc-linux-gnu/gcc-bin/11.3*/x86_64-pc-linux-gnu-gcc cannot be found.
Please specify which gcc should be used by nvcc as the host compiler. [Default is /usr/*pc-linux-gnu/gcc-bin/11.3*/x86_64-pc-linux-gnu-gcc]: 

Invalid gcc path. /usr/*pc-linux-gnu/gcc-bin/11.3*/x86_64-pc-linux-gnu-gcc cannot be found.
Please specify which gcc should be used by nvcc as the host compiler. [Default is /usr/*pc-linux-gnu/gcc-bin/11.3*/x86_64-pc-linux-gnu-gcc]: 

Invalid gcc path. /usr/*pc-linux-gnu/gcc-bin/11.3*/x86_64-pc-linux-gnu-gcc cannot be found.
Please specify which gcc should be used by nvcc as the host compiler. [Default is /usr/*pc-linux-gnu/gcc-bin/11.3*/x86_64-pc-linux-gnu-gcc]: 

Invalid gcc path. /usr/*pc-linux-gnu/gcc-bin/11.3*/x86_64-pc-linux-gnu-gcc cannot be found.
Please specify which gcc should be used by nvcc as the host compiler. [Default is /usr/*pc-linux-gnu/gcc-bin/11.3*/x86_64-pc-linux-gnu-gcc]: 

Invalid gcc path. /usr/*pc-linux-gnu/gcc-bin/11.3*/x86_64-pc-linux-gnu-gcc cannot be found.
Traceback (most recent call last):
  File "/var/tmp/portage/sci-libs/tensorflow-2.10.0/work/tensorflow-2.10.0-python3_10/./configure.py", line 1354, in <module>
    main()
  File "/var/tmp/portage/sci-libs/tensorflow-2.10.0/work/tensorflow-2.10.0-python3_10/./configure.py", line 1300, in main
    set_gcc_host_compiler_path(environ_cp)
  File "/var/tmp/portage/sci-libs/tensorflow-2.10.0/work/tensorflow-2.10.0-python3_10/./configure.py", line 777, in set_gcc_host_compiler_path
    gcc_host_compiler_path = prompt_loop_or_load_from_env(
  File "/var/tmp/portage/sci-libs/tensorflow-2.10.0/work/tensorflow-2.10.0-python3_10/./configure.py", line 618, in prompt_loop_or_load_from_env
    raise UserInputError('Invalid %s setting was provided %d times in a row. '
__main__.UserInputError: Invalid GCC_HOST_COMPILER_PATH setting was provided 10 times in a row. Assuming to be a scripting mistake.
Comment 4 kitenok@gmail.com 2023-01-05 09:30:55 UTC
Created attachment 847308 [details]
tf-2.11.0 buil.log
Comment 5 kitenok@gmail.com 2023-01-05 19:04:54 UTC
(In reply to Leonid Kopylov from comment #0)

Hello,

I had same issue with build TF2.11.0 with CUDA. and solve it by switching java-vm to openjdk-bin-11 (from 17) by eselect. After that it builded successfilly
Comment 6 Yuriy Rusinov 2023-01-17 18:45:01 UTC
(In reply to kitenok@gmail.com from comment #5)
> (In reply to Leonid Kopylov from comment #0)
> 
> Hello,
> 
> I had same issue with build TF2.11.0 with CUDA. and solve it by switching
> java-vm to openjdk-bin-11 (from 17) by eselect. After that it builded
> successfilly

Thanks a lot, I have a similar problem, now I try to switch java-vm to openjdk-bin-11. Now I am compiling tensorflow-2.11, this error does not reproduce.
Comment 7 Yuriy Rusinov 2023-01-17 18:47:49 UTC
*** Bug 890712 has been marked as a duplicate of this bug. ***
Comment 8 Anton Bolshakov 2023-06-21 03:56:16 UTC
I think java-pkg-2 eclass is able to set the slot correctly.
Just set:
RDEPEND="virtual/jre:17"
Comment 9 Larry the Git Cow gentoo-dev 2024-02-24 12:53:10 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f57039ebc84c40eddf9f6a63afbbf86a8b3c42da

commit f57039ebc84c40eddf9f6a63afbbf86a8b3c42da
Author:     Jakov Smolić <jsmolic@gentoo.org>
AuthorDate: 2024-02-24 12:47:06 +0000
Commit:     Jakov Smolić <jsmolic@gentoo.org>
CommitDate: 2024-02-24 12:47:06 +0000

    sci-libs/tensorflow: treeclean
    
    Bug: https://bugs.gentoo.org/807625
    Closes: https://bugs.gentoo.org/906609
    Closes: https://bugs.gentoo.org/905673
    Closes: https://bugs.gentoo.org/913731
    Closes: https://bugs.gentoo.org/882617
    Closes: https://bugs.gentoo.org/881445
    Closes: https://bugs.gentoo.org/915621
    Closes: https://bugs.gentoo.org/909002
    Closes: https://bugs.gentoo.org/705712
    Closes: https://bugs.gentoo.org/873295
    Closes: https://bugs.gentoo.org/907031
    Closes: https://bugs.gentoo.org/909003
    Closes: https://bugs.gentoo.org/909767
    Closes: https://bugs.gentoo.org/913534
    Closes: https://bugs.gentoo.org/818766
    Closes: https://bugs.gentoo.org/830167
    Closes: https://bugs.gentoo.org/854354
    Closes: https://bugs.gentoo.org/851573
    Closes: https://bugs.gentoo.org/780468
    Closes: https://bugs.gentoo.org/910029
    Closes: https://bugs.gentoo.org/897228
    Closes: https://bugs.gentoo.org/844196
    Closes: https://bugs.gentoo.org/910030
    Closes: https://bugs.gentoo.org/897230
    Closes: https://bugs.gentoo.org/788064
    Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>

 profiles/package.mask                              |   1 -
 sci-libs/tensorflow/Manifest                       |  57 --
 ...dd-rules-docker-http_archive-bazel-toolch.patch |  37 -
 ...emlib-Latest-absl-LTS-has-split-cord-libs.patch |  32 -
 ...Must-link-against-libm-for-round-and-log2.patch |  29 -
 ...ensorflow_cc-Add-systemlib-nsync-linkopts.patch |  35 -
 ...systemlib-Updates-for-Abseil-20220623-LTS.patch |  71 --
 ...0006-systemlib-Update-targets-for-absl_py.patch |  24 -
 ...temlib-Add-well_known_types_py_pb2-target.patch |  28 -
 ...-0008-Relax-setup.py-version-requirements.patch |  86 --
 ....0-0009-systemlib-update-targets-for-absl.patch | 365 --------
 ...010-systemlib-fix-missing-osx-in-pybind11.patch |  25 -
 ...temlib-fix-missing-LICENSE-in-flatbuffers.patch |  25 -
 ...nstallation-remove-cp_local_config_python.patch |  68 --
 ...2.15.0-0013-build-use-non-hermetic-python.patch | 990 ---------------------
 sci-libs/tensorflow/metadata.xml                   |  15 -
 sci-libs/tensorflow/tensorflow-2.15.0.ebuild       | 464 ----------
 17 files changed, 2352 deletions(-)