From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by sourceware.org (Postfix) with ESMTPS id 027873858025; Fri, 28 Jan 2022 10:06:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 027873858025 Received: by mail-wr1-x42f.google.com with SMTP id s18so9841873wrv.7; Fri, 28 Jan 2022 02:06:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/d1/4ULaMRnbU6X8l4MazOTVfzDARKXzsq2+e2trkDg=; b=D/M1mT5N7WdjFDK5CbxF6hCAcLLqZfll5rMIF4/DSY+XQCjBSL4fgNq1gQRUK1A04f sM2z5Ft+ohq9xc3G7L+T+IRWtiFO/Zad9liuKFV1ceZ+BXe9UDChvTyLoURpzfdhCk7i aTI36L7rSlR0iVK71mbghs/3/vZd8UuC41QaiuJ3ujz0Z4rIw+ARL1X+Xgao9I6Q1Piw IR3+IIIzmb15YauyEVtD/o7uY+9v4e5eEhwxOxniETBh4jvUTuO4fEEane7ZC9UnFlg4 t3N7pKRdnF8JEW4JOYWb8+tXA50ovFGgkppfpWiglaSldajoH8SgsQRQ66u6fPdrwZ3F nmHQ== X-Gm-Message-State: AOAM5314qsjvsYmamwRqPTfPApbM19cXAV2dGjPElockl3zZBV6fwSxc DN87Ih5ug5C3Mslh2f95repyFIUbm35UJng1d9A0asSA5qj2Gw== X-Google-Smtp-Source: ABdhPJyWYEICL928iyUcEZsxrmT7xr3jgLVx9zfFdegPGUvTJZizQhPQuydOENdFSCXCEg+uUvxU6KKloqyDf1GxGNw= X-Received: by 2002:a05:6000:15ca:: with SMTP id y10mr6392056wry.417.1643364376790; Fri, 28 Jan 2022 02:06:16 -0800 (PST) MIME-Version: 1.0 References: <27086da7.1c00e.17e967d235d.Coremail.jiawei@iscas.ac.cn> <99921eab-0b07-7792-99de-aa45bc5c86db@ubuntu.com> In-Reply-To: <99921eab-0b07-7792-99de-aa45bc5c86db@ubuntu.com> From: David Abdurachmanov Date: Fri, 28 Jan 2022 12:06:05 +0200 Message-ID: Subject: Re: [RISCV] RISC-V GNU Toolchain Biweekly Sync-up call (Jan 27, 2022) To: Matthias Klose Cc: jiawei@iscas.ac.cn, gcc@gcc.gnu.org, binutils@sourceware.org, gdb@sourceware.org, libc-alpha@sourceware.org, cmuellner@ventanamicro.com, sinan@isrc.iscas.ac.cn, philipp.tomsich@vrull.eu, nelson.chu@sifive.com, wuwei2016@iscas.ac.cn, kito.cheng@sifive.com, yulong@nj.iscas.ac.cn, shihua@iscas.ac.cn X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Jan 2022 10:06:19 -0000 On Thu, Jan 27, 2022 at 6:21 PM Matthias Klose wrote: > On 1/26/22 14:04, jiawei@iscas.ac.cn wrote: > > Hi all, > > > > There is an agenda for tomorrow's meeting. If you have topics to > > discuss or share, please let me know and I can add them to the agenda. > > > > Agenda: > > > > > > > > > > > > - Bump GCC default ISA spec and got bug report[1] for that. > > Tried to join the meeting, but it ended early apparently. > > Using in Debian and Ubuntu binutils 2.38, I see then with GCC 11.2 > warnings for > every link: > > /usr/bin/ld: warning: /usr/lib/gcc/riscv64-linux-gnu/10/crtn.o: > mis-matched ISA > version 2.0 for 'i' extension, the output version is 2.1 > /usr/bin/ld: warning: /usr/lib/gcc/riscv64-linux-gnu/10/crtn.o: > mis-matched ISA > version 2.0 for 'a' extension, the output version is 2.1 > /usr/bin/ld: warning: /usr/lib/gcc/riscv64-linux-gnu/10/crtn.o: > mis-matched ISA > version 2.0 for 'f' extension, the output version is 2.2 > /usr/bin/ld: warning: /usr/lib/gcc/riscv64-linux-gnu/10/crtn.o: > mis-matched ISA > version 2.0 for 'd' extension, the output version is 2.2 > > Are there any plans to backport the support for ISA 2.1/2.2 to GCC 11? Or > do we > need to configure binutils to use 2.0 until the compiler is changed to GCC > 12? > There are a few packages that will be broken (because they set -march assuming the old standard). Things like kernel (patch proposed), opensbi (patch proposed), u-boot, grub and similar. Kudos to Aurelien Jarno for sending these patches already. The warnings can be ignored here IIRC. The patch was proposed back in December: [PATCH 1/2] RISC-V: Don't report mismatch warnings when versions are larger than 1.0. https://sourceware.org/pipermail/binutils/2021-December/119060.html But it wasn't committed yet. The patch was part of the series to change default ISA to 20191213. IIUC all combinations: - GCC 12 + binutils 2.38 - GCC 11 + binutils 2.37 - GCC 12 + binutils 2.37 are valid, but you might want to use --with-isa-spec=2.2 for now until some of the packages are patched. Cheers, david > > There's also no documentation about that change, at least in binutils. > Should > that be mentioned in the release notes? > > Thanks, Matthias >