Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 691552 - sci-libs/tensorflow-1.14.0-r1: Could not get interpreter version via '/var/tmp/portage/sci-libs/tensorflow-1.14.0-r1/temp/python2.7/bin/python3 -V'
Summary: sci-libs/tensorflow-1.14.0-r1: Could not get interpreter version via '/var/tm...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jason Zaman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-06 08:23 UTC by Michael Moon
Modified: 2019-12-09 04:34 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Moon 2019-08-06 08:23:29 UTC
Getting this error while building sci-libs/tensorflow-1.14.0-r1.

I guess https://github.com/bazelbuild/bazel/issues/7899 suggests some things to add to the ebuild.

emerge seems to have deleted the build log then choked on tensorflow_estimator, but the important part is here:

	ERROR: /var/tmp/portage/sci-libs/tensorflow-1.14.0-r1/work/tensorflow-1.14.0-python2_7/tensorflow/core/BUILD:2750:1: Executing genrule //tensorflow/core:version_info_gen failed (Exit 1): bash failed: error executing command
	(cd /var/tmp/portage/sci-libs/tensorflow-1.14.0-r1/work/tensorflow-1.14.0-python2_7-bazel-base/execroot/org_tensorflow && \
	exec env - \
		PATH=/var/tmp/portage/sci-libs/tensorflow-1.14.0-r1/temp/python2.7/bin:/var/tmp/portage/sci-libs/tensorflow-1.14.0-r1/temp/python3.6/bin:/usr/lib/portage/python3.6/ebuild-helpers/xattr:/usr/lib/portage/python3.6/ebuild-helpers:/usr/lib/llvm/8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/opt/nvidia-cg-toolkit/bin:/opt/eagle/bin:/opt/cuda/bin \
	/bin/bash -c 'source external/bazel_tools/tools/genrule/genrule-setup.sh; bazel-out/host/bin/tensorflow/tools/git/gen_git_source --generate external/local_config_git/gen/spec.json external/local_config_git/gen/head external/local_config_git/gen/branch_ref "bazel-out/host/bin/tensorflow/core/util/version_info.cc" --git_tag_override=${GIT_TAG_OVERRIDE:-}')
	Execution platform: @bazel_tools//platforms:host_platform
	Error occurred while attempting to use the default Python toolchain (@bazel_tools//tools/python:autodetecting_toolchain).
	Could not get interpreter version via '/var/tmp/portage/sci-libs/tensorflow-1.14.0-r1/temp/python2.7/bin/python3 -V'
	----------------
	Note: The failure of target //tensorflow/tools/git:gen_git_source (with exit code 1) may have been caused by the fact that it is a Python 2 program that was built in the host configuration, which uses Python 3. You can change the host configuration (for the entire build) to instead use Python 2 by setting --host_force_python=PY2.

	If this error started occurring in Bazel 0.27 and later, it may be because the Python toolchain now enforces that targets analyzed as PY2 and PY3 run under a Python 2 and Python 3 interpreter, respectively. See https://github.com/bazelbuild/bazel/issues/7899 for more information.
	----------------







Portage info:

$ emerge -pqv '=sci-libs/tensorflow-1.14.0-r1::gentoo'
[ebuild     U ] sci-libs/tensorflow-1.14.0-r1 [1.13.1] USE="cuda -mpi python" CPU_FLAGS_X86="avx avx2 fma3 -fma4 sse sse2 sse3 sse4_1 sse4_2" PYTHON_TARGETS="python2_7 -python3_5 python3_6 -python3_7"

$ emerge --info '=sci-libs/tensorflow-1.14.0-r1::gentoo'
Portage 2.3.69 (python 3.6.5-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-8.3.0, glibc-2.29-r2, 5.2.4-gentoo-dorellan x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.2.4-gentoo-dorellan-x86_64-Intel-R-_Core-TM-_i7-7700K_CPU_@_4.20GHz-with-gentoo-2.6
KiB Mem:    32917692 total,  14924956 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 05 Aug 2019 05:30:01 +0000
Head commit of repository gentoo: a9623dcbb24918843d9454ae04b6b277d25fa2ab
Head commit of repository dxvk: d513a815e137bedbce61430752633c4697282bbc

sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.31.1 p7) 2.31.1
distcc 3.3.2 x86_64-pc-linux-gnu [disabled]
ccache version 3.7.1 [disabled]
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.28.2-r1::gentoo
dev-lang/python:          2.7.15::gentoo, 3.5.5::gentoo, 3.6.5::gentoo
dev-util/ccache:          3.7.1::gentoo
dev-util/cmake:           3.14.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.41.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r6::gentoo, 2.32-r1::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo, 8.2.0-r6::gentoo, 8.3.0-r1::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: --exclude='/searchdesc' -4
    sync-rsync-verify-max-age: 24

local
    location: /usr/local/portage
    masters: gentoo

crossdev
    location: /usr/local/portage-crossdev
    masters: gentoo
    priority: 10

fkmclane
    location: /var/lib/layman/fkmclane
    masters: gentoo
    priority: 50

gentoo-zh
    location: /var/lib/layman/gentoo-zh
    masters: gentoo
    priority: 50

glc
    location: /var/lib/layman/glc
    masters: gentoo
    priority: 50

science
    location: /var/lib/layman/science
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    masters: gentoo
    priority: 50

wine
    location: /var/lib/layman/wine
    masters: gentoo
    priority: 50

dxvk
    location: /var/db/repos/dxvk
    sync-type: git
    sync-uri: https://github.com/pchome/dxvk-gentoo-overlay
    masters: gentoo
    priority: 60

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /lib/modules /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d /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 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical --keep-going --load-average=8 --autounmask-write=n"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs candy config-protect-if-modified distlocks downgrade-backup ebuild-locks fail-clean fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.163.com/gentoo/ http://gentoo.aditsu.net:8000/ https://ftp.jaist.ac.jp/pub/Linux/Gentoo/ http://ftp.kaist.ac.kr/pub/gentoo/ https://mirror.sjc02.svwh.net/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en-GB en_US zh_CN"
MAKEOPTS="-j8 -l8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude='/searchdesc' -4"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="MSP430 Mips WebAssembly X a52 aac acl acpi activities alsa amd64 apng berkdb bitcoin_policy_spamfilter bluetooth bluray branding btrfs bzip2 cairo cdda cddb cdr chm cjk cli client conntrack consolekit corefonts cpufreq_bench crossdev crypt cups cxx d3d9 dbus declarative dhcp dhcp-tools dlz dnsretry dri drm dts dvd dvdr eap-sim eap-tls emboss encode epub evdev exif expat fam fat ffmpeg fftw flac fluidsynth fontconfig fortran ftdi fuse gd gdbm gif gimp github glamor gles1 gles2 gphoto2 gpm grub gstreamer gtk gui haptic hcitop hddtemp hwaccel iconv icu id3tag imagemagick inotify iproute2 ipv6 ithreads jack jpeg json kde kipi kwallet latex lcms ldap libass libkms libnotify libtirpc libusb ljr lm_sensors logrotate lxc lz4 lzma lzo mad markdown matroska mdnsresponder-compat mercurial midi mikmod minizip mng mobi mobile mod mp3 mp4 mpeg mtp multilib multimedia ncurses nethack netlink nls nptl ntfs ntp ocr ogg opencl opengl openh264 openmp openssl pam pango pcre pcre16 pdf pdfimport phonon plasma png policykit postscript ppds printsupport projectm qml qt3support qt5 qtmedia rar readline rendering rle s3tc samba scanner sdl seccomp semantic-desktop smp socks5 spell split-usr sqlite ssh ssl startup-notification svc svg system-llvm taglib tcl tcpd text theora tiff tk tracepath truetype udev udf udisks unicode unicode3 unit-mm upnp upower usb usbredir utils uvm v4l vaapi vdpau virt-network virtualbox vkd3d vorbis vulkan widgets winbind wireshark-plugins wps wxwidgets x264 x265 xattr xcb xcomposite xft xine xinerama xkb xml xmp xnasong xv xvid xvmc zeroconf zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 http2" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse synaptics evdev mutouch" KERNEL="linux" L10N="en en-GB en-US zh-CN" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU ARM BPF NVPTX X86" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="arm" QEMU_USER_TARGETS="arm" RUBY_TARGETS="ruby24" SANE_BACKENDS="abaton agfafocus apple artec artec_eplus48u as6e avision bh canon canon630u canon_dr canon_pp cardscan coolscan coolscan2 coolscan3 dc210 dc240 dc25 dell1600n_net dmc epjitsu epson epson2 fujitsu genesys gt68xx hp hp3500 hp3900 hp4200 hp5400 hp5590 hpljm1005 hpsj5s hs2p ibm kodak kodakaio kvs1025 kvs20xx kvs40xx leo lexmark ma1509 magicolor matsushita microtek microtek2 mustek mustek_pp mustek_usb mustek_usb2 nec net niash p5 pie pixma plustek plustek_pp pnm qcam ricoh rts8891 s9036 sceptre sharp sm3600 sm3840 snapscan sp15c st400 stv680 tamarack teco1 teco2 teco3 {-test} u12 umax umax1220u umax_pp xerox_mfp" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 altrent 2019-08-31 12:20:10 UTC
I got the same error and then downgraded to bazel-0.26.1-r1 which resolved it for me.


What a monstrous package to emerge though!

# du -skh /var/tmp/portage/sci-libs/tensorflow-1.14.0-r2/
21G     /var/tmp/portage/sci-libs/tensorflow-1.14.0-r2/

# genlop -t tensorflow | tail -n 3
     Sat Aug 31 03:57:48 2019 >>> sci-libs/tensorflow-1.14.0-r2
       merge time: 5 hours, 55 minutes and 18 seconds.
Comment 2 Michael Moon 2019-09-04 05:18:59 UTC
Downgrading bazel fixed it for me, thanks @altrent.

I guess ~tensorflow-1.14 should block >=bazel-0.27 ? That would resolve the bug for now, if not the root cause..
Comment 3 Jason Zaman gentoo-dev 2019-12-09 04:34:50 UTC
I've dropped tf-1.14 from the tree, please file a new bug/reopen if this still happens :)