google-code-export / camlistore

Automatically exported from code.google.com/p/camlistore
Apache License 2.0
0 stars 0 forks source link

docker build fails due to missing gcc #495

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to repeat:

1. Check-out camlistore on a fresh system (docker already installed) to 
~/go/src/camlistore.org 
2. cd ~/go/src/camlistore.org 
3. docker build -t foobar/testcamlistoredocker .

[...]
Step 25 : RUN go install     camlistore.org/server/camlistored     
camlistore.org/cmd/camput     camlistore.org/cmd/camget     
camlistore.org/cmd/camtool     camlistore.org/website     
camlistore.org/dev/devcam
 ---> Running in 634a9f3c430d
# camlistore.org/third_party/github.com/cznic/zappy
exec: "gcc": executable file not found in $PATH
2014/08/22 15:15:15 The command [/bin/sh -c go install     
camlistore.org/server/camlistored     camlistore.org/cmd/camput     
camlistore.org/cmd/camget     camlistore.org/cmd/camtool     
camlistore.org/website     camlistore.org/dev/devcam] returned a non-zero code: 
2

Trivial fix: Add gcc to the packages to apt-get for the container

Original issue reported on code.google.com by dsimfab...@gmail.com on 22 Aug 2014 at 1:23

GoogleCodeExporter commented 9 years ago
https://camlistore-review.googlesource.com/#/c/3577/

Original comment by dsimfab...@gmail.com on 22 Aug 2014 at 1:25

GoogleCodeExporter commented 9 years ago
This used to work. So this must have regressed during the latest update to 
czniv/kv. It now depends on C code? That's not good.

I'd rather remove the use of C code than "fix" this by adding gcc to the Docker 
container.

Original comment by bradfitz on 22 Aug 2014 at 4:36

GoogleCodeExporter commented 9 years ago
yeah ok, I see what's going on. Jan has separated the zappy code in a version 
with cgo and another without. I need to make sure we use the non cgo one I 
suppose.

Original comment by mathieu....@gmail.com on 22 Aug 2014 at 11:18

GoogleCodeExporter commented 9 years ago
untested: https://camlistore-review.googlesource.com/3580

another option is to use -tags purego (defined in zappy).

or to modify the build tags in zappy source code so it never uses the cgo 
version.

Original comment by mathieu....@gmail.com on 22 Aug 2014 at 11:52

GoogleCodeExporter commented 9 years ago
purego tag it is then...

8cf6ab92cf82bfc580c0d2045d195bd35e99cd34

Original comment by mathieu....@gmail.com on 25 Aug 2014 at 2:53

GoogleCodeExporter commented 9 years ago
This issue has moved to https://camlistore.org/issue/495

Original comment by bradfitz on 14 Dec 2014 at 11:37