You are not logged in.

#1 2015-05-10 12:43:19

Rone
Member
Registered: 2015-04-27
Posts: 35

AUR docker-git issue when compiling from i686 machine

Hello,

From an i686 machine (old laptop) i've just tried to compile the AUR docker-git package source but then came to an error.
I would like to understand if i missed something.
Thanks.

$ makepkg -s
==> Making package: docker-git 1:1.5.0.dev.13153.99ca215-1 (Sun May 10 12:32:22 RET 2015)
==> Checking runtime dependencies...
==> Installing missing dependencies...
[sudo] password for op: 
resolving dependencies...
looking for conflicting packages...

Packages (1) bridge-utils-1.5-2

Total Download Size:   0.01 MiB
Total Installed Size:  0.05 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages ...
 bridge-utils-1.5-2-i686                                                                                              13.1 KiB   570K/s 00:00 [#######################################################################################] 100%
(1/1) checking keys in keyring                                                                                                                [#######################################################################################] 100%
(1/1) checking package integrity                                                                                                              [#######################################################################################] 100%
(1/1) loading package files                                                                                                                   [#######################################################################################] 100%
(1/1) checking for file conflicts                                                                                                             [#######################################################################################] 100%
(1/1) checking available disk space                                                                                                           [#######################################################################################] 100%
(1/1) installing bridge-utils                                                                                                                 [#######################################################################################] 100%
==> Checking buildtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...

Packages (4) perl-error-0.17023-1  btrfs-progs-4.0-1  git-2.4.0-1  go-2:1.4.2-2

Total Download Size:    52.76 MiB
Total Installed Size:  335.07 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages ...
 btrfs-progs-4.0-1-i686                                                                                              541.2 KiB  25.0K/s 00:22 [#######################################################################################] 100%
 perl-error-0.17023-1-any                                                                                             18.4 KiB  65.6K/s 00:00 [#######################################################################################] 100%
 git-2.4.0-1-i686                                                                                                      4.2 MiB  25.4K/s 02:49 [#######################################################################################] 100%
 go-2:1.4.2-2-i686                                                                                                    48.0 MiB  27.7K/s 29:35 [#######################################################################################] 100%
(4/4) checking keys in keyring                                                                                                                [#######################################################################################] 100%
(4/4) checking package integrity                                                                                                              [#######################################################################################] 100%
(4/4) loading package files                                                                                                                   [#######################################################################################] 100%
(4/4) checking for file conflicts                                                                                                             [#######################################################################################] 100%
(4/4) checking available disk space                                                                                                           [#######################################################################################] 100%
(1/4) installing perl-error                                                                                                                   [#######################################################################################] 100%
(2/4) installing git                                                                                                                          [#######################################################################################] 100%
Optional dependencies for git
    tk: gitk and git gui
    perl-libwww: git svn
    perl-term-readkey: git svn
    perl-mime-tools: git send-email
    perl-net-smtp-ssl: git send-email TLS support
    perl-authen-sasl: git send-email TLS support
    python2: various helper scripts
    subversion: git svn
    cvsps2: git cvsimport
    gnome-keyring: GNOME keyring credential helper
(3/4) installing go                                                                                                                           [#######################################################################################] 100%

The "liteide" package provides an IDE for editing and building Go projects.

Example use of the "go" tool:

    mkdir ~/go
    export GOPATH=~/go
    export PATH=$PATH:~/go/bin
    go get golang.org/x/tour/gotour

Optional dependencies for go
    mercurial: for fetching sources from mercurial repositories
    git: for fetching sources from git repositories [installed]
    bzr: for fetching sources from bazaar repositories
    subversion: for fetching sources from subversion repositories
(4/4) installing btrfs-progs                                                                                                                  [#######################################################################################] 100%
==> Retrieving sources...
  -> Cloning docker git repo...
Cloning into bare repository '/home/op/admin/build/docker-git/docker'...
remote: Counting objects: 123777, done.
remote: Compressing objects: 100% (364/364), done.
remote: Total 123777 (delta 227), reused 2 (delta 2), pack-reused 123409
Receiving objects: 100% (123777/123777), 69.26 MiB | 15.00 KiB/s, done.
Resolving deltas: 100% (81453/81453), done.
Checking connectivity... done.
  -> 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...
Cloning into 'docker'...
done.
==> Starting pkgver()...
==> Updated version: docker-git 1:1.7.0.dev.15438.340fd14-1
==> Starting prepare()...
==> 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
#

SIGILL: illegal instruction
PC=0x81f4ea9

goroutine 1 [running, locked to thread]:
math.init·1()
	/usr/lib/go/src/math/pow10.go:34 +0x19 fp=0x1872ff4c sp=0x1872ff48
math.init()
	/usr/lib/go/src/math/unsafe.go:21 +0x3f fp=0x1872ff50 sp=0x1872ff4c
strconv.init()
	/usr/lib/go/src/strconv/quote.go:455 +0x45 fp=0x1872ff6c sp=0x1872ff50
go/parser.init()
	/usr/lib/go/src/go/parser/parser.go:2462 +0x4a fp=0x1872ff78 sp=0x1872ff6c
main.init()
	/usr/lib/go/src/cmd/go/zdefaultcc.go:6 +0x45 fp=0x1872ffcc sp=0x1872ff78
runtime.main()
	/usr/lib/go/src/runtime/proc.go:58 +0xbd fp=0x1872fff0 sp=0x1872ffcc
runtime.goexit()
	/usr/lib/go/src/runtime/asm_386.s:2287 +0x1 fp=0x1872fff4 sp=0x1872fff0

goroutine 2 [runnable]:
runtime.forcegchelper()
	/usr/lib/go/src/runtime/proc.go:90
runtime.goexit()
	/usr/lib/go/src/runtime/asm_386.s:2287 +0x1

goroutine 3 [runnable]:
runtime.bgsweep()
	/usr/lib/go/src/runtime/mgc0.go:82
runtime.goexit()
	/usr/lib/go/src/runtime/asm_386.s:2287 +0x1

eax     0x1870a0c0
ebx     0x856f650
ecx     0x187000a0
edx     0x2b7f865a
edi     0x7
esi     0x2b68
ebp     0x1870a0c0
esp     0x1872ff48
eip     0x81f4ea9
eflags  0x10206
cs      0x73
fs      0x0
gs      0x33
SIGILL: illegal instruction
PC=0x81f4ea9

goroutine 1 [running, locked to thread]:
math.init·1()
	/usr/lib/go/src/math/pow10.go:34 +0x19 fp=0x1872ff4c sp=0x1872ff48
math.init()
	/usr/lib/go/src/math/unsafe.go:21 +0x3f fp=0x1872ff50 sp=0x1872ff4c
strconv.init()
	/usr/lib/go/src/strconv/quote.go:455 +0x45 fp=0x1872ff6c sp=0x1872ff50
go/parser.init()
	/usr/lib/go/src/go/parser/parser.go:2462 +0x4a fp=0x1872ff78 sp=0x1872ff6c
main.init()
	/usr/lib/go/src/cmd/go/zdefaultcc.go:6 +0x45 fp=0x1872ffcc sp=0x1872ff78
runtime.main()
	/usr/lib/go/src/runtime/proc.go:58 +0xbd fp=0x1872fff0 sp=0x1872ffcc
runtime.goexit()
	/usr/lib/go/src/runtime/asm_386.s:2287 +0x1 fp=0x1872fff4 sp=0x1872fff0

goroutine 2 [runnable]:
runtime.forcegchelper()
	/usr/lib/go/src/runtime/proc.go:90
runtime.goexit()
	/usr/lib/go/src/runtime/asm_386.s:2287 +0x1

goroutine 3 [runnable]:
runtime.bgsweep()
	/usr/lib/go/src/runtime/mgc0.go:82
runtime.goexit()
	/usr/lib/go/src/runtime/asm_386.s:2287 +0x1

eax     0x1870a0c0
ebx     0x856f650
ecx     0x187000a0
edx     0x58e0ae9c
edi     0x7
esi     0x2b68
ebp     0x1870a0c0
esp     0x1872ff48
eip     0x81f4ea9
eflags  0x10206
cs      0x73
fs      0x0
gs      0x33
SIGILL: illegal instruction
PC=0x81f4ea9

goroutine 1 [running, locked to thread]:
math.init·1()
	/usr/lib/go/src/math/pow10.go:34 +0x19 fp=0x1872ff4c sp=0x1872ff48
math.init()
	/usr/lib/go/src/math/unsafe.go:21 +0x3f fp=0x1872ff50 sp=0x1872ff4c
strconv.init()
	/usr/lib/go/src/strconv/quote.go:455 +0x45 fp=0x1872ff6c sp=0x1872ff50
go/parser.init()
	/usr/lib/go/src/go/parser/parser.go:2462 +0x4a fp=0x1872ff78 sp=0x1872ff6c
main.init()
	/usr/lib/go/src/cmd/go/zdefaultcc.go:6 +0x45 fp=0x1872ffcc sp=0x1872ff78
runtime.main()
	/usr/lib/go/src/runtime/proc.go:58 +0xbd fp=0x1872fff0 sp=0x1872ffcc
runtime.goexit()
	/usr/lib/go/src/runtime/asm_386.s:2287 +0x1 fp=0x1872fff4 sp=0x1872fff0

goroutine 2 [runnable]:
runtime.forcegchelper()
	/usr/lib/go/src/runtime/proc.go:90
runtime.goexit()
	/usr/lib/go/src/runtime/asm_386.s:2287 +0x1

goroutine 3 [runnable]:
runtime.bgsweep()
	/usr/lib/go/src/runtime/mgc0.go:82
runtime.goexit()
	/usr/lib/go/src/runtime/asm_386.s:2287 +0x1

eax     0x1870a0c0
ebx     0x856f650
ecx     0x187000a0
edx     0x67b18e06
edi     0x7
esi     0x2b68
ebp     0x1870a0c0
esp     0x1872ff48
eip     0x81f4ea9
eflags  0x10206
cs      0x73
fs      0x0
gs      0x33
---> Making bundle: dynbinary (in bundles/1.7.0-dev/dynbinary)
SIGILL: illegal instruction
PC=0x81f4ea9

goroutine 1 [running, locked to thread]:
math.init·1()
	/usr/lib/go/src/math/pow10.go:34 +0x19 fp=0x1872ff4c sp=0x1872ff48
math.init()
	/usr/lib/go/src/math/unsafe.go:21 +0x3f fp=0x1872ff50 sp=0x1872ff4c
strconv.init()
	/usr/lib/go/src/strconv/quote.go:455 +0x45 fp=0x1872ff6c sp=0x1872ff50
go/parser.init()
	/usr/lib/go/src/go/parser/parser.go:2462 +0x4a fp=0x1872ff78 sp=0x1872ff6c
main.init()
	/usr/lib/go/src/cmd/go/zdefaultcc.go:6 +0x45 fp=0x1872ffcc sp=0x1872ff78
runtime.main()
	/usr/lib/go/src/runtime/proc.go:58 +0xbd fp=0x1872fff0 sp=0x1872ffcc
runtime.goexit()
	/usr/lib/go/src/runtime/asm_386.s:2287 +0x1 fp=0x1872fff4 sp=0x1872fff0

goroutine 2 [runnable]:
runtime.forcegchelper()
	/usr/lib/go/src/runtime/proc.go:90
runtime.goexit()
	/usr/lib/go/src/runtime/asm_386.s:2287 +0x1

goroutine 3 [runnable]:
runtime.bgsweep()
	/usr/lib/go/src/runtime/mgc0.go:82
runtime.goexit()
	/usr/lib/go/src/runtime/asm_386.s:2287 +0x1

eax     0x187380a0
ebx     0x856f650
ecx     0x187000a0
edx     0x665138d8
edi     0x7
esi     0x2ba8
ebp     0x187380a0
esp     0x1872ff48
eip     0x81f4ea9
eflags  0x10206
cs      0x73
fs      0x0
gs      0x33
==> ERROR: A failure occurred in build().
    Aborting...
$

Last edited by Rone (2015-05-11 16:15:06)

Offline

#2 2015-05-11 15:03:43

Rone
Member
Registered: 2015-04-27
Posts: 35

Re: AUR docker-git issue when compiling from i686 machine

By now, i'm reading some articles about how to build/compile docker for 32bits architecture.  I found those ones :

- https://github.com/docker/docker/issues/136  , that contains a pointer to http://mwhiteley.com/linux-containers/2 … -i386.html
- http://blenderfox.com/2014/09/14/buildi … -bit-arch/

As it is said, there is probably one line of code to "patch" in the git source code of docker.

I will try that soon, but if you ever had any experiment relative to building docker for 32 bit architecture and share it, i would appreciate.

Offline

#3 2015-05-11 17:13:31

Rone
Member
Registered: 2015-04-27
Posts: 35

Re: AUR docker-git issue when compiling from i686 machine

I think the links i gave before about "patching" only one line of git source code to allow build/compile the source for 32bit processors, won't apply exactly here, because the code has evolved and is not the same. But possible that it can continue to be as simple as reported by the articles pointed above, to compile the source code on 32 bit architecture.

When searching into the git clone directory from which executed file came the WARNING message - short output pasted below but i also gave the full output before -  printed on the output, i saw that it was coming from the file  ./src/docker/hack/make.sh

==> Starting pkgver()...
==> Updated version: docker-git 1:1.7.0.dev.15438.340fd14-1
==> Starting prepare()...
==> 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
#

SIGILL: illegal instruction

But starting from there, by now, i don't know what to do.

Last edited by Rone (2015-05-11 18:09:04)

Offline

#4 2015-05-20 12:44:47

Rone
Member
Registered: 2015-04-27
Posts: 35

Re: AUR docker-git issue when compiling from i686 machine

As i'd like to use a container-like system on a 32bit cpu machine, i think it would be much easier to make use of LXC tools, because it seems to works out-of-the-box on both 32 bits and 64 bits architectures.

And in the world of containers i think it's good to know some about LXC and start with it at first.

Last edited by Rone (2015-05-20 12:46:24)

Offline

Board footer

Powered by FluxBB