On 21 April 2018 at 08:43, Kai Ruottu wrote: > Ignitus Boyone wrote 20.4.2018 : >> I did use contrib/download_prerequisites to pull the required libraries >> prior to starting. > > > I don't believe this "required libraries" being true in the crosscompiler > cases. When > in the native case the required target libraries and headers are in their > native places, > for instance in '/lib64', '/lib', '/usr/lib64', '/usr/lib' and > '/usr/include', in the cross > case one needs to provide them somehow. For instance copying them from the > target system, here from the 'aarch64-linux' system in question. And then > installing > them into a suitable $SYSROOT and pointing to them via a > '--with-sysroot=$SYSROOT' > when configuring the GNU binutils and GCC sources. Are you sure about that? Using contrib/download_prerequisites should work for cross-compilers too, shouldn't it? The GMP, MPFR and MPC libs are needed by the host compiler, not the target, so copying them from the target machine isn't going to work.