-
Notifications
You must be signed in to change notification settings - Fork 151
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
clashi
segfaults on macos
#2021
Comments
How did you install Clash? Did you follow the steps at https://clash-lang.org/install/macos/? |
I initially tried to follow the instructions and install Clash using stack, but I did not like the way stack handles versions of GHC and installs multiple copies of the compiler and libraries. Currently, I am using ghcup to install GHC and cabal to install Clash. Here are the commands:
I use these commands on Debian 11 and macOS 12. On Debian 11 everything works, but on macOS 12 |
Right, we stopped recommending |
Since I am only starting to experiment with macOS and Clash, I can remove my entire current installation and reinstall Clash following the instructions. I am now curious to see if this fixes the segfault problem. |
Good luck! |
Unfortunately, reinstalling Clash using stack does not fix the segfault problem. I have reinstalled Clash with the following commands:
|
Perhaps you're affected by commercialhaskell/stack#5607? |
Thank you for the link. However, it does not look like exactly the same problem (different OS version, different CPU arch, different errors). If I build clash-ghc via Looks like only |
Looks like my problem is similar to the one discussed in haskell/haskell-language-server#469 and ghc/ghc#19021. The recommended workaround (enable Here are the commands that I now use to install Clash:
|
Ah, this is something we set in Lines 25 to 27 in 9e7b9d3
|
I had the same problem. Removed everything that I installed via HomeBrew and followed the steps from @pavel-demin. Uninstalled previous installations via:
Executing it via |
The following simple test with
clashi
segfaults on macos 12:It runs without problem with
ghci
:The text was updated successfully, but these errors were encountered: