Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1671374pxb; Mon, 11 Oct 2021 10:35:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7tibt4Z2QbxqqtEUl0FWYtMMke6ewk/FtFplsuQxYel82vfGivgHB2VvkvElUK2AvSDFu X-Received: by 2002:aa7:c948:: with SMTP id h8mr43823602edt.380.1633973758373; Mon, 11 Oct 2021 10:35:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633973758; cv=none; d=google.com; s=arc-20160816; b=NCy4L8hvbZDRyVaxpnCEj0cFMHDcbBMEywWI6jmDbm6Q7OENul1OwNJuyNQLhwynWg SyLIwVROMnlL1SpT5hsAwYUQh/136HW1hjBQ0/Y5w2xG70QD5Trzf4r0x9u1ManEYk0P GxbJuCgZlk50UG42+obnYUlJQePKWrWv+FnX5eP5GOn59naFbd8qnG6StEpvRU3QX/po AXzkLj1x7DwchP15+JZ8sa+MygjJ2iHZHTqhgiER+L8yRbGp5MPbrVVlmVFegc1NyQ0s HwPTJ8PT14glnujc6ECkbg2H3UVZOfZMO0oIPvGGYLdzi/xhoM7MYmY7UnHnnT7Y8G/N P8hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=OT203vnjB7/zUlFzlItVKI17MBCGdyaAlk+HzafniWc=; b=nEOTmfz8K3726NuKjBrhND5a6KYztNZKgbvaujhtp/hrilPL+uOxWVt3j0f4nceVq3 Tn4RZ+pCf3xegc0qs8aZNhBiQxSkKCtX2xyMhnEVrLIdop1lxS5qfjtYvap2d3DmMRsk enJLO7kjXhIwL/k/oQvDh9pNIuJZrwxDK1VlQelmAGTEizkgoQPjR1t3O3UqVk7s1HRe Oad8/ehay9pdca3cOr+RcI6aPTIGZ+KV1myLqeQsch4eLf8P3xp4n/FjwGEQCNoBF7c1 cAyNv/oTofmwTnJ+AZu0ZMGIujYD4MrzrglYLN8c2ShMq7U9zSsI72Zr+di1GqT/mQqZ qTOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Irz3Tcxj; 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 u4si16267776ejy.271.2021.10.11.10.35.35; Mon, 11 Oct 2021 10:35:58 -0700 (PDT) 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=20210112 header.b=Irz3Tcxj; 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 S229824AbhJKRdc (ORCPT + 97 others); Mon, 11 Oct 2021 13:33:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229816AbhJKRdb (ORCPT ); Mon, 11 Oct 2021 13:33:31 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 687F3C06161C for ; Mon, 11 Oct 2021 10:31:31 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id t9so75258261lfd.1 for ; Mon, 11 Oct 2021 10:31:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OT203vnjB7/zUlFzlItVKI17MBCGdyaAlk+HzafniWc=; b=Irz3Tcxj1xe1q8LLa/BtO916dIui2Sq+1sBTNiyk8aBXvZyEOJt03BLDAGjpvrBrZD 1UUz4TersnrZsmjO89yk4htL/czSDG5g9yiJMsHxYmCH7qnbqyK2E36v12Ab0NAuwvxY UYwcu/4VzzK9WVS96I4YX4MliKGpFXCnT7qgbxTVFHH/UxZ6AKxbo09QhVLOOI5q/DC0 GJh+OWEd/TM+v/NbMcNlogrxda5KuUu43gt2/Ij5BVYW3E27d82umUin+p8eSDPWJu9r YZ+BsTP0cQjBSA+7Cyiee//LpdupyUMR7NtzhHVaZP9qPYpLdCdd6ZiGyAtHv5qsmhlJ u77Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OT203vnjB7/zUlFzlItVKI17MBCGdyaAlk+HzafniWc=; b=CHqvQN4GIImYK8sSrLzMQOwCK/d5ZlG4JukhF7JCguuSTsP9LxoJFWDaqCpjBq1Yz3 EefNDuzt4vVkEyej4hgjXaoOCjVgnRLFuPUsrGZx/OW+xgVVHaFb/RM9cpDAtDoKWL/+ KAk0RgoV+4fKA/MdSt/mECZvDt7JHSKzVGRfnQacEL8fwc1hvWTTGs96JowVHEUbhRVx FdRkpVUGV2Ujcob/6bA5BQJVLNOI8nOSK14UOHm8zGtwCY9i/SGTPhefWjcvD/1cBJB1 A3leudvIwTh6ToFXWYfthlzR0X3kvuMSeazH8jVsE2sW//eHQCESczbAdO43vIZY9/WB dTEg== X-Gm-Message-State: AOAM533wlwQzUbXf4d2EvaVlQ1br+c8VbZcRtRBpxVW038Nxdk/C/+Fb MXOYjFSv7bKaTfS4szLIltnvrN9jXIpytoiX0YarGQ== X-Received: by 2002:a2e:461a:: with SMTP id t26mr24899757lja.198.1633973489480; Mon, 11 Oct 2021 10:31:29 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Nick Desaulniers Date: Mon, 11 Oct 2021 10:31:17 -0700 Message-ID: Subject: Re: clang-13: s390/kernel/head64.S:24:17: error: invalid operand for instruction To: Ulrich Weigand , Jonas Paulsson , Andreas Krebbel , nemanja.i.ibm@gmail.com Cc: Naresh Kamboju , llvm@lists.linux.dev, linux-s390@vger.kernel.org, open list , Nathan Chancellor , Alexander Egorenkov , Christian Borntraeger , Vasily Gorbik , Heiko Carstens , Michael Ellerman Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org + Nemanja On Mon, Oct 11, 2021 at 3:01 AM Heiko Carstens wrote: > > On Mon, Oct 11, 2021 at 11:47:42AM +0530, Naresh Kamboju wrote: > > [Please ignore this email if it is already reported ] > > > > Following s390 builds failed due to warnings / errors. > > > > metadata: > > git_describe: v5.15-rc5 > > git_repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > > git_short_log: 64570fbc14f8 (\"Linux 5.15-rc5\") > > target_arch: s390 > > toolchain: clang-13 > > > > > > Fail (2861 errors) s390 (tinyconfig) with clang-nightly > > @ https://builds.tuxbuild.com/1zL35IUSGhDGeVuyIrAp7eyzEUi/ > > Fail (2861 errors) s390 (tinyconfig) with clang-13 > > @ https://builds.tuxbuild.com/1zL35Hn7wjErKsLDM6zAgh27BYJ/ > > Fail (4112 errors) s390 (allnoconfig) with clang-13 > > @ https://builds.tuxbuild.com/1zL35HR60hSFvBmAcYJvKHm8Lko/ > > Fail (4112 errors) s390 (allnoconfig) with clang-nightly > > @ https://builds.tuxbuild.com/1zL35DTlrX9qRGCtGqgtmmMDjnQ/ > > Fail (23048 errors) s390 (defconfig) with clang-13 > > @ https://builds.tuxbuild.com/1zL35DE2KWQUPxbbXeTbwIJaWXS/ > > Fail (23045 errors) s390 (defconfig) with clang-nightly > > @ https://builds.tuxbuild.com/1zL35EgeQfWQDXDupp4itkUO5At/ > > > > > > Build errors log: > > ---------------- > > arch/s390/kernel/head64.S:24:17: error: invalid operand for instruction > > lctlg %c0,%c15,.Lctl-.LPG1(%r13) # load control registers > > ^ > > arch/s390/kernel/head64.S:40:8: error: invalid operand for instruction > > lpswe .Ldw-.(%r13) # load disabled wait psw > > You need to pass LLVM_IAS=0 on the make command line on s390 since > commit f12b034afeb3 ("scripts/Makefile.clang: default to LLVM_IAS=1"). > > LLVM's integrated assembler doesn't seem to work well when compiling > the kernel for s390 yet. Dunno if you folks have cycles to work on it, but if you do, we have just a handful of bugs left in Clang's assembler (or kernel source issues) preventing us from assembling the kernel with clang for SystemZ and PPC. s390: https://github.com/ClangBuiltLinux/linux/issues?q=is%3Aopen+is%3Aissue+label%3A%22%5BARCH%5D+s390%22+label%3A%22%5BTOOL%5D+integrated-as%22 ppc: https://github.com/ClangBuiltLinux/linux/issues?q=is%3Aopen+is%3Aissue+label%3A%22%5BTOOL%5D+integrated-as%22+label%3A%22%5BARCH%5D+powerpc%22 I'm happy to hop on a call to discuss these more. We have all other architectures working here, in the sense that if we can build them with clang, we're using the integrated assembler by default. -- Thanks, ~Nick Desaulniers