I am using the latest `mpw-5b` tag and running the...
# shuttle
h
I am using the latest
mpw-5b
tag and running the
make pdk
fails for me. It creates the
sky130A/
and
open_pdks/sources
folder with root privileges and then errors out when it is not able to write something in the sky130A/ folder because of not having sudo privileges.
Seemingly, docker is running with root privileges instead of using my uid.
Getting some error like this:
Copy code
touch: cannot touch '/home/mkhan33/shuttle-pdks/sky130A/SOURCES': Permission denied
The problem is here: https://github.com/efabless/caravel-lite/blob/mpw-5b/Makefile#L1261-L1273 docker is being run with root privileges while building open_pdk
v
Try with
sudo make pdk
h
I don't have sudo privileges on a machine I'm running this flow
v
Create PDK_ROOT path where you've full permission and do
make pdk
will work
by default pdks in current directory
h
I did point PDK_ROOT to a directory where I have full permissions. The problem is docker being run in root mode. It builds pdk with root privileges which has nothing to do with having permissions on my side.
The sky130A/ folder is being “generated” with root privileges. Even if I point to a directory with full permissions it'll still create the sky130A/ with root privileges.
v
Ok.. will check with @User is there any other options. I too faced such issues, i've root privileges. so i'm not raised this issue.
h
Not a big issue I guess. Just pass in a -u flag to docker to provide current user id should solve this problem.
Without the -u flag docker runs by default with root privileges.
v
can u post the full command here. It may useful for others too
h
Well I never tried myself. I just manually installed the pdk.
m
can confirm it fails
j
@User @User did you see this?
@User fyi