https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95712
--- Comment #17 from Alexander Egorenkov <egorenar at linux dot ibm.com> --- (In reply to Andrew Pinski from comment #13) > (In reply to Andreas Schwab from comment #11) > > > generated for aarch64-linux-gnu that I configured for and it has: > > > > You have used --disable-bootstrap. > > No I did not, --disable-bootstrap is the default for the case where we are > doing cross. > > OH I did not notice it was s390 to s390 cross building but buildroot is not > handling that case correctly. Rather it is thinking it is always building a > cross even when build==host==target . > > > --build=s390x-ibm-linux-gnu --host=s390x-buildroot-linux-gnu > > --target=s390x-buildroot-linux-gnu > > That is broken. This is not a cross compiler but rather a build of the > native gcc and therefor is not the correct options. > > So the problem is rather how buildroot is not doing the right configure > options to gcc for building a cross build. NOT A BUG. But i did not use those configure options in my test. And now i also removed option "--target=" in my test and it is still failing with the same problem. I'm not talking about buildroot, i got rid of it. Please see my test. Thanks