On 06/03/2023 19:23, Wileam Yonatan Phan via Gcc wrote:
Hi,
I'm working on adding a build recipe for GCC with AMDGCN offloading backend in
Spack. Can anyone clarify the following sentence listed on the wiki?
The Newlib version needs to be contemporaeous with GCC, at least until the ABI
is finalized.
<https://gcc.gnu.org/wiki/Offloading#How_to_build_an_offloading-enabled_GCC>
What are the correct contemporaneous versions for each version of GCC >= 10?
Just match the dates and you'll probably be fine. We've mostly
synchronised the ABI changes across the GCC mainline and the development
branch precisely because the Newlib dependency is shared.
Right now the required version of Newlib is 4.3.0.20230120. Prior to the
ABI change a month or so ago you would have to use a Newlib snapshot.
I wouldn't recommend spending very much of your valuable time on
enabling old versions of these toolchains.
Andrew