https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71697
--- Comment #1 from Ian Lance Taylor <ian at airs dot com> --- Note that as far as I can tell that error is only emitted by the GNU linker when the --no-add-needed option is passed to the linker. Is something on your system adding that option or making it the default in some way?