Running Chipyard on MacBook M1

363 views
Skip to first unread message

Yahya Hefnawi

unread,
Sep 27, 2023, 6:48:14 PM9/27/23
to Chipyard
Hello, 

I have been struggling to run Chipyard on the MacBook M1 chip as it gives me a platform error, and on the other hand when I emulated the x86 on Mac it was too too slow, any one that has a convenient solution for MacBooks with apple silicon?

Jerry Zhao

unread,
Sep 27, 2023, 7:13:02 PM9/27/23
to chip...@googlegroups.com
What platform error are you seeing? 

On Wed, Sep 27, 2023 at 3:48 PM Yahya Hefnawi <yahyahef...@gmail.com> wrote:
Hello, 

I have been struggling to run Chipyard on the MacBook M1 chip as it gives me a platform error, and on the other hand when I emulated the x86 on Mac it was too too slow, any one that has a convenient solution for MacBooks with apple silicon?

--
You received this message because you are subscribed to the Google Groups "Chipyard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chipyard+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chipyard/58bc9e3b-f2fd-43e9-a6d8-866724069edbn%40googlegroups.com.

Yahya Hefnawi

unread,
Sep 27, 2023, 7:16:53 PM9/27/23
to chip...@googlegroups.com
(base) yahya2801@virtual:~/chipyard$ ./build-setup.sh riscv-tools
/home/yahya2801/miniforge3/lib/python3.10/site-packages/pydantic/_internal/_config.py:317: UserWarning: Valid config keys have changed in V2:
* 'allow_mutation' has been removed
  warnings.warn(message, UserWarning)
Traceback (most recent call last):
  File "/home/yahya2801/miniforge3/bin/conda-lock", line 10, in <module>
    sys.exit(main())
  File "/home/yahya2801/miniforge3/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/home/yahya2801/miniforge3/lib/python3.10/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/home/yahya2801/miniforge3/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/yahya2801/miniforge3/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/yahya2801/miniforge3/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/home/yahya2801/miniforge3/lib/python3.10/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/yahya2801/miniforge3/lib/python3.10/site-packages/conda_lock/conda_lock.py", line 1455, in install
    with _render_lockfile_for_install(
  File "/home/yahya2801/miniforge3/lib/python3.10/contextlib.py", line 135, in __enter__
    return next(self.gen)
  File "/home/yahya2801/miniforge3/lib/python3.10/site-packages/conda_lock/conda_lock.py", line 1000, in _render_lockfile_for_install
    raise PlatformValidationError(
conda_lock.errors.PlatformValidationError: The lockfile /home/yahya2801/chipyard/conda-reqs/conda-lock-reqs/conda-requirements-riscv-tools-linux-64.conda-lock.yml does not contain a solution for the current platform linux-aarch64. The lockfile only contains solutions for the following platforms: linux-64. In order to add support for linux-aarch64, you must regenerate the lockfile. Either add the following section to your environment.yml:

platforms:
- linux-aarch64
- linux-64

or add the following arguments to the conda-lock command:

--platform=linux-aarch64 --platform=linux-64
Sent from my iPhone

On 28. Sep 2023, at 01:13, Jerry Zhao <J...@berkeley.edu> wrote:


You received this message because you are subscribed to a topic in the Google Groups "Chipyard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/chipyard/D_p6UFxuqss/unsubscribe.
To unsubscribe from this group and all its topics, send an email to chipyard+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chipyard/CAC%2BpDSG9RurknLuXs1R30fjMzzMM5KconNLti74aDGuK7Vj5mA%40mail.gmail.com.

Jerry Zhao

unread,
Sep 27, 2023, 10:04:45 PM9/27/23
to chip...@googlegroups.com
Yeah, it looks like we don't have out-of-the-box conda support for aarch64.
You can try to bring up the conda-environment for aarch64, but I suspect this path is not painless.

The supported options currently are either Linux, or Windows with WSL.

-Jerry

Yahya Hefnawi

unread,
Sep 28, 2023, 7:01:29 AM9/28/23
to chip...@googlegroups.com
Okay thanks alot, but what you suggest, should I try to use a complete different laptop or is it possible to set some virtual machine or something. 
Kind regards,
Yahya Hefnawi

On 28. Sep 2023, at 04:04, Jerry Zhao <J...@berkeley.edu> wrote:



Jerry Zhao

unread,
Sep 28, 2023, 12:47:23 PM9/28/23
to chip...@googlegroups.com
Any linux-x86 or Windows-x86 environment should work, whether that is a personal laptop, desktop, shared workstation, or cloud instance.

-Jerry

Reply all
Reply to author
Forward
0 new messages