Compiling tcl with GCC solves the issue.
So it seems to be a bug in tcl, that it on one hand compiles properly in clang, but fails to execute the script afterwards.
While TCL itself has a page with title Clang, which is empty, the platform support page lists only GCC as compiler:
https://www.tcl ...