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 errors in chipyard flow #3663

Closed
gituserdeepika opened this issue Aug 6, 2024 · 4 comments
Closed

./build-setup.sh errors in chipyard flow #3663

gituserdeepika opened this issue Aug 6, 2024 · 4 comments

Comments

@gituserdeepika
Copy link

For building chipyard based rocket-chip, I followed the instructions from https://chipyard.readthedocs.io/en/latest/Chipyard-Basics/Initial-Repo-Setup.html#initial-repository-setup.

Installed Conda with the following steps:
curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
bash Miniforge3-$(uname)-$(uname -m).sh

conda install -n base conda-libmamba-solver
conda config --set solver libmamba
conda activate base

Cloned repo succesfully with the following steps:
git clone https://github.com/ucb-bar/chipyard.git
cd chipyard

But the ./build-setup.sh riscv-tools command gives following error. Please clarify.

**
Downloading and Extracting Packages: ...working... done
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
To activate this environment, use
$ conda activate /home/dgangana/rocketchip/chipyard/.conda-lock-env
To deactivate an active environment, use
$ conda deactivate

Channels:

conda-forge
Platform: linux-64
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... failed
LibMambaUnsatisfiableError: Encountered problems while solving:

package conda-lock-2.5.7-pyhd8ed1ab_0 requires urllib3 >=1.26.5,<2.0, but none of the providers can be installed
Could not solve for environment specs
The following packages are incompatible
├─ conda-lock 2.5.7** is installable and it requires
│ └─ urllib3 >=1.26.5,<2.0 , which can be installed;
└─ urllib3 2.2.1.* is not installable because it conflicts with any installable versions previously reported.

build-setup.sh: Build script failed with exit code 1 at step 1: Conda environment setup
(base) dgangana@Eva:~/rocketchip/chipyard$

@abejgonzalez
Copy link
Contributor

ucb-bar/chipyard#1970 might have fixed this issue. I would try on a newer version of Chipyard.

@gituserdeepika
Copy link
Author

I was able to resolve the urllib3 issue by updating to the correct version with the below command.
conda install -c conda-forge urllib3=1.26.7

And I am on the latest version of chipyard as shown below.
(base) dgangana@Eva:~/rocketchip/chipyard$ git pull origin main
From https://github.com/ucb-bar/chipyard

  • branch main -> FETCH_HEAD
    Already up to date.

However I still see the following error with the './build-setup.sh riscv-tools' command. Please clarify.

build-setup.sh error
========== BEGINNING STEP 9: Pre-compiling FireMarshal buildroot sources ==========
To check on progress, either call marshal with '-v' or see the live output at:
/home/dgangana/rocketchip/chipyard/software/firemarshal/logs/br-base-build-2024-08-06--01-19-09-Q5LANAMRF3HFTNIF.log
. /home/dgangana/rocketchip/chipyard/software/firemarshal/boards/firechip/base-workloads/br-base/host-init.sh
. /home/dgangana/rocketchip/chipyard/software/firemarshal/images/firechip/br.7251/br.7251.img
Attempting to download cached image: https://raw.githubusercontent.com/firesim/firemarshal-public-br-images/main/images/firechip/br.7251/br.7251.img.zip
Unzipping cached image: /home/dgangana/rocketchip/chipyard/software/firemarshal/boards/firechip/distros/br/br.7251.img.zip
Skipping full buildroot build. Using cached image /home/dgangana/rocketchip/chipyard/software/firemarshal/images/firechip/br.7251/br.7251.img from /home/dgangana/rocketchip/chipyard/software/firemarshal/boards/firechip/distros/br/br.7251.img.zip
. build_busybox
. /home/dgangana/rocketchip/chipyard/software/firemarshal/images/firechip/br-base/br-base-bin
. calc_br-base_dep
. /home/dgangana/rocketchip/chipyard/software/firemarshal/images/firechip/br-base/br-base.img
TaskError - taskid:/home/dgangana/rocketchip/chipyard/software/firemarshal/images/firechip/br-base/br-base.img
PythonAction Error
Traceback (most recent call last):
File "/home/dgangana/rocketchip/chipyard/.conda-env/lib/python3.10/site-packages/doit/action.py", line 461, in execute
returned_value = self.py_callable(*self.args, **kwargs)
File "/home/dgangana/rocketchip/chipyard/software/firemarshal/wlutil/build.py", line 603, in makeImage
wlutil.applyOverlay(config['img'], config['overlay'])
File "/home/dgangana/rocketchip/chipyard/software/firemarshal/wlutil/wlutil.py", line 752, in applyOverlay
copyImgFiles(img, flist, 'in')
File "/home/dgangana/rocketchip/chipyard/software/firemarshal/wlutil/wlutil.py", line 701, in copyImgFiles
with mountImg(img, getOpt('mount-dir')):
File "/home/dgangana/rocketchip/chipyard/.conda-env/lib/python3.10/contextlib.py", line 135, in enter
return next(self.gen)
File "/home/dgangana/rocketchip/chipyard/software/firemarshal/wlutil/wlutil.py", line 598, in mountImg
assert ret == 1, f"{mntPath} already mounted. Somethings wrong"
AssertionError: /home/dgangana/rocketchip/chipyard/software/firemarshal/disk-mount already mounted. Somethings wrong

ERROR: Failed to build workload br-base.json
Log available at: /home/dgangana/rocketchip/chipyard/software/firemarshal/logs/br-base-build-2024-08-06--01-19-09-Q5LANAMRF3HFTNIF.log
ERROR: FAILURE: 1 builds failed
build-setup.sh: Build script failed with exit code 1 at step 9: Pre-compiling FireMarshal buildroot sources

@abejgonzalez
Copy link
Contributor

You can skip the FireMarshal setup (our SW build tool) if you are just running Rocket Chip builds. See the --help options (--skip-marshal).

@gituserdeepika
Copy link
Author

Thank you, By skipping the Firemarshal setup the build went through successfully.

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

No branches or pull requests

2 participants