This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Need help to complile gcc-5.1.0
- From: Victor Rodriguez <vm dot rod25 at gmail dot com>
- To: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- Cc: "Rai, Raj (CSSA)" <Raj dot Rai at abglobal dot com>, "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Tue, 7 Jul 2015 11:11:04 -0500
- Subject: Re: Need help to complile gcc-5.1.0
- Authentication-results: sourceware.org; auth=none
- References: <D0EE465C9FF33A488E5577AD35D5212652D904DA at W01P0100 dot ac dot lp dot acml dot com> <D0EE465C9FF33A488E5577AD35D5212652D904FA at W01P0100 dot ac dot lp dot acml dot com> <D0EE465C9FF33A488E5577AD35D5212652D9053D at W01P0100 dot ac dot lp dot acml dot com> <CAH6eHdRHM+X_ek66X-D5n8Fe6Kj94TfORHn_wGt1YD-S29o7ZA at mail dot gmail dot com> <D0EE465C9FF33A488E5577AD35D5212652D908DA at W01P0100 dot ac dot lp dot acml dot com> <CAH6eHdSem3XdKupiE+m4DuueyHyjvSBUh_34TYfrohitqdrLog at mail dot gmail dot com>
On Tue, Jul 7, 2015 at 10:58 AM, Jonathan Wakely <jwakely.gcc@gmail.com> 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