ucb-bar / chipyard

An Agile RISC-V SoC Design Framework with in-order cores, out-of-order cores, accelerators, and more
https://chipyard.readthedocs.io/en/stable/
BSD 3-Clause "New" or "Revised" License
1.66k stars 656 forks source link

./build-setup.sh riscv-tools error #2065

Open RockyQLuo opened 1 month ago

RockyQLuo commented 1 month ago

Background Work

Chipyard Version and Hash

Release: 1.5.0 Hash: a6a6a6

OS Setup

Ex: Output of uname -a + lsb_release -a + printenv + conda list centos 7.9 conda:24.7.1

Other Setup

Ex: Prior steps taken / Documentation Followed / etc...

Current Behavior

during ./build-setup.sh riscv-tools step1:initializing Conda environment I got error like this how can I solve it?

Expected Behavior

d

Other Information

To activate this environment, use INFO:root:# INFO:root:# $ conda activate /home/ICer/work_space/chipyard/.conda-env INFO:root:# INFO:root:# To deactivate an active environment, use INFO:root:# INFO:root:# $ conda deactivate INFO:root: ERROR:root:ERROR: bcrypt-4.2.0-cp39-abi3-manylinux_2_28_x86_64.whl is not a supported wheel on this platform. ERROR:root: ERROR:root:ERROR conda.cli.main_run:execute(125): conda run pip install --no-deps -r /tmp/tmp6ydxfff5 failed. (See above for error) Traceback (most recent call last): File "/home/ICer/work_space/chipyard/.conda-lock-env/bin/conda-lock", line 10, in sys.exit(main()) ^^^^^^ File "/home/ICer/work_space/chipyard/.conda-lock-env/lib/python3.12/site-packages/click/core.py", line 1157, in call return self.main(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ICer/work_space/chipyard/.conda-lock-env/lib/python3.12/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "/home/ICer/work_space/chipyard/.conda-lock-env/lib/python3.12/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ICer/work_space/chipyard/.conda-lock-env/lib/python3.12/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ICer/work_space/chipyard/.conda-lock-env/lib/python3.12/site-packages/click/core.py", line 783, in invoke return __callback(args, *kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ICer/work_space/chipyard/.conda-lock-env/lib/python3.12/site-packages/click/decorators.py", line 33, in new_func return f(get_current_context(), args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ICer/work_space/chipyard/.conda-lock-env/lib/python3.12/site-package

jerryz123 commented 1 month ago

Centos 7.9 is EOL now. I suspect the error has to do with that

ZechenM commented 1 month ago

INFO:root:Downloading and Extracting Packages: ...working... done INFO:root:Preparing transaction: ...working... done INFO:root:Verifying transaction: ...working... done INFO:root:Executing transaction: ...working... INFO:root: INFO:root:done INFO:root:# INFO:root:# To activate this environment, use INFO:root:# INFO:root:# $ conda activate /home/zma/chipyard/.conda-env INFO:root:# INFO:root:# To deactivate an active environment, use INFO:root:# INFO:root:# $ conda deactivate INFO:root: ERROR:root:ERROR: numpy-1.26.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl is not a supported wheel on this platform. ERROR:root: ERROR:root:ERROR conda.cli.main_run:execute(125): conda run pip install --no-deps -r /tmp/tmp3js88mji failed. (See above for error) INFO:root:Defaulting to user installation because normal site-packages is not writeable INFO:root:Collecting bcrypt@ https://files.pythonhosted.org/packages/3e/d0/31938bb697600a04864246acde4918c4190a938f891fd11883eaaf41327a/bcrypt-4.2.0-cp39-abi3-manylinux_2_28_x86_64.whl#sha256=3d3a6d28cb2305b43feac298774b997e372e56c7c7afd90a12b3dc49b189151c (from -r /tmp/tmp3js88mji (line 1)) INFO:root: Using cached bcrypt-4.2.0-cp39-abi3-manylinux_2_28_x86_64.whl (273 kB) INFO:root:Collecting mock@ https://files.pythonhosted.org/packages/6b/20/471f41173930550f279ccb65596a5ac19b9ac974a8d93679bcd3e0c31498/mock-5.1.0-py3-none-any.whl#sha256=18c694e5ae8a208cdb3d2c20a993ca1a7b0efa258c247a1e565150f477f83744 (from -r /tmp/tmp3js88mji (line 3)) INFO:root: Using cached mock-5.1.0-py3-none-any.whl (30 kB) INFO:root: Traceback (most recent call last): File "/home/zma/chipyard/.conda-lock-env/bin/conda-lock", line 10, in sys.exit(main()) ^^^^^^ File "/home/zma/chipyard/.conda-lock-env/lib/python3.12/site-packages/click/core.py", line 1157, in call return self.main(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/zma/chipyard/.conda-lock-env/lib/python3.12/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "/home/zma/chipyard/.conda-lock-env/lib/python3.12/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/zma/chipyard/.conda-lock-env/lib/python3.12/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/zma/chipyard/.conda-lock-env/lib/python3.12/site-packages/click/core.py", line 783, in invoke return __callback(args, *kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/zma/chipyard/.conda-lock-env/lib/python3.12/site-packages/click/decorators.py", line 33, in new_func return f(get_current_context(), args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/zma/chipyard/.conda-lock-env/lib/python3.12/site-packages/conda_lock/conda_lock.py", line 1498, in click_install install( File "/home/zma/chipyard/.conda-lock-env/lib/python3.12/site-packages/conda_lock/conda_lock.py", line 1552, in install install_func(file=lockfile) File "/home/zma/chipyard/.conda-lock-env/lib/python3.12/site-packages/conda_lock/conda_lock.py", line 240, in do_conda_install _conda(["run"], ["pip", "install", "--no-deps", "-r", str(requirements_path)]) File "/home/zma/chipyard/.conda-lock-env/lib/python3.12/site-packages/conda_lock/invoke_conda.py", line 143, in _invoke_conda raise subprocess.CalledProcessError( conda_lock._vendor.poetry.utils._compat.CalledProcessError: Command '['/home/zma/miniforge3/bin/conda', 'run', '--prefix', '.conda-env', 'pip', 'install', '--no-deps', '-r', '/tmp/tmp3js88mji']' returned non-zero exit status 1. build-setup.sh: Build script failed with exit code 1 at step 1: Conda environment setup

I am getting a similar error. I am running on Linux tiger 5.15.0-100-generic #110~20.04.1-Ubuntu SMP Tue Feb 13 14:25:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Distributor ID: Ubuntu Description: Ubuntu 20.04.6 LTS Release: 20.04 Codename: focal

Any idea why there would be that error? Thanks!

suhwanhong999 commented 2 weeks ago

Have you tried with conda-lock version 1.4.0? Seems that a newer version of conda-lock causes problems for me when running ./build-setup.sh

haipnh commented 1 week ago

@suhwanhong999 I followed Initial-Repo-Setup and installed conda-lock version 1.4.0, but the error occurred same as @ZechenM 's. My machine is also on Ubuntu 20.04.

haipnh commented 1 week ago

@ZechenM May you try deactivating base conda, then add conda/bin path to your $PATH? It worked on my machine.

ZechenM commented 1 week ago

@suhwanhong999 @haipnh thank you both for your inputs! I ended up using an older version of firesim (1.17.1), which sets up my project successfully