CI(private) ENTROPY_SRC build fail on: "Error-[XMRE] Cross-module reference resolution error"
When running CI(private):
util/dvsim/dvsim.py hw/top_earlgrey/dv/top_earlgrey_sim_cfgs.hjson --purge -w -i smoke --max-parallel 3 --tool=vcs --fixed-seed=1
The followinf fails are covered by #13038 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Four (3) out of six (6) chip test fails... Tree (3) of the SW tests, chip_sw_uart_tx_rx, chip_sw_pwrmgr_smoketest, and chip_plic_all_irqs, fail on 'cp: cannot create regular file '
## Failure Buckets
* `Job returned non-zero exit code` has 3 failures:
* Test chip_sw_uart_tx_rx has 1 failures.
* 0.chip_sw_uart_tx_rx.1\
Log /tanap1/proj_cd14/opentitan/jlevy/ot_PR/opentitan/scratch/master/chip_earlgrey_asic-sim-vcs/0.chip_sw_uart_tx_rx/out/run.log
INFO: 169 processes: 25 internal, 144 processwrapper-sandbox.
INFO: Build completed successfully, 169 total actions
INFO: Build completed successfully, 169 total actions
$TEST_TMPDIR defined: output root default is '/home/users/jlevy' and max_idle_secs default is '15'.
Another command (pid=21865) is running. Waiting for it to complete on the server (server_pid=21561)...
Another command (pid=21799) is running. Waiting for it to complete on the server (server_pid=21561)...
cp: cannot create regular file '/tanap1/proj_cd14/opentitan/jlevy/ot_PR/opentitan/scratch/master/chip_earlgrey_asic-sim-vcs/build-bin/sw/device/tests/sim_dv/uart_tx_rx_test_prog_sim_dv.logs.txt': Permission denied
cp: cannot create regular file '/tanap1/proj_cd14/opentitan/jlevy/ot_PR/opentitan/scratch/master/chip_earlgrey_asic-sim-vcs/build-bin/sw/device/tests/sim_dv/uart_tx_rx_test_prog_sim_dv.rodata.txt': Permission denied
cp: cannot create regular file '/tanap1/proj_cd14/opentitan/jlevy/ot_PR/opentitan/scratch/master/chip_earlgrey_asic-sim-vcs/build-bin/sw/device/tests/sim_dv/uart_tx_rx_test_prog_sim_dv.64.scr.vmem': Permission denied
make: *** [sw_build] Error 123
* Test chip_plic_all_irqs has 1 failures.
* 0.chip_plic_all_irqs.1\
Log /tanap1/proj_cd14/opentitan/jlevy/ot_PR/opentitan/scratch/master/chip_earlgrey_asic-sim-vcs/0.chip_plic_all_irqs/out/run.log
INFO: Elapsed time: 355.837s, Critical Path: 92.86s
INFO: 72 processes: 4 internal, 68 processwrapper-sandbox.
INFO: Build completed successfully, 72 total actions
INFO: Build completed successfully, 72 total actions
$TEST_TMPDIR defined: output root default is '/home/users/jlevy' and max_idle_secs default is '15'.
Another command (pid=24988) is running. Waiting for it to complete on the server (server_pid=21561)...
cp: cannot create regular file '/tanap1/proj_cd14/opentitan/jlevy/ot_PR/opentitan/scratch/master/chip_earlgrey_asic-sim-vcs/build-bin/sw/device/tests/autogen/plic_all_irqs_test_prog_sim_dv.64.scr.vmem': Permission denied
cp: cannot create regular file '/tanap1/proj_cd14/opentitan/jlevy/ot_PR/opentitan/scratch/master/chip_earlgrey_asic-sim-vcs/build-bin/sw/device/tests/autogen/plic_all_irqs_test_prog_sim_dv.logs.txt': Permission denied
cp: cannot create regular file '/tanap1/proj_cd14/opentitan/jlevy/ot_PR/opentitan/scratch/master/chip_earlgrey_asic-sim-vcs/build-bin/sw/device/tests/autogen/plic_all_irqs_test_prog_sim_dv.rodata.txt': Permission denied
make: *** [sw_build] Error 123
* Test chip_sw_pwrmgr_smoketest has 1 failures.
* 0.chip_sw_pwrmgr_smoketest.1\
Log /tanap1/proj_cd14/opentitan/jlevy/ot_PR/opentitan/scratch/master/chip_earlgrey_asic-sim-vcs/0.chip_sw_pwrmgr_smoketest/out/run.log
INFO: Elapsed time: 259.729s, Critical Path: 15.22s
INFO: 28 processes: 4 internal, 24 processwrapper-sandbox.
INFO: Build completed successfully, 28 total actions
INFO: Build completed successfully, 28 total actions
$TEST_TMPDIR defined: output root default is '/home/users/jlevy' and max_idle_secs default is '15'.
Another command (pid=21799) is running. Waiting for it to complete on the server (server_pid=21561)...
cp: cannot create regular file '/tanap1/proj_cd14/opentitan/jlevy/ot_PR/opentitan/scratch/master/chip_earlgrey_asic-sim-vcs/build-bin/sw/device/tests/pwrmgr_smoketest_prog_sim_dv.rodata.txt': Permission denied
cp: cannot create regular file '/tanap1/proj_cd14/opentitan/jlevy/ot_PR/opentitan/scratch/master/chip_earlgrey_asic-sim-vcs/build-bin/sw/device/tests/pwrmgr_smoketest_prog_sim_dv.logs.txt': Permission denied
cp: cannot create regular file '/tanap1/proj_cd14/opentitan/jlevy/ot_PR/opentitan/scratch/master/chip_earlgrey_asic-sim-vcs/build-bin/sw/device/tests/pwrmgr_smoketest_prog_sim_dv.64.scr.vmem': Permission denied
make: *** [sw_build] Error 123
INFO: [FlowCfg] [scratch_path]: [chip] [/tanap1/proj_cd14/opentitan/jlevy/ot_PR/opentitan/scratch/master/chip_earlgrey_asic-sim-vcs]
The above fail covered by #13038 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
One more fail during CI(private) Build phase:
INFO: [FlowCfg] [results]: [entropy_src]:
## ENTROPY_SRC Simulation Results
### Wednesday June 08 2022 16:37:59 UTC
### GitHub Revision: [`fdd3b8c5b`](https://github.com/lowrisc/opentitan/tree/fdd3b8c5bae60cd9c998f79140632639c74e1dc1)
### Branch: master
### [Testplan](https://docs.opentitan.org/hw/ip/entropy_src/doc/dv/#testplan)
### Simulator: VCS
### Test Results
| Milestone | Name | Tests | Passing | Total | Pass Rate |
|:-----------:|:-----------------------------------------:|:-------------------------|:---------:|:-------:|:-----------:|
| V1 | smoke | entropy_src_smoke | 0 | 1 | 0.00 % |
| V1 | csr_hw_reset | entropy_src_csr_hw_reset | 0 | 1 | 0.00 % |
| V1 | csr_rw | entropy_src_csr_rw | 0 | 1 | 0.00 % |
| V1 | regwen_csr_and_corresponding_lockable_csr | entropy_src_csr_rw | 0 | 1 | 0.00 % |
| V1 | | **TOTAL** | 0 | 3 | 0.00 % |
| V2 | firmware | entropy_src_smoke | 0 | 1 | 0.00 % |
| V2 | tl_d_outstanding_access | entropy_src_csr_hw_reset | 0 | 1 | 0.00 % |
| | | entropy_src_csr_rw | 0 | 1 | 0.00 % |
| V2 | tl_d_partial_access | entropy_src_csr_hw_reset | 0 | 1 | 0.00 % |
| | | entropy_src_csr_rw | 0 | 1 | 0.00 % |
| | | **TOTAL** | 0 | 3 | 0.00 % |
## Failure Buckets
* `Error-[XMRE] Cross-module reference resolution error` has 1 failures:
* Test default has 1 failures.
* default\
Line 1317, in log /tanap1/proj_cd14/opentitan/jlevy/ot_PR/opentitan/scratch/master/entropy_src-sim-vcs/default/build.log
Error-[XMRE] Cross-module reference resolution error
../src/lowrisc_dv_entropy_src_cov_0/entropy_src_cov_if.sv, 347
Error found while trying to resolve cross-module reference.
token 'entropy_src_hw_if_i'. Originating interface 'entropy_src_cov_if'.
Source info: assign csrng_if_req = entropy_src_hw_if_i.es_req;
INFO: [FlowCfg] [scratch_path]: [entropy_src] [/tanap1/proj_cd14/opentitan/jlevy/ot_PR/opentitan/scratch/master/entropy_src-sim-vcs]
@timothytrippel i think this is a duplicate of #13087 ?
@timothytrippel i think this is a duplicate of #13087 ?
yes that is the same issue. Unfortunately, I am unable to reproduce this on our side and in CI, but @sha-ron mentioned it too and is working on debugging this.
There is also a second type of fail that is not related to the semaphore....
@Jacob-Levy if the first type is similar to @sha-ron , could you debug with her first?
One more fail during CI(private) Build phase:
INFO: [FlowCfg] [results]: [entropy_src]:
## ENTROPY_SRC Simulation Results
### Wednesday June 08 2022 16:37:59 UTC
### GitHub Revision: [`fdd3b8c5b`](https://github.com/lowrisc/opentitan/tree/fdd3b8c5bae60cd9c998f79140632639c74e1dc1)
### Branch: master
### [Testplan](https://docs.opentitan.org/hw/ip/entropy_src/doc/dv/#testplan)
### Simulator: VCS
### Test Results
| Milestone | Name | Tests | Passing | Total | Pass Rate |
|:-----------:|:-----------------------------------------:|:-------------------------|:---------:|:-------:|:-----------:|
| V1 | smoke | entropy_src_smoke | 0 | 1 | 0.00 % |
| V1 | csr_hw_reset | entropy_src_csr_hw_reset | 0 | 1 | 0.00 % |
| V1 | csr_rw | entropy_src_csr_rw | 0 | 1 | 0.00 % |
| V1 | regwen_csr_and_corresponding_lockable_csr | entropy_src_csr_rw | 0 | 1 | 0.00 % |
| V1 | | **TOTAL** | 0 | 3 | 0.00 % |
| V2 | firmware | entropy_src_smoke | 0 | 1 | 0.00 % |
| V2 | tl_d_outstanding_access | entropy_src_csr_hw_reset | 0 | 1 | 0.00 % |
| | | entropy_src_csr_rw | 0 | 1 | 0.00 % |
| V2 | tl_d_partial_access | entropy_src_csr_hw_reset | 0 | 1 | 0.00 % |
| | | entropy_src_csr_rw | 0 | 1 | 0.00 % |
| | | **TOTAL** | 0 | 3 | 0.00 % |
## Failure Buckets
* `Error-[XMRE] Cross-module reference resolution error` has 1 failures:
* Test default has 1 failures.
* default\
Line 1317, in log /tanap1/proj_cd14/opentitan/jlevy/ot_PR/opentitan/scratch/master/entropy_src-sim-vcs/default/build.log
Error-[XMRE] Cross-module reference resolution error
../src/lowrisc_dv_entropy_src_cov_0/entropy_src_cov_if.sv, 347
Error found while trying to resolve cross-module reference.
token 'entropy_src_hw_if_i'. Originating interface 'entropy_src_cov_if'.
Source info: assign csrng_if_req = entropy_src_hw_if_i.es_req;
INFO: [FlowCfg] [scratch_path]: [entropy_src] [/tanap1/proj_cd14/opentitan/jlevy/ot_PR/opentitan/scratch/master/entropy_src-sim-vcs]
Can someone fix the build error...
@martin-lueker / @mwbranstad can you have a look?
looks like a problem with the coverage code being added. @senelson7 is this an issue with cadence vs synopsys?
Simulator: XCELIUM
Test Results
| Milestone | Name | Tests | Passing | Total | Pass Rate |
|---|---|---|---|---|---|
| V1 | csr_rw | entropy_src_csr_rw | 1 | 1 | 100.00 % |
Simulator: VCS
Test Results
| Milestone | Name | Tests | Passing | Total | Pass Rate |
|---|---|---|---|---|---|
| V1 | csr_rw | entropy_src_csr_rw | 0 | 1 | 0.00 % |
Just confirmed my suspicions. @martin-lueker I think you added this code, yes?
Yes, that was mine. I wonder why it passed in CI when I merged it?
Has this been holding up CI for six days?
Yes, that was mine. I wonder why it passed in CI when I merged it? Has this been holding up CI for six days?
no @martin-lueker it seems to be simulator dependent. It looks like this only fails for vcs and is fine for xcelium. I haven't looked into it to be honest.
PR #13241 Fixes
Thanks Steve. This one doesn't seem to be auto-closed. @Jacob-Levy, would you mind rebasing and confirming that the issue is resolved from your POV?
CI(Private) running now... will close the issue once the build passes. Thanks!
Fixed by #13241
[ legend ]: [Q: queued, D: dispatched, P: passed, F: failed, K: killed, T: total]
00:24:43 [ build ]: [Q: 000, D: 000, P: 043, F: 000, K: 000, T: 043] 100%