At the end of every successful user_proj_example b...
# caravel
j
At the end of every successful user_proj_example build, I get this odd error message. The build is fine, but...
Copy code
[INFO]: Saving Runtime Environment
invalid command name "Errno"
    while executing
"Errno 2"
    ("uplevel" body line 7)
    invoked from within
"uplevel #0 ${cmd}"
    (procedure "set_log" line 3)
    invoked from within
"set_log ::env($index) $escaped_env_var $::env(GLB_CFG_FILE) 1"
    (procedure "save_state" line 9)
    invoked from within
"save_state"
    (procedure "run_non_interactive_mode" line 68)
    invoked from within
"run_non_interactive_mode {*}$argv"
    invoked from within
"if { [info exists flags_map(-interactive)] || [info exists flags_map(-it)] } {
        puts_info "Running interactively"
        if { [info exists arg_values(-file)..."
    (file "/openlane/flow.tcl" line 356)
make: *** [Makefile:43: user_project_wrapper] Error 1
Any ideas?
m
Hi @User, Looks like
Errno 2
is a
no such file
error in python. Looks like you're in the final
Saving Runtime Environment
routine where
<design>/runs/<tag>/config.tcl
is created. Looks like this
config.tcl
is in somewhat alphabetical order, so if you have a clean run of another design, you could compare and see about where the problem occurs.
j
A fresh caravel install does the same. Yes the problem always occurs!
m
@User Can you post your repo?
Or maybe just your
<design>/config.tcl
and
<design>/runs/<tag>/config.tcl
.
m
@User It appears to work with an older version on openlane
2021.09.30_02.12.16
with
CARAVEL_LITE
What version are you using? For reference, these are the commands I used in
caravel-sha3-miner-mpw3
Copy code
make install
make user_project_wrapper
I also tried with
CARAVEL_LITE=0
and that worked too.
j
openlane 2021.09.09_03.00.48-8-gebd50be. Installed by default with mpw3a
m
@User I got a clean result with the current(?) version
ff6eec246a18d007bf450e94f289a460425a2883
j
Running that now
Same thing. With updated openlane (checkout mp3a). make test
Copy code
[INFO]: Saving Runtime Environment
invalid command name "Errno"
    while executing
"Errno 2"
    ("uplevel" body line 7)
    invoked from within
"uplevel #0 ${cmd}"
    (procedure "set_log" line 3)
    invoked from within
"set_log ::env($index) $escaped_env_var $::env(GLB_CFG_FILE) 1"
    (procedure "save_state" line 9)
    invoked from within
"save_state"
    (procedure "run_non_interactive_mode" line 68)
    invoked from within
"run_non_interactive_mode {*}$argv"
    invoked from within
"if { [info exists flags_map(-interactive)] || [info exists flags_map(-it)] } {
        puts_info "Running interactively"
        if { [info exists arg_values(-file)..."
    (file "./flow.tcl" line 356)
make: *** [Makefile:214: test] Error 1
I've been ignoring this and can continue to do so, but this seems odd.
m
@User Sorry I haven't been much help. I'm confused about how to checkout mp3a. Do you
git checkout tags/mp3a -b mp3a
?
j
cd openlane git checkout mpw-3a
m
@User Ok, I found it on the efabless repo instead of the OpenRoad repo. However, I still ran to completion with no errors. Does this command give the same results for you?
Copy code
$ cat designs/spm/runs/openlane_test/PDK_SOURCES 
-ne openlane 
e8f4a88f668b366f126bba40861153bf478a33c1
-ne skywater-pdk 
c094b6e83a4f9298e47f696ec5a7fd53535ec5eb
-ne open_pdks 
14db32aa8ba330e88632ff3ad2ff52f4f4dae1ad
j
Copy code
-ne skywater-pdk 
c094b6e83a4f9298e47f696ec5a7fd53535ec5eb
-ne open_pdks 
6c05bc48dc88784f9d98b89d6791cdfd91526676
m
@User so the
skywater-pdk
matches but the
open_pdks
does not.
6c05bc48dc88784f9d98b89d6791cdfd91526676
is from Sep. 17
14db32aa8ba330e88632ff3ad2ff52f4f4dae1ad
is from Oct. 26 I'll try with the older commit and see if I get the same error message as you.
With the older
open_pdk
, I get the following error on the test
spm
design.
Copy code
[INFO ODB-0134] Finished DEF file: /openlane/designs/spm/runs/openlane_test/results/floorplan/spm.floorplan.def
[INFO PDN-0016] Power Delivery Network Generator: Generating PDN
  config: /openlane/scripts/openroad/or_pdn_cfg.tcl
Error: or_pdn_cfg.tcl, 23 can't read "::env(STD_CELL_POWER_PINS)": no such variable
child process exited abnormally
@User I was wondering if you are setting
OPEN_PDKS_COMMIT
before doing
make pdk
? The default should pull the latest, I think. Does
echo $OPEN_PDKS_COMMIT
show anything?