Trying to cross-compile metricbeat 6.4.0 for FreeBSD 11.1-amd64 via Debian-9.5.0-amd64, yet stuck at gosigar vomitting:
github.com/elastic/beats/vendor/github.com/elastic/gosigar
../vendor/github.com/elastic/gosigar/concrete_sigar.go:67:10: p.Get undefined (type HugeTLBPages has no field or method Get)
../vendor/github.com/elastic/gosigar/concrete_sigar.go:79:11: fd.Get undefined (type FDUsage has no field or method Get)
../vendor/github.com/elastic/gosigar/sigar_linux_common.go:95:4: undefined: parseCpuStat
../vendor/github.com/elastic/gosigar/sigar_linux_common.go:113:4: undefined: parseCpuStat
../vendor/github.com/elastic/gosigar/sigar_linux_common.go:131:18: undefined: getMountTableFileName
The steps being followed:
#wget https://dl.google.com/go/go1.11.linux-amd64.tar.gz
#tar -C /usr/local -xzf go1.11.linux-amd64.tar.gz
#export PATH=$PATH:/usr/local/go/bin
#apt-get install git gcc
#go get github.com/elastic/beats
#cd ~/go/src/github.com/elastic/beats/metricbeat
#git checkout "v6.4.0"
#go get github.com/elastic/gosigar
#GOARCH=amd64 GOOS=freebsd go build
What is missing ?
