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

PlatformValidationError(osx-arm64) #281

Closed
BeenLi opened this issue Nov 15, 2022 · 1 comment · Fixed by #282
Closed

PlatformValidationError(osx-arm64) #281

BeenLi opened this issue Nov 15, 2022 · 1 comment · Fixed by #282

Comments

@BeenLi
Copy link

BeenLi commented Nov 15, 2022

when I follow the chipyard tutorial to download conda-lock and type ./build-setup.sh riscv-tools, it reports the following error:

raise PlatformValidationError(
conda_lock.errors.PlatformValidationError: Dependencies are not locked for the current platform (osx-arm64)

@maresb
Copy link
Contributor

maresb commented Nov 15, 2022

Hi, thanks for the report!

Presumably you are running an M1 or M2 macbook. Because it uses the ARM chipset, many of the dependencies require different packages. When creating the lockfile, chipyard considered only the linux-64 platform, which corresponds to the AMD chipset. Thus conda-lock install doesn't have any way to determine which packages should be installed on your system.

To fix this, chipyard needs to rerun conda-lock with support for both linux-64 and osx-arm64 platforms. This can be done by adding a section

platforms:
- linux-64
- osx-arm64

to the environment.yml file, or by using the command-line arguments --platform=linux-64 --platform=osx-arm64.

Because the error message isn't so clear, I improved it in #282 so that it would be more explanatory. Hope this helps.

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 a pull request may close this issue.

2 participants