Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building on Arch Linux with go 1.5.3 linux/amd64 churns RAM and CPU #283

Closed
rjp opened this issue Mar 7, 2016 · 1 comment
Closed

Building on Arch Linux with go 1.5.3 linux/amd64 churns RAM and CPU #283

rjp opened this issue Mar 7, 2016 · 1 comment

Comments

@rjp
Copy link

rjp commented Mar 7, 2016

rjp> go get github.com/mattn/go-sqlite3
[2+ minutes of 100% CPU and 350MB of RAM use later]
rjp>

According to pacman, sqlite is "sqlite 3.10.2-1" and go is "go 2:1.5.3-3". Machine was idle (loadav <0.5) before and after the compilation step. Seems to be reliably reproducible.

This is the offending command -

/usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/cc1 -quiet -I /home/rjp/go/src/github.com/mattn/go-sqlite3 -I /tmp/go-build559916575/github.com/mattn/go-sqlite3/_obj/ -I . -D_REENTRANT -D SQLITE_ENABLE_RTREE -D SQLITE_THREADSAFE -D SQLITE_ENABLE_FTS3 -D SQLITE_ENABLE_FTS3_PARENTHESIS -D SQLITE_ENABLE_FTS4_UNICODE61 /home/rjp/go/src/github.com/mattn/go-sqlite3/sqlite3-binding.c -quiet -dumpbase sqlite3-binding.c -m64 -mtune=generic -march=x86-64 -auxbase-strip /tmp/go-build559916575/github.com/mattn/go-sqlite3/_obj/sqlite3-binding.o -g -O2 -std=gnu99 -fPIC -fmessage-length=0 -o /tmp/ccmbV1Dv.s

@mattn
Copy link
Owner

mattn commented Mar 8, 2016

Hmm, if you want to build eventhough build as non-static module, use go build -tag libsqlite3

gjrtimmer added a commit to gjrtimmer/go-sqlite3 that referenced this issue May 26, 2018
Compile Section Closes mattn#175
Compile Section Closes mattn#201
Compile Section Closes mattn#206
Compile Section Closes mattn#404
Compile Section Closes mattn#217
Compile Section Closes mattn#224
Compile Section Closes mattn#234
Compile Section Closes mattn#242
Feature table Closes mattn#255
Description Section Closes mattn#232
Golang:1.6 not supported Closes mattn#272
Golang:1.5 not supported + compilation section Closes mattn#283
usleep Implemented Closes mattn#285
FAQ Section Closes mattn#289
Compile Section closes mattn#295
FAQ Section Closes mattn#305
PR339 Closes mattn#318 mattn#321
Compilation Section Closes mattn#341
PR407 Closes mattn#364
Feature `sqlite_vtable` Closes mattn#393
Compile Section Closes mattn#416
sqlite_trace feature Closes mattn#433
Compilation Section Closes mattn#435
Compilation Section Closes mattn#443
Golang:1.6 Not Supported Closes mattn#445
Compilation Section Closes mattn#451
Compilation Section Closes mattn#467
Compilation Section Closes mattn#491
Compilation Section Closes mattn#495
Compilation Section Closes mattn#505
Compilation Section Closes mattn#557
Compilation Section Closes mattn#560
@mattn mattn closed this as completed in c9394b1 May 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants