-
-
Notifications
You must be signed in to change notification settings - Fork 172
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
SIGILL: illegal instruction #96
Comments
I have the same problem here. |
build in docker, debian. same problem here. |
Here it worked for me to change the following line in the file.go file:: // #cgo CXXFLAGS: -std=c++1z -Wall -O3 -DNDEBUG -march=native to: // #cgo CXXFLAGS: -std=c++1z -Wall -O3 -DNDEBUG -march=x86-64 -mtune=generic |
@leandroveronezi do you know if it's possible to pass these flags from the command line? When I try |
By command I think it is not possible. The flag is defined in the face.go file. See this link to my local change. |
I'm having an issue where when build the binary inside a docker container and then try to run it on another machine I get
SIGILL: illegal instruction
. If I build and run it on the same machine then it works fine. I'm thinking it may be due to differing CPU capabilities. It's being built on a system with an AMD processor and it's being run on a system with an Intel processor.I've tried building with
CGO_CXXFLAGS="-std=c++1z -Wall -DNDEBUG -march=x86-64 -mtune=generic"
but it doesn't seem to help.Any ideas on how I can get the binary to run on any x86_64 machine?
The text was updated successfully, but these errors were encountered: