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

Add support for yosys and iverilog on osx arm64 #293

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

xobs
Copy link
Contributor

@xobs xobs commented Feb 15, 2023

This adds support for building these packages on arm64 versions of macos.

Note that the biggest change is the clang compiler -- only clang 12 and clang 14 are available in conda, so I picked the latest available version.

There are several bugs in `abc` that cause it to cast `unsigned` to
`int`. The Conda version of clang doesn't like this, and generates
an error.

The default yosys build for clang adds this argument, however the
conda-eda version of the Makefile was missing it.

This fixes builds on arm64.

Signed-off-by: Sean Cross <[email protected]>
Previously, yosys on osx was using clang 4.0. However, 12.0
and 14.0 are the only versions of clang available to conda
on arm64.

Use the latest version. This is available for both x64 and arm64.

Signed-off-by: Sean Cross <[email protected]>
There are two changes that are necessary to get arm64 compatibility
working on osx:

1. The configure script needs to be regenerated, and
2. The clang version needs to be bumped.

A new configure script has been submitted for inclusion upstream.
Patch the existing one while we wait for it to get merged.

Signed-off-by: Sean Cross <[email protected]>
@xobs
Copy link
Contributor Author

xobs commented Feb 15, 2023

cc @proppy

@proppy
Copy link
Contributor

proppy commented Feb 15, 2023

@PiotrZierhoffer @ajelinski do we have some CI environment for osx/arm64?

@PiotrZierhoffer
Copy link
Contributor

@proppy
Copy link
Contributor

proppy commented Feb 17, 2023

@proppy @xobs only GitHub runners

But that's x64 right not arm64?

@xobs
Copy link
Contributor Author

xobs commented Feb 18, 2023

Yes, that's x64 not arm64.

The magical incantation to switch to arm64 is conda config --env --set subdir osx-arm64, but I suspect that won't work on the github builders since they don't build fat binaries and you can't run arm64 binaries on x64.

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

Successfully merging this pull request may close these issues.

3 participants