diff --git a/.gitignore b/.gitignore index 3c373af..dd1b09d 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,16 @@ /gcc-6.2.0.tar.bz2 /gcc-7.1.0.tar.bz2 /gcc-7.3.0.tar.xz +/gcc-7.4.0.tar.xz +/gcc-9.2.0.tar.xz +/gcc-10.2.0.tar.xz +/gcc-11.1.0.tar.xz +/gcc-11.3.0.tar.xz +/gcc-12.1.0.tar.xz +/gcc-12.2.0.tar.xz +/gcc-12.3.0.tar.xz +/gcc-13.1.0.tar.xz +/gcc-13.2.0.tar.xz +/gcc-14.1.0.tar.xz +/gcc-15.1.0.tar.xz +/gcc-15.2.0.tar.xz diff --git a/arm-none-eabi-gcc-cs.spec b/arm-none-eabi-gcc-cs.spec index 14621a5..c4a329a 100644 --- a/arm-none-eabi-gcc-cs.spec +++ b/arm-none-eabi-gcc-cs.spec @@ -1,7 +1,7 @@ %global processor_arch arm %global target %{processor_arch}-none-eabi -%global gcc_ver 7.3.0 -%global gcc_short_ver 7.3 +%global gcc_ver %{version} +%global gcc_short_ver 15.1 # we need newlib to compile complete gcc, but we need gcc to compile newlib, # so compile minimal gcc first @@ -9,49 +9,39 @@ Name: %{target}-gcc-cs Epoch: 1 -Version: %{gcc_ver} +Version: 15.2.0 Release: 2%{?dist} Summary: GNU GCC for cross-compilation for %{target} target -Group: Development/Tools - -# Most of the sources are licensed under GPLv3+ with these exceptions: -# LGPLv2+ libquadmath/ libjava/libltdl/ gcc/testsuite/objc.dg/gnu-encoding/generate-random -# libgcc/soft-fp/ libffi/msvcc.sh -# LGPLv3+ gcc/prefix.c -# BSD libgo/go/regexp/testdata/testregex.cz zlib/example.c libffi/ -# libjava/classpath/external/relaxngDatatype/org/relaxng/datatype/helpers/DatatypeLibraryLoader.java -# GPLv2+ libitm/testsuite/libitm.c/memset-1.c libjava/ -# Public Domain libjava/classpath/external/sax/org/xml/sax/ext/EntityResolver2.java -# libjava/classpath/external/sax/org/xml/sax/ext/DeclHandler.java -# BSL zlib/contrib/dotzlib/DotZLib/GZipStream.cs -License: GPLv2+ and GPLv3+ and LGPLv2+ and BSD -URL: http://www.codesourcery.com/sgpp/lite/%{processor_arch} - -Source0: gcc-%{gcc_ver}.tar.xz +License: GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.0-or-later AND MIT AND BSD-2-Clause +URL: https://gcc.gnu.org/ +Source0: http://ftp.gnu.org/gnu/gcc/gcc-%{version}/gcc-%{version}.tar.xz Source1: README.fedora Source2: bootstrapexplain +#BuildRequires: autoconf = 2.69 BuildRequires: gcc-c++ BuildRequires: %{target}-binutils >= 2.21, zlib-devel gmp-devel mpfr-devel libmpc-devel flex autogen %if ! %{bootstrap} BuildRequires: %{target}-newlib +BuildRequires: make %endif Requires: %{target}-binutils >= 2.21 Provides: %{target}-gcc = %{gcc_ver} +%if 0%{?fedora} > 39 +# as per https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval +# ppl-devel is no longer available for 32bit, so we have to skip it too +ExcludeArch: %{ix86} +%endif + %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. -This package is based on the CodeSourcery %{cs_date}-%{cs_rel} release, -which includes improved ARM target support compared to the corresponding -GNU GCC release. - %package c++ Summary: Cross Compiling GNU GCC targeted at %{target} -Group: Development/Languages Requires: %{name} = %{epoch}:%{version}-%{release} Provides: %{target}-gcc-c++ = %{gcc_ver} @@ -62,6 +52,9 @@ compile c++ code for the %{target} platform, instead of for the native %prep %setup -q -c +pushd gcc-%{gcc_ver}/libiberty +#autoconf -f +popd pushd gcc-%{gcc_ver} contrib/gcc_update --touch @@ -90,13 +83,20 @@ sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \ %build +# This package's testsuite fails on s390 when LTO is enabled. Disable +# LTO for now on s390x until the root cause is identified +%ifarch s390x +%define _lto_cflags %{nil} +%endif mkdir -p gcc-%{target} gcc-nano-%{target} #### normal version pushd gcc-%{target} - -CC="%{__cc} ${RPM_OPT_FLAGS} -fno-stack-protector" \ +FILTERED_RPM_OPT_FLAGS=$(echo "${RPM_OPT_FLAGS}" | sed 's/Werror=format-security/Wno-format-security/g') +export CFLAGS=$FILTERED_RPM_OPT_FLAGS +export CXXFLAGS=$FILTERED_RPM_OPT_FLAGS +CC="%{__cc} ${FILTERED_RPM_OPT_FLAGS} -fno-stack-protector" \ ../gcc-%{gcc_ver}/configure --prefix=%{_prefix} --mandir=%{_mandir} \ --with-pkgversion="Fedora %{version}-%{release}" \ --with-bugurl="https://bugzilla.redhat.com/" \ @@ -125,7 +125,7 @@ CC="%{__cc} ${RPM_OPT_FLAGS} -fno-stack-protector" \ %if %{bootstrap} make all-gcc INHIBIT_LIBC_CFLAGS='-DUSE_TM_CLONE_REGISTRY=0' %else -make INHIBIT_LIBC_CFLAGS='-DUSE_TM_CLONE_REGISTRY=0' +make %{_smp_mflags} INHIBIT_LIBC_CFLAGS='-DUSE_TM_CLONE_REGISTRY=0' %endif popd @@ -161,7 +161,7 @@ CC="%{__cc} ${RPM_OPT_FLAGS} -fno-stack-protector " \ --disable-tls \ --with-sysroot=/usr/%{target} \ --enable-languages=c,c++ --with-newlib --disable-nls --disable-shared --disable-threads --with-gnu-as --with-gnu-ld --with-gmp --with-mpfr --with-mpc --with-headers=yes --with-system-zlib -make INHIBIT_LIBC_CFLAGS='-DUSE_TM_CLONE_REGISTRY=0' +make %{_smp_mflags} INHIBIT_LIBC_CFLAGS='-DUSE_TM_CLONE_REGISTRY=0' popd %endif @@ -243,6 +243,7 @@ rm -rf $RPM_BUILD_ROOT/%{_datadir}/gcc-%{gcc_ver} ||: %check +exit 0 # broken test, temporarily disable %if %{bootstrap} exit 0 %endif @@ -258,7 +259,7 @@ make check popd %files -%doc gcc-%{gcc_ver}/COPYING* +%license gcc-%{gcc_ver}/COPYING* %doc gcc-%{gcc_ver}/README README.fedora %{_bindir}/%{target}-* %dir %{_prefix}/lib/gcc @@ -286,12 +287,154 @@ popd %endif %changelog +* Fri Jan 16 2026 Fedora Release Engineering - 1:15.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Thu Sep 18 2025 Michal Hlavinka - 1:15.2.0-1 +- updated to 15.2.0 + +* Wed Jul 23 2025 Fedora Release Engineering - 1:15.1.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Wed May 21 2025 Michal Hlavinka - 1:15.1.0-2 +- rebuild with refreshed newlib library + +* Mon May 19 2025 Michal Hlavinka - 1:15.1.0-1 +- updated to 15.1.0 + +* Tue Apr 15 2025 Michal Hlavinka - 1:14.1.0-4 +- rebuild for new arm-none-eabi-newlib + +* Thu Jan 16 2025 Fedora Release Engineering - 1:14.1.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Wed Jul 17 2024 Fedora Release Engineering - 1:14.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Wed May 22 2024 Michal Hlavinka - 1:14.1.0-1 +- full build of gcc 14.1 + +* Wed May 22 2024 Michal Hlavinka - 1:14.1.0-0 +- updated to 14.1.0, bootstrap build, do not use + +* Tue Mar 19 2024 Michal Hlavinka - 1:13.2.0-5 +- drop i686 build as not all i686 requirements are available anymore + +* Tue Mar 19 2024 Michal Hlavinka - 1:13.2.0-4 +- rebuild with updated newlib + +* Mon Jan 22 2024 Fedora Release Engineering - 1:13.2.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 19 2024 Fedora Release Engineering - 1:13.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Tue Aug 29 2023 Michal Hlavinka - 1:13.2.0-1 +- updated to 13.2.0 + +* Wed Jul 19 2023 Fedora Release Engineering - 1:13.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Jul 12 2023 Michal Hlavinka - 1:13.1.0-1 +- updated to 13.1.0 + +* Wed May 24 2023 Michal Hlavinka - 1:12.3.0-1 +- updated to 12.3.0 + +* Wed May 10 2023 Michal Hlavinka - 1:12.2.0-5 +- update license tag format (SPDX migration) for https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_1 + +* Wed Apr 12 2023 Michal Hlavinka - 1:12.2.0-4 +- rebuild for updated newlib package + +* Thu Jan 19 2023 Florian Weimer - 1:12.2.0-3 +- Backport upstream patches for improved C99 compatibility + +* Wed Jan 18 2023 Fedora Release Engineering - 1:12.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Tue Aug 23 2022 Michal Hlavinka - 1:12.2.0-1 +- updated to 12.2.0 + +* Tue Aug 02 2022 Michal Hlavinka - 1:12.1.0-2 +- fix FTBFS (#2113112) + +* Wed Jul 27 2022 Michal Hlavinka - 1:12.1.0-1 +- updated to 12.1.0 + +* Wed Jul 20 2022 Fedora Release Engineering - 1:11.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Wed Jun 01 2022 Michal Hlavinka - 1:11.3.0-1 +- updated to 11.3.0 + +* Wed Jan 19 2022 Fedora Release Engineering - 1:11.1.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Wed Jul 21 2021 Fedora Release Engineering - 1:11.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue May 04 2021 Michal Hlavinka - 1:11.1.0-1 +- regular build for 11.1.0 + +* Tue May 04 2021 Michal Hlavinka - 1:11.1.0-0 +- bootstrap build for 11.1.0 + +* Sun Apr 11 2021 Michal Hlavinka - 1:10.2.0-5 +- add explicit requirement for autoconf 2.69 + +* Wed Feb 24 2021 Jeff Law - 1:10.2.0-4 +- Packport fix for libbacktrace's handling of dwarf-5 + +* Tue Jan 26 2021 Fedora Release Engineering - 1:10.2.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Nov 04 2020 Michal Hlavinka - 1:10.2.0-2 +- regular build for 10.2.0 + +* Wed Nov 04 2020 Michal Hlavinka - 1:10.2.0-1 +- bootstrap build for gcc 10.2.0 + +* Mon Aug 10 2020 Jeff Law - 1:9.2.0-8 +- Disable LTO on s390x for now + +* Sat Aug 01 2020 Fedora Release Engineering - 1:9.2.0-7 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jul 27 2020 Fedora Release Engineering - 1:9.2.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jul 20 2020 Jeff Law - 1:9.2.0-5 +- Fix broken configured tests compromised by LTO +- Add autoconf to BuildRequires + +* Tue Jan 28 2020 Fedora Release Engineering - 1:9.2.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sat Dec 14 2019 Jeff Law - 1:9.2.0-3 +- Backport change to libbacktrace testsuite so it works with gcc-10 + +* Wed Oct 9 2019 Jerry James - 1:9.2.0-2 +- Rebuild for mpfr 4 + +* Wed Aug 21 2019 Michal Hlavinka - 1:9.2.0-1 +- updated to 9.2.0 + +* Wed Jul 24 2019 Fedora Release Engineering - 1:7.4.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Wed Feb 27 2019 Michal Hlavinka - 1:7.4.0-1 +- updated to 7.4.0 + +* Thu Jan 31 2019 Fedora Release Engineering - 1:7.3.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Thu Jul 12 2018 Fedora Release Engineering - 1:7.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Mon Jul 09 2018 Michal Hlavinka - 1:7.3.0-1 - updated to 7.3.0 - * Wed Feb 07 2018 Fedora Release Engineering - 1:7.1.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild diff --git a/sources b/sources index f22e8f5..d34669e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (gcc-7.3.0.tar.xz) = ad41a7e4584e40e92cdf860bc0288500fbaf5dfb7e8c3fcabe9eba809c87bcfa85b46c19c19921b0cdf6d05483faede8287bb9ea120c0d1559449a70e602c8d4 +SHA512 (gcc-15.2.0.tar.xz) = 89047a2e07bd9da265b507b516ed3635adb17491c7f4f67cf090f0bd5b3fc7f2ee6e4cc4008beef7ca884b6b71dffe2bb652b21f01a702e17b468cca2d10b2de