https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64374
--- Comment #2 from Dmitry G. Dyachenko <dimhen at gmail dot com> --- (In reply to Andrew Pinski from comment #1) > Looks like mixing of pic and non pic is causing the issue. May be one more issue : -- without '-O3' during compilation there are no error