mattn / mattn/go-sqlite3

x86编译问题

Open
#1,235 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
9.2k
Forks
1.2k
Avg merge
19m
Merged PRs (30d)
4

Description

vscode
{
"type": "go",
"label": "go: build x86 Windows",
"command": "build",
"args": [
"-ldflags",
"-H=windows -s -w",
"-o",
"dist/juice_x86.exe",
"-tags",
"windows cgo",
"-v",
"-mod=mod"
],
"problemMatcher": [
"$go"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "生成 x86 位 Windows 可执行文件",
"options": {
"env": {
"GO111MODULE": "on",
"GOARCH": "386"
}
}
},

返回结果
github.com/mattn/go-sqlite3

github.com/mattn/go-sqlite3

E:\code\gos\pkg\mod\github.com\mattn\go-sqlite3@v1.14.22\sqlite3_opt_preupdate.go:15:16: undefined: SQLiteConn
E:\code\gos\pkg\mod\github.com\mattn\go-sqlite3@v1.14.22\sqlite3_go18.go:18:10: undefined: SQLiteConn
E:\code\gos\pkg\mod\github.com\mattn\go-sqlite3@v1.14.22\sqlite3_go18.go:27:10: undefined: SQLiteConn
E:\code\gos\pkg\mod\github.com\mattn\go-sqlite3@v1.14.22\sqlite3_go18.go:32:10: undefined: SQLiteConn
E:\code\gos\pkg\mod\github.com\mattn\go-sqlite3@v1.14.22\sqlite3_go18.go:37:10: undefined: SQLiteConn
E:\code\gos\pkg\mod\github.com\mattn\go-sqlite3@v1.14.22\sqlite3_go18.go:42:10: undefined: SQLiteConn
E:\code\gos\pkg\mod\github.com\mattn\go-sqlite3@v1.14.22\sqlite3_go18.go:47:10: undefined: SQLiteStmt
E:\code\gos\pkg\mod\github.com\mattn\go-sqlite3@v1.14.22\sqlite3_go18.go:52:10: undefined: SQLiteStmt
E:\code\gos\pkg\mod\github.com\mattn\go-sqlite3@v1.14.22\sqlite3_opt_preupdate_omit.go:20:10: undefined: SQLiteConn

  • 终端进程“E:\code\Go\bin\go.exe 'build', '-ldflags', '-H=windows -s -w', '-o', 'dist/juice_x86.exe', '-tags', 'windows cgo', '-v', '-mod=mod'”已终止,退出代码: 1。

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the VS Code Go build command and the reported files sqlite3_opt_preupdate.go, sqlite3_go18.go, and sqlite3_opt_preupdate_omit.go in the v1.14.22 module. Reproduce the GOARCH=386 Windows build with the windows and cgo tags, then determine whether the missing SQLiteConn and SQLiteStmt definitions are caused by the project or the build environment; done means the x86 executable builds successfully or the required limitation is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, sqlite
Domain
build-system, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.