Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building from current Dockerfile produces error... #238

Closed
nickwinn opened this issue Feb 8, 2017 · 3 comments
Closed

Building from current Dockerfile produces error... #238

nickwinn opened this issue Feb 8, 2017 · 3 comments
Labels

Comments

@nickwinn
Copy link
Contributor

nickwinn commented Feb 8, 2017

/usr/lib/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/lib/gcc/x86_64-alpine-linux-musl/6.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find Scrt1.o: No such file or directory
/usr/lib/gcc/x86_64-alpine-linux-musl/6.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find crti.o: No such file or directory
/usr/lib/gcc/x86_64-alpine-linux-musl/6.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lpthread
/usr/lib/gcc/x86_64-alpine-linux-musl/6.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lssp_nonshared
collect2: error: ld returned 1 exit status

The command '/bin/sh -c apk update 	&& apk add go git subversion mercurial bzr openssh 	&& go install github.com/etsy/hound/cmds/houndd 	&& apk del go 	&& rm -f /var/cache/apk/* 	&& rm -rf /go/src /go/pkg' returned a non-zero code: 2```

Fixed by adding libc-dev package in following PR. 

https://github.com/etsy/hound/pull/237
@wenerme
Copy link

wenerme commented Oct 16, 2017

Please add musl-dev

https://pkgs.alpinelinux.org/contents?file=Scrt1.o&path=&name=&branch=v3.6&repo=&arch=x86_64

apk add --no-cache musl-dev

@rfan-debug
Copy link
Contributor

@salemhilal i think this issue can be closed. It is not relevant to my fix though.

@salemhilal
Copy link
Contributor

Thanks for the heads up @rfan-debug! (And thanks @nickwinn and @wenerme for reporting and proposing a fix for this issue.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants