I could identify the source of my problem and solve it.
The gcc
that I was using was not the one from the system, but from another software (MESA). I was sourcing MESA from my .bashrc
and MESA carries a version of gcc
with it. And that was the reason of the conflict. After removing the sourcing part from the bashrc
and restarting the shell, gcc
return to work.