Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1423920pxb; Fri, 13 Nov 2020 12:16:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJyL9J/7aUXcvxzc50Vbq5YERHC7iVRzYNAzwclgQdlhRC9IF7MrqVg/pbi6ggyyv8kLFPc7 X-Received: by 2002:a50:d616:: with SMTP id x22mr4310511edi.221.1605298612491; Fri, 13 Nov 2020 12:16:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605298612; cv=none; d=google.com; s=arc-20160816; b=pmRpMaBJUxUIemv05bHvrO8njcipM9bdoTAgJ/GWo8j024/8sBQytd+jrwDvEt8h8o qujElraSpPbBHrmLDoPC8I45gu3R/CVmgyrtmLG0iW5vq2jdnqIxb+IPRZG3+KHmHQcN mfXixWi4IxzbRraKMjCreARocIcMR3p4BptC9XBgBh/DoZb/MWXNsb2MzkpYwwE2ddEz OIMqE4OT5hbSxkMfpw7WxZK0UugGbsTzYVPt7y4G3VMyFdEwpMSA7pl6Tjhl9/eKV2Ip WjmiXYRT4zPDwy1AoIGXkMaWJDR+xu28qJRtqh6dFNbmt1m1EDPmIaaXF4XAR+pESHFE CsbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=SB4yM9BP1q0n/PEjqfc5daeMNdbEriOpuOWP+hRLfIQ=; b=ZR0QferSNJ8/1h6wZts2O6kDjGhmtFQ3g58Pxz6UthIupfpdPdN/vWvyXF1WHgQ7It VXUUIuctwALE0rSJCf6zYMoHCZc61qIroFc9hGKSovA1LeKXvf5h3bm+H/0gX4o1TgYh wmLBqgZKmSjhHmQ2yL3+e4b2Qx3zZJQLB+93Cgi1w6Yr7uOz+bSNOHj3dKakGosLZNZO 0qxYiYkN1gNq/zWRb6db5GoVLGLxCM6QZFRL74g4oJ8Uppd/cf+0maU3lpebl0REdSGg 85hYdscJAgjGDFbzvuriI5QfxzDe2UwfR5LC65+Z4p3i6XGv6m3ZpYYf+ghSV62wj+/Y 4WZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=tfJD0iPM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lz6si6794044ejb.116.2020.11.13.12.16.29; Fri, 13 Nov 2020 12:16:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=tfJD0iPM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726121AbgKMUOa (ORCPT + 99 others); Fri, 13 Nov 2020 15:14:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725941AbgKMUOa (ORCPT ); Fri, 13 Nov 2020 15:14:30 -0500 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BF55C0613D1 for ; Fri, 13 Nov 2020 12:14:30 -0800 (PST) Received: by mail-pf1-x441.google.com with SMTP id q10so8592293pfn.0 for ; Fri, 13 Nov 2020 12:14:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=SB4yM9BP1q0n/PEjqfc5daeMNdbEriOpuOWP+hRLfIQ=; b=tfJD0iPMCXD0GsRYB9bZgQNbLDY+gp3WsF6bCDyyzWhFXYQFN1aawkaSK4WKnf01qj 7FEddX+XRga/EralgRN/7I6xPtQxY2ISoT5Joa9iXvPGVp7w/AsSvScVikaP8Ij9qXfh EIwlOAylbFtAOcT6hHtVo8obZPM8VpK/REH2HsU4c2kK0x97yqBful1JZU97ZtNIkZuk IWBmPESw9b0BEM3UV67gqTJBvMhQjhjeQuFkgghFAxQrnW4+ZljUi1pf5Zt2jA6vhYcj tuwKYNdVzkN9+GnT4lOAvrrBqwJN0dvGWXSNZNA19TIKIZgN9XMaqKMbOj/kI7VNUkC+ s/3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=SB4yM9BP1q0n/PEjqfc5daeMNdbEriOpuOWP+hRLfIQ=; b=jnf4Ga884X/dvJZ33DztS1Wee+IuUtabgUPCjdvZnKhQ/HJbtdc4ePogOoOPz2mFcC SMJZa+saEk9CVbinNMp56YD9V9jPvpF/hv/I7TFIIqNKnTlz4vt3HJc1SJUGzBw0wOET am8vlOoLYgEOpf0jlTZhpifNA0Js+IaE0oVjEWMZX9jUwkZnpDjnmeknE5bYbPC81nQP sqT2guCLJyChRwk/kLbkTA7MI/hSAthndryc/HaWc3sffU/f+SYCzo80F8++1AEYPDOc 7dpO4rGxgMASQGhoB9UOgq09lFDm2k8e8eKGiopA8VTcsxGP/rJrTVPl0jWz+lOCEmql VjZA== X-Gm-Message-State: AOAM532Yms4bFyVz/boXsiZO1SjeHtDoKaajPc7fvhmELih3Ix2d6oYU c9G8n76N5jNaSv+dhleyvEHcryDglY3sMv+DGrSUvg== X-Received: by 2002:a62:ed0d:0:b029:18b:78d:626 with SMTP id u13-20020a62ed0d0000b029018b078d0626mr3515257pfh.15.1605298469564; Fri, 13 Nov 2020 12:14:29 -0800 (PST) MIME-Version: 1.0 References: <202011131146.g8dPLQDD-lkp@intel.com> <20201113190824.GA1477315@ubuntu-m3-large-x86> <20201113200444.GA1496675@ubuntu-m3-large-x86> In-Reply-To: <20201113200444.GA1496675@ubuntu-m3-large-x86> From: Nick Desaulniers Date: Fri, 13 Nov 2020 12:14:18 -0800 Message-ID: Subject: Re: Error: invalid switch -me200 To: Nathan Chancellor , Michael Ellerman , Segher Boessenkool , Linus Torvalds , Arnd Bergmann , Brian Cain Cc: =?UTF-8?B?RsSBbmctcnXDrCBTw7JuZw==?= , kernel test robot , kbuild-all@lists.01.org, clang-built-linux , LKML , Masahiro Yamada , linuxppc-dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 13, 2020 at 12:04 PM Nathan Chancellor wrote: > > On Fri, Nov 13, 2020 at 11:42:03AM -0800, Nick Desaulniers wrote: > > + MPE, PPC > > > > On Fri, Nov 13, 2020 at 11:08 AM Nathan Chancellor > > wrote: > > > > > > On Fri, Nov 13, 2020 at 09:28:03AM -0800, F=C4=81ng-ru=C3=AC S=C3=B2n= g wrote: > > > > On Thu, Nov 12, 2020 at 7:22 PM kernel test robot w= rote: > > > > > > > > > > Hi Fangrui, > > > > > > > > > > FYI, the error/warning still remains. > > > > > > > > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/= linux.git master > > > > > head: 585e5b17b92dead8a3aca4e3c9876fbca5f7e0ba > > > > > commit: ca9b31f6bb9c6aa9b4e5f0792f39a97bbffb8c51 Makefile: Fix GC= C_TOOLCHAIN_DIR prefix for Clang cross compilation > > > > > date: 4 months ago > > > > > config: powerpc-randconfig-r031-20201113 (attached as .config) > > > > ^ randconfig > > > > > > > compiler: clang version 12.0.0 (https://github.com/llvm/llvm-proj= ect 9e0c35655b6e8186baef8840b26ba4090503b554) > > > > > reproduce (this is a W=3D1 build): > > > > > wget https://raw.githubusercontent.com/intel/lkp-tests/ma= ster/sbin/make.cross -O ~/bin/make.cross > > > > > chmod +x ~/bin/make.cross > > > > > # install powerpc cross compiling tool for clang build > > > > > # apt-get install binutils-powerpc-linux-gnu > > > > > # https://git.kernel.org/pub/scm/linux/kernel/git/torvald= s/linux.git/commit/?id=3Dca9b31f6bb9c6aa9b4e5f0792f39a97bbffb8c51 > > > > > git remote add linus https://git.kernel.org/pub/scm/linux= /kernel/git/torvalds/linux.git > > > > > git fetch --no-tags linus master > > > > > git checkout ca9b31f6bb9c6aa9b4e5f0792f39a97bbffb8c51 > > > > > # save the attached .config to linux build tree > > > > > COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.= cross ARCH=3Dpowerpc > > > > > > > > > > If you fix the issue, kindly add following tag as appropriate > > > > > Reported-by: kernel test robot > > > > > > > > > > All errors (new ones prefixed by >>): > > > > > > > > > > Assembler messages: > > > > > >> Error: invalid switch -me200 > > > > > >> Error: unrecognized option -me200 > > > > > clang-12: error: assembler command failed with exit code 1 (us= e -v to see invocation) > > > > > make[2]: *** [scripts/Makefile.build:281: scripts/mod/empty.o]= Error 1 > > > > > make[2]: Target '__build' not remade because of errors. > > > > > make[1]: *** [Makefile:1174: prepare0] Error 2 > > > > > make[1]: Target 'prepare' not remade because of errors. > > > > > make: *** [Makefile:185: __sub-make] Error 2 > > > > > make: Target 'prepare' not remade because of errors. > > > > > > > > > > --- > > > > > 0-DAY CI Kernel Test Service, Intel Corporation > > > > > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org > > > > > > > > This can be ignored. The LLVM integrated assembler does not recogni= ze > > > > -me200 (-Wa,-me200 in arch/powerpc/Makefile). I guess the GNU as -m > > > > option is similar to .arch or .machine and controls what instructio= ns > > > > are recognized. The integrated assembler tends to support all > > > > instructions (conditional supporting some instructions has some > > > > challenges; in the end I have patched parsing but ignoring `.arch` = for > > > > x86-64 and ignoring `.machine ppc64` for ppc64) > > > > > > > > (In addition, e200 is a 32-bit Power ISA microprocessor. 32-bit > > > > support may get less attention in LLVM.) > > > > > > This is also not a clang specific issue, I see the exact same error > > > with GCC 10.2.0 and binutils 2.35. > > > > > > $ make -skj64 ARCH=3Dpowerpc CROSS_COMPILE=3Dpowerpc64-linux- olddefc= onfig vmlinux > > > > Does using a non 64b triple produce the same failure? > > Yes, CROSS_COMPILE=3Dpowerpc-linux- produces the same failure. > > > > ... > > > Error: invalid switch -me200 > > > Error: unrecognized option -me200 > > > > There's a block in arch/powerpc/Makefile: > > 248 cpu-as-$(CONFIG_40x) +=3D -Wa,-m405 > > 249 cpu-as-$(CONFIG_44x) +=3D -Wa,-m440 > > 250 cpu-as-$(CONFIG_ALTIVEC) +=3D $(call > > as-option,-Wa$(comma)-maltivec) > > 251 cpu-as-$(CONFIG_E200) +=3D -Wa,-me200 > > 252 cpu-as-$(CONFIG_E500) +=3D -Wa,-me500 > > > > Are those all broken configs, or is Kconfig messed up such that > > randconfig can select these when it should not? > > Hmmm, looks like this flag does not exist in mainline binutils? There is > a thread in 2010 about this that Segher commented on: > > https://lore.kernel.org/linuxppc-dev/9859E645-954D-4D07-8003-FFCD2391AB6E= @kernel.crashing.org/ > > Guess this config should be eliminated? If we're going to get pestered by 0day bot randconfigs over code that's not possible to build, I'm all for deleting it. I doubt we'll be seeing patches from anyone to binutils for supporting these. What has the kernel's policy been for code in tree that other folks can't build (without proprietary tools)? (ARCH=3Dhexagon is pretty close to not toeing the line here, not sure ICC actually works either). --=20 Thanks, ~Nick Desaulniers