Skip to content

cgo runtime error with golang:1.11beta2-alpine3.7 #230

Closed
@mfridman

Description

@mfridman

Trying to run a few tests inside this container and seeing cgo errors:

GOGC=off go test -run ...

# runtime/cgo
exec: "gcc": executable file not found in $PATH

Is this by design, where the consumer of the image must apk add gcc and fix any dependency issues, apk add musl-dev ?

EDIT: the docker image already has those items

RUN set -eux; \
apk add --no-cache --virtual .build-deps \
bash \
gcc \
musl-dev \
openssl \
go \
; \

Noticed a similar issue here, golang/go/issues/26307

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionUsability question, not directly related to an error with the image

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions