I'm emerging `runc` due to an `emerge --update --deep --with-bdeps=y --newuse @world` Emerge is updating `containerd` and as a dependency `runc` These are the packages that would be merged, in reverse order: ... [nomerge ] app-emulation/docker-1.11.0 [ebuild U ] app-emulation/containerd-0.2.5 [0.2.0] USE="-hardened%" [ebuild U ] app-emulation/runc-1.0.0_rc2-r2 [0.1.0] USE="(-apparmor) -hardened%" But fails at Compiling source... Reproducible: Always Steps to Reproduce: 1. emerge "=app-emulation/runc-1.0.0_rc2-r2" Actual Results: >>> Emerging (1 of 83) app-emulation/runc-1.0.0_rc2-r2::gentoo * runc-1.0.0_rc2.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] >>> Unpacking source... >>> Source unpacked in /tmp/portage/app-emulation/runc-1.0.0_rc2-r2/work >>> Preparing source in /tmp/portage/app-emulation/runc-1.0.0_rc2-r2/work/runc-1.0.0_rc2/src/github.com/opencontainers/runc ... * Applying runc-1.0.0_rc2-init-non-dumpable.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /tmp/portage/app-emulation/runc-1.0.0_rc2-r2/work/runc-1.0.0_rc2/src/github.com/opencontainers/runc ... >>> Source configured. >>> Compiling source in /tmp/portage/app-emulation/runc-1.0.0_rc2-r2/work/runc-1.0.0_rc2/src/github.com/opencontainers/runc ... ln: .gopath/src/..: cannot overwrite directory make -j4 'BUILDTAGS=no seccomp' COMMIT=c91b5be fatal: Not a git repository (or any parent up to mount point /tmp) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). ln -sfn /tmp/portage/app-emulation/runc-1.0.0_rc2-r2/work/runc-1.0.0_rc2/src/github.com/opencontainers/runc /tmp/portage/app-emulation/runc-1.0.0_rc2-r2/work/runc-1.0.0_rc2/src/github.com/opencontainers/runc/Godeps/_workspace/src/github.com/opencontainers/runc go build -i -ldflags "-X main.gitCommit=c91b5be -X main.version=1.0.0-rc2" -tags "no seccomp" -o runc . # _/tmp/portage/app-emulation/runc-1.0.0_rc2-r2/work/runc-1.0.0_rc2/src/github.com/opencontainers/runc usage: 6l [options] main.6 -1 use alternate profiling code -8 assume 64-bit addresses -B info define ELF NT_GNU_BUILD_ID note -C check Go calls to C code -D addr data address -E sym entry symbol -I interp set ELF interp -L dir add dir to library path -H head header type -K add stack underflow checks -O print pc-line tables -Q debug byte-register code gen -R rnd address rounding -S check type signatures -T addr text address -V print version and exit -W disassemble input -X name value define string data -Z clear stack frame on entry -a disassemble output -c dump call graph -d disable dynamic executable -extld ld linker to run in external mode -extldflags ldflags flags for external linker -f ignore version mismatch -g disable go package data checks -installsuffix suffix pkg directory suffix -k sym set field tracking symbol -linkmode mode set link mode (internal, external, auto) -n dump symbol table -o outfile set output file -r dir1:dir2:... set ELF dynamic linker search path -race enable race detector -s disable symbol table -shared generate shared object (implies -linkmode external) -tmpdir dir leave temporary files in this directory -u reject unsafe packages -v print link trace -w disable DWARF generation Makefile:30: recipe for target 'all' failed make: *** [all] Error 2 * ERROR: app-emulation/runc-1.0.0_rc2-r2::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=app-emulation/runc-1.0.0_rc2-r2::gentoo'`, * the complete build log and the output of `emerge -pqv '=app-emulation/runc-1.0.0_rc2-r2::gentoo'`. * The complete build log is located at '/tmp/portage/app-emulation/runc-1.0.0_rc2-r2/temp/build.log'. * The ebuild environment file is located at '/tmp/portage/app-emulation/runc-1.0.0_rc2-r2/temp/environment'. * Working directory: '/tmp/portage/app-emulation/runc-1.0.0_rc2-r2/work/runc-1.0.0_rc2/src/github.com/opencontainers/runc' * S: '/tmp/portage/app-emulation/runc-1.0.0_rc2-r2/work/runc-1.0.0_rc2/src/github.com/opencontainers/runc' >>> Failed to emerge app-emulation/runc-1.0.0_rc2-r2, Log file: >>> '/tmp/portage/app-emulation/runc-1.0.0_rc2-r2/temp/build.log' * Messages for package app-emulation/runc-1.0.0_rc2-r2: * ERROR: app-emulation/runc-1.0.0_rc2-r2::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=app-emulation/runc-1.0.0_rc2-r2::gentoo'`, * the complete build log and the output of `emerge -pqv '=app-emulation/runc-1.0.0_rc2-r2::gentoo'`. * The complete build log is located at '/tmp/portage/app-emulation/runc-1.0.0_rc2-r2/temp/build.log'. * The ebuild environment file is located at '/tmp/portage/app-emulation/runc-1.0.0_rc2-r2/temp/environment'. * Working directory: '/tmp/portage/app-emulation/runc-1.0.0_rc2-r2/work/runc-1.0.0_rc2/src/github.com/opencontainers/runc' * S: '/tmp/portage/app-emulation/runc-1.0.0_rc2-r2/work/runc-1.0.0_rc2/src/github.com/opencontainers/runc' Expected Results: Successful emerge Portage 2.3.0 (python 2.7.12-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.9.4, glibc-2.23-r3, 4.4.26-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.4.26-gentoo-x86_64-Intel-R-_Core-TM-_i7-4510U_CPU_@_2.00GHz-with-gentoo-2.3 KiB Mem: 16336772 total, 5524624 free KiB Swap: 16777212 total, 16776804 free Timestamp of repository gentoo: Wed, 18 Jan 2017 16:00:01 +0000 sh bash 4.3_p48-r1 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 app-shells/bash: 4.3_p48-r1::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.22.3_rc4::gentoo dev-lang/python: 2.7.12::gentoo, 3.4.5::gentoo dev-util/cmake: 3.6.3::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.3::gentoo sys-apps/openrc: 0.22.4::gentoo sys-apps/sandbox: 2.10-r1::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo sys-devel/automake: 1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.25.1-r1::gentoo sys-devel/gcc: 4.9.4::gentoo sys-devel/gcc-config: 1.7.3::gentoo sys-devel/libtool: 2.4.6-r2::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers) sys-libs/glibc: 2.23-r3::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sublime-text location: /var/lib/layman/sublime-text masters: gentoo priority: 0 steam-overlay location: /var/lib/layman/steam-overlay masters: gentoo priority: 1 miramir location: /var/lib/layman/miramir masters: gentoo priority: 2 Installed sets: @steam ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -mtune=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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 -mtune=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j4" PKGDIR="/usr/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 aes alsa amd64 avx avx2 berkdb bluetooth branding bzip2 cairo cdda cdr cli colord cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fma3 fortran gdbm gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv introspection ipv6 jpeg lcms ldap libnotify libsecret mad mmx mmxext mng modules mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls nptl nsplugin ogg opengl openmp pam pango pcre pdf png policykit popcnt ppds pulseaudio qt3support qt4 readline sdl seccomp session spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg systemd tcpd tiff tracker truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64 32" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" L10N="en es" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en es" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="intel i915 i965 vesa" 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_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Created attachment 460566 [details] complete build log
Can confirm to have to same/a similar issues since upgrading from run-0.1.0 to runc-1.0.0_rc2. Strange thing is that for me the emerge doesn't actually fail (which might be a bug in Portage?) yet the build still throws errors and Docker doesn't work anymore afterwards The two lines that jump out are: ln: .gopath/src/..: cannot overwrite directory fatal: Not a git repository (or any of the parent directories): .git Especially the second one sounds like it should be fatal and thus the emerge should fail, but it didn't. Full output below: ~ ❯ sudo emerge --ask --tree --verbose --oneshot --getbinpkg=n runc These are the packages that would be merged, in reverse order: Calculating dependencies... done! [ebuild R ] app-emulation/runc-1.0.0_rc2-r2::gentoo USE="seccomp (-apparmor) -hardened" 0 KiB Total: 1 package (1 reinstall), Size of downloads: 0 KiB Would you like to merge these packages? [Yes/No] yes >>> Verifying ebuild manifests >>> Emerging (1 of 1) app-emulation/runc-1.0.0_rc2-r2::gentoo * runc-1.0.0_rc2.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] >>> Unpacking source... >>> Source unpacked in /var/tmp/portage/app-emulation/runc-1.0.0_rc2-r2/work >>> Preparing source in /var/tmp/portage/app-emulation/runc-1.0.0_rc2-r2/work/runc-1.0.0_rc2/src/github.com/opencontainers/runc ... * Applying runc-1.0.0_rc2-init-non-dumpable.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/app-emulation/runc-1.0.0_rc2-r2/work/runc-1.0.0_rc2/src/github.com/opencontainers/runc ... >>> Source configured. >>> Compiling source in /var/tmp/portage/app-emulation/runc-1.0.0_rc2-r2/work/runc-1.0.0_rc2/src/github.com/opencontainers/runc ... ln: .gopath/src/..: cannot overwrite directory make -j4 'BUILDTAGS=no seccomp' COMMIT=c91b5be fatal: Not a git repository (or any of the parent directories): .git ln -sfn /var/tmp/portage/app-emulation/runc-1.0.0_rc2-r2/work/runc-1.0.0_rc2/src/github.com/opencontainers/runc /var/tmp/portage/app-emulation/runc-1.0.0_rc2-r2/work/runc-1.0.0_rc2/src/github.com/opencontainers/runc/Godeps/_workspace/src/github.com/opencontainers/runc go build -i -ldflags "-X main.gitCommit=c91b5be -X main.version=1.0.0-rc2" -tags "no seccomp" -o runc . >>> Source compiled. >>> Test phase [not enabled]: app-emulation/runc-1.0.0_rc2-r2 >>> Install runc-1.0.0_rc2-r2 into /var/tmp/portage/app-emulation/runc-1.0.0_rc2-r2/image/ category app-emulation >>> Completed installing runc-1.0.0_rc2-r2 into /var/tmp/portage/app-emulation/runc-1.0.0_rc2-r2/image/ * Final size of build directory: 8257 KiB * Final size of installed tree: 2 KiB strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line -R .note.gnu.gold-version usr/bin/runc ./ ./usr/ ./usr/bin/ ./usr/bin/runc >>> Done. >>> Installing (1 of 1) app-emulation/runc-1.0.0_rc2-r2::gentoo * checking 1 files for package collisions >>> Merging app-emulation/runc-1.0.0_rc2-r2 to / --- /usr/ --- /usr/bin/ >>> /usr/bin/runc >>> Safely unmerging already-installed instance... No package files given... Grabbing a set. --- replaced obj /usr/bin/runc --- replaced dir /usr/bin --- replaced dir /usr >>> Regenerating /etc/ld.so.cache... >>> Original instance of package unmerged safely. >>> app-emulation/runc-1.0.0_rc2-r2 merged. >>> Auto-cleaning packages... >>> No outdated packages were found on your system. * GNU info directory index is up-to-date.
Which version of dev-lang/go is installed on this system?
I'm on version 1.7.4
Mine is dev-lang/go-1.4.2:0
(In reply to Juan Villa from comment #5) > Mine is dev-lang/go-1.4.2:0 Please update to latest dev-lang/go-1.7.4 and see if it still fails.
Now I got the same error as Simon >>> Emerging (9 of 119) app-emulation/runc-1.0.0_rc2-r2::gentoo * runc-1.0.0_rc2.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] >>> Unpacking source... >>> Source unpacked in /tmp/portage/app-emulation/runc-1.0.0_rc2-r2/work >>> Preparing source in /tmp/portage/app-emulation/runc-1.0.0_rc2-r2/work/runc-1.0.0_rc2/src/github.com/opencontainers/runc ... * Applying runc-1.0.0_rc2-init-non-dumpable.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /tmp/portage/app-emulation/runc-1.0.0_rc2-r2/work/runc-1.0.0_rc2/src/github.com/opencontainers/runc ... >>> Source configured. >>> Compiling source in /tmp/portage/app-emulation/runc-1.0.0_rc2-r2/work/runc-1.0.0_rc2/src/github.com/opencontainers/runc ... ln: .gopath/src/..: cannot overwrite directory make -j4 'BUILDTAGS=no seccomp' COMMIT=c91b5be fatal: Not a git repository (or any parent up to mount point /tmp) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). ln -sfn /tmp/portage/app-emulation/runc-1.0.0_rc2-r2/work/runc-1.0.0_rc2/src/github.com/opencontainers/runc /tmp/portage/app-emulation/runc-1.0.0_rc2-r2/work/runc-1.0.0_rc2/src/github.com/opencontainers/runc/Godeps/_workspace/src/github.com/opencontainers/runc go build -i -ldflags "-X main.gitCommit=c91b5be -X main.version=1.0.0-rc2" -tags "no seccomp" -o runc . >>> Source compiled. >>> Test phase [not enabled]: app-emulation/runc-1.0.0_rc2-r2 >>> Install runc-1.0.0_rc2-r2 into /tmp/portage/app-emulation/runc-1.0.0_rc2-r2/image/ category app-emulation >>> Completed installing runc-1.0.0_rc2-r2 into /tmp/portage/app-emulation/runc-1.0.0_rc2-r2/image/ * Final size of build directory: 15456 KiB * Final size of installed tree: 7860 KiB strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line -R .note.gnu.gold-version usr/bin/runc >>> Installing (9 of 119) app-emulation/runc-1.0.0_rc2-r2::gentoo
This is fixed for me, I'm currently on docker-runc version 1.0.0_rc2_p20170308
This is not longer an issue ``` >>> Emerging (2 of 4) app-emulation/docker-runc-1.0.0_rc4_p20170917::gentoo * docker-runc-1.0.0_rc4_p20170917.tar.gz BLAKE2B SHA512 size ;-) ... [ ok ] >>> Unpacking source... >>> Source unpacked in /tmp/portage/app-emulation/docker-runc-1.0.0_rc4_p20170917/work >>> Preparing source in /tmp/portage/app-emulation/docker-runc-1.0.0_rc4_p20170917/work/docker-runc-1.0.0_rc4_p20170917/src/github.com/opencontainers/runc ... >>> Source prepared. >>> Configuring source in /tmp/portage/app-emulation/docker-runc-1.0.0_rc4_p20170917/work/docker-runc-1.0.0_rc4_p20170917/src/github.com/opencontainers/runc ... >>> Source configured. >>> Compiling source in /tmp/portage/app-emulation/docker-runc-1.0.0_rc4_p20170917/work/docker-runc-1.0.0_rc4_p20170917/src/github.com/opencontainers/runc ... make -j4 'BUILDTAGS=ambient seccomp' COMMIT=3f2f8b84 go build -i -ldflags "-X main.gitCommit=3f2f8b84 -X main.version=1.0.0-rc4+dev " -tags "ambient seccomp" -o runc . >>> Source compiled. * Skipping make test/check due to ebuild restriction. >>> Test phase [disabled because of RESTRICT=test]: app-emulation/docker-runc-1.0.0_rc4_p20170917 >>> Install docker-runc-1.0.0_rc4_p20170917 into /tmp/portage/app-emulation/docker-runc-1.0.0_rc4_p20170917/image/ category app-emulation >>> Completed installing docker-runc-1.0.0_rc4_p20170917 into /tmp/portage/app-emulation/docker-runc-1.0.0_rc4_p20170917/image/ * Final size of build directory: 21852 KiB (21.3 MiB) * Final size of installed tree: 8724 KiB ( 8.5 MiB) strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line -R .note.gnu.gold-version usr/bin/runc >>> Installing (2 of 4) app-emulation/docker-runc-1.0.0_rc4_p20170917::gentoo * checking 1 files for package collisions >>> Merging app-emulation/docker-runc-1.0.0_rc4_p20170917 to / --- /usr/ --- /usr/bin/ >>> /usr/bin/runc >>> Safely unmerging already-installed instance... No package files given... Grabbing a set. --- replaced obj /usr/bin/runc --- replaced dir /usr/bin --- replaced dir /usr >>> Regenerating /etc/ld.so.cache... >>> Original instance of package unmerged safely. >>> app-emulation/docker-runc-1.0.0_rc4_p20170917 merged. ```