On Tue, Jul 7, 2015 at 10:58 AM, Jonathan Wakely <jwakely.gcc@xxxxxxxxx> wrote: > On 7 July 2015 at 16:26, Rai, Raj (CSSA) wrote: >> Hi Wakely >> >> Thank you very much for your response. Looks straight forward but looks not able to download prerequisites .Any work around to overcome from this ?Do it needs port opening or adding to hosts file will work or need to enable ftp ? > > It looks like you're on a machine without internet access, you'll have > to figure that out yourself, that's not a GCC problem. > > The download_prerequisites script is very simple, you can read it > yourself and see what it does, then retrieve the files and unpack them > by hand. It's still much simpler than installing gmp, mpfr etc by > hand. HI here are my 2 cents : This the repo of GCC 5 spec file building and running more than fine , hope it helps: https://download.clearlinux.org/current/source/SRPMS/gcc-5.1.0-39.src.rpm The way I did there was : %prep %setup -q -n %{name}-%{version} %patch0 -p1 %patch1 -p1 %build # Live in the gcc source tree tar xf %{SOURCE1} && ln -sf isl-%{isl_version} isl mkdir ../gcc-build pushd ../gcc-build unset CFLAGS unset CXXFLAGS export CFLAGS="-march=ivybridge -g -O2 -fstack-protector -Wl,-z -Wl,now -Wl,-z -Wl,relro -Wl,-z,max-page-size=0x1000" export CXXFLAGS="-march=ivybridge -g -O2 -Wl,-z,max-page-size=0x1000" export CPATH=%{_includedir} export LIBRARY_PATH=%{_libdir} ../%{name}-%{version}/configure \ --prefix=%{_prefix} \ --with-pkgversion='Clear Linux OS for Intel Architecture'\ --libdir=%{_libdir} \ --enable-libstdcxx-pch\ --libexecdir=%{_libdir} \ --with-system-zlib\ --enable-shared\ --enable-threads=posix\ --enable-__cxa_atexit\ --enable-plugin\ --enable-ld=default\ --enable-clocale=gnu\ --disable-multiarch\ --disable-multilib\ --enable-lto\ --enable-linker-build-id \ --build=%{gcc_target}\ --target=%{gcc_target}\ --enable-languages="c,c++,fortran" \ --enable-bootstrap \ --with-ppl=no \ --includedir=%{_includedir} \ --with-gxx-include-dir=%{_includedir}/c++/ \ --exec-prefix=%{_prefix} \ --with-glibc-version=2.19 \ --with-system-libunwind \ --with-gnu-ld \ --with-tune=haswell \ --with-arch=ivybridge \ --enable-libmpx make %{?_smp_mflags} Best regards Victor Rodriguez