hhatto / gocloc

A little fast cloc(Count Lines Of Code)
MIT License
792 stars 79 forks source link

Unable to build gocloc on raspberry pi #25

Open mikemadden42 opened 5 years ago

mikemadden42 commented 5 years ago

I'm hitting this issue building gocloc on a raspberry pi.

$ uname -sr
Linux 4.19.55-Re4son-v8+

$ go version
go version go1.12.9 linux/arm64

$ GO111MODULE=on go get -u -ldflags "-s -w" github.com/hhatto/gocloc/cmd/gocloc
go: finding github.com/hhatto/gocloc/cmd/gocloc latest
go: finding github.com/hhatto/gocloc/cmd latest
go: finding gopkg.in/check.v1 latest
go build github.com/src-d/enry/v2/data: /usr/lib/go-1.12/pkg/tool/linux_arm64/compile: signal: killed
hhatto commented 5 years ago

What is model RaspberryPi? (Zero? 3B+? 4B? etc...)

Is there enough memory resource? Want to run on Raspi? If so, should you try cross-compiling?

mikemadden42 commented 5 years ago

Hi, here's the model:

Machine model: Raspberry Pi 3 Model B Plus Rev 1.3

$ free -m
              total        used        free      shared  buff/cache   available
Mem:            917         106          47           0         764         796
Swap:             0           0           0