why I can't finish make setup with the simple step...
# caravel
b
why I can't finish make setup with the simple steps provided in https://github.com/efabless/caravel_user_project/blob/mpw-6c/docs/source/quickstart.rst I exported OPENLANE_ROOT and PDK_ROOT as defined in there, also checked @Matt Venn’s video on walkthrough I both tried: export OPENLANE_ROOT=~/Desktop/caravel_tutorial/pulpino/openlane export PDK_ROOT=~/Desktop/caravel_tutorial/pulpino/pdks and export OPENLANE_ROOT=~/Desktop/openlane export PDK_ROOT=~/Desktop/pdks Updating files: 100% (1274/1274), done. make[1]: Leaving directory '/home/mbaykenar/Desktop/caravel_tutorial/pulpino' cd openlane && make openlane /bin/sh: 1: cd: can't cd to openlane make: * [Makefile143 openlane] Error 2
I just recloned my repo and this time set OPENLANE_ROOT and PDK_ROOT to a newly created folders on Desktop this solved the problem step4 of quicksteps document should be updated
m
so what was your problem? you already had the folders made before you started?
b
the problem is, when someone inexperienced about mpw program like me, naively follow the steps in quickstart guide instructions, he would get error that I wrote about, since the steps dont talk about creating a new folders around somewhere other than git repo root named openlane and pdks and set env variables to there I solved it from your video, you use folders inside tmp folder, then I tried creating folders on Desktop and setting openlane and pdks variables to there. it could be obvious and easy for people experienced on linux and mpw, but somehow I did waste some hours, maybe my frontal lobe of cerebral cortex also be the problem, not sure about it :D
m
new folders are not required, the makefile will make the folders for you
so I'm still not sure what caused your problem
it could be that if you set the PDK_ROOT to a sub directory of another directory that also doesn't exist, the Makefile wouldn't create it? Or maybe using ~ in the directory names won't work
b
I also had an issue in github: https://github.com/efabless/caravel_user_project/issues/104 @Kareem Farid suggested not to use openlane folder as OPENLANE_ROOT and said "We will make that clearer in future releases" anyway now I don't have any problem by creating new folders and setting roots to there. maybe if someone in the future could have same problem and see this post, hope it helps
m
Stumbled over the same issue when I started. Docu should be more clear. I did a pull request on the docu, but it got closed without comment 😞
b
I think @Kareem Farid did a PR and now it is processing:
k
Yup xD
m
I still don't understand the issue. I doubt this PR will be merged. There is no problem with the quickstart guide, and changing to openlane_src won't fix the root of the problem (which I still don't know what it is)
k
check the other pr. the issue is openlane installation overwriting openlane config folder
m
ah it's because you are setting OPENLANE_ROOT to be a subdirectory of caravel_user_project - which already exists
k
exactly. i changed the quick guide (which might not be needed). the other pr detects if OPENLANE_ROOT is set to that path and exits with a message
b
"you are setting OPENLANE_ROOT to be a subdirectory of caravel_user_project - which already exists" yes, in step4 of quick guide: "
Copy code
# make sure to change <directory_name> with the directory you created in step 2
# in this case it is caravel_tutorial
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
" so /<directory_name>/ in my case has to be caravel_tutorial instead of caravel_tutorial/pulpino i mean not: OPENLANE_ROOT=~/Desktop/caravel_tutorial/pulpino/openlane but OPENLANE_ROOT=~/Desktop/caravel_tutorial/openlane
m
so the PR should say something like 'make sure to set OPENLANE_ROOT and PDK_ROOT to a directory outside of caravel_user_project'
m
👍