moby / moby

The Moby Project - a collaborative project for the container ecosystem to assemble container-based systems
https://mobyproject.org/
Apache License 2.0
68.7k stars 18.67k forks source link

`make binary` fails on armv7l #36582

Closed seemethere closed 6 years ago

seemethere commented 6 years ago

Description

The make binary target fails on armv7l architecture.

Steps to reproduce the issue:

  1. make binary

Describe the results you received:

Output:

---> Making bundle: binary (in bundles/binary)
Building: bundles/binary-daemon/dockerd-dev
go install github.com/docker/docker/pkg/fileutils: build output "/go/pkg/linux_arm_netgo_shared/github.com/docker/docker/pkg/fileutils.a" already exists and is not an object file
go install github.com/docker/docker/pkg/mount: build output "/go/pkg/linux_arm_netgo_shared/github.com/docker/docker/pkg/mount.a" already exists and is not an object file
go install github.com/docker/docker/vendor/archive/tar: build output "/go/pkg/linux_arm_netgo_shared/github.com/docker/docker/vendor/archive/tar.a" already exists and is not an object file
go install github.com/docker/docker/vendor/github.com/opencontainers/runc/libcontainer/user: build output "/go/pkg/linux_arm_netgo_shared/github.com/docker/docker/vendor/github.com/opencontainers/runc/libcontainer/user.a" already exists and is not an object file
go install github.com/docker/docker/pkg/reexec: build output "/go/pkg/linux_arm_netgo_shared/github.com/docker/docker/pkg/reexec.a" already exists and is not an object file
go install github.com/docker/docker/vendor/github.com/containerd/continuity/devices: build output "/go/pkg/linux_arm_netgo_shared/github.com/docker/docker/vendor/github.com/containerd/continuity/devices.a" already exists and is not an object file
go install github.com/docker/docker/vendor/github.com/vbatts/tar-split/tar/storage: build output "/go/pkg/linux_arm_netgo_shared/github.com/docker/docker/vendor/github.com/vbatts/tar-split/tar/storage.a" already exists and is not an object file
go install github.com/docker/docker/vendor/github.com/opencontainers/runc/libcontainer/configs: build output "/go/pkg/linux_arm_netgo_shared/github.com/docker/docker/vendor/github.com/opencontainers/runc/libcontainer/configs.a" already exists and is not an object file
go install github.com/docker/docker/pkg/signal: build output "/go/pkg/linux_arm_netgo_shared/github.com/docker/docker/pkg/signal.a" already exists and is not an object file
go install github.com/docker/docker/opts: build output "/go/pkg/linux_arm_netgo_shared/github.com/docker/docker/opts.a" already exists and is not an object file
go install github.com/docker/docker/restartmanager: build output "/go/pkg/linux_arm_netgo_shared/github.com/docker/docker/restartmanager.a" already exists and is not an object file
go install github.com/docker/docker/pkg/parsers: build output "/go/pkg/linux_arm_netgo_shared/github.com/docker/docker/pkg/parsers.a" already exists and is not an object file
go install github.com/docker/docker/vendor/github.com/gorilla/context: build output "/go/pkg/linux_arm_netgo_shared/github.com/docker/docker/vendor/github.com/gorilla/context.a" already exists and is not an object file
go install github.com/docker/docker/vendor/golang.org/x/net/trace: build output "/go/pkg/linux_arm_netgo_shared/github.com/docker/docker/vendor/golang.org/x/net/trace.a" already exists and is not an object file
go install github.com/docker/docker/pkg/plugins/transport: build output "/go/pkg/linux_arm_netgo_shared/github.com/docker/docker/pkg/plugins/transport.a" already exists and is not an object file
go install github.com/docker/docker/vendor/github.com/vbatts/tar-split/archive/tar: build output "/go/pkg/linux_arm_netgo_shared/github.com/docker/docker/vendor/github.com/vbatts/tar-split/archive/tar.a" already exists and is not an object file
go install github.com/docker/docker/vendor/github.com/opencontainers/selinux/go-selinux: build output "/go/pkg/linux_arm_netgo_shared/github.com/docker/docker/vendor/github.com/opencontainers/selinux/go-selinux.a" already exists and is not an object file
go install github.com/docker/docker/pkg/discovery: build output "/go/pkg/linux_arm_netgo_shared/github.com/docker/docker/pkg/discovery.a" already exists and is not an object file
go install github.com/docker/docker/vendor/github.com/docker/libkv/store: build output "/go/pkg/linux_arm_netgo_shared/github.com/docker/docker/vendor/github.com/docker/libkv/store.a" already exists and is not an object file
go install github.com/docker/docker/vendor/github.com/docker/go-connections/sockets: build output "/go/pkg/linux_arm_netgo_shared/github.com/docker/docker/vendor/github.com/docker/go-connections/sockets.a" already exists and is not an object file
go install github.com/docker/docker/vendor/golang.org/x/net/http2: build output "/go/pkg/linux_arm_netgo_shared/github.com/docker/docker/vendor/golang.org/x/net/http2.a" already exists and is not an object file
Makefile:118: recipe for target 'binary' failed
make: *** [binary] Error 1

