Gitea 1.21 failing to build on musl-based distributions as of musl 1.2.4. #12839

Closed
opened 2025-11-02 10:22:32 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @mc680x0 on GitHub (Apr 13, 2024).

Description

Attempting to build Gitea 1.21 on a machine running musl 1.2.4 or 1.2.5 results in a failure in the go-sqlite3 module, with pread64 and pwrite64 undeclared.

Per https://github.com/mattn/go-sqlite3/issues/1164 this issue has been resolved upstream as of go-sqlite3 version 1.14.19.

I have verified that using go get and go mod vendor to update to go-sqlite3 version 1.14.21 manually has resulted in a rock-solid gitea instance; a simple version bump would appear to be in order for this issue.

Gitea Version

1.21.5, 1.21.8, 1.21.10

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

2.43.2

Operating System

Linux, x86_64

How are you running Gitea?

Building Gitea from emerge on Gentoo, running on bare metal; a SandyBridge Optiplex.
Interrupting emerge to play with the Go modules was how I was able to troubleshoot and fix this.
Gitea is launched from and managed by OpenRC.

Database

SQLite

Originally created by @mc680x0 on GitHub (Apr 13, 2024). ### Description Attempting to build Gitea 1.21 on a machine running musl 1.2.4 or 1.2.5 results in a failure in the go-sqlite3 module, with `pread64` and `pwrite64` undeclared. Per https://github.com/mattn/go-sqlite3/issues/1164 this issue has been resolved upstream as of go-sqlite3 version 1.14.19. I have verified that using `go get` and `go mod vendor` to update to go-sqlite3 version 1.14.21 manually has resulted in a rock-solid gitea instance; a simple version bump would appear to be in order for this issue. ### Gitea Version 1.21.5, 1.21.8, 1.21.10 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version 2.43.2 ### Operating System Linux, x86_64 ### How are you running Gitea? Building Gitea from `emerge` on Gentoo, running on bare metal; a SandyBridge Optiplex. Interrupting `emerge` to play with the Go modules was how I was able to troubleshoot and fix this. Gitea is launched from and managed by OpenRC. ### Database SQLite
GiteaMirror added the type/bug label 2025-11-02 10:22:32 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12839