Error building Unreal Engine 4.26 on Linux Debian 11 (Bullseye)

I’ve tried also with method 2) but got the same error.
Trying to trace the error seems to point at:

<eof> parser at end of file

but using built in clang vs, downloaded clang I got the error in different files… that doesn’t make sense to me.
I’ve seen there is no clang v10 in Debian so I’ll try with system clang v11 and method 3) but… what a pain.