Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Can't build docker-17.05.0_rc1
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
rburcham
Apprentice
Apprentice


Joined: 20 Mar 2003
Posts: 243

PostPosted: Mon Apr 24, 2017 7:59 pm    Post subject: [SOLVED] Can't build docker-17.05.0_rc1 Reply with quote

The latest docker in portage uses containerd and a runc packaged independently from the stock app-emulation/runc:


Code:
# emerge app-emulation/docker -vp

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

Calculating dependencies... done!
[ebuild  N     ] app-emulation/docker-runc-1.0.0_rc2_p20170310::gentoo  USE="seccomp -apparmor -hardened" 0 KiB
[ebuild  N     ] app-emulation/docker-proxy-0.8.0_p20161111::gentoo  0 KiB
[ebuild  N     ] dev-go/sanitized-anchor-name-0_pre20151027::gentoo  0 KiB
[ebuild  N     ] app-emulation/containerd-0.2.5_p20170329::gentoo  USE="seccomp -hardened" 0 KiB
[ebuild  N     ] dev-go/blackfriday-1.4::gentoo  0 KiB
[ebuild  N     ] dev-go/go-md2man-1.0.6::gentoo  0 KiB
[ebuild  N     ] app-emulation/docker-17.05.0_rc1::gentoo  USE="container-init device-mapper seccomp -apparmor -aufs -btrfs -hardened -overlay -pkcs11" 5996 KiB

Total: 7 packages (7 new), Size of downloads: 5996 KiB


That said, the app-emulation/docker-runc package fails to build in the same way that this bug https://bugs.gentoo.org/show_bug.cgi?id=606444 indicates stock app-emulation/runc fails to build:

Code:
>>> Emerging (1 of 7) app-emulation/docker-runc-1.0.0_rc2_p20170310::gentoo
 * docker-runc-1.0.0_rc2_p20170310.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                                                        [ ok ]
>>> Unpacking source...
>>> Source unpacked in /var/tmp/portage/app-emulation/docker-runc-1.0.0_rc2_p20170310/work
>>> Preparing source in /var/tmp/portage/app-emulation/docker-runc-1.0.0_rc2_p20170310/work/docker-runc-1.0.0_rc2_p20170310/src/github.com/docker/runc ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-emulation/docker-runc-1.0.0_rc2_p20170310/work/docker-runc-1.0.0_rc2_p20170310/src/github.com/docker/runc ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-emulation/docker-runc-1.0.0_rc2_p20170310/work/docker-runc-1.0.0_rc2_p20170310/src/github.com/docker/runc ...
ln: .gopath/src/..: cannot overwrite directory
make -j8 'BUILDTAGS=no seccomp' COMMIT=9c2d8d1
fatal: Not a git repository (or any of the parent directories): .git
ln -sfn /var/tmp/portage/app-emulation/docker-runc-1.0.0_rc2_p20170310/work/docker-runc-1.0.0_rc2_p20170310/src/github.com/docker/runc /var/tmp/portage/app-emulation/docker-runc-1.0.0_rc2_p20170310/work/docker-runc-1.0.0_rc2_p20170310/src/github.com/docker/runc/Godeps/_workspace/src/github.com/opencontainers/runc
go build -i -ldflags "-X main.gitCommit=9c2d8d1 -X main.version=1.0.0-rc2" -tags "no seccomp" -o runc .
package .
        imports runtime: C source files not allowed when not using cgo or SWIG: atomic_amd64x.c defs.c float.c heapdump.c lfstack.c malloc.c mcache.c mcentral.c mem_linux.c mfixalloc.c mgc0.c mheap.c msize.c os_linux.c panic.c parfor.c proc.c runtime.c signal.c signal_amd64x.c signal_unix.c stack.c string.c sys_x86.c vdso_linux_amd64.c
make: *** [Makefile:30: all] Error 1


Looking at the ebuild it appears there is some symlink being made to enable Golang to build, and the output above suggests this is failing?

Has anyone been able to build docker from portage? Do I need to move to an overlay?


