lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Mon, 11 Oct 2021 12:00:49 +0200
From:   Heiko Carstens <hca@...ux.ibm.com>
To:     Naresh Kamboju <naresh.kamboju@...aro.org>
Cc:     llvm@...ts.linux.dev, linux-s390@...r.kernel.org,
        clang-built-linux <clang-built-linux@...glegroups.com>,
        open list <linux-kernel@...r.kernel.org>,
        Nathan Chancellor <nathan@...nel.org>,
        Nick Desaulniers <ndesaulniers@...gle.com>,
        Alexander Egorenkov <egorenar@...ux.ibm.com>,
        Christian Borntraeger <borntraeger@...ibm.com>,
        Vasily Gorbik <gor@...ux.ibm.com>,
        Andreas Krebbel <krebbel@...ux.ibm.com>,
        Ulrich Weigand <Ulrich.Weigand@...ibm.com>,
        Jonas Paulsson <paulsson@...ux.vnet.ibm.com>
Subject: Re: clang-13: s390/kernel/head64.S:24:17: error: invalid operand for
 instruction

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.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