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

importing firmata causes a signal: killed on macOS #401

Closed
matipan opened this issue Apr 1, 2017 · 3 comments
Closed

importing firmata causes a signal: killed on macOS #401

matipan opened this issue Apr 1, 2017 · 3 comments

Comments

@matipan
Copy link

matipan commented Apr 1, 2017

Hi there, I have an issue that appeared a few days ago. The import gobot.io/x/gobot/platforms/firmata causes a signal: killed when trying to run a simple program.

This is how I verified it was that import:

package main

import (
	"log"

	_ "gobot.io/x/gobot"
	_ "gobot.io/x/gobot/drivers/gpio"
	_ "gobot.io/x/gobot/platforms/firmata"
)

func main() {
	log.Println("hello")
}

When you do a go run main.go to that file, it prints a signal: killed
Now, if we run this program:

package main

import (
	"log"

	_ "gobot.io/x/gobot"
	_ "gobot.io/x/gobot/drivers/gpio"
	// _ "gobot.io/x/gobot/platforms/firmata"
)

func main() {
	log.Println("hello")
}

It logs as I expected hello.

So there seems to be an issue with the firmata import. Any idea what it could be?

go version:go version go1.8 darwin/amd64
I'm on macOS

@deadprogram
Copy link
Member

Hmm, @matipan only thing I could find on this error is https://forum.golangbridge.org/t/go-build-exits-with-signal-killed/513

@deadprogram
Copy link
Member

OK seems like an open issue possibly golang/go#19734

@matipan
Copy link
Author

matipan commented Apr 2, 2017

Ok, thanks for pointing out that issue. It seems to be a problem with Xcode 8.3. I checked the update logs and the day this started to happen is the day Xcode got updated.

So, for anybody that reads this issue, a quick workaround is to build the program using the -ldflags and -s flags. There seems to be with an issue with how the linker in Darwin invokes dsymutil. The -s flag disables that invocation.

Another workaround is going back to Xcode 8.2

According to what is being discussed they will try to have it fix for go 1.8.1, but there are no guarantees.

As always, thanks for the quick response @deadprogram!

@matipan matipan closed this as completed Apr 2, 2017
@matipan matipan changed the title importing firmata causes a signal: killed importing firmata causes a signal: killed on macOS Apr 2, 2017
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

2 participants