Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3388651imm; Sun, 14 Oct 2018 19:14:09 -0700 (PDT) X-Google-Smtp-Source: ACcGV63B9F10Dl/FWJp1HcPor1/RZiiC6cSzqCYazGGmBOSu/3aqkO5BR9splttSIudLo8ZvUw46 X-Received: by 2002:a62:968a:: with SMTP id s10-v6mr15506147pfk.191.1539569649406; Sun, 14 Oct 2018 19:14:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539569649; cv=none; d=google.com; s=arc-20160816; b=vum+PxpYMXHopK2we+uQ35KGTk2hsuOVyaKya6OrvlqpIF4kOHK95Romndb0yLUalX KjLBtn92sGELLHF2n+ygw//Da/9WLbalB1kVcErX4v7gSJZNktq5EqDbXUo07nUpmW1Z 6y0nk5sGQTHt534mAZ/Ct6QeuyR03/UNrIYnGBB4xM4lrwpnjsjmLe+ytba6oo7zNj18 nE8I2UbYV6q7k44TTp+rG7RcQjfdnOEmyzoRoffx/U1QXYFkndxzfjCBrizY6NCuV06f dHUXOUIbFINwS5rwPDPcUfKfmX+0yBki0sJP6qRt2vJW4MXpxX3tI+1kMKabrbPOAqs0 bFrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=ymHkumwBfmXw1IdKgqrBRDHgkGkvVYtpf1I/XYkRfXw=; b=Obd7tcainB5CYWD9IJZU23CT3Q4bGLiG0ZYB/TmBZl8f8d+QiZR9DbKJbGJn6fp0Rl 2amugAo/vU+DtyDKRXKdCuohVF8twTnU1x0JdD4Kl8caNWh/qMEfpZrquLjimICPcecJ rf3w/bpL1McIWWujAxBidQhIrn094KY3FlLS8kFqvlCe1fe8fAgNFFg01eoLPMSk5W7Q 3yjFWWO6P2QjN8PaZFmup/vbOVVXGSiMvmhGxUyAqQBv6NR0nVU7UroAVOg5CpL8yPi+ kTX9JAv/DVH8xem/5c/H44ZU5vjAIxTfHIZaUwPMmRo6gfGoLRbndX+roZGt/458WmpQ dSAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=NUeqgHFO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e36-v6si9138044pge.127.2018.10.14.19.13.54; Sun, 14 Oct 2018 19:14:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=NUeqgHFO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726356AbeJOJ4i (ORCPT + 99 others); Mon, 15 Oct 2018 05:56:38 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:35924 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726055AbeJOJ4i (ORCPT ); Mon, 15 Oct 2018 05:56:38 -0400 Received: by mail-pl1-f195.google.com with SMTP id y11-v6so8493001plt.3 for ; Sun, 14 Oct 2018 19:13:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=ymHkumwBfmXw1IdKgqrBRDHgkGkvVYtpf1I/XYkRfXw=; b=NUeqgHFOo1DEp6SPKhcPs5f82LZ21QDaNiL7SY5WQ7kY0cOCg/xTDW7rG2rpXJgE7I 2CsLZdQJCzWKdxFtUQIPoDMBpKNEzDtGWWrEDz5J2nKX3pw+viKSg09vieqFQZHbxKU6 ujAbfNUztirm9YBvxf8M7yASg2sjx8Xvjx8OAB07T+jAACL0/o+94ADGnPLWohSmuvgs ItZ1iuarrss035SZ1xUmm+P+6W0NPBDuhqRbPeAdQ9zyeOGAivE9gh76kB7yMuarvy4B wPlFjmqcefNNDkEYfQkgrw6Z2dA+uQ78MS63sHvSpmmOJAj/G715I532ib6i06V4A6TE hQMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ymHkumwBfmXw1IdKgqrBRDHgkGkvVYtpf1I/XYkRfXw=; b=Mw8FBoNgdYGQ/ftac1pa+xyHid3SxhIwl5dlouovVrmo6VW78FPYjjeTdYCwciNA2R X8XNPZeNLLZkhzVxPPeSCULcDdlscdeVP82luzcwWt68k0oWjBXcL2uyEhnzfC0Gqq8w 07Ui7UVQ1xe3FVEiI03YUCRfpia4HrHHoNFLtZ52iwipjoMEMIEsJBBvjtHojqghFa/1 HYTztK9901jVce4tm2Pn82yFcuJ3PcmyQJaQ4PkZ9isl6KAQM7fvZFgYcs160zQqLB8y 0HyNxslg1SWQngKVnfplPnfnykWFasVV77rLsNVF5/4TzfzeTN1IyILScksCsLdVUDP0 c8gg== X-Gm-Message-State: ABuFfohxMG+4UXwUZIXhFTdQ3eLvTQ2K8EGwAkfjw0H495ENcGzZ6xq8 ilDUJ3xfDbmp1kfqweBFFgI= X-Received: by 2002:a17:902:a5cc:: with SMTP id t12-v6mr15564485plq.229.1539569611869; Sun, 14 Oct 2018 19:13:31 -0700 (PDT) Received: from server.roeck-us.net (108-223-40-66.lightspeed.sntcca.sbcglobal.net. [108.223.40.66]) by smtp.gmail.com with ESMTPSA id s23-v6sm10930610pgg.67.2018.10.14.19.13.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 14 Oct 2018 19:13:30 -0700 (PDT) Subject: Re: [PATCH v8 3/5] Cleanup ISA string setting To: Alan Kao Cc: Palmer Dabbelt , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Christoph Hellwig , Greentime Hu , Vincent Chen , Zong Li , Nick Hu References: <1539051514-3658-1-git-send-email-alankao@andestech.com> <1539051514-3658-4-git-send-email-alankao@andestech.com> <20181014000205.GA22333@roeck-us.net> <20181014234639.GA14835@andestech.com> From: Guenter Roeck Message-ID: <1867bb22-1858-0f14-e077-5cb4b2e50446@roeck-us.net> Date: Sun, 14 Oct 2018 19:13:28 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20181014234639.GA14835@andestech.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alan, On 10/14/2018 04:46 PM, Alan Kao wrote: > Hi Guenter, > > On Sat, Oct 13, 2018 at 05:02:05PM -0700, Guenter Roeck wrote: >> Hi, >> >> With this patch in -next applied, I get the following error >> when building riscv:defconfig. > > I guess what you meant was this commit: > commit 0a5bee05fc67ce2044b8d91a18abbf14042da531 > Yes, sorry, I just blindly assumed that the last version I found must have caused the problem. You are right, v8 actually fixes it (as suggested below). > The modification in Makefile was > > -endif > - > -KBUILD_AFLAGS += -march=$(KBUILD_MARCH)$(KBUILD_ARCH_A)fd$(KBUILD_ARCH_C) > +# ISA string setting > +riscv-march-$(CONFIG_ARCH_RV32I) := rv32im > +riscv-march-$(CONFIG_ARCH_RV64I) := rv64im > +riscv-march-$(CONFIG_RISCV_ISA_A) := $(riscv-march-y)aj > +riscv-march-y := fd > +riscv-march-$(CONFIG_RISCV_ISA_C) := $(riscv-march-y)c > > and the ":= fd" line was wrong. It should have been > > +riscv-march-y := $(riscv-march-y)fd > >> >> >> What am I missing ? Does RISC-V now require a new non-upstream compiler ? >> Or a special version of make ? I am currently using GNU Make 4.1. > > So I sent the v8 to fix this problem. > Sorry for the inconvinience. > No worries. At least this problem was (is going to be) easy to fix. And, yes, I confirmed that the one-line change above fixes the problem. Guenter >> >> Thanks, >> Guenter >> >> --- > > And Palmer, it seems that the patch that causes this build error has been > pulled into linux-next. Any idea how to fix that one? > > Many thanks, > Alan >