[英]Can't build docker package (docker-git) with makepkg
I'm trying to build the docker-git package on my archlinux (i686). 我正在尝试在我的archlinux(i686)上构建docker-git软件包。
I download the package from https://aur.archlinux.org/cgit/aur.git/snapshot/docker-git.tar.gz , untar it and run makepkg
. 我从https://aur.archlinux.org/cgit/aur.git/snapshot/docker-git.tar.gz下载该软件包,解压缩并运行
makepkg
。
But I get the following output : 但是我得到以下输出:
$ makepkg
==> Making package: docker-git 1:1.9.0.dev.18703.670c488-1 (Tue Oct 6 22:27:42 CEST 2015)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Updating docker git repo...
Fetching origin
remote: Counting objects: 7, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 7 (delta 5), reused 4 (delta 3), pack-reused 0
Unpacking objects: 100% (7/7), done.
From https://github.com/docker/docker
+ 382d383...29cbec5 refs/pull/16758/merge -> refs/pull/16758/merge (forced update)
-> Found docker.service
-> Found docker.install
-> Found docker.conf
==> Validating source files with md5sums...
docker ... Skipped
docker.service ... Passed
docker.install ... Passed
docker.conf ... Passed
==> Extracting sources...
-> Creating working copy of docker git repo...
Switched to a new branch 'makepkg'
==> Starting pkgver()...
==> Starting prepare()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
# WARNING! I don't seem to be running in the Docker container.
# The result of this command might be an incorrect build, and will not be
# officially supported.
#
# Try this instead: make all
#
bundles/1.9.0-dev already exists. Removing.
---> Making bundle: dynbinary (in bundles/1.9.0-dev/dynbinary)
Created binary: bundles/1.9.0-dev/dynbinary/dockerinit-1.9.0-dev
Building: bundles/1.9.0-dev/dynbinary/docker-1.9.0-dev
# _/home/vmonteco/Downloads/docker-git/src/docker/docker
/usr/lib/go/pkg/tool/linux_386/link: running gcc failed: exit status 1
/tmp/go-link-183610645/000007.o: In function `__udivdi3':
(.text+0x8ebc0): multiple definition of `__udivdi3'
/tmp/go-link-183610645/000003.o:(.text+0x740): first defined here
collect2: error: ld returned 1 exit status
==> ERROR: A failure occurred in build().
Aborting...
Did I forget something? 我忘记了什么吗? I don't know what the error means.
我不知道错误是什么意思。
I also tried make all
as suggested from the src/docker subdirectory but I got : 我也尝试从src / docker子目录中按照建议
make all
,但是得到了:
$ make all
docker build -t "docker-dev:makepkg" .
/bin/sh: docker: command not found
Makefile:74: recipe for target 'build' failed
make: *** [build] Error 127
NB: I also had to replace the docker.service md5 sum in the PKGBUILD file, it was invalid before. 注意:我还必须替换PKGBUILD文件中的docker.service md5 sum,之前它是无效的。
Try building with this PKGBUILD: https://gist.github.com/grimsock/8edc7c4f38800f3f992f 尝试使用此PKGBUILD进行构建: https : //gist.github.com/grimsock/8edc7c4f38800f3f992f
Do you have all dependecies installed? 是否安装了所有依赖项? Especially from makedepends array?
特别是从makedepends数组?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.