Last edited by rburcham on Wed Apr 26, 2017 7:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1791

PostPosted: Tue Apr 25, 2017 2:18 am    Post subject: Reply with quote

Well, I can say that I was able to compile docker-runc on my system without any issues (same version that you are trying to compile).

Quote:
C source files not allowed when not using cgo or SWIG:


This line seems to a possible direction that the error is coming from, though I can't say for sure, as I have no experience working with go.

Just wondering, what version of dev-lang/go are you using.
Judging by the error message it mentions that you may not have dev-lang/swig installed? Possibly see if installing that will help work around it, I already had it as a dependency from some other packages. Even if I remove swig from my system, it didn't reproduce the error. Either way, it may be something to try at the very least.
Back to top
View user's profile Send private message
rburcham
Apprentice
Apprentice


Joined: 20 Mar 2003
Posts: 243

PostPosted: Tue Apr 25, 2017 1:12 pm    Post subject: Reply with quote

Thanks for the reply. My installed go version:

Code:
dev-lang/go-1.8.1:0/1.8.1::gentoo  USE="-gccgo"


I do appear to have swig installed:

Code:
dev-lang/swig-3.0.12::gentoo  USE="pcre -ccache -doc"


What does your build.log look like? Given that you build successfully, do you still see the failed symlink message and whatnot?

edit - I'm rebuilding go with gccgo enabled... it wants to rebuild all of gcc with go enabled. This is going to be a while.

Ok, rebuilt gcc and go so they are both enabled on each other, and I get the same error when building docker-runc. Hmm...
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1791

PostPosted: Tue Apr 25, 2017 3:57 pm    Post subject: Reply with quote

I don't see anything in the build log about a failed sym link; but here's my build.log.
Note: This is only the compile phase without the install phase.

Code:
Oate temp # cat build.log
 * Package:    app-emulation/docker-runc-1.0.0_rc2_p20170310
 * Repository: gentoo
 * Maintainer: mrueg@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux seccomp userland_GNU
 * FEATURES:   preserve-libs sandbox splitdebug userpriv usersandbox
 * Package:    app-emulation/docker-runc-1.0.0_rc2_p20170310
 * Repository: gentoo
 * Maintainer: mrueg@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux seccomp userland_GNU
 * FEATURES:   preserve-libs sandbox splitdebug userpriv usersandbox
>>> Unpacking source...
>>> Source unpacked in /tmp/portage/app-emulation/docker-runc-1.0.0_rc2_p20170310/work
>>> Preparing source in /tmp/portage/app-emulation/docker-runc-1.0.0_rc2_p20170310/work/docker-runc-1.0.0_rc2_p20170310/src/github.com/docker/runc ...
>>> Source prepared.
>>> Configuring source in /tmp/portage/app-emulation/docker-runc-1.0.0_rc2_p20170310/work/docker-runc-1.0.0_rc2_p20170310/src/github.com/docker/runc ...
>>> Source configured.
>>> Compiling source in /tmp/portage/app-emulation/docker-runc-1.0.0_rc2_p20170310/work/docker-runc-1.0.0_rc2_p20170310/src/github.com/docker/runc ...
ln: .gopath/src/..: cannot overwrite directory
make -j5 'BUILDTAGS=no seccomp' COMMIT=9c2d8d1
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/docker-runc-1.0.0_rc2_p20170310/work/docker-runc-1.0.0_rc2_p20170310/src/github.com/docker/runc /tmp/portage/app-emulation/docker-runc-1.0.0_rc2_p20170310/work/docker-runc-1.0.0_rc2_p20170310/src/github.com/docker/runc/Godeps/_workspace/src/github.com/opencontainers/runc
go build -i -ldflags "-X main.gitCommit=9c2d8d1 -X main.version=1.0.0-rc2" -tags "no seccomp" -o runc .
>>> Source compiled.


I know on my system, I do not have the gccgo enabled on my gcc.
Back to top
View user's profile Send private message
rburcham
Apprentice
Apprentice


