Thanks!
The errors can be corrected by declaring extern all the variables in header files. Didn't check with GCC 10, but it should do the trick.
https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
This will be corrected in the next release.