Are we supposed to be using the mpw-3 tag of the c...
# caravel
m
Are we supposed to be using the mpw-3 tag of the caravel_user_project? It doesn't work on the default project:
Copy code
mrg@diode ~/default (master)$ git clone <https://github.com/efabless/caravel_user_project.git>
Cloning into 'caravel_user_project'...
remote: Enumerating objects: 1214, done.
remote: Total 1214 (delta 0), reused 0 (delta 0), pack-reused 1214
Receiving objects: 100% (1214/1214), 46.93 MiB | 30.86 MiB/s, done.
Resolving deltas: 100% (592/592), done.
mrg@diode ~/default (master)$ export CARAVEL_ROOT=`pwd`
mrg@diode ~/default (master)$ export PDK_ROOT=`pwd`
mrg@diode ~/default (master)$ cd caravel_user_project/
mrg@diode ~/default/caravel_user_project (main)$ git checkout mpw-3
Note: switching to 'mpw-3'.

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

HEAD is now at fc583ec Auto updated submodule references
mrg@diode ~/default/caravel_user_project ((HEAD detached at mpw-3))$ make install
Installing caravel-lite as a submodule..
Submodule 'caravel-lite' (<https://github.com/efabless/caravel-lite>) registered for path 'caravel'
Cloning into '/home/mrg/default/caravel_user_project/caravel'...
Submodule path 'caravel': checked out '0f16ba8eaae841a6f122fc0d5837005d3312fd2b'
error: pathspec 'main' did not match any file(s) known to git
make: *** [Makefile:80: install] Error 1
t
You're the 2nd person to post this error, so it must be on our end, and we're looking into it right now.
m
It just stopped doing that when I re-ran too..
As far as I can tell, it's the same commit of caravel-lite and caravel_user_project too
t
@User: See the above comment. . . The error happens once, but not if it's re-run?
m
I checked about a week ago when I updated my course instructions and it worked then
m
Copy code
mrg@diode ~/default (master)$ rm -rf caravel_user_project/
mrg@diode ~/default (master)$ git clone <https://github.com/efabless/caravel_user_project.git>
Cloning into 'caravel_user_project'...
remote: Enumerating objects: 1214, done.
remote: Total 1214 (delta 0), reused 0 (delta 0), pack-reused 1214
Receiving objects: 100% (1214/1214), 46.93 MiB | 29.52 MiB/s, done.
Resolving deltas: 100% (593/593), done.
mrg@diode ~/default (master)$ cd caravel_user_project/
mrg@diode ~/default/caravel_user_project (main)$ git checkout mpw-3
Note: switching to 'mpw-3'.

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

HEAD is now at fc583ec Auto updated submodule references
mrg@diode ~/default/caravel_user_project ((HEAD detached at mpw-3))$ make install
Installing caravel-lite as a submodule..
Submodule 'caravel-lite' (<https://github.com/efabless/caravel-lite>) registered for path 'caravel'
Cloning into '/home/mrg/default/caravel_user_project/caravel'...
Submodule path 'caravel': checked out '0f16ba8eaae841a6f122fc0d5837005d3312fd2b'
Previous HEAD position was 0f16ba8 Update openlane URL
Switched to branch 'main'
Your branch is up to date with 'origin/main'.
make simlink
make[1]: Entering directory '/home/mrg/default/caravel_user_project'
mkdir -p openlane
mkdir -p openlane/user_project_wrapper
cd openlane &&\
ln -sf ../caravel/openlane/Makefile Makefile
cd openlane/user_project_wrapper &&\
ln -sf ../../caravel/openlane/user_project_wrapper_empty/pin_order.cfg pin_order.cfg
make[1]: Leaving directory '/home/mrg/default/caravel_user_project'
^^ Starting completely fresh
It worked yesterday too 🙂
I can't repeat it now...
🤣 1
It literally did it like 6 times in a row then started working.
m
In a new terminal? Could be old environment vars with hidden state?
m
Nope, I set them explicitly
t
@User: You're saying it failed once and only once? When did you run it that it failed?
m
No, it failed like 6 times in a row starting with a "fresh" directory (and no PDK_ROOT and no OPENLANE_ROOT installed). Then it started working. I'm wondering if it was a network issue with the caravel repo.
t
That's what I'm thinking.
m
Sorry for the hassle. It all seems fine now!
m
I have seen that myself once before
t
Because it happened independently to you and Omiya Hassan, it is clearly a real issue if a transient one. I'd like to know what going on on github causes that to happen. . .
m
She just sent me her error and I think her's is slightly different.
j
@User the issue is that CARAVEL_ROOT needs to be set to
<absolute-path>/caravel_user_project/caravel
. You can also just run
unset CARAVEL_ROOT
before you run
make install
. Then CARAVEL_ROOT will default to the correct value.
m
Ohhh, oops! I mean to set OPENLANE_ROOT!
That is a user error then!
I think it was actually that combined with a github transient network error. make pdk failed once intermittently as well.
t
This is why I don't like environment variables and why I keep complaining to the openlane developers that they over-use them.