Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 694536 - dev-util/cbindgen-0.9.1 FEATURES=network-sandbox - cargo: warning: spurious network error (2 tries remaining): failed to resolve address for github.com: Temporary failure in name resolution; class=Net (12)
Summary: dev-util/cbindgen-0.9.1 FEATURES=network-sandbox - cargo: warning: spurious n...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-16 04:56 UTC by alaviss0+gentoo
Modified: 2021-06-05 14:06 UTC (History)
0 users

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


Attachments
Working build.log (build.log,8.63 KB, text/plain)
2019-09-17 21:22 UTC, Thomas Deutschmann (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alaviss0+gentoo 2019-09-16 04:56:47 UTC
The `install` step failed as `cargo` couldn't update it's index (due to network-sandbox).

I'm not entirely sure if this applies to all cargo-based ebuilds.

Reproducible: Always

Steps to Reproduce:
FEATURES=network-sandbox emerge -1 dev-util/cbindgen
Actual Results:  
>>> Install dev-util/cbindgen-0.9.1 into /tmp/portage/dev-util/cbindgen-0.9.1/image
warning: Using `cargo install` to install the binaries for the package in current working directory is deprecated, use `cargo install --path .` instead. Use `cargo build` if you want to simply build the package.
  Installing cbindgen v0.9.1 (/tmp/portage/dev-util/cbindgen-0.9.1/work/cbindgen-0.9.1)
    Updating crates.io index
warning: spurious network error (2 tries remaining): failed to resolve address for github.com: Temporary failure in name resolution; class=Net (12)
warning: spurious network error (1 tries remaining): failed to resolve address for github.com: Temporary failure in name resolution; class=Net (12)
error: failed to compile `cbindgen v0.9.1 (/tmp/portage/dev-util/cbindgen-0.9.1/work/cbindgen-0.9.1)`, intermediate artifacts can be found at `/tmp/portage/dev-util/cbindgen-0.9.1/work/cbindgen-0.9.1/target`

Caused by:
  failed to load source for a dependency on `clap`

Caused by:
  Unable to update registry `https://github.com/rust-lang/crates.io-index`

Caused by:
  failed to fetch `https://github.com/rust-lang/crates.io-index`

Caused by:
  failed to resolve address for github.com: Temporary failure in name resolution; class=Net (12)
 * ERROR: dev-util/cbindgen-0.9.1::gentoo failed (install phase):
 *   cargo install failed
 *
 * Call stack:
 *     ebuild.sh, line 125:  Called src_install
 *   environment, line 692:  Called cargo_src_install
 *   environment, line 445:  Called die
 * The specific snippet of code:
 *       cargo install -j $(makeopts_jobs) --root="${D}/usr" $(usex debug --debug "") "$@" || die "cargo install failed";
 *
 * If you need support, post the output of `emerge --info '=dev-util/cbindgen-0.9.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-util/cbindgen-0.9.1::gentoo'`.
 * The complete build log is located at '/tmp/portage/dev-util/cbindgen-0.9.1/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/dev-util/cbindgen-0.9.1/temp/environment'.
 * Working directory: '/tmp/portage/dev-util/cbindgen-0.9.1/work/cbindgen-0.9.1'
 * S: '/tmp/portage/dev-util/cbindgen-0.9.1/work/cbindgen-0.9.1'


Portage 2.3.76 (python 3.6.9-final-0, default/linux/amd64/17.1/hardened, gcc-9.1.0, glibc-2.29-r5, 5.2.7-ck1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.2.7-ck1-x86_64-AMD_Ryzen_5_2600_Six-Core_Processor-with-gentoo-2.6
KiB Mem:    16355584 total,   9625800 free
KiB Swap:   33555136 total,  33555136 free
Timestamp of repository gentoo: Mon, 16 Sep 2019 03:00:01 +0000
Head commit of repository gentoo: 225c339aea5ac79f566972d07ed350d5825f95c1
Timestamp of repository 4nykey: Sun, 15 Sep 2019 17:48:23 +0000
Head commit of repository 4nykey: f522058a36cef596516f8abf1831032f7f59155e

Timestamp of repository chaoslab: Fri, 13 Sep 2019 19:44:23 +0000
Head commit of repository chaoslab: 64499c23316c21e47c49bb67892770ca51c203dc

Head commit of repository lrz: fe162e21fbdc3e0013b342f617a3fe38a8716e7c

Timestamp of repository sorrow: Fri, 13 Sep 2019 19:44:29 +0000
Head commit of repository sorrow: b2655162171c56f133a446f5be030042e48beb7c

Timestamp of repository steam-overlay: Fri, 13 Sep 2019 19:43:28 +0000
Head commit of repository steam-overlay: a15c9d8c8188cc55e8f15b36dd37efb1d7b21875

sh bash 5.0_p11
ld GNU ld (Gentoo 2.32 p2) 2.32.0
ccache version 3.7.4 [disabled]
app-shells/bash:          5.0_p11::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.0::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.9::gentoo
dev-util/ccache:          3.7.4::gentoo
dev-util/cmake:           3.15.3::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            9.1.0-r1::gentoo, 9.2.0::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.2::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r5::gentoo
Repositories:

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

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

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

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

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

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

Installed sets: @esteam
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=native -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/sandbox.d /etc/terminfo"
CXXFLAGS="-O3 -march=native -pipe"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 12 --load-average 12.0 --with-bdeps y"
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="-O3 -march=native -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg cgroup config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned sandbox sfperms split-elog strict strict-keepdir unknown-features-warn unmerge-backup unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O3 -march=native -pipe"
GENTOO_MIRRORS="http://mirrors.163.com/gentoo/ http://mirrors.evowise.com/gentoo/                 http://mirror.rise.ph/gentoo https://mirrors.evowise.com/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j 13 -l 12"
PKGDIR="/var/cache/portage/packages"
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="/tmp"
USE="X a52 aac acl acpi alsa amd64 apparmor branding bzip2 cairo cdda cdr crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam fish-completion flac gif glamor gpm gtk hardened harfbuzz iconv icu ipv6 jit jpeg lcms libnotify libtirpc lto mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp opus orc pam pango pcre pdf pgo pie png policykit ppds pulseaudio readline sdl seccomp spell split-usr sqlite ssl ssp startup-notification svg systemd tiff truetype udev udisks unicode upower usb vorbis vulkan wayland wxwidgets x264 xattr xcb xml xtpax xv xvid 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="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a 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="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AArch64 AMDGPU ARM 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" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu radeon 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, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2019-09-17 21:22:43 UTC
Created attachment 590186 [details]
Working build.log

I have no idea how you managed to get this error. Working fine for me and I don't see a reason why cargo should try to access network.
Comment 2 Gordon Pettey 2019-12-30 01:07:03 UTC
I had the same problem attempting to upgrade firefox. cbindgen failed to build with the same error. I ran `eselect rust set 1`, and it errored that /usr/bin/cargo was not a symlink. I checked and /usr/bin/cargo was an executable. Removing it, then running eselect again, cbindgen now merges properly. This is perhaps an error with cargo or rust ebuild installing /usr/bin/cargo directly instead of symlnking to /usr/bin/cargo-$PV.
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2019-12-30 01:31:02 UTC
Keep in mind that this only happens with old cargo/rust ebuilds, e.g. <=dev-lang/rust-1.25.0 and <=dev-util/cargo-0.30.0 did that. But these versions were removed long time ago...
Comment 4 Thomas Deutschmann (RETIRED) gentoo-dev 2021-06-05 14:06:38 UTC
Version is no longer available in repository.