Compilation from source fails #1402

Closed
opened 2025-11-02 03:59:43 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @al-sabr on GitHub (Dec 24, 2017).

arm64 and arm32

Description

Compilation from source produce this :

Removing intermediate container b41259d53d37
Step 3/5 : RUN go get -u -d code.gitea.io/gitea
---> Running in 1e54dc5a510f
---> 5ac9d7356e34
Removing intermediate container 1e54dc5a510f
Step 4/5 : WORKDIR /go/src/code.gitea.io/gitea
---> 4d24d5274fa8
Removing intermediate container 6898ad55735a
Step 5/5 : RUN TAGS="bindata" make generate build
---> Running in 574365d69d99
make: *** No rule to make target 'generate'. Stop.
The command '/bin/sh -c TAGS="bindata" make generate build' returned a non-zero code: 2

Originally created by @al-sabr on GitHub (Dec 24, 2017). arm64 and arm32 ## Description Compilation from source produce this : Removing intermediate container b41259d53d37 Step 3/5 : RUN go get -u -d code.gitea.io/gitea ---> Running in 1e54dc5a510f ---> 5ac9d7356e34 Removing intermediate container 1e54dc5a510f Step 4/5 : WORKDIR /go/src/code.gitea.io/gitea ---> 4d24d5274fa8 Removing intermediate container 6898ad55735a Step 5/5 : RUN TAGS="bindata" make generate build ---> Running in 574365d69d99 make: *** No rule to make target 'generate'. Stop. The command '/bin/sh -c TAGS="bindata" make generate build' returned a non-zero code: 2
Author
Owner

@tboerger commented on GitHub (Dec 24, 2017):

You are not providing enough information. What image to you use? Which commands have you executed?

@tboerger commented on GitHub (Dec 24, 2017): You are not providing enough information. What image to you use? Which commands have you executed?
Author
Owner

@tboerger commented on GitHub (Dec 24, 2017):

This simply sounds like you are executing make in the wrong directory.

@tboerger commented on GitHub (Dec 24, 2017): This simply sounds like you are executing make in the wrong directory.
Author
Owner

@al-sabr commented on GitHub (Dec 24, 2017):

FROM troyfontaine/armhf-alpinelinux

RUN apk update &&
apk add
git
alpine-sdk
binutils
gcc
musl-dev
openssl
make
go
sqlite &&
rm -rf /var/cache/apk/*

RUN go env
RUN go get -u -d code.gitea.io/gitea
RUN cd /go/src/code.gitea.io/gitea
RUN TAGS="bindata,sqlite" make build

@al-sabr commented on GitHub (Dec 24, 2017): FROM troyfontaine/armhf-alpinelinux RUN apk update && \ apk add \ git \ alpine-sdk \ binutils \ gcc \ musl-dev \ openssl \ make \ go \ sqlite && \ rm -rf /var/cache/apk/* RUN go env RUN go get -u -d code.gitea.io/gitea RUN cd /go/src/code.gitea.io/gitea RUN TAGS="bindata,sqlite" make build
Author
Owner

@tboerger commented on GitHub (Dec 24, 2017):

As already stated on chat you just used the wrong path to execute make.

@tboerger commented on GitHub (Dec 24, 2017): As already stated on chat you just used the wrong path to execute make.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1402