Joined: 20 Mar 2003
Posts: 243

PostPosted: Tue Apr 25, 2017 7:49 pm    Post subject: Reply with quote

I was referring to this part from both our build logs:

Code:
ln: .gopath/src/..: cannot overwrite directory
make -j5 'BUILDTAGS=no seccomp' COMMIT=9c2d8d1
fatal: Not a git repository (or any parent up to mount point /tmp)


There's that ln failure in the first line there, and then the git failure... I'm guessing those are benign since we both have that output in our build logs.

Then your log has a line that mine does not:

Code:
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).


Then we both have the go -build invocation, but yours succeeds and mine fails. What version of go do you have?
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1791

PostPosted: Tue Apr 25, 2017 10:01 pm    Post subject: Reply with quote

The same you are using, 1.8.1. I run a full ~amd64 system (non-systemd) updated on a weekly basis; with no overlays outside the official tree (usually updated on Saturday or Sunday).
Back to top
View user's profile Send private message
rburcham
Apprentice
Apprentice


Joined: 20 Mar 2003
Posts: 243

PostPosted: Wed Apr 26, 2017 2:24 pm    Post subject: Reply with quote

Me too, ~amd64, but with some qt5/plasma related overlays. This is a pretty weird mystery... Would you mind sharing your emerge --info? Here's mine:

