https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118981
--- Comment #26 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Can you attach config.log from the gcc subdirectory in the build directory? I am wondering if init_array detection is going wrong.