Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4397917rwl; Mon, 10 Apr 2023 10:22:57 -0700 (PDT) X-Google-Smtp-Source: AKy350Ymwm06y/pRZlX84x2D7AmH3qz+zyXdCOrXUqiObDwdN8tXsLowsYhMtozdf7ET5LSZCGLq X-Received: by 2002:aa7:d303:0:b0:504:9cec:8afb with SMTP id p3-20020aa7d303000000b005049cec8afbmr4796235edq.2.1681147377345; Mon, 10 Apr 2023 10:22:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681147377; cv=none; d=google.com; s=arc-20160816; b=fqABREkhzAeU6EF4gOwf2iUJEJ88uSUMtc/vSioRgrd4Sa764etR3eNA9IeBcl1oJh 6JJwFewQT8/22ZyHq3dQ0dut7TVP2qtzKmMiby5UgqbWKBBjg25EYE8hZuUI7AgLQv5S iUZI7GEoC2XOTbDxbUxkQ3mwOKBUVJ6EHMM6YruO81GWZGxliD9Aq2HqfCjOkLkM2JJd QnLwUMW84ZAHnQNboO9vgS81z+3PrVZK3JBOiUp0ZwbTe6MTfNh4ZKMZQSKoyVHzSjfN 179KE3D/IllZIz9WehGT60lIKFsGGqh1vS2ApnpYhzIJsZdKLsLrIGEWDjudEiOu9i8u KWZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=znMS+WAX8epKBEh4NHFZqJZoHzAcZnbK8DLa6PctAOk=; b=c3GU4zXhLufRhFdPfiod8ru7WHuajjwfHdWS+XzpcM+qIDF+yp5C7gXFqe9SDTiRAf iXpI2hO9R93F4cHGMjerFeZ5xs3WpLyCqbUTEX9LNZJKqNzt+VIlrm9sfikYhA70lDzS 4NQpSh3btsWgvFi0t7OWuEtny9/gyV+BdU0r2jHZ0u6nzUrdwubr1P6LlzNeJ8i9Hwnu gSpv4sOAaMKQddDzdlGM/PaOs3z1cFhzlh4kzJig3wOxVO+XmJhboGTqBf/yULYYgyII Q4ZE9Hx/+Uq5cTjzlGPHvEqoCvSaRr7ugZpZXSRAgB/VB+9N7OObpMelW85bgwERpgc3 nwIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AIV8YXyD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m26-20020aa7d35a000000b004fe5ea74b93si8753342edr.349.2023.04.10.10.22.32; Mon, 10 Apr 2023 10:22:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AIV8YXyD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230229AbjDJRRS (ORCPT + 99 others); Mon, 10 Apr 2023 13:17:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229946AbjDJRRR (ORCPT ); Mon, 10 Apr 2023 13:17:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D6192111; Mon, 10 Apr 2023 10:17:16 -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 AB0B86160D; Mon, 10 Apr 2023 17:17:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65D1BC433D2; Mon, 10 Apr 2023 17:17:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681147035; bh=XAbXp0EbRQZU1hXmWf09pKmM5RRXeqSnlu79jGDc+YI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AIV8YXyDQ4JVDBq/e3QArmrKEAnskczTds6tSmGj9kFCn6gW/WHpcR7NCW3Prg4oA ugHxTDACEIzProTD+TACLVfL5BswAgUYLzs+AZvu+eUQTRvnEviniTOxqFQUMDCavN Qmkgb9HvV48y1qHrNS3YPDx/JibaFwd5+et6w9Jv3Vm5sjSqws8nlayvF1+Dx4g1zL HfIn7GNSK8vuC+SJPC9vWXkkYFZcQOKqSNy9SPegWbjyw9MiGujG8EwMdsNUq097d2 m7fWT8/pj+KS+1vKQRH3o5U+RFTz8PtWkcBezNCOxic6puAaG5QVsVO9eVebcYS5OO nSQrh5+7kpW9w== Date: Mon, 10 Apr 2023 10:17:12 -0700 From: Nathan Chancellor To: kernel test robot Cc: Masahiro Yamada , linux-kbuild@vger.kernel.org, llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Tom Rini , Nick Desaulniers , Nicolas Schier , Tom Rix Subject: Re: [PATCH] kbuild: add $(CLANG_CFLAGS) to KBUILD_CPPFLAGS Message-ID: <20230410171712.GA177836@dev-arch.thelio-3990X> References: <20230409145358.2538266-1-masahiroy@kernel.org> <202304100319.Wfcfuyqz-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202304100319.Wfcfuyqz-lkp@intel.com> X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 10, 2023 at 04:09:37AM +0800, kernel test robot wrote: > Hi Masahiro, > > kernel test robot noticed the following build warnings: > > [auto build test WARNING on masahiroy-kbuild/for-next] > [also build test WARNING on masahiroy-kbuild/fixes linus/master v6.3-rc6 next-20230406] > [If your patch is applied to the wrong git tree, kindly drop us a note. > And when submitting patch, we suggest to use '--base' as documented in > https://git-scm.com/docs/git-format-patch#_base_tree_information] > > url: https://github.com/intel-lab-lkp/linux/commits/Masahiro-Yamada/kbuild-add-CLANG_CFLAGS-to-KBUILD_CPPFLAGS/20230409-225441 > base: https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git for-next > patch link: https://lore.kernel.org/r/20230409145358.2538266-1-masahiroy%40kernel.org > patch subject: [PATCH] kbuild: add $(CLANG_CFLAGS) to KBUILD_CPPFLAGS > config: mips-ip22_defconfig (https://download.01.org/0day-ci/archive/20230410/202304100319.Wfcfuyqz-lkp@intel.com/config) > compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 2c57868e2e877f73c339796c3374ae660bb77f0d) > 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 mips cross compiling tool for clang build > # apt-get install binutils-mips-linux-gnu > # https://github.com/intel-lab-lkp/linux/commit/4a97e93c7f8c2aaf7bcca67a061264a1126d0e25 > git remote add linux-review https://github.com/intel-lab-lkp/linux > git fetch --no-tags linux-review Masahiro-Yamada/kbuild-add-CLANG_CFLAGS-to-KBUILD_CPPFLAGS/20230409-225441 > git checkout 4a97e93c7f8c2aaf7bcca67a061264a1126d0e25 > # save the config file > mkdir build_dir && cp config build_dir/.config > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips olddefconfig > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips prepare > > If you fix the issue, kindly add following tag where applicable > | Reported-by: kernel test robot > | Link: https://lore.kernel.org/oe-kbuild-all/202304100319.Wfcfuyqz-lkp@intel.com/ > > All warnings (new ones prefixed by >>): > > >> clang: warning: argument unused during compilation: '-mno-check-zero-division' [-Wunused-command-line-argument] > clang: warning: argument unused during compilation: '-mabi=32' [-Wunused-command-line-argument] > >> clang: warning: argument unused during compilation: '-G 0' [-Wunused-command-line-argument] > >> clang: warning: argument unused during compilation: '-mno-abicalls' [-Wunused-command-line-argument] > error: unknown target CPU 'r5000' > note: valid target CPU values are: nocona, core2, penryn, bonnell, atom, silvermont, slm, goldmont, goldmont-plus, tremont, nehalem, corei7, westmere, sandybridge, corei7-avx, ivybridge, core-avx-i, haswell, core-avx2, broadwell, skylake, skylake-avx512, skx, cascadelake, cooperlake, cannonlake, icelake-client, rocketlake, icelake-server, tigerlake, sapphirerapids, alderlake, raptorlake, meteorlake, sierraforest, grandridge, graniterapids, emeraldrapids, knl, knm, k8, athlon64, athlon-fx, opteron, k8-sse3, athlon64-sse3, opteron-sse3, amdfam10, barcelona, btver1, btver2, bdver1, bdver2, bdver3, bdver4, znver1, znver2, znver3, znver4, x86-64, x86-64-v2, x86-64-v3, x86-64-v4 While r5000 is not a valid MIPS CPU for LLVM (as you can see from the values below), the note here seems to imply that there is a place where KBUILD_{A,C}FLAGS is used without KBUILD_CPPFLAGS because we are dropping '--target'. V=1 does not make it obvious where that is happening though, as I see the error right after syncing the configuration (is it coming from Kconfig internally?). I can see the same issue with 32r2_defconfig, which uses an LLVM supported CPU value. > scripts/genksyms/parse.y: warning: 9 shift/reduce conflicts [-Wconflicts-sr] > scripts/genksyms/parse.y: warning: 5 reduce/reduce conflicts [-Wconflicts-rr] > scripts/genksyms/parse.y: note: rerun with option '-Wcounterexamples' to generate conflict counterexamples > error: unknown target CPU 'r5000' > note: valid target CPU values are: mips1, mips2, mips3, mips4, mips5, mips32, mips32r2, mips32r3, mips32r5, mips32r6, mips64, mips64r2, mips64r3, mips64r5, mips64r6, octeon, octeon+, p5600 > make[2]: *** [scripts/Makefile.build:252: scripts/mod/empty.o] Error 1 > error: unknown target CPU 'r5000' > note: valid target CPU values are: mips1, mips2, mips3, mips4, mips5, mips32, mips32r2, mips32r3, mips32r5, mips32r6, mips64, mips64r2, mips64r3, mips64r5, mips64r6, octeon, octeon+, p5600 > make[2]: *** [scripts/Makefile.build:114: scripts/mod/devicetable-offsets.s] Error 1 > make[2]: Target 'scripts/mod/' not remade because of errors. > make[1]: *** [Makefile:1285: prepare0] Error 2 > make[1]: Target 'prepare' not remade because of errors. > make: *** [Makefile:226: __sub-make] Error 2 > make: Target 'prepare' not remade because of errors. > > -- > 0-DAY CI Kernel Test Service > https://github.com/intel/lkp-tests