Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752867AbcKBLMz (ORCPT ); Wed, 2 Nov 2016 07:12:55 -0400 Received: from ozlabs.org ([103.22.144.67]:57565 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751098AbcKBLMy (ORCPT ); Wed, 2 Nov 2016 07:12:54 -0400 From: Michael Ellerman To: Jim Davis Cc: Christophe JAILLET , imunsie@au1.ibm.com, fbarrat@linux.vnet.ibm.com, kernel-janitors@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel Subject: Re: [PATCH] cxl: Fix error handling In-Reply-To: References: <20161030214047.25037-1-christophe.jaillet@wanadoo.fr> <87wpgp13ki.fsf@concordia.ellerman.id.au> User-Agent: Notmuch/0.21 (https://notmuchmail.org) Date: Wed, 02 Nov 2016 22:12:50 +1100 Message-ID: <87eg2unnil.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1119 Lines: 34 Jim Davis writes: > On Sun, Oct 30, 2016 at 10:37 PM, Michael Ellerman wrote: >> More here: >> >> https://github.com/linuxppc/linux/wiki/Building-powerpc-kernels > > Cool; the little-endian build worked fine, but Yay, thanks for trying. > jim@krebstar:~/linux-rc$ make ARCH=powerpc > CROSS_COMPILE=powerpc64-linux-gnu- vmlinux > make: powerpc64-linux-gnu-gcc: Command not found > make: powerpc64-linux-gnu-gcc: Command not found > scripts/kconfig/conf --silentoldconfig Kconfig > make: powerpc64-linux-gnu-gcc: Command not found Ah sorry. > This is on Ubuntu 16.04; there's a /usr/bin/powerpc64le-linux-gnu-gcc > from installing gcc-powerpc64le-linux-gnu, and a > /usr/bin/powerpc-linux-gnu-gcc from installing gcc-powerpc-linux-gnu, > but no /usr/bin/powerpc64-linux-gnu-gcc. It's the powerpc-linux-gnu-gcc one. That is a 32 and 64-bit compiler, it's 32-bit by default, but the kernel Makefiles will pass -m64 appropriately. You can actually build a single compiler that builds 32/64-bit BE, and 64-bit LE, but the distros don't do that for whatever reason. cheers