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

Killed:9 while trying to run GHDL Yosys plugin on darwin-arm64 #121

Open
consanii opened this issue Aug 29, 2024 · 5 comments
Open

Killed:9 while trying to run GHDL Yosys plugin on darwin-arm64 #121

consanii opened this issue Aug 29, 2024 · 5 comments

Comments

@consanii
Copy link

Pretty much as description.

I have fresh darwin-arm64 binaries from the release page (version 2024-08-29), and I have also run the ./activate script to remove the quarantine flags. I source the environment as described on the readme with source path/to/oss-cad-suite/environment.fish on my fish shell and as soon as I try to run the Yosys GHDL plugin (with something like yosys -m ghdl) the process gets immediately killed.

If I use the darwin-x64 binaries everything works as expected.

My system is running on a Apple M1 Pro, on MacOS 14.6.1 .

@ChristianJacobsen
Copy link
Contributor

That's odd.

I can source both the environment and the environment.fish scripts from ZSH and Fish respectively. As far as I know I don't have any lingering ghdl modules stored anywhere on my machine from trying to configure this stack manually the first time.

Can you try yosys -g -m ghdl? Maybe there is some debug logging that could pinpoint this better. Alternatively could you try to open just yosys, and then - inside its shell - manually loading the plugin with plugin -i ghdl?

I'm just pulling these suggestions of out nowhere, btw. I'm about as "fresh" to this as it gets, but I did add the GHDL support for darwin-arm64 - so I feel somewhat responsible.

@consanii
Copy link
Author

consanii commented Sep 2, 2024

Hey, thanks for the reply.
I tried both commands, here is the result:

(OSS CAD Suite) ~/D/oss-cad-suite ❱ yosys -g -m ghdl

 /----------------------------------------------------------------------------\
 |  yosys -- Yosys Open SYnthesis Suite                                       |
 |  Copyright (C) 2012 - 2024  Claire Xenia Wolf <[email protected]>         |
 |  Distributed under an ISC-like license, type "license" to see terms        |
 \----------------------------------------------------------------------------/
 Yosys 0.44+60 (git sha1 0fc5812dc, aarch64-apple-darwin21.4-clang++ 14.0.0-1ubuntu1.1 -fPIC -O3)
fish: Job 1, 'yosys -g -m ghdl' terminated by signal SIGKILL (Forced quit)
(OSS CAD Suite) ~/D/oss-cad-suite 1.5s | 137 ❱ yosys

 /----------------------------------------------------------------------------\
 |  yosys -- Yosys Open SYnthesis Suite                                       |
 |  Copyright (C) 2012 - 2024  Claire Xenia Wolf <[email protected]>         |
 |  Distributed under an ISC-like license, type "license" to see terms        |
 \----------------------------------------------------------------------------/
 Yosys 0.44+60 (git sha1 0fc5812dc, aarch64-apple-darwin21.4-clang++ 14.0.0-1ubuntu1.1 -fPIC -O3)

yosys> plugin -i ghdl
fish: Job 1, 'yosys' terminated by signal SIGKILL (Forced quit)
(OSS CAD Suite) ~/D/oss-cad-suite 2.4s | 137 ❱ 

@jtmaston
Copy link

jtmaston commented Sep 3, 2024

Hi, chiming in with the same issue, M1 iMac, MacOS 14.6.1, Yosys 0.44+71.
Any luck getting it running?
Cheers!

@jtmaston
Copy link

jtmaston commented Sep 3, 2024

Hah! Found my issue. Apparently it was a signature caching issue, even though I ran the activate script.
For me, the fix was navigating to the oss-cad-suite/lib/ dir, the re-signing libghdl-5_0_0_dev.dylib, by running codesign --sign - --force --preserve-metadata=entitlements,requirements,flags,runtime libghdl-5_0_0_dev.dylib. All works fine after this.

I had yosys installed via Homebrew before, so it might have borked something in the signature caching inside MacOS.
Hope this helps you also!

@consanii
Copy link
Author

consanii commented Sep 4, 2024

Nice catch @jtmaston, your solution fixed the problem for me as well!

For context, I have not installed yosys from Homebrew, but I do have multiple versions of the oss-cad-suite for darwin-x64. It's possible this is causing some interference.

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

3 participants