Mageia Bugzilla – Attachment 3044 Details for
Bug 7825
Cannot install cross-avr-gcc-c++ and cross-avr-gcc
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Spec file used for my local build of cross-avr-gcc-4.7.2
cross-avr-gcc.spec (text/x-rpm-spec), 2.85 KB, created by
Juergen Harms
on 2012-11-05 15:19:28 CET
(
hide
)
Description:
Spec file used for my local build of cross-avr-gcc-4.7.2
Filename:
MIME Type:
Creator:
Juergen Harms
Created:
2012-11-05 15:19:28 CET
Size:
2.85 KB
patch
obsolete
>%define target avr > ># Disable -Werror because there's a format string warning in gcc/cp/parser.c ># around line 2300 that a comment says is intentional :( >%define Werror_cflags %nil > >Name: cross-%{target}-gcc >Version: 4.7.2 >Release: %mkrel 1 >Summary: Cross Compiling GNU GCC targeted at %{target} >Group: Development/Other >License: GPLv2+ >URL: http://gcc.gnu.org/ >Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{version}/gcc-%{version}.tar.bz2 >Source1: README.mageia > >BuildRequires: cross-%{target}-binutils >= 1:2.20, zlib-devel gawk gmp-devel mpfr-devel libmpc-devel >Requires: cross-%{target}-binutils >= 1:2.20 > >%description >This is a Cross Compiling version of GNU GCC, which can be used to >compile for the %{target} platform, instead of for the >native %{_arch} platform. > >%files >%defattr(-,root,root,-) >%doc gcc-%{version}/COPYING gcc-%{version}/COPYING.LIB >%doc gcc-%{version}/README README.mageia >%{_bindir}/%{target}-* >%dir /usr/lib/gcc >%dir /usr/lib/gcc/%{target} >/usr/lib/gcc/%{target}/%{version} >%dir %{_libexecdir}/gcc >%dir %{_libexecdir}/gcc/%{target} >%{_libexecdir}/gcc/%{target}/%{version} >%{_mandir}/man1/%{target}-*.1.* >%exclude %{_bindir}/%{target}-?++ >%exclude %{_libexecdir}/gcc/%{target}/%{version}/cc1plus >%exclude %{_mandir}/man1/%{target}-g++.1.* > >#-------------------------------------------------------------------- > >%package c++ >Summary: Cross Compiling GNU GCC targeted at %{target} >Group: Development/Other >Requires: %{name} = %{version}-%{release} > >%description c++ >This package contains the Cross Compiling version of g++, which can be used to >compile c++ code for the %{target} platform, instead of for the native %{_arch} >platform. > >%files c++ >%defattr(-,root,root,-) >%{_bindir}/%{target}-?++ >%{_libexecdir}/gcc/%{target}/%{version}/cc1plus >%{_mandir}/man1/%{target}-g++.1.* > >#-------------------------------------------------------------------- > >%prep >%setup -q -c >pushd gcc-%{version} > >contrib/gcc_update --touch >popd >cp -a %{SOURCE1} . > > >%build >mkdir -p gcc-%{target} >pushd gcc-%{target} >CC="%{__cc} ${RPM_OPT_FLAGS}" \ >../gcc-%{version}/configure --prefix=%{_prefix} --mandir=%{_mandir} \ > --infodir=%{_infodir} --target=%{target} --enable-languages=c,c++ \ > --disable-nls --disable-libssp --with-system-zlib \ > --enable-version-specific-runtime-libs --libexecdir=%{_libexecdir} \ > --with-pkgversion="Mageia %{version}-%{release}" \ > --with-bugurl="https://bugs.mageia.org/" ># In general, building GCC is not smp-safe >make >popd > > >%install >pushd gcc-%{target} >make install DESTDIR=$RPM_BUILD_ROOT >popd ># we don't want these as we are a cross version >rm -r $RPM_BUILD_ROOT%{_infodir} >rm -r $RPM_BUILD_ROOT%{_mandir}/man7 >rm $RPM_BUILD_ROOT%{_libdir}/libiberty.a ># and these aren't usefull for embedded targets >rm -r $RPM_BUILD_ROOT/usr/lib*/gcc/%{target}/%{version}/install-tools >
%define target avr # Disable -Werror because there's a format string warning in gcc/cp/parser.c # around line 2300 that a comment says is intentional :( %define Werror_cflags %nil Name: cross-%{target}-gcc Version: 4.7.2 Release: %mkrel 1 Summary: Cross Compiling GNU GCC targeted at %{target} Group: Development/Other License: GPLv2+ URL: http://gcc.gnu.org/ Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{version}/gcc-%{version}.tar.bz2 Source1: README.mageia BuildRequires: cross-%{target}-binutils >= 1:2.20, zlib-devel gawk gmp-devel mpfr-devel libmpc-devel Requires: cross-%{target}-binutils >= 1:2.20 %description This is a Cross Compiling version of GNU GCC, which can be used to compile for the %{target} platform, instead of for the native %{_arch} platform. %files %defattr(-,root,root,-) %doc gcc-%{version}/COPYING gcc-%{version}/COPYING.LIB %doc gcc-%{version}/README README.mageia %{_bindir}/%{target}-* %dir /usr/lib/gcc %dir /usr/lib/gcc/%{target} /usr/lib/gcc/%{target}/%{version} %dir %{_libexecdir}/gcc %dir %{_libexecdir}/gcc/%{target} %{_libexecdir}/gcc/%{target}/%{version} %{_mandir}/man1/%{target}-*.1.* %exclude %{_bindir}/%{target}-?++ %exclude %{_libexecdir}/gcc/%{target}/%{version}/cc1plus %exclude %{_mandir}/man1/%{target}-g++.1.* #-------------------------------------------------------------------- %package c++ Summary: Cross Compiling GNU GCC targeted at %{target} Group: Development/Other Requires: %{name} = %{version}-%{release} %description c++ This package contains the Cross Compiling version of g++, which can be used to compile c++ code for the %{target} platform, instead of for the native %{_arch} platform. %files c++ %defattr(-,root,root,-) %{_bindir}/%{target}-?++ %{_libexecdir}/gcc/%{target}/%{version}/cc1plus %{_mandir}/man1/%{target}-g++.1.* #-------------------------------------------------------------------- %prep %setup -q -c pushd gcc-%{version} contrib/gcc_update --touch popd cp -a %{SOURCE1} . %build mkdir -p gcc-%{target} pushd gcc-%{target} CC="%{__cc} ${RPM_OPT_FLAGS}" \ ../gcc-%{version}/configure --prefix=%{_prefix} --mandir=%{_mandir} \ --infodir=%{_infodir} --target=%{target} --enable-languages=c,c++ \ --disable-nls --disable-libssp --with-system-zlib \ --enable-version-specific-runtime-libs --libexecdir=%{_libexecdir} \ --with-pkgversion="Mageia %{version}-%{release}" \ --with-bugurl="https://bugs.mageia.org/" # In general, building GCC is not smp-safe make popd %install pushd gcc-%{target} make install DESTDIR=$RPM_BUILD_ROOT popd # we don't want these as we are a cross version rm -r $RPM_BUILD_ROOT%{_infodir} rm -r $RPM_BUILD_ROOT%{_mandir}/man7 rm $RPM_BUILD_ROOT%{_libdir}/libiberty.a # and these aren't usefull for embedded targets rm -r $RPM_BUILD_ROOT/usr/lib*/gcc/%{target}/%{version}/install-tools
View Attachment As Raw
Actions:
View
Attachments on
bug 7825
: 3044