From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 49B40C433F5 for ; Tue, 24 May 2022 18:13:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240265AbiEXSNR (ORCPT ); Tue, 24 May 2022 14:13:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240317AbiEXSNJ (ORCPT ); Tue, 24 May 2022 14:13:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55CBF9CF01 for ; Tue, 24 May 2022 11:12:59 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E5EA2614E0 for ; Tue, 24 May 2022 18:12:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D58FC34100; Tue, 24 May 2022 18:12:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1653415978; bh=KKmMzhfMf2IUd80WmWmo3TqKi63TjvQ6ruuivE274NE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JKhfeDp24SV7L2MG5nT3JiaoEWk7MC6y/f25RRCQNNA885YCRwhNSQOAK1HuTXtMW x0gruMGOJwK1JtKvfnjDrCJ/LP6hd6kgiXO5VJZFMdP6L6i/+oPA4Ng6Cs+IWDUvqJ CLVizSwmt5oIdFUAsr/HuShZ5fOeRIxjBqfneZLqcDuOFcRkK5COjRxxL7jBda/+1N /XCx46wQhIhZYtXatGNW4c7JWCgsBTRIxygEoM6vfYnbN68D2viVOqshKshd5o4Hjv 5bBJcgS/QTh3RCLrQrR5Xtxafl3bR1M98AllZHWSE62zLXaBTGnKNf1cxd1BJDXcUL B5Mn4Vast99tA== Received: by pali.im (Postfix) id 37C6F9ED; Tue, 24 May 2022 20:12:55 +0200 (CEST) Date: Tue, 24 May 2022 20:12:55 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Segher Boessenkool Cc: Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler Message-ID: <20220524181255.bmszzxmbwzv7zed7@pali> References: <20220524093939.30927-1-pali@kernel.org> <20220524175955.GI25951@gate.crashing.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220524175955.GI25951@gate.crashing.org> User-Agent: NeoMutt/20180716 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 24 May 2022 12:59:55 Segher Boessenkool wrote: > Hi! > > On Tue, May 24, 2022 at 11:39:39AM +0200, Pali Rohár wrote: > > gcc e500 compiler does not support -mcpu=powerpc option. When it is > > specified then gcc throws compile error: > > > > gcc: error: unrecognized argument in option ‘-mcpu=powerpc’ > > gcc: note: valid arguments to ‘-mcpu=’ are: 8540 8548 native > > What? Are you using some modified version of GCC, perhaps? Hello! I'm using official gcc version, no special modification. > No version of GCC that isn't hamstrung can have this output. gcc for e500 cores has really this output when you pass -mcpu=powerpc. Upstream gcc dropped support for e500 cores during development of version 9. But you can still compile and install gcc 8.5.0 (last version of gcc 8) which has this full e500 support. Really, you can easily try it. Debian 10 (Buster) has gcc 8.3.0 in its default installation and also provides packages with cross compilers. Just run 'sudo apt install gcc-powerpc-linux-gnuspe' on desktop amd64 version of Debian 10, it will install e500 cross compiler. -mcpu=8540 specify e500v1 and -mcpu=8548 specify e500v2 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B5170C433F5 for ; Tue, 24 May 2022 18:13:39 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4L72Ps5VXHz3c85 for ; Wed, 25 May 2022 04:13:37 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=JKhfeDp2; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=145.40.68.75; helo=ams.source.kernel.org; envelope-from=pali@kernel.org; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=JKhfeDp2; dkim-atps=neutral Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4L72PC1SWzz3bZc for ; Wed, 25 May 2022 04:13:03 +1000 (AEST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id AEE1FB817F2; Tue, 24 May 2022 18:12:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D58FC34100; Tue, 24 May 2022 18:12:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1653415978; bh=KKmMzhfMf2IUd80WmWmo3TqKi63TjvQ6ruuivE274NE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JKhfeDp24SV7L2MG5nT3JiaoEWk7MC6y/f25RRCQNNA885YCRwhNSQOAK1HuTXtMW x0gruMGOJwK1JtKvfnjDrCJ/LP6hd6kgiXO5VJZFMdP6L6i/+oPA4Ng6Cs+IWDUvqJ CLVizSwmt5oIdFUAsr/HuShZ5fOeRIxjBqfneZLqcDuOFcRkK5COjRxxL7jBda/+1N /XCx46wQhIhZYtXatGNW4c7JWCgsBTRIxygEoM6vfYnbN68D2viVOqshKshd5o4Hjv 5bBJcgS/QTh3RCLrQrR5Xtxafl3bR1M98AllZHWSE62zLXaBTGnKNf1cxd1BJDXcUL B5Mn4Vast99tA== Received: by pali.im (Postfix) id 37C6F9ED; Tue, 24 May 2022 20:12:55 +0200 (CEST) Date: Tue, 24 May 2022 20:12:55 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Segher Boessenkool Subject: Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler Message-ID: <20220524181255.bmszzxmbwzv7zed7@pali> References: <20220524093939.30927-1-pali@kernel.org> <20220524175955.GI25951@gate.crashing.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220524175955.GI25951@gate.crashing.org> User-Agent: NeoMutt/20180716 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paul Mackerras , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Tuesday 24 May 2022 12:59:55 Segher Boessenkool wrote: > Hi! > > On Tue, May 24, 2022 at 11:39:39AM +0200, Pali Rohár wrote: > > gcc e500 compiler does not support -mcpu=powerpc option. When it is > > specified then gcc throws compile error: > > > > gcc: error: unrecognized argument in option ‘-mcpu=powerpc’ > > gcc: note: valid arguments to ‘-mcpu=’ are: 8540 8548 native > > What? Are you using some modified version of GCC, perhaps? Hello! I'm using official gcc version, no special modification. > No version of GCC that isn't hamstrung can have this output. gcc for e500 cores has really this output when you pass -mcpu=powerpc. Upstream gcc dropped support for e500 cores during development of version 9. But you can still compile and install gcc 8.5.0 (last version of gcc 8) which has this full e500 support. Really, you can easily try it. Debian 10 (Buster) has gcc 8.3.0 in its default installation and also provides packages with cross compilers. Just run 'sudo apt install gcc-powerpc-linux-gnuspe' on desktop amd64 version of Debian 10, it will install e500 cross compiler. -mcpu=8540 specify e500v1 and -mcpu=8548 specify e500v2