hdl / conda-eda

Conda recipes for FPGA EDA tools for simulation, synthesis, place and route and bitstream generation.
https://anaconda.org/LiteX-Hub
Apache License 2.0
95 stars 26 forks source link

Who is maintaining "Conda EDA tools packages for Aarch64? #354

Open jun1okamura opened 1 year ago

jun1okamura commented 1 year ago

Hi

CC: @proppy

I am trying to install OpenEDA/PDK into my MAC M2 on Ubuntu(aarch64) 22.04 by UTM but seems there are some missing packages.

Steps to Reproduce the Problem

make timing

...

Retrieving notices: ...working... done Collecting package metadata (repodata.json): done Solving environment: failed

ResolvePackageNotFound:

netlistsvg iverilog yosys make: *** [/home/okamura/PDK/skywater-pdk/third_party/make-env/conda.mk:145: /home/okamura/PDK/skywater-pdk/env/conda/envs/skywater-pdk-scripts/bin/python] Error 1

Specifications

Version:

Platform:

Ubuntu (Aarch64) 22.04 on MAC M2 by UTM (Version 4.2.5)

proppy commented 1 year ago

Can you confirm if you're trying to install on MacOSX on Ubuntu?

I think @xobs packaged a few dependencies for MacOSX natively.

jun1okamura commented 1 year ago

Thanks, and do you mean below?

https://github.com/xobs/conda-eda

proppy commented 1 year ago

@jun1okamura I mean that @xobs contributed the MacOSX arm package to https://github.com/hdl/conda-eda/, see https://github.com/hdl/conda-eda/pulls?q=is%3Apr+author%3Axobs+

so we should be able to discuss with him what was covered by his recent work.

jun1okamura commented 1 year ago

Hi @proppy,

I think MacOSX native is fine for me, but Ubuntu on UTM can completely separate its environment. Welcome to discuss it and I would like to contribute somehow if possible.

xobs commented 1 year ago

I did manage to get it to build locally, and had a native end-to-end flow going. The only trick was that there was a bug in openroad where the environment was getting reinitialised, but I believe that's solved in the latest version.

The problem I ran into was that I couldn't figure out how to cross-compile it, and there weren't any arm64 builders available for free. One potential solution is to move to conda-forge which appears to have the machinery in place to cross-compile, but that hasn't been done yet.

jun1okamura commented 1 year ago

@xobs I'm sorry for not getting back to you sooner and thank you for sharing it. Can I confirm that the most reasonable way to use the arm64 platform is by building a native environment on my Mac or Ubuntu using the openroad source?

xobs commented 1 year ago

I believe the "official" way is to run the Ubuntu images via Docker. But as I've had a lot of trouble with Docker in the past, my preference is to run things natively.

jun1okamura commented 1 year ago

@xobs Finally, I figured out how your repo works, built "conda-eda" Aarch64 Linux packages for my Ubuntu on Mac M2 by UTM, and uploaded them into my Anaconda account. Thank you for your advice. Jun

jun1okamura commented 1 year ago

@xobs

I had trouble building some of the modules, such as Klayout, netgen, xschem, and magic... as the following. It seems to me related to 'Jinja2' and 'cdt'. Appreciate it if you could let me know any advice. Jun


Screenshot 2023-09-25 at 14 51 23
jun1okamura commented 1 year ago

Finally, I got a proper way to build Klayout on Aarch64 for my M2 MAC. Thanks!

Screenshot 2023-10-04 at 10 30 07