From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 89790 invoked by alias); 21 Mar 2019 08:40:43 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Received: (qmail 89702 invoked by uid 89); 21 Mar 2019 08:40:43 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: Yes, score=5.3 required=5.0 tests=AWL,BAYES_99,BAYES_999,CROSSGCC_BAD,FREEMAIL_FROM,GIT_PATCH_2,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.1 spammy=Solutions, amtsgericht, Amtsgericht, H*r:sk:crossgc X-HELO: mail-ot1-f43.google.com Received: from mail-ot1-f43.google.com (HELO mail-ot1-f43.google.com) (209.85.210.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 21 Mar 2019 08:40:40 +0000 Received: by mail-ot1-f43.google.com with SMTP id x8so2846309otg.7 for ; Thu, 21 Mar 2019 01:40:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VN4MhOVwkIB7lOAKqUQSt4BKtG6odM1U+UUIlxcIhKU=; b=nLQ7BgmN070k3LBQ1FCQ1uyUPKAwJUxMmayHOV6Mstvayw7F57Vb5013VD1ZAbdB9z aWFuUw9JSttmMtl6/KtVKjjzTo0s8YMnw6hlvVWb2b5CvOVpRNNg6v98K8+HeXILZARN EouOaSamAiQoMohVjeE30lMsalSgsHST08MAN0IR7cMCHDHoDfDav90o475fy46WqQmB Pnh05I3RDkkb66wa/rFbJ+IY6P6B4Jys/BZhEF/Wnt+lyBKjQ5sbGIN7B+77C+ZX6Lhr gipY8Dn6dwgYiMik/+wjeOpeAyof8WgIl4eY2kRevtDlHwh8HyAlNwgE02jSlF6RD15B FVnA== MIME-Version: 1.0 References: <20190320075215.7j36mofzoewd5qfa@pengutronix.de> <20190321073332.b3725avve4p6ascg@pengutronix.de> <20190321080614.jmpycfyetz4rugui@pengutronix.de> In-Reply-To: From: Austin Morton Date: Thu, 21 Mar 2019 08:40:00 -0000 Message-ID: Subject: Re: selected processor does not support `rev r7,r7' To: Lewis Zhou Cc: crossgcc maillist Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2019-03/txt/msg00013.txt.bz2 Any recent version of gcc should spit out a list of supported March values if invoked with an invalid value. (read gcc 7 or higher). What does this command output on your compiler? # gcc -E -march=help -xc /dev/null https://stackoverflow.com/questions/47299458/how-can-i-determine-what-architectures-gcc-supports On Thu, Mar 21, 2019, 04:25 Lewis Zhou wrote: > Hi, > > I recently tried to compile the barebox bootloaer with the > arm-cortex_a8-linux-gnueabihf configuration which is based on the > sample configuration arm-cortex_a8-linux-gnueabi with the hardware > float enabled. > > However, the compiler (gcc) seems not support -march=armv7-a flag. I > think something is wrong as the cortex_a8 is a sub-architecture of > armv7-a. > > The toolchain failed to compile both the barebox and the linux kernel > (4.19). Please help! Attached is a response from the barebox mailing > list. > > > Kind regards, > Lewis > > ---------- Forwarded message --------- > From: Sascha Hauer > Date: Thu, Mar 21, 2019 at 4:06 PM > Subject: Re: selected processor does not support `rev r7,r7' > To: Lewis Zhou > Cc: > > > On Thu, Mar 21, 2019 at 03:53:06PM +0800, Lewis Zhou wrote: > > Hi Sascha, > > > > Here's the log: > > > > make -f scripts/Makefile.build obj=common > > > > arm-cortex_a8-linux-gnueabihf-gcc -Wp,-MD,common/.memory.o.d > > -nostdinc -isystem > > > /home/lewis/x-tools/arm-cortex_a8-linux-gnueabihf/lib/gcc/arm-cortex_a8-linux-gnueabihf/8.3.0/include > > -D__KERNEL__ -D__BAREBOX__ -Iinclude > > -I/home/lewis/OpenProj/barebox/dts/include > > -I/home/lewis/OpenProj/barebox/arch/arm/include > > -I/home/lewis/OpenProj/barebox/arch/arm/include -include > > /home/lewis/OpenProj/barebox/include/linux/kconfig.h -fno-builtin > > -ffreestanding -D__ARM__ -fno-strict-aliasing -marm -mlittle-endian > > -mabi=aapcs-linux -mno-thumb-interwork -D__LINUX_ARM_ARCH__=7 > > -march=armv5t -Wa,-march=armv7-a -msoft-float -mthumb > > -march=armv5t -Wa,-march=armv7-a shouldn't be here. It comes from this > line in arch/arm/Makefile: > > arch-$(CONFIG_CPU_32v7) :=-D__LINUX_ARM_ARCH__=7 $(call > cc-option,-march=armv7-a,-march=armv5t -Wa$(comma)-march=armv7-a) > > This means the build process will use "-march=armv7-a" when the compiler > supports it. Apparently it does not, so it will fall back to > "-march=armv5t -Wa,-march=armv7-a". armv5t doesn't support thumb2 code, > only thumb and as it seems thumb does not support the "rev" instruction. > > Your compiler should really support "-march=armv7-a". If it doesn't I > really think there is something wrong with it. > > Sascha > > -- > Pengutronix e.K. | | > Industrial Linux Solutions | http://www.pengutronix.de/ | > Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | >