From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id aajOEdXA82HrdQAAWB0awg (envelope-from ) for ; Fri, 28 Jan 2022 05:09:25 -0500 Received: by simark.ca (Postfix, from userid 112) id 37C4E1F3B7; Fri, 28 Jan 2022 05:09:25 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 029951EA69 for ; Fri, 28 Jan 2022 05:09:24 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5229F3947C33 for ; Fri, 28 Jan 2022 10:09:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5229F3947C33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1643364563; bh=TNdAebXFSfZlhmOo9XwwgQkNVRmEqNnjL5IaVeeF1oQ=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=OdrQoAXSQsK0QYumZasILsHnWOmRrpMEs/An8WpguKqCJ1WXGCamDc7agfa91AYoJ bOYkIxm4x+5nM/beQ1U7lXaGnmQGD/Mx5sogUezQbexoa+VRhI11315cxrZ+oaGsGp VwB8Cu83vMVU32+nUbRLz3BwrSfUZsU7k1BPAsxA= 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> 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 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: , From: David Abdurachmanov via Gdb Reply-To: David Abdurachmanov Cc: gcc@gcc.gnu.org, cmuellner@ventanamicro.com, libc-alpha@sourceware.org, gdb@sourceware.org, sinan@isrc.iscas.ac.cn, philipp.tomsich@vrull.eu, jiawei@iscas.ac.cn, nelson.chu@sifive.com, wuwei2016@iscas.ac.cn, binutils@sourceware.org, kito.cheng@sifive.com, yulong@nj.iscas.ac.cn, shihua@iscas.ac.cn Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" 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 >