I am trying install mpw-6c setup using following c...
# caravel
v
I am trying install mpw-6c setup using following command,
Copy code
git clone -b mpw-6c <https://github.com/efabless/caravel_user_project> caravel_example
cd caravel_example
export OPENLANE_ROOT=~/<directory_name>/openlane # you need to export this whenever you start a new shell

export PDK_ROOT=~/<directory_name>/pdks # you need to export this whenever you start a new shell

make setup
but facing following error:
Copy code
Exception:
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/usr/lib/python3.6/site-packages/pip/commands/install.py", line 365, in run
    strip_file_prefix=options.strip_file_prefix,
  File "/usr/lib/python3.6/site-packages/pip/req/req_set.py", line 789, in install
    **kwargs
  File "/usr/lib/python3.6/site-packages/pip/req/req_install.py", line 854, in install
    strip_file_prefix=strip_file_prefix
  File "/usr/lib/python3.6/site-packages/pip/req/req_install.py", line 1069, in move_wheel_files
    strip_file_prefix=strip_file_prefix,
  File "/usr/lib/python3.6/site-packages/pip/wheel.py", line 345, in move_wheel_files
    clobber(source, lib_dir, True)
  File "/usr/lib/python3.6/site-packages/pip/wheel.py", line 316, in clobber
    ensure_dir(destdir)
  File "/usr/lib/python3.6/site-packages/pip/utils/__init__.py", line 83, in ensure_dir
    os.makedirs(path)
  File "/usr/lib64/python3.6/os.py", line 220, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/usr/local/lib64/python3.6/site-packages/pygments'
make[1]: *** [install-volare] Error 2
make[1]: Leaving directory `/home/vijayan/CARAVEL_FLOW/caravel_tutorial/caravel_example'
make: *** [pdk-with-volare] Error 2
m
How about
sudo make setup
? Looks like it's trying to install/update
pygments
.
v
Yes tried that too. Again its failing with error
Copy code
caravel_example]$ sudo make setup
Makefile:53: warning: undefined variable `PWD'
Makefile:53: warning: undefined variable `PWD'
Makefile:53: warning: undefined variable `PWD'
Makefile:53: warning: undefined variable `PWD'
if [ -d "/caravel" ]; then\
	echo "Deleting exisiting /caravel" && \
	rm -rf /caravel && sleep 2;\
fi
Makefile:28: warning: undefined variable `PDK_ROOT'
Deleting exisiting /caravel
echo "Installing caravel-lite.."
Installing caravel-lite..
git clone -b mpw-6c <https://github.com/efabless/caravel-lite> /caravel --depth=1
Cloning into '/caravel'...
remote: Enumerating objects: 233, done.
remote: Counting objects: 100% (233/233), done.
remote: Compressing objects: 100% (167/167), done.
remote: Total 233 (delta 99), reused 156 (delta 65), pack-reused 0
Receiving objects: 100% (233/233), 717.88 KiB | 6.14 MiB/s, done.
Resolving deltas: 100% (99/99), done.
Note: switching to '192a5b1fe5cd068c3a8a7b30aee8458ca738f73b'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

Makefile:49: warning: undefined variable `PWD'
Makefile:49: warning: undefined variable `PWD'
export CARAVEL_ROOT=/caravel && make -f /caravel/Makefile check-env
Makefile:28: warning: undefined variable `PDK_ROOT'
make[1]: Entering directory `/home/vijayan/CARAVEL_FLOW/caravel_tutorial/caravel_example'
/caravel/Makefile:1329: *** PDK_ROOT is undefined, please export it before running make.  Stop.
make[1]: Leaving directory `/home/vijayan/CARAVEL_FLOW/caravel_tutorial/caravel_example'
make: *** [check-env] Error 2
m
@donn ?
m
How about
sudo PWD=$PWD PDK_ROOT=$PDK_ROOT make setup
?
v
@Mitch Bailey Used
sudo PWD=$PWD PDK_ROOT=$PDK_ROOT OPENLANE_ROOT=$OPENLANE_ROOT make setup
problem in finding
volare
Copy code
Successfully installed certifi-2022.5.18.1 click-default-group-1.2.2 commonmark-0.9.1 dataclasses-0.8 pygments-2.12.0 pyyaml-5.4.1 requests-2.27.1 rich-10.16.2 urllib3-1.26.9 volare-0.1.3
make[1]: volare: Command not found
make[1]: *** [pdk-with-volare] Error 127
make[1]: Leaving directory `/home/vijayan/CARAVEL_FLOW/caravel_tutorial/caravel_example'
make: *** [pdk-with-volare] Error 2
Copy code
[ caravel_example]$ which volare
/usr/local/bin/volare
m
If your python modules have been updated, you may be ok without the
sudo
now. Try just
make setup
.
d
I'm not involved with setting up caravel.
v
@Mitch Bailey Thanks. Got fixed permission issue by using
sudo chown -R $USER /usr/local/lib/python3.6/
and
make setup
completed
👍 1