Received: by 10.223.185.116 with SMTP id b49csp310702wrg; Fri, 2 Mar 2018 19:59:54 -0800 (PST) X-Google-Smtp-Source: AG47ELvSYQ+zORySTZJIz/Nu6WalNQ+jOb8NQNCYFZhLjbgnu5pEH6nRaweNs+YRag6g9urkn9Lr X-Received: by 10.99.109.77 with SMTP id i74mr6114566pgc.73.1520049594322; Fri, 02 Mar 2018 19:59:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520049594; cv=none; d=google.com; s=arc-20160816; b=LHBW8ADKSxL4EGZo4iHewyI79qphZLIV91H8b1cCUFpHZgfbsA0Ebh/094MMLh8QpQ EzcNtAqzAdYBRxmYIwaPiN0hvM5bvAzmCwSytRs6wJVQvsNM7T7mKyBeleejYH/lfxJw 3xC/26SGYBcUoAp1SL1/kQtSsMfYJe9+jnCAuykupsSQtK/ql2VEtVpZnwMnWeFqS/zI vj8UR8t7EbiarBHG3EkWPySvWU2sU4k7ZswvGzdEJncSY/ytnHJd6lBGb5xN7ruO70UT YJQWIhnE/g6gtsjHG0ej8zx9L3Lb3DHaDK2mveno4zgsWHx6Kknw9xDBKt6BkmrMKuCj x7YQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=TdEYM2avHPdd6KbZ0QYO8Tx7Q7OaYV2zxdPSrTYAse8=; b=j7AURDtGzCwQGDrCH22pHoiP/h1j3ojACKxLA63Jgvfrt4QfELPLxaQ8PPHMeOgf86 cupu1zkkrglvrDSBERngQhSTJKvO/SsI87btcD8CTrSohSaAizqe0rDMM9Zx+79Y7me6 0dHFj3ACJdGyiefpPMUkmT5vZTMY3Day/i5HPTTTK7KexUjKYRobkxiI/pIGVW3MBl+F 5YknsIQDEtWxTVy7liTMNO/z6mDWRJjB1PZBNU0OKh2jhMfQcJ2zC5VX/iW7/e+q43UV c2JRSxBFzdeRBKoVJyX5t0vdttCHnCLQpL9AXxP9ngZuLfilC376gxiORC/tmgs3eiaO okeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=ozUOulbO; dkim=pass header.i=@codeaurora.org header.s=default header.b=lbKm5892; 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 w66si5978355pfi.23.2018.03.02.19.59.40; Fri, 02 Mar 2018 19:59:54 -0800 (PST) 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=pass header.i=@codeaurora.org header.s=default header.b=ozUOulbO; dkim=pass header.i=@codeaurora.org header.s=default header.b=lbKm5892; 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 S965048AbeCCBnG (ORCPT + 99 others); Fri, 2 Mar 2018 20:43:06 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:35622 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964973AbeCCBnE (ORCPT ); Fri, 2 Mar 2018 20:43:04 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id E2307607F5; Sat, 3 Mar 2018 01:43:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1520041383; bh=Gqh5HMh3c8gaTAlS4HIxH+tEHxLHUp+dbYzkvmuObUQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ozUOulbOBYwzq/bQH3PjtFuygFZD4EL4+vnfEdOoGGkX/hzFiMACstgKrCSe7a4pL EwxGIbLwj5f+KiQdwcXkZLNZASxXxGc6iU0NfoTYfXz8VF8xlHUYqJvS4uY0XukAlk WGLW0+6EkEsri/x2aW1iWAAxtZH5Mq2yxWxi0iJo= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from codeaurora.org (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: rkuo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 7695C60316; Sat, 3 Mar 2018 01:43:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1520041382; bh=Gqh5HMh3c8gaTAlS4HIxH+tEHxLHUp+dbYzkvmuObUQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lbKm5892sP01eNvYapHEjN0YbZnhxIV9vcGrMLYYALNzfTIxFTQqVSUkiq1zBJCSM GQBm30g99sT4HtAu8P/85kgFLDkRttzTh4utDycdMl1rYvm6cz1nTUPfvFvzjGbhZR CPyxc4Vsr413bprpIPVkaEylcmViX0yf+Xkox7w0= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 7695C60316 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=rkuo@codeaurora.org Date: Fri, 2 Mar 2018 19:43:06 -0600 From: Richard Kuo To: Arnd Bergmann Cc: linux-arch , Linux Kernel Mailing List , "open list:QUALCOMM HEXAGON..." , Chen Liqin , Lennox Wu , Guan Xuetao , Guenter Roeck , Al Viro , James Hogan , "open list:METAG ARCHITECTURE" , Jonas Bonn , Stefan Kristiansson , Stafford Horne , openrisc@lists.librecores.org, David Howells Subject: Re: Removing architectures without upstream gcc support Message-ID: <20180303014306.GA6911@codeaurora.org> References: <20180222191758.GB5180@codeaurora.org> <20180228020631.GB3780@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 28, 2018 at 09:37:09AM +0100, Arnd Bergmann wrote: > On Wed, Feb 28, 2018 at 3:06 AM, Richard Kuo wrote: > > On Thu, Feb 22, 2018 at 11:43:10PM +0100, Arnd Bergmann wrote: > >> - How do I build an llvm based toolchain for Hexagon? Do I need patches > >> on top of the llvm-6 release branch? Where can I find the corresponding > >> binutils-2.30 sources? > > > > Just to follow up on this, the closest thing right now to compile the kernel > > for Hexagon is the toolchain included with the Hexagon SDK. However, the > > linker will fail because of something in the kernel build process that > > I think produces empty sections, which that linker can't handle. A newer > > linker can handle it, but that's not scheduled to be released until much later > > this year. > > > > That's actually the closest option currently. I tried the upstream source > > but it seems to lack some specific patches to support kernel compilation, > > so I will need to chase those down. > > Thanks for trying it out. Can you point me to the sources? I tried downloading > a Hexagon SDK when I first looked at it, but only got a huge chunk of binary > java files and gave up before finding the llvm patches. I don't think the SDK patches are available externally. The good news is I think we're now one patch away from the upstream LLVM compiling a functional kernel for Hexagon (a few fixes to LLVM/clang have been committed already). It technically compiles but produces an abort (from a null deref) which the linker doesn't like. The linker itself unfortunately is going to be a different matter. Thanks, Richard Kuo -- Employee of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project