Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev-util/cargo-9999 fails to build #340

Closed
gentoo90 opened this issue May 12, 2018 · 5 comments
Closed

dev-util/cargo-9999 fails to build #340

gentoo90 opened this issue May 12, 2018 · 5 comments

Comments

@gentoo90
Copy link
Contributor

# emerge =dev-util/cargo-9999

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   *] dev-util/cargo-9999::rust  USE="-libressl" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB


>>> Verifying ebuild manifests


>>> Emerging (1 of 1) dev-util/cargo-9999::rust
--2018-05-12 11:28:52--  https://static.rust-lang.org/dist/cargo-nightly-x86_64-unknown-linux-gnu.tar.gz
Resolving static.rust-lang.org (static.rust-lang.org)... 52.85.173.100, 52.85.173.189, 52.85.173.193, ...
Connecting to static.rust-lang.org (static.rust-lang.org)|52.85.173.100|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6213786 (5,9M) [application/x-tar]
Saving to: ‘cargo-nightly-x86_64-unknown-linux-gnu.tar.gz’

cargo-nightly-x86_6 100%[===================>]   5,93M  5,52MB/s    in 1,1s    

2018-05-12 11:28:53 (5,52 MB/s) - ‘cargo-nightly-x86_64-unknown-linux-gnu.tar.gz’ saved [6213786/6213786]

>>> Unpacking ./cargo-nightly-x86_64-unknown-linux-gnu.tar.gz to /media/SHARE/portemp/portage/dev-util/cargo-9999/homedir
>>> Unpacking source...
 * Fetching https://github.com/rust-lang/cargo.git ...
git fetch https://github.com/rust-lang/cargo.git +HEAD:refs/git-r3/HEAD
git symbolic-ref refs/git-r3/dev-util/cargo/0/__main__ refs/git-r3/HEAD
 * Checking out https://github.com/rust-lang/cargo.git to /media/SHARE/portemp/portage/dev-util/cargo-9999/work/cargo-9999 ...
git checkout --quiet refs/git-r3/HEAD
GIT update -->
   repository:               https://github.com/rust-lang/cargo.git
   at the commit:            b24b455c327048df940ab8322cc6f9d361fef918
>>> Source unpacked in /media/SHARE/portemp/portage/dev-util/cargo-9999/work
>>> Preparing source in /media/SHARE/portemp/portage/dev-util/cargo-9999/work/cargo-9999 ...
>>> Source prepared.
>>> Configuring source in /media/SHARE/portemp/portage/dev-util/cargo-9999/work/cargo-9999 ...
>>> Source configured.
>>> Compiling source in /media/SHARE/portemp/portage/dev-util/cargo-9999/work/cargo-9999 ...
    Updating registry `https://github.com/rust-lang/crates.io-index`
warning: spurious network error (2 tries remaining): curl error: Couldn't resolve host 'github.com'
; class=Net (12)
warning: spurious network error (1 tries remaining): curl error: Couldn't resolve host 'github.com'
; class=Net (12)
error: failed to load source for a dependency on `atty`

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:
  curl error: Couldn't resolve host 'github.com'
; class=Net (12)
@gibix
Copy link
Contributor

gibix commented May 14, 2018

seems a network problem, the bug is still present?

@gentoo90
Copy link
Contributor Author

I digged a little and found out that it's a sandbox issue.

FEATURES="-network-sandbox" emerge =dev-util/cargo-9999

works fine. But there should be a way to make it work without disabling the sandbox.

@gibix
Copy link
Contributor

gibix commented May 14, 2018

I just emerged cargo-9999 correctly. Are you ussing a particular env?

@gentoo90
Copy link
Contributor Author

gentoo90 commented May 14, 2018

Are you ussing a particular env?

Well, here's my emerge --info

Portage 2.3.24 (python 2.7.14-final-0, default/linux/amd64/17.0/desktop/gnome, gcc-6.4.0, glibc-2.25-r10, 4.12.12-gentoo x86_64)
=================================================================
System uname: Linux-4.12.12-gentoo-x86_64-Intel-R-_Core-TM-_i5-2410M_CPU_@_2.30GHz-with-gentoo-2.4.1
KiB Mem:     8029728 total,     80484 free
KiB Swap:   16776188 total,  16776188 free
Timestamp of repository gentoo: Mon, 14 May 2018 05:45:01 +0000
Head commit of repository gentoo: cc7ba982adab3162c75d48f07771df825e9572ba
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
ccache version 3.2.4 [enabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.4-r1::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0-r1::dlang
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r10::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://mirror.yandex.ru/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: no
    sync-rsync-extra-opts: 

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

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer -mno-avx"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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-php7.1/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer -mno-avx"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--ask-enter-invalid"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru en"
MAKEOPTS="-j5"
PKGDIR="/var/cache/packfiles"
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="/media/SHARE/portemp"
USE="X a52 aac acl acpi alsa amd64 bash-completion bluetooth branding bzip2 cairo caja cdda cdr cli colord consolekit crypt cups cxx dbus djvu dri dts dvd dvdr eds emacs emboss encode evo exif fam ffmpeg flac fortran fuse gdbm gif glamor gnome-keyring gnome-online-accounts gphoto2 gpm gstreamer gtk iconv icu idn introspection ipv6 jack jpeg lcms libnotify libsecret lzma mad mate mmx mng modules mp3 mp4 mpeg multilib ncurses networkmanager nls nptl nsplugin ogg opengl openmp pam pango pch pcre pdf perl png policykit ppds pth python qt3support qt4 qt5 readline sdl seccomp sqlite sqlite3 sse sse2 ssl ssse3 startup-notification svg tcpd threads tiff truetype udev udisks unicode upower usb vala vorbis wxwidgets x264 xattr xcb xml xv xvid 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" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="karbon plan sheets stage words" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="avx 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="keyboard evdev synaptics" KERNEL="linux" L10N="ru en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby22 ruby23" SANE_BACKENDS="pixma net" USERLAND="GNU" VIDEO_CARDS="intel 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_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

I just emerged cargo-9999 correctly.

I was able to emerge it some time ago, but now it's broken, after some update of portage I suppose.
Do you have network-sandbox in your FEATURES?

@gibix
Copy link
Contributor

gibix commented May 16, 2018

no, but network-sandbox is not on by default, maybe you have it in some conf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants