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

Fix build at Raspberry Pi #311

Closed
diegobernardes opened this issue Aug 17, 2019 · 2 comments
Closed

Fix build at Raspberry Pi #311

diegobernardes opened this issue Aug 17, 2019 · 2 comments

Comments

@diegobernardes
Copy link

diegobernardes commented Aug 17, 2019

I had some problems to use gorgonia with a Raspberry Pi. This are the steps that I did to solve the problem.

  1. Update the dependencies to use github.com/chewxy/math32 1.0.1.
  2. Update the mathutils files. The current asm implementation is not compatible with the ARM, so I had to skip it with noasm, but the problem is that it also skips the pure Go version as well:
go build -tags='noasm' main.go
# gorgonia.org/gorgonia
../../../gorgonia/bitmap.go:17:10: undefined: divmod
../../../gorgonia/bitmap.go:35:16: undefined: divmod
../../../gorgonia/bitmap.go:45:16: undefined: divmod
../../../gorgonia/bitmap.go:55:16: undefined: divmod
../../../gorgonia/operations.go:549:20: undefined: divmod

And if I add the tag wasm, that is used to the pure Go version, other errors happen because it's used internally at the Go runtime to build wasm.

@diegobernardes diegobernardes changed the title Fix build at Raspberry PI Fix build at Raspberry Pi Aug 17, 2019
@cpllbstr
Copy link
Contributor

Faced that error today with Jetson Nano. The solution is pretty simple. There is a error in mathutils.go there is function divmod that is declared but not implemented. You can simply delete the comment line // +build wasm in mathutils_go.go and divmod will work fine.

@bezineb5
Copy link
Contributor

bezineb5 commented Sep 7, 2019

#321 should have fixed this issue.

@cfgt cfgt closed this as completed Feb 20, 2020
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

4 participants