Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 703162 - sci-libs/tensorflow-estimator-2.0.0: ERROR: An error occurred during the fetch of repository 'rules_cc'
Summary: sci-libs/tensorflow-estimator-2.0.0: ERROR: An error occurred during the fetc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Jason Zaman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-17 01:28 UTC by Paul Bors
Modified: 2020-02-17 19:04 UTC (History)
2 users (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 Paul Bors 2019-12-17 01:28:25 UTC
Cannot install tensorflow-estimator-2.0.0 due to below fetch error from Java:

ERROR: An error occurred during the fetch of repository 'rules_cc':
   java.io.IOException: Error downloading [https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip, https://github.com/bazelbuild/rules_cc/archive/0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip] to /var/tmp/portage/sci-libs/tensorflow-estimator-2.0.0/work/estimator-2.0.0-bazel-base/external/rules_cc/0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip: Unknown host: github.com
ERROR: /var/tmp/portage/sci-libs/tensorflow-estimator-2.0.0/work/estimator-2.0.0-bazel-base/external/bazel_tools/tools/launcher/BUILD:11:1: @bazel_tools//tools/launcher:launcher depends on @bazel_tools//src/tools/launcher:launcher in repository @bazel_tools which failed to fetch. no such package '@rules_cc//cc': java.io.IOException: Error downloading [https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip, https://github.com/bazelbuild/rules_cc/archive/0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip] to /var/tmp/portage/sci-libs/tensorflow-estimator-2.0.0/work/estimator-2.0.0-bazel-base/external/rules_cc/0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip: Unknown host: github.com
ERROR: Analysis of target '//tensorflow_estimator/tools/pip_package:build_pip_package' failed; build aborted: Analysis failed


Reproducible: Always

Steps to Reproduce:
1. emerge --sync
2. emerge =sci-libs/tensorflow-estimator-2.0.0::gentoo
Actual Results:  
emerge =sci-libs/tensorflow-estimator-2.0.0::gentoo
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sci-libs/tensorflow-estimator-2.0.0::gentoo
 * tensorflow-estimator-2.0.0.tar.gz BLAKE2B SHA512 size ;-) ...                                                                              [ ok ]
>>> Unpacking source...
>>> Unpacking tensorflow-estimator-2.0.0.tar.gz to /var/tmp/portage/sci-libs/tensorflow-estimator-2.0.0/work
>>> Source unpacked in /var/tmp/portage/sci-libs/tensorflow-estimator-2.0.0/work
>>> Preparing source in /var/tmp/portage/sci-libs/tensorflow-estimator-2.0.0/work/estimator-2.0.0 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sci-libs/tensorflow-estimator-2.0.0/work/estimator-2.0.0 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sci-libs/tensorflow-estimator-2.0.0/work/estimator-2.0.0 ...
bazel --bazelrc=/var/tmp/portage/sci-libs/tensorflow-estimator-2.0.0/temp/bazelrc --output_base=/var/tmp/portage/sci-libs/tensorflow-estimator-2.0.0/work/estimator-2.0.0-bazel-base build //tensorflow_estimator/tools/pip_package:build_pip_package
Extracting Bazel installation...
WARNING: ignoring LD_PRELOAD in environment.
WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown".
INFO: Call stack for the definition of repository 'rules_cc' which is a http_archive (rule definition at /var/tmp/portage/sci-libs/tensorflow-estimator-2.0.0/work/estimator-2.0.0-bazel-base/external/bazel_tools/tools/build_defs/repo/http.bzl:262:16):
 - /var/tmp/portage/sci-libs/tensorflow-estimator-2.0.0/work/estimator-2.0.0-bazel-base/external/bazel_tools/tools/build_defs/repo/utils.bzl:169:9
 - /DEFAULT.WORKSPACE.SUFFIX:276:1
WARNING: Download from https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException Unknown host: mirror.bazel.build
WARNING: Download from https://github.com/bazelbuild/rules_cc/archive/0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException Unknown host: github.com
ERROR: An error occurred during the fetch of repository 'rules_cc':
   java.io.IOException: Error downloading [https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip, https://github.com/bazelbuild/rules_cc/archive/0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip] to /var/tmp/portage/sci-libs/tensorflow-estimator-2.0.0/work/estimator-2.0.0-bazel-base/external/rules_cc/0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip: Unknown host: github.com
ERROR: /var/tmp/portage/sci-libs/tensorflow-estimator-2.0.0/work/estimator-2.0.0-bazel-base/external/bazel_tools/tools/launcher/BUILD:11:1: @bazel_tools//tools/launcher:launcher depends on @bazel_tools//src/tools/launcher:launcher in repository @bazel_tools which failed to fetch. no such package '@rules_cc//cc': java.io.IOException: Error downloading [https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip, https://github.com/bazelbuild/rules_cc/archive/0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip] to /var/tmp/portage/sci-libs/tensorflow-estimator-2.0.0/work/estimator-2.0.0-bazel-base/external/rules_cc/0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip: Unknown host: github.com
ERROR: Analysis of target '//tensorflow_estimator/tools/pip_package:build_pip_package' failed; build aborted: Analysis failed
INFO: Elapsed time: 2.750s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (13 packages loaded, 57 targets co\
nfigured)
    currently loading: @bazel_tools//src/tools/launcher ... (2 packages)
 * ERROR: sci-libs/tensorflow-estimator-2.0.0::gentoo failed (compile phase):
 *   ebazel failed
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called src_compile
 *   environment, line 3404:  Called ebazel 'build' '//tensorflow_estimator/tools/pip_package:build_pip_package'
 *   environment, line 1570:  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.0.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-libs/tensorflow-estimator-2.0.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sci-libs/tensorflow-estimator-2.0.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-libs/tensorflow-estimator-2.0.0/temp/environment'.
 * Working directory: '/var/tmp/portage/sci-libs/tensorflow-estimator-2.0.0/work/estimator-2.0.0'
 * S: '/var/tmp/portage/sci-libs/tensorflow-estimator-2.0.0/work/estimator-2.0.0'

>>> Failed to emerge sci-libs/tensorflow-estimator-2.0.0, Log file:

>>>  '/var/tmp/portage/sci-libs/tensorflow-estimator-2.0.0/temp/build.log'


Expected Results:  
tensorflow-estimator-2.0.0 to have installed

This package is not marked as stable:
https://packages.gentoo.org/packages/sci-libs/tensorflow-estimator
Comment 1 Paul Bors 2019-12-17 01:34:54 UTC
emerge --info
Portage 2.3.82 (python 3.6.9-final-0, default/linux/amd64/17.1/desktop/gnome/systemd, gcc-9.2.0, glibc-2.30-r3, 4.19.86-gentoo x86_64)
=================================================================
System uname: Linux-4.19.86-gentoo-x86_64-Intel-R-_Celeron-R-_CPU_G3930_@_2.90GHz-with-gentoo-2.6
KiB Mem:    32902628 total,  17398384 free
KiB Swap:    3906556 total,   3906556 free
Timestamp of repository gentoo: Tue, 17 Dec 2019 00:30:02 +0000
Head commit of repository gentoo: 069a96a2ea5aaa7d4d27d2423f4a1845663272eb
sh bash 5.0_p11
ld GNU ld (Gentoo 2.32 p2) 2.32.0
app-shells/bash:          5.0_p11::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.17::gentoo, 3.6.9::gentoo, 3.7.5-r1::gentoo
dev-util/cmake:           3.16.0::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.1-r2::gentoo
sys-devel/binutils:       2.32-r1::gentoo, 2.33.1::gentoo
sys-devel/gcc:            9.2.0-r2::gentoo
sys-devel/gcc-config:     2.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.30-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-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 

localrepo
    location: /var/db/repos/localrepo
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
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"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/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="-march=native -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 sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="https://gentoo.osuosl.org/ https://mirrors.rit.edu/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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 a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli client colord crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv icu introspection ipv6 jpeg jpeg2k json lcms ldap libnotify libsecret libtirpc mad mbox mmx mng mongodb mp3 mp4 mpeg multilib nautilus ncat ncurses ndiff networkmanager nls nping nptl nse ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio python qt5 raw readline sasl sdl seccomp sendmail smtp spell split-usr spoof-source sse sse2 ssl startup-notification svg systemd tcpd tiff tracker truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zenmap 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" 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="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" 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" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="fbdev intel nouveau" 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, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Paul Bors 2020-02-17 19:04:29 UTC
This might have been caused by /etc/portage/make.conf having:
ACCEPT_KEYWORDS="~amd64"

I disabled that, downgraded the kernel to most stable, downgraded glibc and etc to stable versions and then reinstalled tensorflow-2.1.0 by unblocking each ~amd64 package it needed one by one via the /etc/portage/package.accept_keywords:

=sci-libs/tensorflow-2.1.0 ~amd64
>=net-libs/grpc-1.22.0 ~amd64
>=sys-apps/hwloc-2 ~amd64
=dev-python/opt-einsum[python_targets_python3_6(-)?,python_targets_python3_7(-)?,-python_single_target_python3_6(-),-python_single_target_python3_7(-)] ~amd64
>=dev-python/grpcio-1.22.0[python_targets_python3_6(-)?,python_targets_python3_7(-)?,-python_single_target_python3_6(-),-python_single_target_python3_7(-)] ~amd64
>=dev-python/wrapt-1.11.1[python_targets_python3_6(-)?,python_targets_python3_7(-)?,-python_single_target_python3_6(-),-python_single_target_python3_7(-)] ~amd64
>=net-libs/google-cloud-cpp-0.10.0 ~amd64
>=sci-libs/keras-applications-1.0.8[python_targets_python3_6(-)?,python_targets_python3_7(-)?,-python_single_target_python3_6(-),-python_single_target_python3_7(-)] ~amd64
>=sci-libs/keras-preprocessing-1.1.0[python_targets_python3_6(-)?,python_targets_python3_7(-)?,-python_single_target_python3_6(-),-python_single_target_python3_7(-)] ~amd64
>=sci-visualization/tensorboard-2.0.0[python_targets_python3_6(-)?,python_targets_python3_7(-)?,-python_single_target_python3_6(-),-python_single_target_python3_7(-)] ~amd64
>=sci-libs/tensorflow-estimator-2.0.0[python_targets_python3_6(-)?,python_targets_python3_7(-)?,-python_single_target_python3_6(-),-python_single_target_python3_7(-)] ~amd64
>=dev-python/grpcio-tools-1.22.0 ~amd64
>=dev-python/google-auth-1.6.3[python_targets_python3_6(-)?,python_targets_python3_7(-)?,-python_single_target_python3_6(-),-python_single_target_python3_7(-)] ~amd64
>=dev-python/google-auth-oauthlib-0.4.1[python_targets_python3_6(-)?,python_targets_python3_7(-)?,-python_single_target_python3_6(-),-python_single_target_python3_7(-)] ~amd64
>=sci-libs/scipy-1.4.1[python_targets_python3_6(-)?,python_targets_python3_7(-)?,-python_single_target_python3_6(-),-python_single_target_python3_7(-)] ~amd64
=dev-python/pybind11[python_targets_python3_6(-)?,python_targets_python3_7(-)?,python_targets_python3_8(-)?,-python_single_target_python3_6(-),-python_single_target_python3_7(-),-python_single_target_python3_8(-)] ~amd64
=dev-util/bazel-0.27* ~amd64

After that, everything is working as expected.