Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7294302rwd; Tue, 6 Jun 2023 08:46:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ687nJiH2wfGLjkicM3gThqG7IctnjZhRkMHWtsz0cNUhsr8BAIKBuKjWVLp41wQxlAnTTJ X-Received: by 2002:a05:6214:d0e:b0:626:1db8:de41 with SMTP id 14-20020a0562140d0e00b006261db8de41mr2930600qvh.25.1686066381231; Tue, 06 Jun 2023 08:46:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686066381; cv=none; d=google.com; s=arc-20160816; b=wNT6VkdZ9gHuwi8l583opyHNWFvPkAfuuU46AL/OCwsugkzxu+t8BVVC2aAyStcIF/ K8sdv1Mzly9UFdfutAIUAIJJQ2eHEzJ7SEX3DCbqhHpMLU/v+P04OycJhRVdksBiKPiJ TgpAXR1yCjnD3yBLKoNr7F9CUc8bfHn7oG22bJwWeqheZnqIYviKb1aEziwXdchxdsqE Q07M18OH69nAHAzKuI72cO12dCLdz6471uARQXDVn3lEU5VrZiTYbIbABKVEwa47NPfL 5EncdrXQ2zVGCtlUQYwBvxxBEQb5sIicVwuoNMPYHs1NE4OHIBaObBsYeuV/L8ar/Gz0 HwCw== 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=2m+bpop8kmV8RQ861rmznzNzWbTWd4yH95ykIzqOpJA=; b=F3VyTPpoe8p2yQpjr5vD5RKITjazgcJ40XLguzs7wEjBAAGO2CmK3BINU87pxnGwHM XA6AmHxh3HIn4OpB7mUgpyx9mUIdrAm6F3Yu6zGNhZIUkRrulsQ7blDDozH3T2hUz/g8 ubdHiq/mm5PzGIQYBIGEgk+ncDCQQE6kiDTmHJ++UtNBFlspYtvtmeKZOBoQGMNojtXf lfpYU6BiF5IkZOFezMymHpzhbl7dv+QMTyceOnk6o5CNy+O5gfPHGi+nqYxRsiK5gTmQ Fhdk4UvR7vVRYgPuWxea1TKW+SPSzK2GXFgVfbeQA1msXkrECjAj/ZtbFzECEbtAdXeu Z7ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mz37zLzX; 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 jf11-20020a0562142a4b00b00625a6ecdf71si6636209qvb.112.2023.06.06.08.46.04; Tue, 06 Jun 2023 08:46:21 -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=mz37zLzX; 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 S238245AbjFFPb5 (ORCPT + 99 others); Tue, 6 Jun 2023 11:31:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238320AbjFFPbz (ORCPT ); Tue, 6 Jun 2023 11:31:55 -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 6385E10CB for ; Tue, 6 Jun 2023 08:31:53 -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 EAAC663503 for ; Tue, 6 Jun 2023 15:31:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7B57C433EF; Tue, 6 Jun 2023 15:31:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686065512; bh=24AUyPfBFJqlvaX/w0MXpBX88SvjMMONuaYLEQpGUxE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mz37zLzXPEJw+IdodP/nthr7nSGPwX4H+Tz6aijiukT7l20v7vj4a1u9D5t69btMD GB8BYSfCGDsFzUutfnho1KFq89x1GTygIwRGOaue15EQMHi9fhKN+SjcjMOcHjLjhn +RTTHPdJyQ96kiN4PpHekRvpCsZM1LFUk4ZYc5X/m7QPIrHB+s7LhiDaVyYJsxh8p8 /SH71JXab9TSeW8OJDTDFDYRT6g9ViFo1gUw+OQv8K7yWiz5zVVepcEdso5a/dc8pd jMr0vTS45LlY7SEV25ixmN2FNGmS79OiLNiY7T8db/RuohixBvCRGAyvR3HCk9Wwe8 OGHabjXV+BzwA== Date: Tue, 6 Jun 2023 08:31:50 -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: <20230606153150.GA128872@dev-arch.thelio-3990X> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 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. 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)