Received: by 10.192.165.156 with SMTP id m28csp675304imm; Mon, 16 Apr 2018 07:01:13 -0700 (PDT) X-Google-Smtp-Source: AIpwx49sbGYnJB/3Ms8Lh2+Ei8Do7WAfkgdvtBaXs9KN2BtkzT5CdGqAr5iNMPy3yBHIduB5UhaG X-Received: by 10.99.125.78 with SMTP id m14mr13025318pgn.190.1523887273304; Mon, 16 Apr 2018 07:01:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523887273; cv=none; d=google.com; s=arc-20160816; b=QokRP6/Lx4lTXFbY42Fay9hoZnx48/yyPFNDGAuo/vY3RZYgwe6YSvXoEDQZ0+b5Yv q3pJKbird0Qs53WfTCQLbLgq70AwM7dODBvvRomhCJJ6SneC54vR1td9QEIutp1yVQtP qqyy9izQbCeNQkxY1jVH5lqkVyW0Vdu/ECYW1eDdg0+vzY9gtZr34KrubqB99SR1kjgq akue97HAmBLexoK+DqHUl9cZJOj6wi8qNk/xr3fEUDveuAxZfG4GYALNLZW7tBsSL1n2 g7XPdsacGlJragIN9GSq9zJCUlNfDilE7RLv4V/YfgjI3Y4//cO79l6y3z0J+D2RYRx/ MJnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dkim-signature :arc-authentication-results; bh=/ZywQ+b/1iXAUOujEVmbcoJlE2KpqeyIG8+hzC0tmQA=; b=EdvMnYZXB6y05YOAlouhmWkyEPgB1b9q7nZgpt1LV9hZo5/h3Lv3XDxll5BO9SMVXe 0/nWg05BHMTuNl9lTVrgy+Xkw38+h6NT+z6BD/NKoz+iJPd4eGejlrsDYSR9eOJ8sX/P BWWiQc5NIbqLYVkFTSGKNI9HgqwNAzj1L9+nAl0Q0jlmqrW8qg9vqIvQrWvO0SAvvUvW dWQoT6DPpMjeeRBxXZEMdqj7tyUxf90lj2JLJyfftMulXJLZV05rojempwtkbJZR+Fkd cO8249apmfiRaG4Z+vbdF62kQj6ROlyMiyrBxdgM0gcol9AngQFW7aZOtFosgvuPzAMy /Onw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@roeck-us.net header.s=default header.b=mr/hetxd; 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 a98-v6si695109pla.239.2018.04.16.07.00.57; Mon, 16 Apr 2018 07:01:13 -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=@roeck-us.net header.s=default header.b=mr/hetxd; 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 S1755266AbeDPN7p (ORCPT + 99 others); Mon, 16 Apr 2018 09:59:45 -0400 Received: from bh-25.webhostbox.net ([208.91.199.152]:46446 "EHLO bh-25.webhostbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752578AbeDPN7o (ORCPT ); Mon, 16 Apr 2018 09:59:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=roeck-us.net; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:References:Cc:To:From:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=/ZywQ+b/1iXAUOujEVmbcoJlE2KpqeyIG8+hzC0tmQA=; b=mr/hetxdlUA84BAjao3kDJwbrO GERvtIK+YGJtmlIVDNQRbYCGOX9XvvGwyvLQ7uCYJx9V6r473GcWzIHEMfztoZUx3i5DCT0o4CpZx K/kiSEU0EzysUmXaJhu3dzP716HSdLvofF/1Ej3ajV4bZTkC5mI3Bhk8JoQOQ/19rX/rhfw0lH50H qKzilSJCsdjBv/kgVzwH8HJ/tzAuyXiyQ7tvvigoZ4mBcjs2uTCsgPpwLqQ6wDXBBU3sDitZ2CgDH 2sfqSPTTUp6jZIlJM27egQkIcqJFxhaqN0t6MaGGPhOef2dcIHCrTezRukh2t6vX+Z6G58ybILb0h T6bPU1Tg==; Received: from 108-223-40-66.lightspeed.sntcca.sbcglobal.net ([108.223.40.66]:51514 helo=server.roeck-us.net) by bh-25.webhostbox.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89) (envelope-from ) id 1f84fT-003v3q-FO; Mon, 16 Apr 2018 13:59:43 +0000 Subject: Re: nds32 build failures From: Guenter Roeck To: Greentime Hu Cc: "linux-kernel@vger.kernel.org" , Vincent Chen , Greentime Hu , Arnd Bergmann , kito.cheng@gmail.com, wuiw@andestech.com References: <4ccb747b-fb3b-18c8-8737-2cc02d7b1c34@roeck-us.net> Message-ID: Date: Mon, 16 Apr 2018 06:59:38 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Authenticated_sender: private@roeck-us.net X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-Get-Message-Sender-Via: bh-25.webhostbox.net: authenticated_id: private@roeck-us.net X-Authenticated-Sender: bh-25.webhostbox.net: private@roeck-us.net X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/16/2018 06:22 AM, Guenter Roeck wrote: > On 04/16/2018 02:06 AM, Greentime Hu wrote: >> 2018-04-16 11:58 GMT+08:00 Guenter Roeck : >>> I thought I should give the brand new architecture a try. Unfortunately, >>> that was not very successful. >>> >>> Build reference: v4.17-rc1 >>> gcc version: nds32le-elf-gcc (GCC) 7.3.0 >>> >>> Building nds32:defconfig ... failed >>> >>> arch/nds32/include/asm/nds32.h: In function 'GIE_ENABLE': >>> arch/nds32/include/asm/nds32.h:25:2: error: implicit declaration of function >>> '__nds32__gie_en'; did you mean '__nds32__'? >>> >>> arch/nds32/include/asm/nds32.h: In function 'CACHE_SET': >>> arch/nds32/include/asm/nds32.h:38:18: error: implicit declaration of >>> function '__nds32__mfsr'; did you mean '__nds32__'? >>> >>> arch/nds32/include/asm/nds32.h:38:32: error: 'NDS32_SR_ICM_CFG' undeclared >>> >>> arch/nds32/include/asm/nds32.h:41:32: error: 'NDS32_SR_DCM_CFG' >>> >>> Am I missing something ? >>> >> Hi, Guenter: >> >> This built failure is because the toolchain version you used is not >> supported the latest intrinsic function/macro. >> We are sending the latest patchset now and we expect the whole new >> features will be supported in gcc8.0.0 and binutil2.31+. >> >> If you'd like to get these new features of toolchain, you may use the >> github version. >> This is the built-script repo. https://github.com/andestech/build_script.git >> > Hmm. How comes that the defines are not there ? Also, is nds32_intrinsic.h supposed to be auto-generated ? > Answering my own question. This file is part of gcc. Presumably, the missing defines are declared in that file ? Interesting, I always thought that the Linux kernel is supposed not to include compiler include files, to avoid issues such as license poisoning. One lives and learns. Guenter > The toolchain as provided isn't usable for me since it is not position independent. > > Arnd, it might make sense to drop the nds32 toolchain from kernel.org; its presence is at best misleading. > > Guenter > >