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

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

Open
3 tasks done
RockyQLuo opened this issue Sep 30, 2024 · 6 comments
Open
3 tasks done

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

RockyQLuo opened this issue Sep 30, 2024 · 6 comments
Labels

Comments

@RockyQLuo
Copy link

RockyQLuo commented Sep 30, 2024

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

@RockyQLuo RockyQLuo added the bug label Sep 30, 2024
@jerryz123
Copy link
Contributor

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

@ZechenM
Copy link

ZechenM commented Oct 10, 2024

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
Copy link

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
Copy link

haipnh commented Nov 11, 2024

@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
Copy link

haipnh commented Nov 11, 2024

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

@ZechenM
Copy link

ZechenM commented Nov 12, 2024

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants