Isn't this https://github.com/llvm/llvm-project/issues/236753 ?
with a workaround already in this thread:https://www.postgresql.org/message-id/flat/DKBEBF32QLUA.3L2DJRPUYNKHZ%40partin.io