<@U016EM8L91B> first I’ve ever heard of this happe...
# openlane
d
@Tim Edwards first I’ve ever heard of this happening, sorry- can you share the output from ‘which klayout’ and ‘file $(which klayout)’
t
Don't be sorry. I cause all my own problems. : )
"which klayout" returns
/usr/local/bin/klayout
and "file /usr/local/bin/klayout" returns
/usr/local/bin/klayout: POSIX shell script, ASCII text executable
The /usr/local/bin/klayout script is three lines long, so here it is:
Copy code
#!/bin/sh
export LD_LIBRARY_PATH=/usr/local/share/klayout
/usr/local/share/klayout/klayout -e
And I think that answers my question (and is probably just another of my own self-inflicted wounds).
d
😅 welp, I’ll take easy fixes wherever I can get them
t
Okay, so with your observation, I fixed my stupid problem. Now klayout runs properly in batch. That has uncovered another weird error. Klayout is running fine in batch for generating GDS. But when it gets to the XOR step, I get the following output:
Copy code
[ERROR]: during executing: "klayout -b -r /home/tim/gits/openlane/scripts/klayout/xor.drc -rd a=/home/tim/gits/caravel_openframe_project/openlane/picosoc/runs/RUN_2023.08.29_15.08.17/results/signoff/picosoc.gds -rd b=/home/tim/gits/caravel_openframe_project/openlane/picosoc/runs/RUN_2023.08.29_15.08.17/results/signoff/picosoc.klayout.gds -rd jobs=1 -rd rdb_out=/home/tim/gits/caravel_openframe_project/openlane/picosoc/runs/RUN_2023.08.29_15.08.17/reports/signoff/37-xor.xml -rd ignore=81/14 -rd rpt_out=/home/tim/gits/caravel_openframe_project/openlane/picosoc/runs/RUN_2023.08.29_15.08.17/reports/signoff/37-xor.rpt |& tee /dev/null /home/tim/gits/caravel_openframe_project/openlane/picosoc/runs/RUN_2023.08.29_15.08.17/logs/signoff/37-xor.log"
[ERROR]: Exit code: 1
[ERROR]: Last 10 lines:
ERROR: Unable to determine format for file from suffix or format spec /home/tim/gits/openlane/scripts/klayout/xor.drc
child process exited abnormally
Seems kind of odd that klayout won't recognize the file type of a file that starts with a shebang line stating that it is a ruby script. And I'm not sure why it's just my local version of klayout that's doing this. Any ideas?
d
could be a version difference. what version is it?