Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7752768rwd; Tue, 6 Jun 2023 16:04:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4jj6pFEiJP4VFLxh1g2wCHGU3Dc+OzVBtL3DQ1tjTNIt//I2jv1EJCzG/8putOkIChGTGn X-Received: by 2002:a05:6a20:258b:b0:10b:dca5:74e5 with SMTP id k11-20020a056a20258b00b0010bdca574e5mr1104995pzd.0.1686092698236; Tue, 06 Jun 2023 16:04:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686092698; cv=none; d=google.com; s=arc-20160816; b=sd3haZ7s3MPF1SFdIX8OhuQn7YBDbwzQF8dABcxL/flHQKXOYohUhvcFhBV/pzJHuO Wu2PlL5lykGrursm7jBdvA8lPzmXy/5pZ2ksRgAXZYbW980uyiyIDYF5cyGcs2erPynY 8C6LzDe0rFlZTWvy+tIYl1NZfaFl9akj5uybrMX9D2JFAORKOSFd5Sxbhc9m3YbhVZC0 9XDkyalBDciYBoj2xwoOKnJOwnaLCvuiIFBtByi5d4YNsp73wBFOpRHEvZovoRMI3Y/V I2OEE3HSi0wHomGBOuqQtVe/jKGsXM7w8DZVmdO5GBBnL/m4bcGeP3yWayzFcN++Kp2d hcvA== 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=G8P9gXqxF+fLGHXUPZfogO/KfocyU3TZ+av+GY6Hk7s=; b=TMkSY82JRM8ispIQxTmdlTBrdXnFe7WTRfFgm1Vwxzd+KmZ4QJC8dtQD8K7RztdWta 54kNRX066klFdilNkX8NHj5ct7wzVEdBrqVBgq4OXKHEs3yyZKrmYe82dIsHgQc5L1h1 kq5tP/TYLPWj42Ve1Ro4lJoDDF4MO6+IF1/5jo/qMFBW6jyI65Bo+COH+gJKvGhoSePh IjQCVd+O01i9sCOpODZj3bE2YJsTxV1X57RKIkFJus3Pg3Qo4+KHJLPneSafXHnrtn8P TFS9C5eVOZDFO0B7HXAyTO9wNPkJSmML5s2omg8vbffrHjnwXCr2vI/j9ghY2cpHAh91 k1Rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="eFY/e0Xp"; 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 a1-20020aa795a1000000b0065024e5048csi4556245pfk.301.2023.06.06.16.04.29; Tue, 06 Jun 2023 16:04:58 -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="eFY/e0Xp"; 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 S239940AbjFFWms (ORCPT + 99 others); Tue, 6 Jun 2023 18:42:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234076AbjFFWmq (ORCPT ); Tue, 6 Jun 2023 18:42:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6553811A for ; Tue, 6 Jun 2023 15:42:45 -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 EC043638A5 for ; Tue, 6 Jun 2023 22:42:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D6F22C433EF; Tue, 6 Jun 2023 22:42:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686091364; bh=+n808blosC/qLl1eZ4095f2Bmo/aBhslqGveoyXYm2Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eFY/e0XpVlocWZkoUScoOR7yNC7lgB+fnWMjacweQWFGKIXr09adD5f6NZHXIEfXi Qx1/AUEvMwilU3+jU2whAbqlRzBQgGXcCWhVwbHw3qtxFZQ1aRwsCVhxBWQyQAwifF MxTXAYkX+FExjudRnmA1Dv8CxIJDiHPspu6gmqpbkKFFw+iOD7ApqXpyRPFU3bbygH osSzhDQD37uKhoQ9/E3TE6DMbhGiSNKosQWO8U9msnsRC6FJoSL5p1HUaHwkvlmb1F C+3lBR78LwEemt+xquwrghiJ3qSGROCWTvDgxtwOnDYUcm+wLbWmCvbOk8G26gjvB5 WE7NdINyXKK8A== Date: Tue, 6 Jun 2023 15:42:42 -0700 From: Nathan Chancellor To: Naresh Kamboju Cc: open list , clang-built-linux , lkft-triage@lists.linaro.org, Nick Desaulniers , Arnd Bergmann , Anders Roxell , Masahiro Yamada Subject: Re: powerpc: clang: arch/powerpc/kernel/exceptions-64s.S:2976: Error: junk at end of line: `0b01010' Message-ID: <20230606224242.GA3590526@dev-arch.thelio-3990X> References: <20230606153150.GA128872@dev-arch.thelio-3990X> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230606153150.GA128872@dev-arch.thelio-3990X> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Tue, Jun 06, 2023 at 08:31:50AM -0700, Nathan Chancellor wrote: > Hi Naresh, > > On Tue, Jun 06, 2023 at 01:57:46PM +0530, Naresh Kamboju wrote: > > Linux next-20230606 powerpc build failed. > > > > Regressions found on powerpc: > > > > - build/clang-16-maple_defconfig > > - build/clang-nightly-maple_defconfig > > - build/clang-16-defconfig > > - build/clang-nightly-defconfig > > - build/clang-nightly-cell_defconfig > > - build/clang-16-cell_defconfig > > > > Boot: > > ===== > > make --silent --keep-going --jobs=8 > > O=/home/tuxbuild/.cache/tuxmake/builds/1/build ARCH=powerpc > > CROSS_COMPILE=powerpc64le-linux-gnu- > > HOSTCC=clang > > CC=clang > > LLVM=1 > > LLVM_IAS=0 > > LD=powerpc64le-linux-gnu-ld > > > > arch/powerpc/kernel/exceptions-64s.S: Assembler messages: > > arch/powerpc/kernel/exceptions-64s.S:2976: Error: junk at end of line: `0b01010' > > arch/powerpc/kernel/exceptions-64s.S:2996: Error: junk at end of line: `0b01010' > > arch/powerpc/kernel/exceptions-64s.S:3011: Error: junk at end of line: `0b01010' > > arch/powerpc/kernel/exceptions-64s.S:3029: Error: junk at end of line: `0b01010' > > arch/powerpc/kernel/exceptions-64s.S:3049: Error: junk at end of line: `0b01010' > > arch/powerpc/kernel/exceptions-64s.S:3096: Error: junk at end of line: `0b01010' > > clang: error: assembler command failed with exit code 1 (use -v to see > > invocation) > > make[4]: *** [scripts/Makefile.build:374: arch/powerpc/kernel/head_64.o] Error 1 > > arch/powerpc/kernel/entry_64.S: Assembler messages: > > arch/powerpc/kernel/entry_64.S:174: Error: junk at end of line: `0b01010' > > clang: error: assembler command failed with exit code 1 (use -v to see > > invocation) > > make[4]: *** [scripts/Makefile.build:374: > > arch/powerpc/kernel/entry_64.o] Error 1 > > make[4]: Target 'arch/powerpc/kernel/' not remade because of errors. > > make[3]: *** [scripts/Makefile.build:494: arch/powerpc/kernel] Error 2 > > arch/powerpc/lib/copyuser_power7.S: Assembler messages: > > arch/powerpc/lib/copyuser_power7.S:305: Error: junk at end of line: `0b01000' > > arch/powerpc/lib/copyuser_power7.S:306: Error: junk at end of line: `0b01010' > > arch/powerpc/lib/copyuser_power7.S:308: Error: junk at end of line: `0b01000' > > arch/powerpc/lib/copyuser_power7.S:309: Error: junk at end of line: `0b01010' > > arch/powerpc/lib/copyuser_power7.S:311: Error: junk at end of line: `0b01010' > > clang: error: assembler command failed with exit code 1 (use -v to see > > invocation) > > make[4]: *** [scripts/Makefile.build:374: > > arch/powerpc/lib/copyuser_power7.o] Error 1 > > arch/powerpc/lib/copypage_power7.S: Assembler messages: > > arch/powerpc/lib/copypage_power7.S:34: Error: junk at end of line: `0b01000' > > arch/powerpc/lib/copypage_power7.S:35: Error: junk at end of line: `0b01010' > > arch/powerpc/lib/copypage_power7.S:37: Error: junk at end of line: `0b01000' > > arch/powerpc/lib/copypage_power7.S:38: Error: junk at end of line: `0b01010' > > arch/powerpc/lib/copypage_power7.S:40: Error: junk at end of line: `0b01010' > > clang: error: assembler command failed with exit code 1 (use -v to see > > invocation) > > make[4]: *** [scripts/Makefile.build:374: > > arch/powerpc/lib/copypage_power7.o] Error 1 > > arch/powerpc/lib/memcpy_power7.S: Assembler messages: > > arch/powerpc/lib/memcpy_power7.S:250: Error: junk at end of line: `0b01000' > > arch/powerpc/lib/memcpy_power7.S:251: Error: junk at end of line: `0b01010' > > arch/powerpc/lib/memcpy_power7.S:252: Error: junk at end of line: `0b01000' > > arch/powerpc/lib/memcpy_power7.S:253: Error: junk at end of line: `0b01010' > > arch/powerpc/lib/memcpy_power7.S:255: Error: junk at end of line: `0b01010' > > clang: error: assembler command failed with exit code 1 (use -v to see > > invocation) > > make[4]: *** [scripts/Makefile.build:374: > > arch/powerpc/lib/memcpy_power7.o] Error 1 > > > > Reported-by: Linux Kernel Functional Testing > > Thank you for the report, this is caused by the move of CLANG_FLAGS from > KBUILD_{A,C}FLAGS to KBUILD_CPPFLAGS, as as-option does not contain > KBUILD_CPPFLAGS, so we fail to pass necessary flags to the assembler. > The following diff resolves this particular issue for me, can you test > it to make sure it works for you? I will write up a changelog and sent > along a formal patch later today. I have now sent [1] to address this, please consider providing a tag there assuming it passes all of your tests. [1]: https://lore.kernel.org/20230606-fix-as-option-after-clang_flags-move-v1-1-a7f7b23a35e3@kernel.org/ Cheers, Nathan > diff --git a/scripts/Makefile.compiler b/scripts/Makefile.compiler > index 437013f8def3..e31f18625fcf 100644 > --- a/scripts/Makefile.compiler > +++ b/scripts/Makefile.compiler > @@ -32,7 +32,7 @@ try-run = $(shell set -e; \ > # Usage: aflags-y += $(call as-option,-Wa$(comma)-isa=foo,) > > as-option = $(call try-run,\ > - $(CC) -Werror $(KBUILD_AFLAGS) $(1) -c -x assembler-with-cpp /dev/null -o "$$TMP",$(1),$(2)) > + $(CC) -Werror $(KBUILD_CPPFLAGS) $(KBUILD_AFLAGS) $(1) -c -x assembler-with-cpp /dev/null -o "$$TMP",$(1),$(2)) > > # as-instr > # Usage: aflags-y += $(call as-instr,instr,option1,option2) >