Issue setting up riscv-tools

5 views
Skip to first unread message

Omar Shah

unread,
Dec 1, 2025, 4:20:19 PM (2 days ago) Dec 1
to Chipyard
Hi, I get the following error when I try to set up Chipyard on my local machine with riscv-tools:
Using lockfile for conda: C:/Users/omars/Documents/CS5560/chipyard/conda-reqs/conda-lock-reqs/conda-requirements-riscv-tools-linux-64.conda-lock.yml
Storing main conda environment in C:/Users/omars/Documents/CS5560/chipyard/.conda-env
Traceback (most recent call last):
  File "C:\Users\omars\Documents\CS5560\chipyard\.conda-lock-env\Scripts\conda-lock-script.py", line 9, in <module>
    sys.exit(main())
             ~~~~^^
  File "C:\Users\omars\Documents\CS5560\chipyard\.conda-lock-env\Lib\site-packages\click\core.py", line 1485, in __call__
    return self.main(*args, **kwargs)
           ~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "C:\Users\omars\Documents\CS5560\chipyard\.conda-lock-env\Lib\site-packages\click\core.py", line 1406, in main
    rv = self.invoke(ctx)
  File "C:\Users\omars\Documents\CS5560\chipyard\.conda-lock-env\Lib\site-packages\click\core.py", line 1873, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "C:\Users\omars\Documents\CS5560\chipyard\.conda-lock-env\Lib\site-packages\click\core.py", line 1269, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\omars\Documents\CS5560\chipyard\.conda-lock-env\Lib\site-packages\click\core.py", line 824, in invoke
    return callback(*args, **kwargs)
  File "C:\Users\omars\Documents\CS5560\chipyard\.conda-lock-env\Lib\site-packages\click\decorators.py", line 34, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "C:\Users\omars\Documents\CS5560\chipyard\.conda-lock-env\Lib\site-packages\conda_lock\conda_lock.py", line 1498, in click_install
    install(
    ~~~~~~~^
        conda=conda,
        ^^^^^^^^^^^^
    ...<10 lines>...
        extras=extras,
        ^^^^^^^^^^^^^^
    )
    ^
  File "C:\Users\omars\Documents\CS5560\chipyard\.conda-lock-env\Lib\site-packages\conda_lock\conda_lock.py", line 1545, in install
    with _render_lockfile_for_install(
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        lock_file, include_dev_dependencies=dev, extras=set(extras)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ) as lockfile:
    ^
  File "C:\Users\omars\Documents\CS5560\chipyard\.conda-lock-env\Lib\contextlib.py", line 141, in __enter__
    return next(self.gen)
  File "C:\Users\omars\Documents\CS5560\chipyard\.conda-lock-env\Lib\site-packages\conda_lock\conda_lock.py", line 999, in _render_lockfile_for_install
    raise PlatformValidationError(
    ...<8 lines>...
    )
conda_lock.errors.PlatformValidationError: The lockfile C:\Users\omars\Documents\CS5560\chipyard\conda-reqs\conda-lock-reqs\conda-requirements-riscv-tools-linux-64.conda-lock.yml does not contain a solution for the current platform win-64. The lockfile only contains solutions for the following platforms: linux-64. In order to add support for win-64, you must regenerate the lockfile. Either add the following section to your environment.yml:

platforms:
- win-64
- linux-64

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

--platform=win-64 --platform=linux-64


build-setup.sh: Build script failed with exit code 1 at step 1: Conda environment setup

I am not sure how to resolve this issue.
Reply all
Reply to author
Forward
0 new messages