https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61967
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Дилян Палаузов from comment #5) > Using gcc-ar instead of ar does not help: > > $grep AR\ = Makefile > AR = gcc-ar > ... > ranlib libgnu.a You need to use gcc-ranlib too otherwise the symbol table is also messed up.