From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from helium.openadk.org (helium.openadk.org [IPv6:2a00:1828:2000:679::23]) by sourceware.org (Postfix) with ESMTPS id 4B7723858416 for ; Wed, 23 Feb 2022 17:31:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4B7723858416 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=openadk.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=openadk.org Received: by helium.openadk.org (Postfix, from userid 1000) id 6A53C31E050D; Wed, 23 Feb 2022 18:31:27 +0100 (CET) Date: Wed, 23 Feb 2022 18:31:27 +0100 From: Waldemar Brodkorb To: Jan Beulich Cc: Waldemar Brodkorb , binutils@sourceware.org, Nick Clifton Subject: Re: GNU Binutils 2.38 has been released Message-ID: References: <87h798182x.fsf@redhat.com> <4116a3b6-4694-d549-1904-873fb46f10ef@suse.com> <8de58013-f7c4-810a-0f02-fba6b1bb9eaa@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <8de58013-f7c4-810a-0f02-fba6b1bb9eaa@suse.com> X-Operating-System: Linux 5.10.0-10-amd64 x86_64 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Feb 2022 17:31:32 -0000 Hi Jan, Jan Beulich wrote, > On 23.02.2022 14:48, Waldemar Brodkorb wrote: > > Jan Beulich wrote, > >> On 14.02.2022 11:58, Waldemar Brodkorb wrote: > >>> I am having problems with following commit > >>> aed44286efa8ae8717a77d94b51ac3614e2ca6dc. > >>> > >>> When trying to build the Linux kernel I get a lot of: > >>> ./arch/riscv/include/asm/irqflags.h:34: Error: unrecognized opcode > >>> `csrrc s2,0x100,2' > >>> ./arch/riscv/include/asm/irqflags.h:52: Error: unrecognized opcode > >>> `csrs 0x100,s2' > >>> > >>> The kernel is compiled with gcc 11.2 and -mabi=lp64 -march=rv64ima. > >> > >> Isn't "ima" too little? I don't think that includes CSR accesses, that's > >> its own extension (Zicsr). > > > > Before this commit it was enough to build the Linux kernel. > > Which is an apparently valid observation, but not an excuse. At least some comment in the commit log would have been nice for stupid people like me. > > What letter needs to be added to get Zicsr extensions, though? > > That's not a single letter iirc, and I'm afraid I can't tell you > the right spelling off the top of my head. I'm pretty sure gas > doc has it. Might be something like rv64ima_zicsr. I have not found it in the gas docs. GCC complains about it while trying to use it: Traceback (most recent call last): File "/home/wbx/openadk/toolchain_build_qemu-riscv64_uclibc-ng/w-gcc-11.2.0-1/gcc-11.2.0/gcc/config/riscv/arch-canonicalize", line 114, in print (arch_canonicalize(arg)) File "/home/wbx/openadk/toolchain_build_qemu-riscv64_uclibc-ng/w-gcc-11.2.0-1/gcc-11.2.0/gcc/config/riscv/arch-canonicalize", line 89, in arch_canonicalize long_exts = list(sorted(filter(lambda x:len(x) != 1, long_exts), File "/home/wbx/openadk/toolchain_build_qemu-riscv64_uclibc-ng/w-gcc-11.2.0-1/gcc-11.2.0/gcc/config/riscv/arch-canonicalize", line 81, in longext_sort raise Exception("Unsupported extension `%s`" % exts) Exception: Unsupported extension `zicsr` --with-abi=lp64 is not supported for ISA gmake[6]: *** [Makefile:4353: configure-gcc] Error 1 Any other idea where to find this information. There is no mentioning of zicsr here: https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/config/riscv/t-linux-multilib;h=298547fee38b2b4062e7854c539aabd292927857;hb=39c0b8f1ac4be2fdaa309733bbae11fedc6b8b3d best regards Waldemar