Describe the results you expected: Successful binary creation

Additional information you deem important (e.g. issue happens only occasionally):

Output of docker version:

Client:
 Version:       18.02.0-ce
 API version:   1.36
 Go version:    go1.9.3
 Git commit:    fc4de44
 Built: Wed Feb  7 21:23:44 2018
 OS/Arch:       linux/arm
 Experimental:  false
 Orchestrator:  swarm

Server:
 Engine:
  Version:      18.02.0-ce
  API version:  1.36 (minimum version 1.12)
  Go version:   go1.9.3
  Git commit:   fc4de44
  Built:        Wed Feb  7 21:19:52 2018
  OS/Arch:      linux/arm
  Experimental: false

Output of docker info:

Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 867
Server Version: 18.02.0-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 9b55aab90508bd389d7654c4baf173a981477d55
runc version: 9f9c96235cc97674e935002fc3d78361b696a69e
init version: 949e6fa
Security Options:
 apparmor
 seccomp
  Profile: default
Kernel Version: 4.4.100-mainline-rev1
Operating System: Ubuntu 16.04.1 LTS
OSType: linux
Architecture: armv7l
CPUs: 4
Total Memory: 1.974GiB
Name: scw-ci-pub-1
ID: YNH2:AGXN:ZB7Z:LSFM:73R2:K243:4KAZ:EMEW:O63R:UMKV:ZJWD:2KIO
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Username: dockerbuildbot
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

Additional environment details (AWS, VirtualBox, physical, etc.):

Hosted node on scaleway.com

seemethere commented 6 years ago

May be related to #36411 and https://github.com/moby/moby/issues/34875

thaJeztah commented 6 years ago

/cc @arm64b :smile:

seemethere commented 6 years ago

Judging from the last Docker CE nightly build pass the following commits are probably causing this:

❯ git log --no-merges --oneline b9cc5cba6964b565e8b2cf1ff50c3e946a924fc8..HEAD
04a0d6b Change containerd monitor ticker to sleep
f6a7763 Add `Len()` to image store for info endpoint
ad2f88d TestLinksEtcHostsContentMatch: use container.Exec()
c125e10 integration/TestContainerShmNoLeak: use --iptables=false
3da4ebf Delete the load balancer endpoint in Ingress nets
bebad15 Update vendoring for libnetwork PR #2097
805b6a7 Add test for ingress removal on service removal
8eb7ed6 Remove arch-suffix detection of Dockerfile
162f9ae Arch-specific Dockerfile removal
f1701a7 Multiarch support for Dockerfile
038f3ad Remove unnecessary diff tests
cad7405 daemon/setMounts(): do not make /dev/shm ro
33dd562 daemon/oci_linux_test: add TestIpcPrivateVsReadonly
d0c1287 Make logfile perms configurable
d48392a Fix definition of ErrSystem type
59854e4 Change return for errdefs.getImplementer()
seemethere commented 6 years ago

After a docker system prune -fa I can't seem to reproduce this issue.

thaJeztah commented 6 years ago

Shall we close for now? I can reopen if needed