http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57038
--- Comment #23 from Martin Liška <marxin.liska at gmail dot com> --- The patch fixed weakrefs problems. Compilation goes further and some undefined stuff in libreoffice is met: https://bugs.freedesktop.org/show_bug.cgi?id=61627 I think this gcc bug could be closed.