<#217 Build periodically fails with `foundry_insta...
# open_pdks
g
#217 Build periodically fails with `foundry_install` error New issue created by proppy We setup some automated CI for
open_pdks
packaging (see hdl/conda-eda#160). And we're observing intermidiate failure with the following error:
Copy code
Extracting sky130_ef_sc_hd__fill_12 into sky130_ef_sc_hd__fill_12.ext:
  Error message output from magic script:
  Error while reading cell "sky130_ef_sc_hd__fill_12" (byte position 372): Cell "sky130_fd_sc_hd__fill_4" is used but not defined in this file.
  Error while reading cell "sky130_ef_sc_hd__fill_12" (byte position 372): Rewinding input.  Cells may have been instanced before they were defined.  Consider using "gds ordering on".
  Error while reading cell "sky130_ef_sc_hd__fill_12" (byte position 372): Cell "sky130_fd_sc_hd__fill_2" is used but not defined in this file.
  Error while reading cell "sky130_ef_sc_hd__fill_12" (byte position 372): Rewinding input.  Cells may have been instanced before they were defined.  Consider using "gds ordering on".
  Error while reading cell "sky130_ef_sc_hd__fill_12" (byte position 372): Cell "sky130_fd_sc_hd__decap_6" is used but not defined in this file.
  Error while reading cell "sky130_ef_sc_hd__fill_12" (byte position 372): Rewinding input.  Cells may have been instanced before they were defined.  Consider using "gds ordering on".
  Error while reading cell "sky130_ef_sc_hd__fill_12" (byte position 372): cell sky130_fd_sc_hd__decap_6 was used but not defined.
  Error while reading cell "sky130_ef_sc_hd__fill_12" (byte position 372): cell sky130_fd_sc_hd__fill_2 was used but not defined.
  make[3]: *** [Makefile:1146: digital-hd-A] Error 1
  make[2]: *** [Makefile:940: digital-hd-build-A] Error 2
  make[1]: *** [Makefile:639: all-A] Error 2
  make: *** [Makefile:116: tech-sky130] Error 2
  Error while reading cell "sky130_ef_sc_hd__fill_12" (byte position 372): cell sky130_fd_sc_hd__fill_4 was used but not defined.
  Please name the cell before extracting.
  freeMagic called with NULL argument.
  Total of 2 warnings.
  "sky130_fd_sc_hd__decap_6" has a zero timestamp; it should be written out
      to establish a correct timestamp.
  "sky130_fd_sc_hd__fill_2" has a zero timestamp; it should be written out
      to establish a correct timestamp.
  "sky130_fd_sc_hd__fill_4" has a zero timestamp; it should be written out
      to establish a correct timestamp.
  Traceback (most recent call last):
    File "../common/foundry_install.py", line 2245, in <module>
      cwd = destlibdir,
    File "../common/foundry_install.py", line 277, in subprocess_run
      raise SystemError("".join(emsg))
  SystemError: Command magic failed with exit code: -11
This seems related to the following codepath in magic introduced with RTimothyEdwards/magic@8957d4b: https://github.com/RTimothyEdwards/magic/blob/bfdf1227a704dbbfb78f42f69965ccc2c81989c1/commands/CmdE.c#L1051 https://github.com/RTimothyEdwards/magic/blob/bfdf1227a704dbbfb78f42f69965ccc2c81989c1/commands/CmdE.c#L1017 I first though of something related to the recent parallel
make -j
support, but it turns out the error also shows up without it. @RTimothyEdwards do you have any hint on how to dig this further? RTimothyEdwards/open_pdks