ergo: Compilation to arm fails
Describe the bug Compiling to ARM does not work
To Reproduce
$ GOARCH=arm go build
Expected behavior Compilation works fine
Actual behaviour This error is displayed:
# github.com/ergo-services/ergo/lib/osdep
../../go/pkg/mod/github.com/ergo-services/ergo@v1.999.210/lib/osdep/linux.go:15:11: invalid operation: usage.Utime.Sec * 1000000000 + usage.Utime.Nano() (mismatched types int32 and int64)
../../go/pkg/mod/github.com/ergo-services/ergo@v1.999.210/lib/osdep/linux.go:16:11: invalid operation: usage.Stime.Sec * 1000000000 + usage.Stime.Nano() (mismatched types int32 and int64)
# github.com/ergo-services/ergo/lib
../../go/pkg/mod/github.com/ergo-services/ergo@v1.999.210/lib/tools.go:166:11: cannot use 4294967000 (untyped int constant) as int value in assignment (overflows)
Environment (please complete the following information):
- Arch: arm
- OS: Linux
- Framework Version [v1.999.210]
- Number of CPU or (GOMAXPROCS not set)
Additional context
Removing GOARCH
fixes it however I need to run few services on ARM
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 26
Sure I will try it out. However I’m OOO currently and will be able to check it early next week.
To be specific, I have tested it on aarch64 and all tests passed. I will try to find the same hardware. It’s a bit difficult to resolve it with no access to the similar environment.
On Fri, Apr 22, 2022, 10:32 Szymon Wygnański @.***> wrote: