Even though I have both dev-python/six and dev-python/pip installed, but bazel is complaining about not being able to 'import six'. The build log is short, so it's pasted in full below (tensorflow is also already installed): # emerge -av1 --jobs=1 tensorflow-estimator These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] sci-libs/tensorflow-estimator-2.2.0::gentoo PYTHON_TARGETS="python3_6 python3_7" 0 KiB Total: 1 package (1 new), Size of downloads: 0 KiB Would you like to merge these packages? [Yes/No] >>> Verifying ebuild manifests >>> Emerging (1 of 1) sci-libs/tensorflow-estimator-2.2.0::gentoo * tensorflow-estimator-2.2.0.tar.gz BLAKE2B SHA512 size ;-) ... [ ok ] * bazelbuild-rules_cc-0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip BLAKE2B SHA512 size ;-) ... [ ok ] * bazelbuild-rules_cc-8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip BLAKE2B SHA512 size ;-) ... [ ok ] * bazelbuild-rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip BLAKE2B SHA512 size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking tensorflow-estimator-2.2.0.tar.gz to /var/tmp/portage/sci-libs/tensorflow-estimator-2.2.0/work Copying bazelbuild-rules_cc-0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip to bazel distdir as 0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip Copying bazelbuild-rules_cc-8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip to bazel distdir as 8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip Copying bazelbuild-rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip to bazel distdir as 7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip >>> Source unpacked in /var/tmp/portage/sci-libs/tensorflow-estimator-2.2.0/work >>> Preparing source in /var/tmp/portage/sci-libs/tensorflow-estimator-2.2.0/work/estimator-2.2.0 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/sci-libs/tensorflow-estimator-2.2.0/work/estimator-2.2.0 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/sci-libs/tensorflow-estimator-2.2.0/work/estimator-2.2.0 ... bazel --bazelrc=/var/tmp/portage/sci-libs/tensorflow-estimator-2.2.0/temp/bazelrc --output_base=/var/tmp/portage/sci-libs/tensorflow-estimator-2.2.0/work/estimator-2.2.0-bazel-base build //tensorflow_estimator/tools/pip_package:build_pip_package Extracting Bazel installation... WARNING: ignoring LD_PRELOAD in environment. INFO: Analyzed target //tensorflow_estimator/tools/pip_package:build_pip_package (24 packages loaded, 283 targets configured). INFO: Found 1 target... ERROR: /var/tmp/portage/sci-libs/tensorflow-estimator-2.2.0/work/estimator-2.2.0/tensorflow_estimator/BUILD:78:1: Executing genrule //tensorflow_estimator:estimator_python_api_gen_compat_v2 failed (Exit 1) Traceback (most recent call last): File "/var/tmp/portage/sci-libs/tensorflow-estimator-2.2.0/work/estimator-2.2.0-bazel-base/execroot/org_tensorflow_estimator/bazel-out/host/bin/tensorflow_estimator/create_tensorflow_estimator.python.estimator_api_2_estimator_python_api_gen_compat_v2.runfiles/org_tensorflow_estimator/tensorflow_estimator/python/estimator/api/create_python_api_wrapper.py", line 26, in <module> from tensorflow_estimator.python.estimator import estimator_lib # pylint: disable=unused-import File "/var/tmp/portage/sci-libs/tensorflow-estimator-2.2.0/work/estimator-2.2.0-bazel-base/execroot/org_tensorflow_estimator/bazel-out/host/bin/tensorflow_estimator/create_tensorflow_estimator.python.estimator_api_2_estimator_python_api_gen_compat_v2.runfiles/org_tensorflow_estimator/tensorflow_estimator/python/estimator/estimator_lib.py", line 22, in <module> from tensorflow_estimator.python.estimator.canned.baseline import BaselineClassifier File "/var/tmp/portage/sci-libs/tensorflow-estimator-2.2.0/work/estimator-2.2.0-bazel-base/execroot/org_tensorflow_estimator/bazel-out/host/bin/tensorflow_estimator/create_tensorflow_estimator.python.estimator_api_2_estimator_python_api_gen_compat_v2.runfiles/org_tensorflow_estimator/tensorflow_estimator/python/estimator/canned/baseline.py", line 52, in <module> import six ModuleNotFoundError: No module named 'six' Target //tensorflow_estimator/tools/pip_package:build_pip_package failed to build ERROR: /var/tmp/portage/sci-libs/tensorflow-estimator-2.2.0/work/estimator-2.2.0/tensorflow_estimator/tools/pip_package/BUILD:18:1 Executing genrule //tensorflow_estimator:estimator_python_api_gen_compat_v2 failed (Exit 1) INFO: Elapsed time: 3.254s, Critical Path: 0.11s INFO: 0 processes. FAILED: Build did NOT complete successfully * ERROR: sci-libs/tensorflow-estimator-2.2.0::gentoo failed (compile phase): * ebazel failed * * Call stack: * ebuild.sh, line 125: Called src_compile * environment, line 3459: Called ebazel 'build' '//tensorflow_estimator/tools/pip_package:build_pip_package' * environment, line 1832: Called die * The specific snippet of code: * "${@}" || die "ebazel failed" * * If you need support, post the output of `emerge --info '=sci-libs/tensorflow-estimator-2.2.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=sci-libs/tensorflow-estimator-2.2.0::gentoo'`. * The complete build log is located at '/var/tmp/portage/sci-libs/tensorflow-estimator-2.2.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sci-libs/tensorflow-estimator-2.2.0/temp/environment'. * Working directory: '/var/tmp/portage/sci-libs/tensorflow-estimator-2.2.0/work/estimator-2.2.0' * S: '/var/tmp/portage/sci-libs/tensorflow-estimator-2.2.0/work/estimator-2.2.0' >>> Failed to emerge sci-libs/tensorflow-estimator-2.2.0, Log file: >>> '/var/tmp/portage/sci-libs/tensorflow-estimator-2.2.0/temp/build.log' * Messages for package sci-libs/tensorflow-estimator-2.2.0: * ERROR: sci-libs/tensorflow-estimator-2.2.0::gentoo failed (compile phase): * ebazel failed * * Call stack: * ebuild.sh, line 125: Called src_compile * environment, line 3459: Called ebazel 'build' '//tensorflow_estimator/tools/pip_package:build_pip_package' * environment, line 1832: Called die * The specific snippet of code: * "${@}" || die "ebazel failed" * * If you need support, post the output of `emerge --info '=sci-libs/tensorflow-estimator-2.2.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=sci-libs/tensorflow-estimator-2.2.0::gentoo'`. * The complete build log is located at '/var/tmp/portage/sci-libs/tensorflow-estimator-2.2.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sci-libs/tensorflow-estimator-2.2.0/temp/environment'. * Working directory: '/var/tmp/portage/sci-libs/tensorflow-estimator-2.2.0/work/estimator-2.2.0' * S: '/var/tmp/portage/sci-libs/tensorflow-estimator-2.2.0/work/estimator-2.2.0' * * The following package has failed to build, install, or execute postinst: * * (sci-libs/tensorflow-estimator-2.2.0:0/0::gentoo, ebuild scheduled for merge), Log file: * '/var/tmp/portage/sci-libs/tensorflow-estimator-2.2.0/temp/build.log' *
Created attachment 643258 [details] build.log confirmed. emerge --info '=sci-libs/tensorflow-estimator-2.2.0::gentoo' Portage 2.3.100 (python 3.7.7-final-0, default/linux/amd64/17.1/systemd, gcc-9.3.0, glibc-2.31-r3, 5.6.14-gentoo-gf090c5b-dirty x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.6.14-gentoo-gf090c5b-dirty-x86_64-AMD_Ryzen_9_3950X_16-Core_Processor-with-gentoo-2.7 KiB Mem: 65801752 total, 50731800 free KiB Swap: 524284 total, 524284 free Head commit of repository jstein-overlay: 6ea7237a5afee6a9ef9920d650f0f351736c11cd Timestamp of repository gentoo: Wed, 03 Jun 2020 06:00:01 +0000 Head commit of repository gentoo: 6054c3a7e763a55bb63221af214bd1abba960dcd sh bash 5.0_p17 ld GNU ld (Gentoo 2.34 p4) 2.34.0 app-shells/bash: 5.0_p17::gentoo dev-java/java-config: 2.2.0-r4::gentoo dev-lang/perl: 5.30.3::gentoo dev-lang/python: 2.7.18::gentoo, 3.7.7-r2::gentoo, 3.8.3::gentoo, 3.9.0_beta1::gentoo dev-util/cmake: 3.17.3::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/sandbox: 2.20::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo sys-devel/automake: 1.16.2::gentoo sys-devel/binutils: 2.34-r1::gentoo sys-devel/gcc: 9.3.0-r1::gentoo sys-devel/gcc-config: 2.3::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.7::gentoo (virtual/os-headers) sys-libs/glibc: 2.31-r3::gentoo Repositories: jstein-overlay location: /usr/local/overlays/jstein-overlay sync-type: git sync-uri: https://github.com/jonasstein/jstein-overlay masters: gentoo priority: -1001 gentoo location: /var/db/portage 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-verify-jobs: 1 sync-rsync-extra-opts: ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE bh-luxi" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -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" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/var/db/distfiles" 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 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 -pipe" GENTOO_MIRRORS="http://mirror.netcologne.de/gentoo/" LANG="en_GB.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en" MAKEOPTS="-j28" 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" USE="X acl alsa amd64 bash-completion berkdb bzip2 cdda cdr cli corefonts crypt cups dbus dbusudev dri dvd dvdr encode flac fortran gdbm gif git gles2-only iconv ipv6 jpeg latex libtirpc mad mp3 mp4 mpeg mpx multilib ncurses nls nptl ogg opengl openmp pam pcre pdf pm-utils png popcnt pulseaudio qt5 readline seccomp smp sna split-usr ssl svg systemd tcpd tiff truetype udev udisks unicode utf8 vim vim-syntax vorbis xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2018" 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" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt sha sse3 sse4_1 sse4_2 sse4a 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 keyboard mouse" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f0a1a643c32e762f1cf8f07cc14da184788080d commit 4f0a1a643c32e762f1cf8f07cc14da184788080d Author: Jason Zaman <perfinion@gentoo.org> AuthorDate: 2020-06-08 04:51:48 +0000 Commit: Jason Zaman <perfinion@gentoo.org> CommitDate: 2020-06-08 04:55:30 +0000 sci-libs/tensorflow-estimator: fix compile error The bazel build step used the incorrect python, so duplicate the sources and build multiple times Closes: https://bugs.gentoo.org/725856 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Jason Zaman <perfinion@gentoo.org> ....2.0.ebuild => tensorflow-estimator-2.2.0-r1.ebuild} | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-)