Installing and trying to use go in clean base image lead to
/tmp # go run test.go
loadinternal: cannot find runtime/cgo
/usr/lib/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/lib/gcc/x86_64-alpine-linux-musl/8.3.0/../../../../x86_64-alpine-linux-musl/bin/ld:
cannot find Scrt1.o: No such file or directory
/usr/lib/gcc/x86_64-alpine-linux-musl/8.3.0/../../../../x86_64-alpine-linux-musl/bin/ld:
cannot find crti.o: No such file or directory
/usr/lib/gcc/x86_64-alpine-linux-musl/8.3.0/../../../../x86_64-alpine-linux-musl/bin/ld:
cannot find -lssp_nonshared
collect2: error: ld returned 1 exit status
which is fixed by installing musl-dev.
---
community/go/APKBUILD | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/community/go/APKBUILD b/community/go/APKBUILD
index fbcee984e1..00a75209b6 100644
--- a/community/go/APKBUILD+++ b/community/go/APKBUILD
@@ -8,7 +8,7 @@ pkgdesc="Go programming language compiler"
url="http://www.golang.org/"
arch="all"
license="BSD"
-depends="binutils gcc"+depends="binutils gcc musl-dev"depends_dev=""
makedepends="bash"
checkdepends="binutils-gold"
--
2.23.0
Hello Wolf,
I have pushed this to master. Note that you forgot to bump the pkgrel, which is
necessary for the package to be rebuilt.
Kind regards, Kevin.