https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102874
--- Comment #3 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> --- > --- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> --- > Does libffi 3.4.2 work on Solaris? If yes, why doesn't it work in gcc? It does when gcc is configured with gas, but doesn't when configured with /bin/as. > If no, please fix the upstream and backport the fix. Done: https://github.com/libffi/libffi/issues/665. Depending on how this goes upstream, we may need a local fix: leaving gcc master broken on Solaris/x86 isn't an option!