Unable to compile GCC 5.2.0 on Debian 7
Victor Rodriguez
vm.rod25@gmail.com
Mon Aug 17 14:03:00 GMT 2015
On Sun, Aug 16, 2015 at 12:26 PM, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
> On 16 August 2015 at 02:46, <admin@mdtech.us> wrote:
>>
>> Why is this happening, and most importaintly, how do I fix it?
>
> Unless you tell us how you configured GCC we have no idea what
> commands you've run and so would only be guessing why that might be
> happening.
Hi Maxweel this is the configure we have in Clera Linux :
%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}
popd
You can clone the entire spec file from here:
git clone git://kojiclear.jf.intel.com/packages/gcc
Or the SRPM:
https://download.clearlinux.org/releases/2630/clear/source/SRPMS/gcc-5.2.0-43.src.rpm
More information about the Gcc-help
mailing list