https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61967
--- Comment #7 from Дилян Палаузов <dilyan.palauzov at aegee dot org> --- (In reply to Andrew Pinski from comment #6) > (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. Okay, using gcc-ranlib did help.