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 X-Spam-Level: X-Spam-Status: No, score=-8.3 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F68DC56202 for ; Fri, 13 Nov 2020 20:06:52 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 84E9321D7F for ; Fri, 13 Nov 2020 20:06:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MSj/7DxG" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 84E9321D7F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4CXqHY0mytzDqnn for ; Sat, 14 Nov 2020 07:06:49 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::f44; helo=mail-qv1-xf44.google.com; envelope-from=natechancellor@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=MSj/7DxG; dkim-atps=neutral Received: from mail-qv1-xf44.google.com (mail-qv1-xf44.google.com [IPv6:2607:f8b0:4864:20::f44]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4CXqFH2CYfzDqRX for ; Sat, 14 Nov 2020 07:04:49 +1100 (AEDT) Received: by mail-qv1-xf44.google.com with SMTP id b11so5213700qvr.9 for ; Fri, 13 Nov 2020 12:04:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=LXoutfO4oxEs8v+Kx1tbB1USI3p19ljNWVnpsVPx+Gg=; b=MSj/7DxG2Sqr6gwYHt0BG46JT3/tiFv+WOBuRXUjkadvyfmoVr2jZglqTxXB4fwRf5 hwZ7OK+rKkUH5EbFHen1Qel71FNUrdz2ya5jfzf0swyckir8o5vTBYad0KmZilwQIHLE 6+JdVJhGibb+dgBElY22T0MM1bX+8Rr32rWEOsB/r1847FvKyhXWldAPctK33ef8HaaT mVQsv0Flr9EXPNfSi9FV8JrUDBLtLHT9oIRXKlurcsRFoKM+n2s7rOSZy6XKtjj1EcT9 7XUa/g9aAx/aYgF57m5ZP55ki0nIkKuihkscqv5O18K5zN+7ab+TTaYb9/uwneX376zn YTMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=LXoutfO4oxEs8v+Kx1tbB1USI3p19ljNWVnpsVPx+Gg=; b=thXmHFpg3FKgQQ9CbnlM0VecvVtj/VN9yjRVVkr0d8ws5HACrA3+WUtESzZax60you tjdRyqYczvvsOfzcCvPpZJcFY0V/ILyX0iGWQOV+S4IUZpWbEZah7Wdoy+sfMG2qMG8F 8/XpAcQB1PAHhzt8HK5K4zJNpt47LBj8he5aEiXyLlvcxzUfrFeKQNIqZSt0oO7P+iWC d6BE+kLlTmAGXAFzKTZId3Pht7ANIrL12ZgZ4bjQNqDsnEH+vi9hPmc2dRd9eXG6I99m 48XvKo1gCL3Kte/EjBR04exOEN93Uk0nCoF2ditaRcalSSd8mcTR9f81Os8+VgdHyLWr ri9w== X-Gm-Message-State: AOAM533a+GnLINA837Mt29ObFSL0ERtrPD7fqPHMW0YydfIYj86w1f6n csUBvbWDsG4o9RFX7LtK/bQ= X-Google-Smtp-Source: ABdhPJwAx6q9nNJ79klcvC7PIXIAkF3s6o3E4vEIVXCdKZ3pkPThR6Ky0G/qfrx5TchNm5Cns99M1g== X-Received: by 2002:a0c:fe0f:: with SMTP id x15mr4084918qvr.11.1605297886440; Fri, 13 Nov 2020 12:04:46 -0800 (PST) Received: from ubuntu-m3-large-x86 ([2604:1380:45f1:1d00::1]) by smtp.gmail.com with ESMTPSA id 9sm7629275qke.6.2020.11.13.12.04.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Nov 2020 12:04:45 -0800 (PST) Date: Fri, 13 Nov 2020 13:04:44 -0700 From: Nathan Chancellor To: Nick Desaulniers Subject: Re: Error: invalid switch -me200 Message-ID: <20201113200444.GA1496675@ubuntu-m3-large-x86> References: <202011131146.g8dPLQDD-lkp@intel.com> <20201113190824.GA1477315@ubuntu-m3-large-x86> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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: kbuild-all@lists.01.org, kernel test robot , =?utf-8?B?RsSBbmctcnXDrCBTw7JuZw==?= , Masahiro Yamada , LKML , clang-built-linux , linuxppc-dev Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" 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āng-ruì Sòng wrote: > > > On Thu, Nov 12, 2020 at 7:22 PM kernel test robot wrote: > > > > > > > > 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 GCC_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-project 9e0c35655b6e8186baef8840b26ba4090503b554) > > > > reproduce (this is a W=1 build): > > > > wget https://raw.githubusercontent.com/intel/lkp-tests/master/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/torvalds/linux.git/commit/?id=ca9b31f6bb9c6aa9b4e5f0792f39a97bbffb8c51 > > > > 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=$HOME/0day COMPILER=clang make.cross ARCH=powerpc > > > > > > > > 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 (use -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 recognize > > > -me200 (-Wa,-me200 in arch/powerpc/Makefile). I guess the GNU as -m > > > option is similar to .arch or .machine and controls what instructions > > > 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=powerpc CROSS_COMPILE=powerpc64-linux- olddefconfig vmlinux > > Does using a non 64b triple produce the same failure? Yes, CROSS_COMPILE=powerpc-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) += -Wa,-m405 > 249 cpu-as-$(CONFIG_44x) += -Wa,-m440 > 250 cpu-as-$(CONFIG_ALTIVEC) += $(call > as-option,-Wa$(comma)-maltivec) > 251 cpu-as-$(CONFIG_E200) += -Wa,-me200 > 252 cpu-as-$(CONFIG_E500) += -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? Cheers, Nathan