As I told I'm running voidlinux.
After search about this cc linker error, everybody indicates you have to install gcc collection. But I've got it installed.
gcc (GCC) 9.2.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Thanks in advance.