As of 36b269b if torch is used independently from Ghostship to generate a o2r, the portVersion file that is compared at launch is not generated within, and so the game will not run.
This blocks headless systems from Ghostship unless a portVersion file is taken from a PC release and placed inside sm64.o2r.
Real world example: https://github.com/JeodC/RHH-Ports/blob/main/ports/released/harbourmasters64/sm64-ghostship/sm64-ghostship/tools/otrgen