Building bsc/bluetcl from source on darwin/arm64 machines #645
Replies: 1 comment 2 replies
-
The macos releases are built on x86_64 (amd64), so I don't know if they would work if installed on an arm64 mac. However, can you show the "try" error that you were receiving? Maybe we can debug that and get it working. Also, I don't think you need to go into the The CI yaml works on GitHub's macos13/x86_64 virtual machines. If you follow that, I would expect it to work. However, maybe the One thing you could try is to change the default C/C++ to use GCC installed from Homebrew instead of the default Clang from the OS. However, I wouldn't expect this to be necessary. (I use the default compiler on macOS 11/x86_64.) Another thing you can try is to update the Yices submodule to a newer commit. The BSC repo checks out the Yices2 repo at a specific commit, and maybe there have been updates to it for compiling on newer Macs. (But, again, I thought it was working out of the box, for people on newer Macs.) I don't have an Apple silicon Mac, and the CI only tests on x86_64. If newer Macs need something different, I can't be of much help -- hopefully someone else can comment. I build according to what the CI yaml does. The CI VM has ghcup pre-installed, and ghc/cabal is installed via that. The VM has Homebrew installed, for adding additional packages. The ones we install are given in the file
You don't need to install If one of the pre-built releases was mostly working for you, then I suggest using that, and I can help debug any Tcl issues. (Note that there are some open bugs for Tcl issues on MacOS, such as B-Lang-org/bdw#12 and #504.) If changes to the BSC repo are needed for building on newer Macs, hopefully someone can submit a PR. And it would be good to have build instructions for macOS, not just Ubuntu, though it's straightforward and follows what the CI does: install GHC using ghcup, install the cabal packages, install Homebrew and install the packages shown above (minus ccache), and run |
Beta Was this translation helpful? Give feedback.
-
Hi
I've been using linux whenever I have had to build verilog out of my bsv code. I had somehow gotten bsc up and running on my mac, i think it was one of the release versions (make release) but bluetcl somehow never worked. some of my bluetcl scripts (which work fine on linux/amd64) tell me that "try" is not a valid command. i think that this is a tcl problem, and not specific to bluespec. i believe that rebuilding the compiler after updating my tcl version (using one from activestate instead) may help solve the issue.
I've tried following the ci yaml, but i think yices2 is unable to create a makefile target for darwin. i went ahead and tried a bunch of things, looked like the gmp libraries are not visible in path, so I did this:
but the problem is not solved with this.
i want to ask if there's a certain guide to installing bsc/bluetcl on macos (arm64), something similar to the existing guide for linux would be extremely helpful. thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions