In my opinion,
is a system error, not openCV error.
Yeah I increased the RAM, and now i am able to build openCV from source. Thank you for helping