Code:
# emerge --info
Portage 2.3.5 (python 3.4.6-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-5.4.0, glibc-2.24-r1, 4.9.12-gentoo x86_64)
=================================================================
System uname: Linux-4.9.12-gentoo-x86_64-Intel-R-_Core-TM-_i7-3740QM_CPU_@_2.70GHz-with-gentoo-2.3
KiB Mem:    16338392 total,  10550720 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 24 Apr 2017 18:30:01 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
ccache version 3.3.4 [enabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r1::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo, 3.5.3::gentoo
dev-util/ccache:          3.3.4::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.23.2::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo, 2.26.1::gentoo, 2.27::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.3.0::gentoo, 5.4.0-r3::gentoo
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.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.24-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

maksbotan
    location: /usr/src/maksbotan                                                                                                             
    masters: gentoo                                                                                                                         
    priority: 0                                                                                                                             
                                                                                                                                             
lua                                                                                                                                         
    location: /var/lib/layman/lua                                                                                                           
    masters: gentoo                                                                                                                         
    priority: 50                                                                                                                                                                                                                             
                                                                                                                                                                                                                                             
vaca                                                                                                                                                                                                                                         
    location: /var/lib/layman/vaca                                                                                                                                                                                                           
    masters: gentoo                                                                                                                                                                                                                         
    priority: 50                                                                                                                                                                                                                             
                                                                                                                                                                                                                                             
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                                                                                                                                                               
ACCEPT_LICENSE="*"                                                                                                                                                                                                                           
CBUILD="x86_64-pc-linux-gnu"                                                                                                                                                                                                                 
CFLAGS="-O2 -pipe -march=native -mpopcnt -msahf -fforce-addr"                                                                                                                                                                               
CHOST="x86_64-pc-linux-gnu"                                                                                                                                                                                                                 
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.2/conf /usr/share/maven-bin-3.3/conf /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0 /var/bind /var/lib/hsqldb"       
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"                                                                                                                                                       
CXXFLAGS="-O2 -pipe -march=native -mpopcnt -msahf -fforce-addr -Wabi -mpopcnt -msahf -fforce-addr"                                                                                                                                           
DISTDIR="/usr/portage/distfiles"                                                                                                                                                                                                             
FCFLAGS="-O2 -pipe"                                                                                                                                                                                                                         
FEATURES="assume-digests binpkg-logs ccache 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"                                                                                                                                                                                                 
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,--enable-new-dtags"
MAKEOPTS="-j8"
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="/var/tmp"
USE="64bit X a52 aac acl acpi alsa amd64 apache2 aspell bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fortran gd gdbm gif glamor gpm gtk iconv icu imap ipv6 java jpeg kde kipi kwallet lcms ldap libnotify mad mcal mmap mmx mmxext mng modules mp3 mp4 mpeg multilib mysql ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qml qt3support qt4 qt5 readline sdl seccomp semantic-desktop semantic-destkop session sharedmem smp spell sse sse2 sse3 ssl ssse3 startup-notification svg tcpd tiff truetype udev udisks unicode upower usb v4l v4l2 vhosts vim-syntax vorbis widgets win32codecs wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64 32" ALSA_CARDS="hda-intel" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx sse sse2 mmxext sse3 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="efi-64" INPUT_DEVICES="synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="nvidia intel" 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, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


[Moderator edit: changed [quote] tags to [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1791

PostPosted: Wed Apr 26, 2017 5:29 pm    Post subject: Reply with quote

Code:
ct85711@Oate ~ $ emerge --info
Portage 2.3.5 (python 3.4.6-final-0, default/linux/amd64/13.0/desktop, gcc-5.4.0, glibc-2.24-r1, 4.10.5-gentoo x86_64)
=================================================================
System uname: Linux-4.10.5-gentoo-x86_64-AMD_A10-7850K_Radeon_R7,_12_Compute_Cores_4C+8G-with-gentoo-2.3
KiB Mem:    16448856 total,  15072768 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 25 Apr 2017 01:22:39 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.27 p1.0) 2.27
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r1::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo, 3.5.3::gentoo, 3.6.1::gentoo
dev-util/cmake:           3.8.0::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.25::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.27::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.24-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    priority: -1000

localrepo
    location: /usr/local/portage
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -pipe -O2"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://lug.mtu.edu/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/ http://gentoo.llarian.net/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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 alsa amd64 bash-completion berkdb bluetooth branding bzip2 cacert cairo cdda cdr cli colord consolekit cracklib crypt cups cxx dbus dmx dri dts dvd dvdnav dvdr emboss encode exif fam ffmpeg firefox flac fontconfig fortran gbm gdbm gif git glamor gmp gnutls gphoto2 gpm gstreamer gtk gtk3 i18n iconv icu ipv6 javascript jce jpeg kerberos latex lcms libass libkms libnotify lm_sensors lpsol lua mad minizip mng modules mp3 mp4 mpeg multilib ncurses nls nptl objc objc++ objc-gc ogg openal opencl opengl openmp openssl osmesa pam pango pcre pdf perl png postproc ppds pulseaudio python python3 qt3support qt5 rar readline resolvconf sdl seccomp session speex spell sqlite ssh ssl startup-notification svg syslog system-sqlite taglib tcpd theora threads thunar tiff tk truetype udev udisks unicode usb vaapi vdpau vorbis vpx webp wmf wxwidgets x264 xa xattr xcb xft xinerama xml xmp xorg xosd xv xvid xvmc zeroconf zlib" ABI_X86="32 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx fma3 fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" 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="efi-64" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4 python3_5" QEMU_SOFTMMU_TARGETS="*" QEMU_USER_TARGETS="*" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="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"
USE_PYTHON="2.7 3.4 3.5 3.6"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Back to top
View user's profile Send private message
rburcham
Apprentice
Apprentice


Joined: 20 Mar 2003
Posts: 243

PostPosted: Wed Apr 26, 2017 7:26 pm    Post subject: Reply with quote

Ok apparently the problem is dev-lang/go, and having a history of upgrading across versions. It does not do a sufficient job of cleaning up cruft of prior versions, and this impacts assumptions of ebuilds that depend on go. The solution is to eradicate all traces of dev-lang/go and then reinstall it:

Code:
# emerge -Cv dev-lang/go
# rm -rf /usr/lib/go
# rm -rf /usr/lib/go1.*

# emerge dev-lang/go -v


After doing this I can build docker-runc and the rest of docker.
Back to top
View user's profile Send private message
TheCat
Tux's lil' helper
Tux's lil' helper


Joined: 20 Feb 2004
Posts: 139
Location: Belarus

PostPosted: Mon Jul 24, 2017 2:20 pm    Post subject: Reply with quote

rburcham wrote:
Ok apparently the problem is dev-lang/go, and having a history of upgrading across versions. It does not do a sufficient job of cleaning up cruft of prior versions, and this impacts assumptions of ebuilds that depend on go. The solution is to eradicate all traces of dev-lang/go and then reinstall it:

Code:
# emerge -Cv dev-lang/go
# rm -rf /usr/lib/go
# rm -rf /usr/lib/go1.*

# emerge dev-lang/go -v


After doing this I can build docker-runc and the rest of docker.


I have the same issue but re-installing go didn't help me.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21595

PostPosted: Tue Jul 25, 2017 1:30 am    Post subject: Reply with quote

If you have the same symptoms, and you tried the solution documented above that is known to work, and it did not work for you, then you do not have the same problem. Please describe your problem.
Back to top
View user's profile Send private message
TheCat
Tux's lil' helper
Tux's lil' helper


Joined: 20 Feb 2004
Posts: 139
Location: Belarus

PostPosted: Tue Jul 25, 2017 7:14 am    Post subject: Reply with quote

OK, maybe it's not exactly the same problem, but I'm having problem with compiling app-emulation/docker-runc. It fails with or without layman's docker repo.

Code:

>>> Emerging (1 of 6) app-emulation/docker-runc-1.0.0_rc2_p20170308::gentoo
 * docker-runc-1.0.0_rc2_p20170308.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                        [ ok ]
>>> Unpacking source...
>>> Source unpacked in /var/tmp/portage/app-emulation/docker-runc-1.0.0_rc2_p20170308/work
>>> Preparing source in /var/tmp/portage/app-emulation/docker-runc-1.0.0_rc2_p20170308/work/docker-runc-1.0.0_rc2_p20170308/src/github.com/docker/runc ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-emulation/docker-runc-1.0.0_rc2_p20170308/work/docker-runc-1.0.0_rc2_p20170308/src/github.com/docker/runc ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-emulation/docker-runc-1.0.0_rc2_p20170308/work/docker-runc-1.0.0_rc2_p20170308/src/github.com/docker/runc ...
ln: .gopath/src/..: cannot overwrite directory
make -j3 'BUILDTAGS=no seccomp' COMMIT=54296cf
fatal: Not a git repository (or any of the parent directories): .git
ln -sfn /var/tmp/portage/app-emulation/docker-runc-1.0.0_rc2_p20170308/work/docker-runc-1.0.0_rc2_p20170308/src/github.com/docker/runc /var/tmp/portage/app-emulation/docker-runc-1.0.0_rc2_p20170308/work/docker-runc-1.0.0_rc2_p20170308/src/github.com/docker/runc/Godeps/_workspace/src/github.com/opencontainers/runc
go build -i -ldflags "-X main.gitCommit=54296cf -X main.version=1.0.0-rc2" -tags "no seccomp" -o runc .
# github.com/docker/docker/pkg/term
cannot load DWARF output from $WORK/github.com/docker/docker/pkg/term/_obj//_cgo_.o: decoding dwarf section info at offset 0x4: unsupported version 0
# github.com/opencontainers/runc/libcontainer/system
cannot load DWARF output from $WORK/github.com/opencontainers/runc/libcontainer/system/_obj//_cgo_.o: decoding dwarf section info at offset 0x4: unsupported version 0
# github.com/seccomp/libseccomp-golang
cannot load DWARF output from $WORK/github.com/seccomp/libseccomp-golang/_obj//_cgo_.o: decoding dwarf section info at offset 0x4: unsupported version 0
make: *** [Makefile:30: all] Error 2
 * ERROR: app-emulation/docker-runc-1.0.0_rc2_p20170308::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=app-emulation/docker-runc-1.0.0_rc2_p20170308::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/docker-runc-1.0.0_rc2_p20170308::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-emulation/docker-runc-1.0.0_rc2_p20170308/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/docker-runc-1.0.0_rc2_p20170308/temp/environment'.
 * Working directory: '/var/tmp/portage/app-emulation/docker-runc-1.0.0_rc2_p20170308/work/docker-runc-1.0.0_rc2_p20170308/src/github.com/docker/runc'
 * S: '/var/tmp/portage/app-emulation/docker-runc-1.0.0_rc2_p20170308/work/docker-runc-1.0.0_rc2_p20170308/src/github.com/docker/runc'

>>> Failed to emerge app-emulation/docker-runc-1.0.0_rc2_p20170308, Log file:

>>>  '/var/tmp/portage/app-emulation/docker-runc-1.0.0_rc2_p20170308/temp/build.log'

 * Messages for package app-emulation/docker-runc-1.0.0_rc2_p20170308:

 * ERROR: app-emulation/docker-runc-1.0.0_rc2_p20170308::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=app-emulation/docker-runc-1.0.0_rc2_p20170308::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/docker-runc-1.0.0_rc2_p20170308::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-emulation/docker-runc-1.0.0_rc2_p20170308/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/docker-runc-1.0.0_rc2_p20170308/temp/environment'.
 * Working directory: '/var/tmp/portage/app-emulation/docker-runc-1.0.0_rc2_p20170308/work/docker-runc-1.0.0_rc2_p20170308/src/github.com/docker/runc'
 * S: '/var/tmp/portage/app-emulation/docker-runc-1.0.0_rc2_p20170308/work/docker-runc-1.0.0_rc2_p20170308/src/github.com/docker/runc'


Code:

# emerge --info '=app-emulation/docker-runc-1.0.0_rc2_p20170308::gentoo'
Portage 2.3.6 (python 2.7.12-final-0, default/linux/amd64/13.0, gcc-5.4.0, glibc-2.23-r4, 3.8.13-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.8.13-gentoo-x86_64-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-gentoo-2.3
KiB Mem:     3971788 total,    652724 free
KiB Swap:    2048280 total,   1461452 free
Timestamp of repository gentoo: Tue, 25 Jul 2017 00:45:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.28 p1.2) 2.28
ccache version 3.2.4 [enabled]
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.26.3::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.10.3-r1::gentoo, 1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.28-r2::gentoo
sys-devel/gcc:            4.9.4::gentoo, 5.4.0-r3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: webrsync
    sync-uri: http://ftp.mgts.by/gentoo-distfiles/
    priority: -1000

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache 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="ru_RU.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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="/var/tmp"
USE="acl addition amd64 bash-completion berkdb bzip2 cli cracklib crypt cxx dri fastcgi fontconfig fortran gdbm geoip iconv ipv6 jpeg modules multilib ncurses nls nptl openmp pam pcre png readline seccomp session ssl status tcpd threads truetype unicode xattr xpm 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="remoteip unixd socache_shmcb mime dir authz_host authz_core authn_core log_config logio setenvif rewrite http2" APACHE2_MPMS="event" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" 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 isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" 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" LINGUAS="ru" NGINX_MODULES_HTTP="realip stub_status addition gzip gzip_static rewrite upstream_ip_hash charset fastcgi access proxy http2" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4 python3_5" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" 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"
USE_PYTHON="2.7 3.4"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30887
Location: here

PostPosted: Tue Jul 25, 2017 9:06 am    Post subject: Reply with quote

I found this issue but is related to go 1.4/1.5, in portage latest stable version is 1.8.3
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
TheCat
Tux's lil' helper
Tux's lil' helper


Joined: 20 Feb 2004
Posts: 139
Location: Belarus

PostPosted: Tue Jul 25, 2017 9:11 am    Post subject: Reply with quote

fedeliallalinea wrote:
I found this issue but is related to go 1.4/1.5, in portage latest stable version is 1.8.3

Yes, I also saw it. actually with CGO_ENABLED=0 I've got error rburcham had :)
Code:

imports runtime: C source files not allowed when not using cgo or SWIG
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum