Package fails to compile, it throws a network error. Internet is working properly and i can download the file correctly outside build. Reproducible: Always Steps to Reproduce: 1. upgrade dev-util/cbindgen to version 0.25.0 Actual Results: build fails: >>> Compiling source in /var/tmp/portage/dev-util/cbindgen-0.25.0/work/cbindgen-0.25.0 ... * cargo build --release info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu' error: could not download file from 'https://static.rust-lang.org/dist/channel-rust-nightly.toml.sha256' to '/var/tmp/portage/dev-util/cbindgen-0.25.0/homedir/.rustup/tmp/ziz54e7nm0qpfisq_file': failed to make network request: error sending request for url (https://static.rust-lang.org/dist/channel-rust-nightly.toml.sha256): error trying to connect: dns error: failed to lookup address information: Temporary failure in name resolution: error trying to connect: dns error: failed to lookup address information: Temporary failure in name resolution: dns error: failed to lookup address information: Temporary failure in name resolution: failed to lookup address information: Temporary failure in name resolution * ERROR: dev-util/cbindgen-0.25.0::gentoo failed (compile phase): * cargo build failed * * Call stack: * ebuild.sh, line 136: Called src_compile * environment, line 1928: Called cargo_src_compile * environment, line 893: Called die * The specific snippet of code: * "${@}" || die "cargo build failed" Expected Results: build succeeds Portage 3.0.51 (python 3.11.5-final-0, default/linux/amd64/17.1/desktop, gcc-13, glibc-2.37-r7, 6.1.53-gentoo-r1 x86_64) ================================================================= System uname: Linux-6.1.53-gentoo-r1-x86_64-AMD_Ryzen_7_5800X3D_8-Core_Processor-with-glibc2.37 KiB Mem: 32811616 total, 8181728 free KiB Swap: 16777212 total, 16777212 free Timestamp of repository gentoo: Wed, 04 Oct 2023 14:15:01 +0000 Head commit of repository gentoo: a33c8aca4337f028a086e7d38883de3cdc4e4f44 Timestamp of repository guru: Wed, 04 Oct 2023 09:46:30 +0000 Head commit of repository guru: 6b570eb3beeae2aefdbf0e944d718448d00a801a Timestamp of repository pf4public: Tue, 03 Oct 2023 02:31:33 +0000 Head commit of repository pf4public: c754b58f532609ee70a9ead797ebba5b45751751 Timestamp of repository steam-overlay: Sun, 01 Oct 2023 07:32:45 +0000 Head commit of repository steam-overlay: db53f610ea5bd7af7c1873f4aa58d83a80ca892a Head commit of repository supertux88: 24f16b93ec274a684f0c212b848fa34d5fd2c81a sh bash 5.1_p16-r6 ld GNU ld (Gentoo 2.40 p5) 2.40.0 app-misc/pax-utils: 1.3.5::gentoo app-shells/bash: 5.1_p16-r6::gentoo dev-lang/perl: 5.38.0-r1::gentoo dev-lang/python: 3.11.5::gentoo dev-util/cmake: 3.26.5-r2::gentoo dev-util/meson: 1.2.1-r1::gentoo sys-apps/baselayout: 2.14::gentoo sys-apps/openrc: 0.48::gentoo sys-apps/sandbox: 2.37::gentoo sys-devel/autoconf: 2.13-r7::gentoo, 2.71-r6::gentoo sys-devel/automake: 1.16.5-r1::gentoo sys-devel/binutils: 2.40-r5::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 15.0.7-r3::gentoo, 16.0.6::gentoo sys-devel/gcc: 13.2.1_p20230826::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/libtool: 2.4.7-r1::gentoo sys-devel/lld: 15.0.7::gentoo, 16.0.6::gentoo sys-devel/llvm: 15.0.7-r3::gentoo, 16.0.6::gentoo sys-devel/make: 4.4.1-r1::gentoo sys-kernel/linux-headers: 6.1::gentoo (virtual/os-headers) sys-libs/glibc: 2.37-r7::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.ca.gentoo.org/gentoo-portage priority: -1000 volatile: False sync-rsync-verify-metamanifest: yes sync-rsync-extra-opts: sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 guru location: /var/db/repos/guru sync-type: git sync-uri: https://github.com/gentoo-mirror/guru.git masters: gentoo volatile: False local location: /usr/local/portage masters: gentoo volatile: True pf4public location: /var/db/repos/pf4public sync-type: git sync-uri: https://github.com/gentoo-mirror/pf4public.git masters: gentoo volatile: False steam-overlay location: /var/db/repos/steam-overlay sync-type: git sync-uri: https://github.com/gentoo-mirror/steam-overlay.git masters: gentoo volatile: False supertux88 location: /var/db/repos/supertux88 sync-type: git sync-uri: https://github.com/SuperTux88/gentoo-overlay.git masters: gentoo volatile: False local-crossdev location: /usr/local/portage-crossdev masters: gentoo priority: 9999 volatile: True ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" 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-php8.1/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/var/cache/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live 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="https://mirror1.cl.netactuate.com/gentoo/ rsync://mirror1.cl.netactuate.com/gentoo/ https://gentoo.zero.com.ar/gentoo/ rsync://gentoo.zero.com.ar/gentoo" LANG="es_CL.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" LINGUAS="es_CL es en" MAKEOPTS="-j16" 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" SHELL="/bin/zsh" USE="X a52 aac acl acpi alsa amd64 archive avif bluetooth bluray branding brotli bzip2 cairo cdda cddb cdr clamav cli colord crypt cups curl dbus device-mapper djvu dri dts dvd dvdr elogind encode exif fbcon ffmpeg fftw flac fluidsynth fontconfig fortran gdbm gif git gpm graphite gstreamer gtk gui gzip hddtemp heif iconv icu idn inotify introspection ios ipv6 jpeg jpeg2k jpegxl lcms libass libnotify libtirpc lm-sensors lua luajit lvm lzma mad matroska mng modplug mp3 mp4 mpeg mtp multilib musepack ncurses networkmanager nls nptl offensive ogg opencl openexr opengl openmp opus pam pango pcre pdf pipewire png policykit ppds pulseaudio qt5 rar raw readline samba screencast sdl seccomp smp sndfile sound spell split-usr sqlite ssl startup-notification svg syslog test-rust theora threads tiff tk truetype udev udisks unicode upnp upower usb v4l vaapi vim-syntax vorbis vpx vulkan wayland webkit webp wxwidgets x264 x265 xattr xcb xcomposite xft xinerama xml xrandr xscreensaver xv xvid xwayland xz zip zlib zsh-completion" ABI_X86="64" ADA_TARGET="gnat_2021" 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 rdrand sha sse sse2 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" INPUT_DEVICES="evdev wacom" KERNEL="linux" L10N="es-CL es en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Created attachment 872134 [details] build log
Yeah we don't allow internet connection while building packages so the build system doesn't do anything we can't anticipate / we don't want to. I'm not a rust expert, but it looks like the build system can't quite detect your system rust right. 1: Are you cross-compiling? 2: What are your use flags for rust? 3: I could look at your pure make.conf, and any env/ files for rust or any rust-related package you might have added.
I figured out the issue, it was on my end. So I used to run some extra configs under /etc/portage/profile so I could use my already installed Rust via rustup instead of compiling it: package.provided ``` dev-lang/rust-bin-1.71.1 ``` profile.bashrc ``` BASEDIR=/home/user VERSION=1.71.1 export PATH="$BASEDIR/.cargo/bin:$PATH" STABLE="$BASEDIR/.rustup/toolchains/$VERSION-x86_64-unknown-linux-gnu" rustup toolchain link build-stable "$STABLE" &> /dev/null rustup default build-stable &> /dev/null ``` I've ran this for years and it worked fine, until now. I decided to remove them and let portage compile it's own system Rust, and now the package compiled successfully.