From d931a8b8aeaee6616951b0788271857ed99389293f09198ea89f91c13ce948b6 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Fri, 11 Jun 2021 06:10:00 +0000 Subject: [PATCH] - Add newlib-4.1.0-aligned_alloc.patch to fix nvptx cross build fail. [bsc#1187153] OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc11?expand=0&rev=352 --- cross-aarch64-gcc11.changes | 6 ++++++ cross-aarch64-gcc11.spec | 5 +++++ cross-amdgcn-gcc11.changes | 6 ++++++ cross-amdgcn-gcc11.spec | 5 +++++ cross-arm-gcc11.changes | 6 ++++++ cross-arm-gcc11.spec | 5 +++++ cross-arm-none-gcc11-bootstrap.changes | 6 ++++++ cross-arm-none-gcc11-bootstrap.spec | 5 +++++ cross-arm-none-gcc11.changes | 6 ++++++ cross-arm-none-gcc11.spec | 5 +++++ cross-avr-gcc11-bootstrap.changes | 6 ++++++ cross-avr-gcc11-bootstrap.spec | 5 +++++ cross-avr-gcc11.changes | 6 ++++++ cross-avr-gcc11.spec | 5 +++++ cross-epiphany-gcc11-bootstrap.changes | 6 ++++++ cross-epiphany-gcc11-bootstrap.spec | 5 +++++ cross-epiphany-gcc11.changes | 6 ++++++ cross-epiphany-gcc11.spec | 5 +++++ cross-hppa-gcc11.changes | 6 ++++++ cross-hppa-gcc11.spec | 5 +++++ cross-i386-gcc11.changes | 6 ++++++ cross-i386-gcc11.spec | 5 +++++ cross-m68k-gcc11.changes | 6 ++++++ cross-m68k-gcc11.spec | 5 +++++ cross-mips-gcc11.changes | 6 ++++++ cross-mips-gcc11.spec | 5 +++++ cross-nvptx-gcc11.changes | 6 ++++++ cross-nvptx-gcc11.spec | 5 +++++ cross-ppc64-gcc11.changes | 6 ++++++ cross-ppc64-gcc11.spec | 5 +++++ cross-ppc64le-gcc11.changes | 6 ++++++ cross-ppc64le-gcc11.spec | 5 +++++ cross-riscv64-elf-gcc11-bootstrap.changes | 6 ++++++ cross-riscv64-elf-gcc11-bootstrap.spec | 5 +++++ cross-riscv64-elf-gcc11.changes | 6 ++++++ cross-riscv64-elf-gcc11.spec | 5 +++++ cross-riscv64-gcc11.changes | 6 ++++++ cross-riscv64-gcc11.spec | 5 +++++ cross-rx-gcc11-bootstrap.changes | 6 ++++++ cross-rx-gcc11-bootstrap.spec | 5 +++++ cross-rx-gcc11.changes | 6 ++++++ cross-rx-gcc11.spec | 5 +++++ cross-s390x-gcc11.changes | 6 ++++++ cross-s390x-gcc11.spec | 5 +++++ cross-sparc-gcc11.changes | 6 ++++++ cross-sparc-gcc11.spec | 5 +++++ cross-sparc64-gcc11.changes | 6 ++++++ cross-sparc64-gcc11.spec | 5 +++++ cross-x86_64-gcc11.changes | 6 ++++++ cross-x86_64-gcc11.spec | 5 +++++ gcc.spec.in | 5 +++++ gcc11-testresults.changes | 6 ++++++ gcc11-testresults.spec | 5 +++++ gcc11.changes | 6 ++++++ gcc11.spec | 5 +++++ newlib-4.1.0-aligned_alloc.patch | 10 ++++++++++ 56 files changed, 312 insertions(+) create mode 100644 newlib-4.1.0-aligned_alloc.patch diff --git a/cross-aarch64-gcc11.changes b/cross-aarch64-gcc11.changes index a4c7f9d..8a32d7e 100644 --- a/cross-aarch64-gcc11.changes +++ b/cross-aarch64-gcc11.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 10 10:03:37 UTC 2021 - Richard Biener + +- Add newlib-4.1.0-aligned_alloc.patch to fix nvptx cross build + fail. [bsc#1187153] + ------------------------------------------------------------------- Wed Jun 9 08:50:44 UTC 2021 - Richard Biener diff --git a/cross-aarch64-gcc11.spec b/cross-aarch64-gcc11.spec index 6716acf..e81270b 100644 --- a/cross-aarch64-gcc11.spec +++ b/cross-aarch64-gcc11.spec @@ -146,6 +146,8 @@ Patch52: gcc10-foffload-default.patch # Some patches taken from Debian Patch60: gcc44-textdomain.patch Patch61: gcc44-rename-info-files.patch +# Patches for embedded newlib +Patch100: newlib-4.1.0-aligned_alloc.patch # Define the canonical target and host architecture # %%gcc_target_arch is supposed to be the full target triple @@ -295,6 +297,9 @@ only, it is not intended for any other use. %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %setup -q -n gcc-%{version} -a 5 ln -s newlib-4.1.0/newlib . +cd newlib +%patch100 -p1 +cd .. %else %setup -q -n gcc-%{version} %endif diff --git a/cross-amdgcn-gcc11.changes b/cross-amdgcn-gcc11.changes index a4c7f9d..8a32d7e 100644 --- a/cross-amdgcn-gcc11.changes +++ b/cross-amdgcn-gcc11.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 10 10:03:37 UTC 2021 - Richard Biener + +- Add newlib-4.1.0-aligned_alloc.patch to fix nvptx cross build + fail. [bsc#1187153] + ------------------------------------------------------------------- Wed Jun 9 08:50:44 UTC 2021 - Richard Biener diff --git a/cross-amdgcn-gcc11.spec b/cross-amdgcn-gcc11.spec index c49e6e4..d4dbde0 100644 --- a/cross-amdgcn-gcc11.spec +++ b/cross-amdgcn-gcc11.spec @@ -146,6 +146,8 @@ Patch52: gcc10-foffload-default.patch # Some patches taken from Debian Patch60: gcc44-textdomain.patch Patch61: gcc44-rename-info-files.patch +# Patches for embedded newlib +Patch100: newlib-4.1.0-aligned_alloc.patch # Define the canonical target and host architecture # %%gcc_target_arch is supposed to be the full target triple @@ -295,6 +297,9 @@ only, it is not intended for any other use. %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %setup -q -n gcc-%{version} -a 5 ln -s newlib-4.1.0/newlib . +cd newlib +%patch100 -p1 +cd .. %else %setup -q -n gcc-%{version} %endif diff --git a/cross-arm-gcc11.changes b/cross-arm-gcc11.changes index a4c7f9d..8a32d7e 100644 --- a/cross-arm-gcc11.changes +++ b/cross-arm-gcc11.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 10 10:03:37 UTC 2021 - Richard Biener + +- Add newlib-4.1.0-aligned_alloc.patch to fix nvptx cross build + fail. [bsc#1187153] + ------------------------------------------------------------------- Wed Jun 9 08:50:44 UTC 2021 - Richard Biener diff --git a/cross-arm-gcc11.spec b/cross-arm-gcc11.spec index f79caf0..c7470a9 100644 --- a/cross-arm-gcc11.spec +++ b/cross-arm-gcc11.spec @@ -146,6 +146,8 @@ Patch52: gcc10-foffload-default.patch # Some patches taken from Debian Patch60: gcc44-textdomain.patch Patch61: gcc44-rename-info-files.patch +# Patches for embedded newlib +Patch100: newlib-4.1.0-aligned_alloc.patch # Define the canonical target and host architecture # %%gcc_target_arch is supposed to be the full target triple @@ -295,6 +297,9 @@ only, it is not intended for any other use. %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %setup -q -n gcc-%{version} -a 5 ln -s newlib-4.1.0/newlib . +cd newlib +%patch100 -p1 +cd .. %else %setup -q -n gcc-%{version} %endif diff --git a/cross-arm-none-gcc11-bootstrap.changes b/cross-arm-none-gcc11-bootstrap.changes index a4c7f9d..8a32d7e 100644 --- a/cross-arm-none-gcc11-bootstrap.changes +++ b/cross-arm-none-gcc11-bootstrap.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 10 10:03:37 UTC 2021 - Richard Biener + +- Add newlib-4.1.0-aligned_alloc.patch to fix nvptx cross build + fail. [bsc#1187153] + ------------------------------------------------------------------- Wed Jun 9 08:50:44 UTC 2021 - Richard Biener diff --git a/cross-arm-none-gcc11-bootstrap.spec b/cross-arm-none-gcc11-bootstrap.spec index a4846e9..47865df 100644 --- a/cross-arm-none-gcc11-bootstrap.spec +++ b/cross-arm-none-gcc11-bootstrap.spec @@ -147,6 +147,8 @@ Patch52: gcc10-foffload-default.patch # Some patches taken from Debian Patch60: gcc44-textdomain.patch Patch61: gcc44-rename-info-files.patch +# Patches for embedded newlib +Patch100: newlib-4.1.0-aligned_alloc.patch # Define the canonical target and host architecture # %%gcc_target_arch is supposed to be the full target triple @@ -296,6 +298,9 @@ only, it is not intended for any other use. %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %setup -q -n gcc-%{version} -a 5 ln -s newlib-4.1.0/newlib . +cd newlib +%patch100 -p1 +cd .. %else %setup -q -n gcc-%{version} %endif diff --git a/cross-arm-none-gcc11.changes b/cross-arm-none-gcc11.changes index a4c7f9d..8a32d7e 100644 --- a/cross-arm-none-gcc11.changes +++ b/cross-arm-none-gcc11.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 10 10:03:37 UTC 2021 - Richard Biener + +- Add newlib-4.1.0-aligned_alloc.patch to fix nvptx cross build + fail. [bsc#1187153] + ------------------------------------------------------------------- Wed Jun 9 08:50:44 UTC 2021 - Richard Biener diff --git a/cross-arm-none-gcc11.spec b/cross-arm-none-gcc11.spec index 14ec77c..c68cc7a 100644 --- a/cross-arm-none-gcc11.spec +++ b/cross-arm-none-gcc11.spec @@ -146,6 +146,8 @@ Patch52: gcc10-foffload-default.patch # Some patches taken from Debian Patch60: gcc44-textdomain.patch Patch61: gcc44-rename-info-files.patch +# Patches for embedded newlib +Patch100: newlib-4.1.0-aligned_alloc.patch # Define the canonical target and host architecture # %%gcc_target_arch is supposed to be the full target triple @@ -295,6 +297,9 @@ only, it is not intended for any other use. %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %setup -q -n gcc-%{version} -a 5 ln -s newlib-4.1.0/newlib . +cd newlib +%patch100 -p1 +cd .. %else %setup -q -n gcc-%{version} %endif diff --git a/cross-avr-gcc11-bootstrap.changes b/cross-avr-gcc11-bootstrap.changes index a4c7f9d..8a32d7e 100644 --- a/cross-avr-gcc11-bootstrap.changes +++ b/cross-avr-gcc11-bootstrap.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 10 10:03:37 UTC 2021 - Richard Biener + +- Add newlib-4.1.0-aligned_alloc.patch to fix nvptx cross build + fail. [bsc#1187153] + ------------------------------------------------------------------- Wed Jun 9 08:50:44 UTC 2021 - Richard Biener diff --git a/cross-avr-gcc11-bootstrap.spec b/cross-avr-gcc11-bootstrap.spec index 273ea28..3dfd9d2 100644 --- a/cross-avr-gcc11-bootstrap.spec +++ b/cross-avr-gcc11-bootstrap.spec @@ -146,6 +146,8 @@ Patch52: gcc10-foffload-default.patch # Some patches taken from Debian Patch60: gcc44-textdomain.patch Patch61: gcc44-rename-info-files.patch +# Patches for embedded newlib +Patch100: newlib-4.1.0-aligned_alloc.patch # Define the canonical target and host architecture # %%gcc_target_arch is supposed to be the full target triple @@ -295,6 +297,9 @@ only, it is not intended for any other use. %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %setup -q -n gcc-%{version} -a 5 ln -s newlib-4.1.0/newlib . +cd newlib +%patch100 -p1 +cd .. %else %setup -q -n gcc-%{version} %endif diff --git a/cross-avr-gcc11.changes b/cross-avr-gcc11.changes index a4c7f9d..8a32d7e 100644 --- a/cross-avr-gcc11.changes +++ b/cross-avr-gcc11.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 10 10:03:37 UTC 2021 - Richard Biener + +- Add newlib-4.1.0-aligned_alloc.patch to fix nvptx cross build + fail. [bsc#1187153] + ------------------------------------------------------------------- Wed Jun 9 08:50:44 UTC 2021 - Richard Biener diff --git a/cross-avr-gcc11.spec b/cross-avr-gcc11.spec index 42982ef..94016a7 100644 --- a/cross-avr-gcc11.spec +++ b/cross-avr-gcc11.spec @@ -146,6 +146,8 @@ Patch52: gcc10-foffload-default.patch # Some patches taken from Debian Patch60: gcc44-textdomain.patch Patch61: gcc44-rename-info-files.patch +# Patches for embedded newlib +Patch100: newlib-4.1.0-aligned_alloc.patch # Define the canonical target and host architecture # %%gcc_target_arch is supposed to be the full target triple @@ -295,6 +297,9 @@ only, it is not intended for any other use. %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %setup -q -n gcc-%{version} -a 5 ln -s newlib-4.1.0/newlib . +cd newlib +%patch100 -p1 +cd .. %else %setup -q -n gcc-%{version} %endif diff --git a/cross-epiphany-gcc11-bootstrap.changes b/cross-epiphany-gcc11-bootstrap.changes index a4c7f9d..8a32d7e 100644 --- a/cross-epiphany-gcc11-bootstrap.changes +++ b/cross-epiphany-gcc11-bootstrap.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 10 10:03:37 UTC 2021 - Richard Biener + +- Add newlib-4.1.0-aligned_alloc.patch to fix nvptx cross build + fail. [bsc#1187153] + ------------------------------------------------------------------- Wed Jun 9 08:50:44 UTC 2021 - Richard Biener diff --git a/cross-epiphany-gcc11-bootstrap.spec b/cross-epiphany-gcc11-bootstrap.spec index 4d1ae44..333c469 100644 --- a/cross-epiphany-gcc11-bootstrap.spec +++ b/cross-epiphany-gcc11-bootstrap.spec @@ -147,6 +147,8 @@ Patch52: gcc10-foffload-default.patch # Some patches taken from Debian Patch60: gcc44-textdomain.patch Patch61: gcc44-rename-info-files.patch +# Patches for embedded newlib +Patch100: newlib-4.1.0-aligned_alloc.patch # Define the canonical target and host architecture # %%gcc_target_arch is supposed to be the full target triple @@ -296,6 +298,9 @@ only, it is not intended for any other use. %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %setup -q -n gcc-%{version} -a 5 ln -s newlib-4.1.0/newlib . +cd newlib +%patch100 -p1 +cd .. %else %setup -q -n gcc-%{version} %endif diff --git a/cross-epiphany-gcc11.changes b/cross-epiphany-gcc11.changes index a4c7f9d..8a32d7e 100644 --- a/cross-epiphany-gcc11.changes +++ b/cross-epiphany-gcc11.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 10 10:03:37 UTC 2021 - Richard Biener + +- Add newlib-4.1.0-aligned_alloc.patch to fix nvptx cross build + fail. [bsc#1187153] + ------------------------------------------------------------------- Wed Jun 9 08:50:44 UTC 2021 - Richard Biener diff --git a/cross-epiphany-gcc11.spec b/cross-epiphany-gcc11.spec index 40e987a..429aefe 100644 --- a/cross-epiphany-gcc11.spec +++ b/cross-epiphany-gcc11.spec @@ -146,6 +146,8 @@ Patch52: gcc10-foffload-default.patch # Some patches taken from Debian Patch60: gcc44-textdomain.patch Patch61: gcc44-rename-info-files.patch +# Patches for embedded newlib +Patch100: newlib-4.1.0-aligned_alloc.patch # Define the canonical target and host architecture # %%gcc_target_arch is supposed to be the full target triple @@ -295,6 +297,9 @@ only, it is not intended for any other use. %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %setup -q -n gcc-%{version} -a 5 ln -s newlib-4.1.0/newlib . +cd newlib +%patch100 -p1 +cd .. %else %setup -q -n gcc-%{version} %endif diff --git a/cross-hppa-gcc11.changes b/cross-hppa-gcc11.changes index a4c7f9d..8a32d7e 100644 --- a/cross-hppa-gcc11.changes +++ b/cross-hppa-gcc11.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 10 10:03:37 UTC 2021 - Richard Biener + +- Add newlib-4.1.0-aligned_alloc.patch to fix nvptx cross build + fail. [bsc#1187153] + ------------------------------------------------------------------- Wed Jun 9 08:50:44 UTC 2021 - Richard Biener diff --git a/cross-hppa-gcc11.spec b/cross-hppa-gcc11.spec index 6e3fefd..5e8134d 100644 --- a/cross-hppa-gcc11.spec +++ b/cross-hppa-gcc11.spec @@ -146,6 +146,8 @@ Patch52: gcc10-foffload-default.patch # Some patches taken from Debian Patch60: gcc44-textdomain.patch Patch61: gcc44-rename-info-files.patch +# Patches for embedded newlib +Patch100: newlib-4.1.0-aligned_alloc.patch # Define the canonical target and host architecture # %%gcc_target_arch is supposed to be the full target triple @@ -295,6 +297,9 @@ only, it is not intended for any other use. %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %setup -q -n gcc-%{version} -a 5 ln -s newlib-4.1.0/newlib . +cd newlib +%patch100 -p1 +cd .. %else %setup -q -n gcc-%{version} %endif diff --git a/cross-i386-gcc11.changes b/cross-i386-gcc11.changes index a4c7f9d..8a32d7e 100644 --- a/cross-i386-gcc11.changes +++ b/cross-i386-gcc11.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 10 10:03:37 UTC 2021 - Richard Biener + +- Add newlib-4.1.0-aligned_alloc.patch to fix nvptx cross build + fail. [bsc#1187153] + ------------------------------------------------------------------- Wed Jun 9 08:50:44 UTC 2021 - Richard Biener diff --git a/cross-i386-gcc11.spec b/cross-i386-gcc11.spec index 575ea1d..713ca78 100644 --- a/cross-i386-gcc11.spec +++ b/cross-i386-gcc11.spec @@ -146,6 +146,8 @@ Patch52: gcc10-foffload-default.patch # Some patches taken from Debian Patch60: gcc44-textdomain.patch Patch61: gcc44-rename-info-files.patch +# Patches for embedded newlib +Patch100: newlib-4.1.0-aligned_alloc.patch # Define the canonical target and host architecture # %%gcc_target_arch is supposed to be the full target triple @@ -295,6 +297,9 @@ only, it is not intended for any other use. %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %setup -q -n gcc-%{version} -a 5 ln -s newlib-4.1.0/newlib . +cd newlib +%patch100 -p1 +cd .. %else %setup -q -n gcc-%{version} %endif diff --git a/cross-m68k-gcc11.changes b/cross-m68k-gcc11.changes index a4c7f9d..8a32d7e 100644 --- a/cross-m68k-gcc11.changes +++ b/cross-m68k-gcc11.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 10 10:03:37 UTC 2021 - Richard Biener + +- Add newlib-4.1.0-aligned_alloc.patch to fix nvptx cross build + fail. [bsc#1187153] + ------------------------------------------------------------------- Wed Jun 9 08:50:44 UTC 2021 - Richard Biener diff --git a/cross-m68k-gcc11.spec b/cross-m68k-gcc11.spec index 65e93bb..3430c0c 100644 --- a/cross-m68k-gcc11.spec +++ b/cross-m68k-gcc11.spec @@ -146,6 +146,8 @@ Patch52: gcc10-foffload-default.patch # Some patches taken from Debian Patch60: gcc44-textdomain.patch Patch61: gcc44-rename-info-files.patch +# Patches for embedded newlib +Patch100: newlib-4.1.0-aligned_alloc.patch # Define the canonical target and host architecture # %%gcc_target_arch is supposed to be the full target triple @@ -295,6 +297,9 @@ only, it is not intended for any other use. %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %setup -q -n gcc-%{version} -a 5 ln -s newlib-4.1.0/newlib . +cd newlib +%patch100 -p1 +cd .. %else %setup -q -n gcc-%{version} %endif diff --git a/cross-mips-gcc11.changes b/cross-mips-gcc11.changes index a4c7f9d..8a32d7e 100644 --- a/cross-mips-gcc11.changes +++ b/cross-mips-gcc11.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 10 10:03:37 UTC 2021 - Richard Biener + +- Add newlib-4.1.0-aligned_alloc.patch to fix nvptx cross build + fail. [bsc#1187153] + ------------------------------------------------------------------- Wed Jun 9 08:50:44 UTC 2021 - Richard Biener diff --git a/cross-mips-gcc11.spec b/cross-mips-gcc11.spec index ccd6286..46d5d37 100644 --- a/cross-mips-gcc11.spec +++ b/cross-mips-gcc11.spec @@ -146,6 +146,8 @@ Patch52: gcc10-foffload-default.patch # Some patches taken from Debian Patch60: gcc44-textdomain.patch Patch61: gcc44-rename-info-files.patch +# Patches for embedded newlib +Patch100: newlib-4.1.0-aligned_alloc.patch # Define the canonical target and host architecture # %%gcc_target_arch is supposed to be the full target triple @@ -295,6 +297,9 @@ only, it is not intended for any other use. %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %setup -q -n gcc-%{version} -a 5 ln -s newlib-4.1.0/newlib . +cd newlib +%patch100 -p1 +cd .. %else %setup -q -n gcc-%{version} %endif diff --git a/cross-nvptx-gcc11.changes b/cross-nvptx-gcc11.changes index a4c7f9d..8a32d7e 100644 --- a/cross-nvptx-gcc11.changes +++ b/cross-nvptx-gcc11.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 10 10:03:37 UTC 2021 - Richard Biener + +- Add newlib-4.1.0-aligned_alloc.patch to fix nvptx cross build + fail. [bsc#1187153] + ------------------------------------------------------------------- Wed Jun 9 08:50:44 UTC 2021 - Richard Biener diff --git a/cross-nvptx-gcc11.spec b/cross-nvptx-gcc11.spec index 5f87452..a80935c 100644 --- a/cross-nvptx-gcc11.spec +++ b/cross-nvptx-gcc11.spec @@ -146,6 +146,8 @@ Patch52: gcc10-foffload-default.patch # Some patches taken from Debian Patch60: gcc44-textdomain.patch Patch61: gcc44-rename-info-files.patch +# Patches for embedded newlib +Patch100: newlib-4.1.0-aligned_alloc.patch # Define the canonical target and host architecture # %%gcc_target_arch is supposed to be the full target triple @@ -295,6 +297,9 @@ only, it is not intended for any other use. %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %setup -q -n gcc-%{version} -a 5 ln -s newlib-4.1.0/newlib . +cd newlib +%patch100 -p1 +cd .. %else %setup -q -n gcc-%{version} %endif diff --git a/cross-ppc64-gcc11.changes b/cross-ppc64-gcc11.changes index a4c7f9d..8a32d7e 100644 --- a/cross-ppc64-gcc11.changes +++ b/cross-ppc64-gcc11.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 10 10:03:37 UTC 2021 - Richard Biener + +- Add newlib-4.1.0-aligned_alloc.patch to fix nvptx cross build + fail. [bsc#1187153] + ------------------------------------------------------------------- Wed Jun 9 08:50:44 UTC 2021 - Richard Biener diff --git a/cross-ppc64-gcc11.spec b/cross-ppc64-gcc11.spec index 3d56f38..daeb974 100644 --- a/cross-ppc64-gcc11.spec +++ b/cross-ppc64-gcc11.spec @@ -146,6 +146,8 @@ Patch52: gcc10-foffload-default.patch # Some patches taken from Debian Patch60: gcc44-textdomain.patch Patch61: gcc44-rename-info-files.patch +# Patches for embedded newlib +Patch100: newlib-4.1.0-aligned_alloc.patch # Define the canonical target and host architecture # %%gcc_target_arch is supposed to be the full target triple @@ -295,6 +297,9 @@ only, it is not intended for any other use. %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %setup -q -n gcc-%{version} -a 5 ln -s newlib-4.1.0/newlib . +cd newlib +%patch100 -p1 +cd .. %else %setup -q -n gcc-%{version} %endif diff --git a/cross-ppc64le-gcc11.changes b/cross-ppc64le-gcc11.changes index a4c7f9d..8a32d7e 100644 --- a/cross-ppc64le-gcc11.changes +++ b/cross-ppc64le-gcc11.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 10 10:03:37 UTC 2021 - Richard Biener + +- Add newlib-4.1.0-aligned_alloc.patch to fix nvptx cross build + fail. [bsc#1187153] + ------------------------------------------------------------------- Wed Jun 9 08:50:44 UTC 2021 - Richard Biener diff --git a/cross-ppc64le-gcc11.spec b/cross-ppc64le-gcc11.spec index 05cc85c..9f50dbd 100644 --- a/cross-ppc64le-gcc11.spec +++ b/cross-ppc64le-gcc11.spec @@ -146,6 +146,8 @@ Patch52: gcc10-foffload-default.patch # Some patches taken from Debian Patch60: gcc44-textdomain.patch Patch61: gcc44-rename-info-files.patch +# Patches for embedded newlib +Patch100: newlib-4.1.0-aligned_alloc.patch # Define the canonical target and host architecture # %%gcc_target_arch is supposed to be the full target triple @@ -295,6 +297,9 @@ only, it is not intended for any other use. %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %setup -q -n gcc-%{version} -a 5 ln -s newlib-4.1.0/newlib . +cd newlib +%patch100 -p1 +cd .. %else %setup -q -n gcc-%{version} %endif diff --git a/cross-riscv64-elf-gcc11-bootstrap.changes b/cross-riscv64-elf-gcc11-bootstrap.changes index a4c7f9d..8a32d7e 100644 --- a/cross-riscv64-elf-gcc11-bootstrap.changes +++ b/cross-riscv64-elf-gcc11-bootstrap.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 10 10:03:37 UTC 2021 - Richard Biener + +- Add newlib-4.1.0-aligned_alloc.patch to fix nvptx cross build + fail. [bsc#1187153] + ------------------------------------------------------------------- Wed Jun 9 08:50:44 UTC 2021 - Richard Biener diff --git a/cross-riscv64-elf-gcc11-bootstrap.spec b/cross-riscv64-elf-gcc11-bootstrap.spec index 1663625..45136d9 100644 --- a/cross-riscv64-elf-gcc11-bootstrap.spec +++ b/cross-riscv64-elf-gcc11-bootstrap.spec @@ -147,6 +147,8 @@ Patch52: gcc10-foffload-default.patch # Some patches taken from Debian Patch60: gcc44-textdomain.patch Patch61: gcc44-rename-info-files.patch +# Patches for embedded newlib +Patch100: newlib-4.1.0-aligned_alloc.patch # Define the canonical target and host architecture # %%gcc_target_arch is supposed to be the full target triple @@ -296,6 +298,9 @@ only, it is not intended for any other use. %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %setup -q -n gcc-%{version} -a 5 ln -s newlib-4.1.0/newlib . +cd newlib +%patch100 -p1 +cd .. %else %setup -q -n gcc-%{version} %endif diff --git a/cross-riscv64-elf-gcc11.changes b/cross-riscv64-elf-gcc11.changes index a4c7f9d..8a32d7e 100644 --- a/cross-riscv64-elf-gcc11.changes +++ b/cross-riscv64-elf-gcc11.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 10 10:03:37 UTC 2021 - Richard Biener + +- Add newlib-4.1.0-aligned_alloc.patch to fix nvptx cross build + fail. [bsc#1187153] + ------------------------------------------------------------------- Wed Jun 9 08:50:44 UTC 2021 - Richard Biener diff --git a/cross-riscv64-elf-gcc11.spec b/cross-riscv64-elf-gcc11.spec index 3bf36f8..073baac 100644 --- a/cross-riscv64-elf-gcc11.spec +++ b/cross-riscv64-elf-gcc11.spec @@ -146,6 +146,8 @@ Patch52: gcc10-foffload-default.patch # Some patches taken from Debian Patch60: gcc44-textdomain.patch Patch61: gcc44-rename-info-files.patch +# Patches for embedded newlib +Patch100: newlib-4.1.0-aligned_alloc.patch # Define the canonical target and host architecture # %%gcc_target_arch is supposed to be the full target triple @@ -295,6 +297,9 @@ only, it is not intended for any other use. %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %setup -q -n gcc-%{version} -a 5 ln -s newlib-4.1.0/newlib . +cd newlib +%patch100 -p1 +cd .. %else %setup -q -n gcc-%{version} %endif diff --git a/cross-riscv64-gcc11.changes b/cross-riscv64-gcc11.changes index a4c7f9d..8a32d7e 100644 --- a/cross-riscv64-gcc11.changes +++ b/cross-riscv64-gcc11.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 10 10:03:37 UTC 2021 - Richard Biener + +- Add newlib-4.1.0-aligned_alloc.patch to fix nvptx cross build + fail. [bsc#1187153] + ------------------------------------------------------------------- Wed Jun 9 08:50:44 UTC 2021 - Richard Biener diff --git a/cross-riscv64-gcc11.spec b/cross-riscv64-gcc11.spec index e3f9c14..be10122 100644 --- a/cross-riscv64-gcc11.spec +++ b/cross-riscv64-gcc11.spec @@ -146,6 +146,8 @@ Patch52: gcc10-foffload-default.patch # Some patches taken from Debian Patch60: gcc44-textdomain.patch Patch61: gcc44-rename-info-files.patch +# Patches for embedded newlib +Patch100: newlib-4.1.0-aligned_alloc.patch # Define the canonical target and host architecture # %%gcc_target_arch is supposed to be the full target triple @@ -295,6 +297,9 @@ only, it is not intended for any other use. %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %setup -q -n gcc-%{version} -a 5 ln -s newlib-4.1.0/newlib . +cd newlib +%patch100 -p1 +cd .. %else %setup -q -n gcc-%{version} %endif diff --git a/cross-rx-gcc11-bootstrap.changes b/cross-rx-gcc11-bootstrap.changes index a4c7f9d..8a32d7e 100644 --- a/cross-rx-gcc11-bootstrap.changes +++ b/cross-rx-gcc11-bootstrap.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 10 10:03:37 UTC 2021 - Richard Biener + +- Add newlib-4.1.0-aligned_alloc.patch to fix nvptx cross build + fail. [bsc#1187153] + ------------------------------------------------------------------- Wed Jun 9 08:50:44 UTC 2021 - Richard Biener diff --git a/cross-rx-gcc11-bootstrap.spec b/cross-rx-gcc11-bootstrap.spec index c7402c2..5b89386 100644 --- a/cross-rx-gcc11-bootstrap.spec +++ b/cross-rx-gcc11-bootstrap.spec @@ -147,6 +147,8 @@ Patch52: gcc10-foffload-default.patch # Some patches taken from Debian Patch60: gcc44-textdomain.patch Patch61: gcc44-rename-info-files.patch +# Patches for embedded newlib +Patch100: newlib-4.1.0-aligned_alloc.patch # Define the canonical target and host architecture # %%gcc_target_arch is supposed to be the full target triple @@ -296,6 +298,9 @@ only, it is not intended for any other use. %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %setup -q -n gcc-%{version} -a 5 ln -s newlib-4.1.0/newlib . +cd newlib +%patch100 -p1 +cd .. %else %setup -q -n gcc-%{version} %endif diff --git a/cross-rx-gcc11.changes b/cross-rx-gcc11.changes index a4c7f9d..8a32d7e 100644 --- a/cross-rx-gcc11.changes +++ b/cross-rx-gcc11.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 10 10:03:37 UTC 2021 - Richard Biener + +- Add newlib-4.1.0-aligned_alloc.patch to fix nvptx cross build + fail. [bsc#1187153] + ------------------------------------------------------------------- Wed Jun 9 08:50:44 UTC 2021 - Richard Biener diff --git a/cross-rx-gcc11.spec b/cross-rx-gcc11.spec index b4dac7a..13a72df 100644 --- a/cross-rx-gcc11.spec +++ b/cross-rx-gcc11.spec @@ -146,6 +146,8 @@ Patch52: gcc10-foffload-default.patch # Some patches taken from Debian Patch60: gcc44-textdomain.patch Patch61: gcc44-rename-info-files.patch +# Patches for embedded newlib +Patch100: newlib-4.1.0-aligned_alloc.patch # Define the canonical target and host architecture # %%gcc_target_arch is supposed to be the full target triple @@ -295,6 +297,9 @@ only, it is not intended for any other use. %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %setup -q -n gcc-%{version} -a 5 ln -s newlib-4.1.0/newlib . +cd newlib +%patch100 -p1 +cd .. %else %setup -q -n gcc-%{version} %endif diff --git a/cross-s390x-gcc11.changes b/cross-s390x-gcc11.changes index a4c7f9d..8a32d7e 100644 --- a/cross-s390x-gcc11.changes +++ b/cross-s390x-gcc11.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 10 10:03:37 UTC 2021 - Richard Biener + +- Add newlib-4.1.0-aligned_alloc.patch to fix nvptx cross build + fail. [bsc#1187153] + ------------------------------------------------------------------- Wed Jun 9 08:50:44 UTC 2021 - Richard Biener diff --git a/cross-s390x-gcc11.spec b/cross-s390x-gcc11.spec index e476c34..6b6af79 100644 --- a/cross-s390x-gcc11.spec +++ b/cross-s390x-gcc11.spec @@ -146,6 +146,8 @@ Patch52: gcc10-foffload-default.patch # Some patches taken from Debian Patch60: gcc44-textdomain.patch Patch61: gcc44-rename-info-files.patch +# Patches for embedded newlib +Patch100: newlib-4.1.0-aligned_alloc.patch # Define the canonical target and host architecture # %%gcc_target_arch is supposed to be the full target triple @@ -295,6 +297,9 @@ only, it is not intended for any other use. %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %setup -q -n gcc-%{version} -a 5 ln -s newlib-4.1.0/newlib . +cd newlib +%patch100 -p1 +cd .. %else %setup -q -n gcc-%{version} %endif diff --git a/cross-sparc-gcc11.changes b/cross-sparc-gcc11.changes index a4c7f9d..8a32d7e 100644 --- a/cross-sparc-gcc11.changes +++ b/cross-sparc-gcc11.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 10 10:03:37 UTC 2021 - Richard Biener + +- Add newlib-4.1.0-aligned_alloc.patch to fix nvptx cross build + fail. [bsc#1187153] + ------------------------------------------------------------------- Wed Jun 9 08:50:44 UTC 2021 - Richard Biener diff --git a/cross-sparc-gcc11.spec b/cross-sparc-gcc11.spec index 4836a9e..0196f26 100644 --- a/cross-sparc-gcc11.spec +++ b/cross-sparc-gcc11.spec @@ -146,6 +146,8 @@ Patch52: gcc10-foffload-default.patch # Some patches taken from Debian Patch60: gcc44-textdomain.patch Patch61: gcc44-rename-info-files.patch +# Patches for embedded newlib +Patch100: newlib-4.1.0-aligned_alloc.patch # Define the canonical target and host architecture # %%gcc_target_arch is supposed to be the full target triple @@ -295,6 +297,9 @@ only, it is not intended for any other use. %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %setup -q -n gcc-%{version} -a 5 ln -s newlib-4.1.0/newlib . +cd newlib +%patch100 -p1 +cd .. %else %setup -q -n gcc-%{version} %endif diff --git a/cross-sparc64-gcc11.changes b/cross-sparc64-gcc11.changes index a4c7f9d..8a32d7e 100644 --- a/cross-sparc64-gcc11.changes +++ b/cross-sparc64-gcc11.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 10 10:03:37 UTC 2021 - Richard Biener + +- Add newlib-4.1.0-aligned_alloc.patch to fix nvptx cross build + fail. [bsc#1187153] + ------------------------------------------------------------------- Wed Jun 9 08:50:44 UTC 2021 - Richard Biener diff --git a/cross-sparc64-gcc11.spec b/cross-sparc64-gcc11.spec index fb4e7f8..508ce3c 100644 --- a/cross-sparc64-gcc11.spec +++ b/cross-sparc64-gcc11.spec @@ -146,6 +146,8 @@ Patch52: gcc10-foffload-default.patch # Some patches taken from Debian Patch60: gcc44-textdomain.patch Patch61: gcc44-rename-info-files.patch +# Patches for embedded newlib +Patch100: newlib-4.1.0-aligned_alloc.patch # Define the canonical target and host architecture # %%gcc_target_arch is supposed to be the full target triple @@ -295,6 +297,9 @@ only, it is not intended for any other use. %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %setup -q -n gcc-%{version} -a 5 ln -s newlib-4.1.0/newlib . +cd newlib +%patch100 -p1 +cd .. %else %setup -q -n gcc-%{version} %endif diff --git a/cross-x86_64-gcc11.changes b/cross-x86_64-gcc11.changes index a4c7f9d..8a32d7e 100644 --- a/cross-x86_64-gcc11.changes +++ b/cross-x86_64-gcc11.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 10 10:03:37 UTC 2021 - Richard Biener + +- Add newlib-4.1.0-aligned_alloc.patch to fix nvptx cross build + fail. [bsc#1187153] + ------------------------------------------------------------------- Wed Jun 9 08:50:44 UTC 2021 - Richard Biener diff --git a/cross-x86_64-gcc11.spec b/cross-x86_64-gcc11.spec index 9f02ffd..e4233d9 100644 --- a/cross-x86_64-gcc11.spec +++ b/cross-x86_64-gcc11.spec @@ -146,6 +146,8 @@ Patch52: gcc10-foffload-default.patch # Some patches taken from Debian Patch60: gcc44-textdomain.patch Patch61: gcc44-rename-info-files.patch +# Patches for embedded newlib +Patch100: newlib-4.1.0-aligned_alloc.patch # Define the canonical target and host architecture # %%gcc_target_arch is supposed to be the full target triple @@ -295,6 +297,9 @@ only, it is not intended for any other use. %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %setup -q -n gcc-%{version} -a 5 ln -s newlib-4.1.0/newlib . +cd newlib +%patch100 -p1 +cd .. %else %setup -q -n gcc-%{version} %endif diff --git a/gcc.spec.in b/gcc.spec.in index dd5078b..297f13e 100644 --- a/gcc.spec.in +++ b/gcc.spec.in @@ -366,6 +366,8 @@ Patch52: gcc10-foffload-default.patch # Some patches taken from Debian Patch60: gcc44-textdomain.patch Patch61: gcc44-rename-info-files.patch +# Patches for embedded newlib +Patch100: newlib-4.1.0-aligned_alloc.patch # GCC-TESTSUITE-DELETE-BEGIN License: GPL-3.0-or-later @@ -1145,6 +1147,9 @@ Results from running the gcc and target library testsuites. %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %setup -q -n gcc-%{version} -a 5 ln -s newlib-4.1.0/newlib . +cd newlib +%patch100 -p1 +cd .. %else %setup -q -n gcc-%{version} %endif diff --git a/gcc11-testresults.changes b/gcc11-testresults.changes index a4c7f9d..8a32d7e 100644 --- a/gcc11-testresults.changes +++ b/gcc11-testresults.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 10 10:03:37 UTC 2021 - Richard Biener + +- Add newlib-4.1.0-aligned_alloc.patch to fix nvptx cross build + fail. [bsc#1187153] + ------------------------------------------------------------------- Wed Jun 9 08:50:44 UTC 2021 - Richard Biener diff --git a/gcc11-testresults.spec b/gcc11-testresults.spec index 8ce4024..c19da96 100644 --- a/gcc11-testresults.spec +++ b/gcc11-testresults.spec @@ -380,6 +380,8 @@ Patch52: gcc10-foffload-default.patch # Some patches taken from Debian Patch60: gcc44-textdomain.patch Patch61: gcc44-rename-info-files.patch +# Patches for embedded newlib +Patch100: newlib-4.1.0-aligned_alloc.patch Summary: Testsuite results License: SUSE-Public-Domain @@ -485,6 +487,9 @@ Results from running the gcc and target library testsuites. %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %setup -q -n gcc-%{version} -a 5 ln -s newlib-4.1.0/newlib . +cd newlib +%patch100 -p1 +cd .. %else %setup -q -n gcc-%{version} %endif diff --git a/gcc11.changes b/gcc11.changes index a4c7f9d..8a32d7e 100644 --- a/gcc11.changes +++ b/gcc11.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 10 10:03:37 UTC 2021 - Richard Biener + +- Add newlib-4.1.0-aligned_alloc.patch to fix nvptx cross build + fail. [bsc#1187153] + ------------------------------------------------------------------- Wed Jun 9 08:50:44 UTC 2021 - Richard Biener diff --git a/gcc11.spec b/gcc11.spec index 74af151..b349880 100644 --- a/gcc11.spec +++ b/gcc11.spec @@ -362,6 +362,8 @@ Patch52: gcc10-foffload-default.patch # Some patches taken from Debian Patch60: gcc44-textdomain.patch Patch61: gcc44-rename-info-files.patch +# Patches for embedded newlib +Patch100: newlib-4.1.0-aligned_alloc.patch Summary: The GNU C Compiler and Support Files License: GPL-3.0-or-later @@ -1904,6 +1906,9 @@ Results from running the gcc and target library testsuites. %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %setup -q -n gcc-%{version} -a 5 ln -s newlib-4.1.0/newlib . +cd newlib +%patch100 -p1 +cd .. %else %setup -q -n gcc-%{version} %endif diff --git a/newlib-4.1.0-aligned_alloc.patch b/newlib-4.1.0-aligned_alloc.patch new file mode 100644 index 0000000..c7177b6 --- /dev/null +++ b/newlib-4.1.0-aligned_alloc.patch @@ -0,0 +1,10 @@ +--- newlib/libc/stdlib/aligned_alloc.c.orig 2021-06-10 12:01:10.692582985 +0200 ++++ newlib/libc/stdlib/aligned_alloc.c 2021-06-10 12:01:20.960708060 +0200 +@@ -28,6 +28,7 @@ + + #include + #include ++#include + + void * + aligned_alloc (size_t align, size_t size)