'TVirtualMCStack.h' file not found when building AliPhysics

Dear experts,

I restarted from scratch to build AliPhysics on Mac OS Monterey 12.4, and it fails at the last step when building AliPhysics.
I have
fatal error: ‘TVirtualMCStack.h’ file not found
However, the file ‘~/alice/sw/osx_x86-64/VMC/latest/include/vmc/TVirtualMCStack.h’ exists.
The same error applies when building O2.

Does anyone have a clue how to solve this issue? I attach the log file.

Best regards,

Aude

issue.log (19.6 KB)