gopsutil
gopsutil copied to clipboard
Missing support for riscv64 FreeBSD
The package is missing support code for riscv64 FreeBSD. Please add such code:
# github.com/shirou/gopsutil/disk
vendor/github.com/shirou/gopsutil/disk/disk_freebsd.go:108:39: undefined: sizeOfDevstat
vendor/github.com/shirou/gopsutil/disk/disk_freebsd.go:113:14: undefined: sizeOfDevstat
vendor/github.com/shirou/gopsutil/disk/disk_freebsd.go:126:29: undefined: DEVSTAT_READ
vendor/github.com/shirou/gopsutil/disk/disk_freebsd.go:127:29: undefined: DEVSTAT_WRITE
vendor/github.com/shirou/gopsutil/disk/disk_freebsd.go:128:24: undefined: DEVSTAT_READ
vendor/github.com/shirou/gopsutil/disk/disk_freebsd.go:129:24: undefined: DEVSTAT_WRITE
vendor/github.com/shirou/gopsutil/disk/disk_freebsd.go:130:34: undefined: DEVSTAT_READ
vendor/github.com/shirou/gopsutil/disk/disk_freebsd.go:131:34: undefined: DEVSTAT_WRITE
vendor/github.com/shirou/gopsutil/disk/disk_freebsd.go:141:9: undefined: Bintime
vendor/github.com/shirou/gopsutil/disk/disk_freebsd.go:148:32: undefined: Devstat
vendor/github.com/shirou/gopsutil/disk/disk_freebsd.go:131:34: too many errors
If you have a riscv64 FreeBSD host with a Go compiler, please run mktypes.sh and open a merge request with the generated files.
The script doesn't run when executed on a freshly cloned checkout.
$ sh mktypes.sh
/home/fuz/src/gopsutil/host/types_freebsd.go:15:10: fatal error: 'freebsd_headers/utxdb.h' file not found
#include "freebsd_headers/utxdb.h"
^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
cd: v3: No such file or directory
Thanks for trying, if you apply the following patch, is the script now running properly? issue1425.diff.txt
Nope, no difference. A v3 directory doesn't exist either.
$ CFLAGS=-I./home/fuz/src/gopsutil/host sh mktypes.sh
/home/fuz/src/gopsutil/host/types_freebsd.go:15:10: fatal error: 'utxdb.h' file not found
#include "utxdb.h"
^~~~~~~~~
1 error generated.
cd: v3: No such file or directory