On 2015.09.10 at 08:40 +0200, Markus Trippelsdorf wrote: > On 2015.09.10 at 05:36 +0000, Michael Mishourovsky wrote: > > Dear Sirs, following your suggestions I checked again https://gcc.gnu.org/wiki/InstallingGCC. > > > > Key point was here: https://gcc.gnu.org/install/download.html (last > > passage) "Likewise the GMP, MPFR and MPC libraries can be > > automatically built together with GCC. Unpack the GMP, MPFR and/or MPC > > source distributions in the directory containing the GCC sources and > > rename their directories to gmp, mpfr and mpc, respectively (or use > > symbolic links with the same name)." > > > > Actually my assumption was that if I run download_prerequisites from > > /contrib, it will download everything and put it at right places; but > > actually it does not follow statement above (it does not create gmp, > > mpfr and mpc folder in main gcc package directory) So I did it > > manually and copied files there. > > Well, https://gcc.gnu.org/wiki/InstallingGCC says: > > »Alternatively, after extracting the GCC source archive, simply run the > ./contrib/download_prerequisites script in the GCC source directory.« > > The »in the GCC source directory« part is important. If you run it from > anywhere else it will not work. So perhaps a patch like this one would help: diff --git a/contrib/download_prerequisites b/contrib/download_prerequisites index de0e7c41847d..44dc1238ff5d 100755 --- a/contrib/download_prerequisites +++ b/contrib/download_prerequisites @@ -24,6 +24,11 @@ # be downloaded. GRAPHITE_LOOP_OPT=yes +if [ ! -s gcc/BASE-VER ] ; then + echo "You must run this script in the toplevel GCC source directory." + exit 1 +fi + # Necessary to build GCC. MPFR=mpfr-2.4.2 GMP=gmp-4.3.2 -- Markus