You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I suggest adding a well documented Docker example to avoid the situation I faced today.
I was trying to build the example in the following Docker container:
FROM golang:1.17-bullseye
# Install go-face dependenciesRUN apt-get update && apt-get -y install \
build-essentials \
libdlib-dev \
libblas-dev \
libatlas-base-dev \
liblapack-dev \
libjpeg62-turbo-dev
# Build appWORKDIR /app
COPY ./go.mod .
COPY ./go.sum .
COPY ./*.go .
COPY ./testdata/ testdata/
RUN go mod download
RUN CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -x -o app
CMD ["./app"]
But I wasn't able to build it. I received g++: fatal error: Killed signal terminated program cc1plus instead:
The solution was actually quite simple. The compiler simply ran out of memory so I just needed to increase the default 2 GB ram limit of Docker for Mac to 4 GB. So I suggest adding this to the FAQ of the Docker example to save other people's time.
The text was updated successfully, but these errors were encountered:
I suggest adding a well documented Docker example to avoid the situation I faced today.
I was trying to build the example in the following Docker container:
But I wasn't able to build it. I received
g++: fatal error: Killed signal terminated program cc1plus
instead:Solution
The solution was actually quite simple. The compiler simply ran out of memory so I just needed to increase the default 2 GB ram limit of Docker for Mac to 4 GB. So I suggest adding this to the FAQ of the Docker example to save other people's time.
The text was updated successfully, but these errors were encountered: