From patchwork Fri Sep 30 08:00:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tobias Burnus X-Patchwork-Id: 1684747 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Mf2yT5PQ7z20Zd for ; Fri, 30 Sep 2022 18:12:16 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 67EEC385DC1D for ; Fri, 30 Sep 2022 08:12:14 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com [68.232.137.252]) by sourceware.org (Postfix) with ESMTPS id D8790385417F for ; Fri, 30 Sep 2022 08:11:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D8790385417F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.93,357,1654588800"; d="diff'?scan'208,217";a="83896520" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 30 Sep 2022 00:11:48 -0800 IronPort-SDR: RmBTjWfXYkCqVUiRG0TquHA+/mkvXGWr+vReYxGl0Afdsp2975uf2zKcclIVxcqiZSGv6wdUuV u/vSn3Aiy9mIGglLuq15gLaxDzPcwwLlJH9RPzybjCFADt321C5LH9fIlPw+cywV2t7LmmRjkg 2TvZ3yWV6MIt/L4vkTFggQvaPbV7Ywh0khQva86atQHXLbSaXN8KTxlqAUrTGPm1b+R+t7CCF5 huZTLfozZ+6Z+9oS8GaH9ftJl7JQ4JfYk0QXjnSEY9DOhjhnChZzdbpJUQCt5zG6vaOkqVwFIJ RlE= Message-ID: <1055cfc9-3358-4d11-ed90-f33ec8b8423e@codesourcery.com> Date: Fri, 30 Sep 2022 10:00:49 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Content-Language: en-US To: Andrew Stubbs , gcc-patches , Tom de Vries From: Tobias Burnus Subject: [patch] install.texi: gcn - update llvm reqirements, gcn/nvptx - newlib use version X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-11.mgc.mentorg.com (139.181.222.11) To svr-ies-mbx-12.mgc.mentorg.com (139.181.222.12) X-Spam-Status: No, score=-11.4 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, HTML_MESSAGE, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" That's for https://gcc.gnu.org/install/specific.html [I did notice (just before submitting) that the bullet list was incomplete - hence, I added it. (Also one ref missed a '-x'.) However, main reason for this patch is for GCN:] The listed LLVM version for GCN was outdated. For newlib, I also decided to change from a date/hash-based versioning to a release version - for both nvptx and gcn. [There are some reasons to recommend 4.3.0 once released (or current git), but those fixes are only very nice and not strictly required. (See below.)] OK for mainline + GCC 12 backport? * * * Regarding newlib: * Last release: - 4.2.0 (Dec 2021, end of year snapshot, "newlib-snapshot-20211231" git tag) * GCN - The last bugfix was 2019-11-07, but that's also in 3.2.0 but after the previously listed date - Afterwards, there was only fix after the Makefile reorg (2022-03-21) but that's a post 4.2.0 change. For some reasons, reorg also exposed a preexisting issue ("I'm not sure how this ever worked?") * nvptx: More recent nvptx changes: - fix calloc for nvptx: "Fix Bug libc/28945" (Mar 22) - next annual snapshot - "newlib: Only call _fputwc_r if ELIX_LEVEL >= 4" (Mar 22) - next annual snapshot - "nvptx: Emulate clock and other machine stubs." (Aug 21) - in 4.2.0 Tobias ----------------- Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955 install.texi: gcn - update llvm reqirements, gcn/nvptx - newlib use version gcc/ * doc/install.texi (Specific): Add missing items to bullet list. (amdgcn): Update LLVM requirements, use version not date for newlib. (nvptx): Use version not git hash for newlib. diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi index cc01c691dc1..4931e0b4fc5 100644 --- a/gcc/doc/install.texi +++ b/gcc/doc/install.texi @@ -3563,16 +3563,28 @@ information have to. @item @uref{#alpha-x-x,,alpha*-*-*} @item +@uref{#amdgcn-x-amdhsa,,amdgcn-*-amdhsa} +@item @uref{#amd64-x-solaris2,,amd64-*-solaris2*} @item +@uref{#arc-x-elf32,,arc-*-elf32} +@item +@uref{#arc-linux-uclibc,,arc-linux-uclibc} +@item @uref{#arm-x-eabi,,arm-*-eabi} @item @uref{#avr,,avr} @item @uref{#bfin,,Blackfin} @item +@uref{#cris,,cris} +@item @uref{#dos,,DOS} @item +@uref{#epiphany-x-elf,,epiphany-*-elf} +@item +@uref{#ft32-x-elf,,ft32-*-elf} +@item @uref{#x-x-freebsd,,*-*-freebsd*} @item @uref{#h8300-hms,,h8300-hms} @@ -3597,6 +3609,8 @@ information have to. @item @uref{#iq2000-x-elf,,iq2000-*-elf} @item +@uref{#loongarch,,loongarch} +@item @uref{#lm32-x-elf,,lm32-*-elf} @item @uref{#lm32-x-uclinux,,lm32-*-uclinux} @@ -3607,12 +3621,16 @@ information have to. @item @uref{#m68k-x-x,,m68k-*-*} @item -@uref{#m68k-uclinux,,m68k-uclinux} +@uref{#m68k-x-uclinux,,m68k-*-uclinux} @item @uref{#microblaze-x-elf,,microblaze-*-elf} @item @uref{#mips-x-x,,mips-*-*} @item +@uref{#moxie-x-elf,,moxie-*-elf} +@item +@uref{#msp430-x-elf,,msp430-*-elf} +@item @uref{#nds32le-x-elf,,nds32le-*-elf} @item @uref{#nds32be-x-elf,,nds32be-*-elf} @@ -3651,6 +3669,10 @@ information have to. @item @uref{#riscv64-x-linux,,riscv64-*-linux} @item +@uref{#rl78-x-elf,,rl78-*-elf} +@item +@uref{#rx-x-elf,,rx-*-elf} +@item @uref{#s390-x-linux,,s390-*-linux*} @item @uref{#s390x-x-linux,,s390x-*-linux*} @@ -3765,14 +3787,14 @@ This is a synonym for @samp{x86_64-*-solaris2*}. @heading amdgcn-*-amdhsa AMD GCN GPU target. -Instead of GNU Binutils, you will need to install LLVM 6, or later, and copy +Instead of GNU Binutils, you will need to install LLVM 13.0.1, or later, and copy @file{bin/llvm-mc} to @file{amdgcn-amdhsa/bin/as}, @file{bin/lld} to @file{amdgcn-amdhsa/bin/ld}, @file{bin/llvm-nm} to @file{amdgcn-amdhsa/bin/nm}, and @file{bin/llvm-ar} to both @file{bin/amdgcn-amdhsa-ar} and @file{bin/amdgcn-amdhsa-ranlib}. -Use Newlib (2019-01-16, or newer). +Use Newlib (3.2.0, or newer). To run the binaries, install the HSA Runtime from the @uref{https://rocm.github.io,,ROCm Platform}, and use @@ -4589,8 +4611,7 @@ Instead of GNU binutils, you will need to install Tell GCC where to find it: @option{--with-build-time-tools=[install-nvptx-tools]/nvptx-none/bin}. -You will need newlib 3.0 git revision -cd31fbb2aea25f94d7ecedc9db16dfc87ab0c316 or later. It can be +You will need newlib 3.1.0 or later. It can be automatically built together with GCC@. For this, add a symbolic link to nvptx-newlib's @file{newlib} directory to the directory containing the GCC sources.