From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,LOTS_OF_MONEY,MAILING_LIST_MULTI, SPF_PASS,URIBL_BLOCKED,WEIRD_PORT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 46B22C04EB9 for ; Sat, 1 Dec 2018 23:26:47 +0000 (UTC) Received: from krantz.zx2c4.com (krantz.zx2c4.com [192.95.5.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B9FDC2081D for ; Sat, 1 Dec 2018 23:26:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WKR/aJb9" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B9FDC2081D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=wireguard-bounces@lists.zx2c4.com Received: from krantz.zx2c4.com (localhost [IPv6:::1]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 7585768b; Sat, 1 Dec 2018 23:19:10 +0000 (UTC) Received: from krantz.zx2c4.com (localhost [127.0.0.1]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id ba3f68c9 for ; Sat, 1 Dec 2018 23:19:09 +0000 (UTC) Received: from mail-vs1-xe2f.google.com (mail-vs1-xe2f.google.com [IPv6:2607:f8b0:4864:20::e2f]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id be24df02 for ; Sat, 1 Dec 2018 23:19:09 +0000 (UTC) Received: by mail-vs1-xe2f.google.com with SMTP id x1so5475795vsc.10 for ; Sat, 01 Dec 2018 15:26:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lmx6hRwxnSrNYrMcJUzy5+/8XaXhzOPibS2kXqa9Ig4=; b=WKR/aJb9pzg3PejNpWAKgsa+JFdiOERLlspBqJi1TxL5FjNs9UxtEvZM9xlRQaQQJ0 5VUfOb/O18mA5fJN8ltOK4QU6u7PDcbN7z1EQgh4z+pkBt4zDh/qDw+ii6pXudjJrqOk 2BpkaieO5zAWHsBMBHsZ9CFIw1vswAETh/LzjLY1m4EI4un7ArfKKZqEReVEzslER7zv hiaUh0ByASr1PNKe5duLk5v8eITFhP4oW1TvHiwTXpkGEJauzrZUl4h4+tBKnZUiEXD5 3Y+QkNZD9pcWyA0SVxahyxS13RL6qDfJIvzU+CLW3n/UpSgHdYqbEv0G9efBVgGagMxQ BrYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lmx6hRwxnSrNYrMcJUzy5+/8XaXhzOPibS2kXqa9Ig4=; b=kW4515W0ljkuG/P97VsKoZXOz0+i1PFRq9Gzx/kIsOIDHSGKts+0ZUTNC5lEMZYaI3 tEWQvaf0wMojOwMA7SwTqWFlEhxJUgdw5zxZsWCZqbgA0DZmgZNdGK8NFG2Zdk22umJI 3o6gCYL/n5bCeiTaKJc6HjyN2X3ucT5XPQ/Vh4+1sN+Q8r75Qhr6074qnH1gTZ1+gA+y oa3UupT/vfXVg/5G5xmAs8cH5HGcxZNhxMMDZvWY2P5F4JBweTBVWpRblCN9E2/HoTIZ zzjShTpg8OYkU0PSOSppZvXt0dBXzINbeh4hmEIJi5f6Dz+mA7NFnsvwdbxWRbT+Off8 lYBg== X-Gm-Message-State: AA+aEWZiDC3SWw2wQQEL5AazpiWBKFLiQnWVZqTzlKOO6UZBYXuJW+XK lqejQYP2QL3yhelUP8PP7IhrOVTmUJH51AQ4VTk= X-Google-Smtp-Source: AFSGD/UHO+JI2sr7s0KKQr/8YX0bv0PvpLvvfE8tFuyg4t+seEgVClXKnn0Gfq0psJu2X3SwvWx8POMAVUYXm2XZ0JM= X-Received: by 2002:a67:3c5c:: with SMTP id j89mr4728203vsa.117.1543706802735; Sat, 01 Dec 2018 15:26:42 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Tushar Pankaj Date: Sat, 1 Dec 2018 17:26:31 -0600 Message-ID: Subject: Re: Build fails on Debian, kernel 4.20.0-rc4 To: Laszlo KERTESZ Cc: WireGuard mailing list X-BeenThere: wireguard@lists.zx2c4.com X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0821856801919123320==" Errors-To: wireguard-bounces@lists.zx2c4.com Sender: "WireGuard" --===============0821856801919123320== Content-Type: multipart/alternative; boundary="0000000000009d4dcb057bfe3f3c" --0000000000009d4dcb057bfe3f3c Content-Type: text/plain; charset="UTF-8" Does it have to do with macros.S having a capital S extension? Thanks, Tushar Pankaj On Sat, Dec 1, 2018, 17:24 Laszlo KERTESZ Hi, > It builds with 4.19.x. What happened to 4.20? > On the Fedore bug tracker there is something related: > > > https://src.fedoraproject.org/cgit/rpms/kernel.git/commit/?id=6904e708917a12819d1fe0d329f605030d6e4b0d > > On Sat, Dec 1, 2018 at 11:03 PM QINGWEI ZHANG > wrote: > >> This kernel is the latest one, could you try with 4.19? >> >> Sent via the BlackBerry Hub for Android >> >> *From:* laszlo.kertesz@gmail.com >> *Sent:* December 1, 2018 15:58 >> *To:* wireguard@lists.zx2c4.com >> *Subject:* Build fails on Debian, kernel 4.20.0-rc4 >> >> Hi, >> The wireguard module (0.0.20181119 from Debian Unstable) fails to build >> on my machine using kernel 4.20 rc4. >> >> I get the following errors: >> >> # cat /var/lib/dkms/wireguard/0.0.20181119/build/make.log >>> DKMS make.log for wireguard-0.0.20181119 for kernel 4.20.0-rc4 (x86_64) >>> Sat Dec 1 22:51:18 EET 2018 >>> make: Entering directory '/usr/src/linux-headers-4.20.0-rc4' >>> CC [M] /var/lib/dkms/wireguard/0.0.20181119/build/main.o >>> CC [M] /var/lib/dkms/wireguard/0.0.20181119/build/noise.o >>> CC [M] /var/lib/dkms/wireguard/0.0.20181119/build/device.o >>> CC [M] /var/lib/dkms/wireguard/0.0.20181119/build/peer.o >>> Assembler messages: >>> Error: can't open arch/x86/kernel/macros.s for reading: No such file or >>> directory >>> make[1]: *** [scripts/Makefile.build:293: >>> /var/lib/dkms/wireguard/0.0.20181119/build/main.o] Error 1 >>> make[1]: *** Waiting for unfinished jobs.... >>> Assembler messages: >>> Error: can't open arch/x86/kernel/macros.s for reading: No such file or >>> directory >>> ./arch/x86/include/asm/atomic64_64.h:160: Error: no such instruction: >>> `lock_prefix xaddq %rax,peer_counter(%rip)' >>> ./arch/x86/include/asm/bitops.h:76: Error: no such instruction: >>> `lock_prefix orb $32,1592(%rbx)' >>> ./arch/x86/include/asm/bitops.h:114: Error: no such instruction: >>> `lock_prefix andb $-2,1592(%rbx)' >>> ./arch/x86/include/asm/bitops.h:114: Error: no such instruction: >>> `lock_prefix andb $-9,1592(%rbx)' >>> ./arch/x86/include/asm/jump_label.h:23: Error: no such instruction: >>> `static_branch_nop l_yes=".L15"key="descriptor.66338+40"branch="0"' >>> ./include/linux/netdevice.h:515: Error: no such instruction: `asm_bug >>> ins=".byte 0x0f, 0x0b"file=.LC0 line=515 flags=0 size=12' >>> ./include/linux/netdevice.h:515: Error: no such instruction: >>> `annotate_unreachable counter=80' >>> ./arch/x86/include/asm/atomic.h:200: Error: no such instruction: >>> `lock_prefix cmpxchgl %ecx,(%rdx)' >>> ./arch/x86/include/asm/refcount.h:109: Error: no such instruction: >>> `refcount_error counter="(%rdx)"' >>> ./arch/x86/include/asm/refcount.h:90: Error: no such instruction: >>> `lock_prefix decl 1528(%rbx)' >>> ./arch/x86/include/asm/refcount.h:91: Error: no such instruction: >>> `refcount_check_lt_zero counter="1528(%rbx)"' >>> ./arch/x86/include/asm/jump_label.h:23: Error: no such instruction: >>> `static_branch_nop l_yes=".L61"key="descriptor.66372+40"branch="0"' >>> ./arch/x86/include/asm/refcount.h:90: Error: no such instruction: >>> `lock_prefix decl 1528(%rdi)' >>> ./arch/x86/include/asm/refcount.h:91: Error: no such instruction: >>> `refcount_check_lt_zero counter="1528(%rdi)"' >>> ./arch/x86/include/asm/jump_label.h:23: Error: no such instruction: >>> `static_branch_nop l_yes=".L80"key="descriptor.66372+40"branch="0"' >>> Assembler messages: >>> Error: can't open arch/x86/kernel/macros.s for reading: No such file or >>> directory >>> ./arch/x86/include/asm/refcount.h:90: Error: no such instruction: >>> `lock_prefix decl 4(%rdi)' >>> ./arch/x86/include/asm/refcount.h:91: Error: no such instruction: >>> `refcount_check_lt_zero counter="4(%rdi)"' >>> ./arch/x86/include/asm/jump_label.h:23: Error: no such instruction: >>> `static_branch_nop l_yes=".L6"key="descriptor.67356+40"branch="0"' >>> ./arch/x86/include/asm/jump_label.h:23: Error: no such instruction: >>> `static_branch_nop l_yes=".L32"key="descriptor.67420+40"branch="0"' >>> ./arch/x86/include/asm/refcount.h:65: Error: no such instruction: >>> `lock_prefix incl 4(%rdi)' >>> ./arch/x86/include/asm/refcount.h:66: Error: no such instruction: >>> `refcount_check_lt_zero counter="4(%rdi)"' >>> ./arch/x86/include/asm/refcount.h:90: Error: no such instruction: >>> `lock_prefix decl 4(%rdi)' >>> ./arch/x86/include/asm/refcount.h:91: Error: no such instruction: >>> `refcount_check_lt_zero counter="4(%rdi)"' >>> /var/lib/dkms/wireguard/0.0.20181119/build/device.c:404: Error: no such >>> instruction: `asm_bug ins=".byte 0x0f, 0x0b"file=.LC7 line=404 flags=2305 >>> size=12' >>> /var/lib/dkms/wireguard/0.0.20181119/build/device.c:404: Error: no such >>> instruction: `annotate_reachable counter=163' >>> ./arch/x86/include/asm/bitops.h:76: Error: no such instruction: >>> `lock_prefix orb $32,328(%rax)' >>> make[1]: *** [scripts/Makefile.build:293: >>> /var/lib/dkms/wireguard/0.0.20181119/build/peer.o] Error 1 >>> make[1]: *** [scripts/Makefile.build:293: >>> /var/lib/dkms/wireguard/0.0.20181119/build/device.o] Error 1 >>> Assembler messages: >>> Error: can't open arch/x86/kernel/macros.s for reading: No such file or >>> directory >>> ./arch/x86/include/asm/refcount.h:90: Error: no such instruction: >>> `lock_prefix decl 680(%rbx)' >>> ./arch/x86/include/asm/refcount.h:91: Error: no such instruction: >>> `refcount_check_lt_zero counter="680(%rbx)"' >>> ./arch/x86/include/asm/refcount.h:90: Error: no such instruction: >>> `lock_prefix decl 680(%rbx)' >>> ./arch/x86/include/asm/refcount.h:91: Error: no such instruction: >>> `refcount_check_lt_zero counter="680(%rbx)"' >>> ./arch/x86/include/asm/atomic.h:200: Error: no such instruction: >>> `lock_prefix cmpxchgl %ecx,(%rdx)' >>> ./arch/x86/include/asm/refcount.h:109: Error: no such instruction: >>> `refcount_error counter="(%rdx)"' >>> ./arch/x86/include/asm/refcount.h:90: Error: no such instruction: >>> `lock_prefix decl 680(%rbx)' >>> ./arch/x86/include/asm/refcount.h:91: Error: no such instruction: >>> `refcount_check_lt_zero counter="680(%rbx)"' >>> ./arch/x86/include/asm/atomic64_64.h:160: Error: no such instruction: >>> `lock_prefix xaddq %rax,keypair_counter(%rip)' >>> make[1]: *** [scripts/Makefile.build:293: >>> /var/lib/dkms/wireguard/0.0.20181119/build/noise.o] Error 1 >>> make: *** [Makefile:1565: >>> _module_/var/lib/dkms/wireguard/0.0.20181119/build] Error 2 >>> make: Leaving directory '/usr/src/linux-headers-4.20.0-rc4' >>> >>> >> >> _______________________________________________ > WireGuard mailing list > WireGuard@lists.zx2c4.com > https://lists.zx2c4.com/mailman/listinfo/wireguard > --0000000000009d4dcb057bfe3f3c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Does it have to do with macros.S having a capital S exten= sion?

Thanks,
Tushar Pank= aj

On Sat, Dec 1= , 2018, 17:24 Laszlo KERTESZ <laszlo.kertesz@gmail.com wrote:
Hi,
It builds with = 4.19.x. What happened to 4.20?
On the Fedore bug tracker the= re is something related:


On Sat, Dec 1, 2018 at 11:03 PM QINGWEI ZHANG <qzhang.cana= da@gmail.com> wrote:
This kernel is the latest one, could you = try with 4.19?
= =

<= /div>
= =
Sent: Decembe= r 1, 2018 15:58
Subject: Build fails on= Debian, kernel 4.20.0-rc4

Hi,
The wireguard module (0.0.20181119 from Debian Unstabl= e) fails to build on my machine using kernel 4.20 rc4.

<= /div>
I get the following errors:

# cat /var/lib/dkms/wireguard/0.0.201= 81119/build/make.log
DKMS make.log for wireguard-0.0.20181119 for kernel 4.20.0-rc4 = (x86_64)
Sat Dec=C2=A0 1 22:51:18 EET 2018
make: Entering directory &= #39;/usr/src/linux-headers-4.20.0-rc4'
=C2=A0 CC [M]=C2=A0 /var/lib/= dkms/wireguard/0.0.20181119/build/main.o
=C2=A0 CC [M]=C2=A0 /var/lib/dk= ms/wireguard/0.0.20181119/build/noise.o
=C2=A0 CC [M]=C2=A0 /var/lib/dkm= s/wireguard/0.0.20181119/build/device.o
=C2=A0 CC [M]=C2=A0 /var/lib/dkm= s/wireguard/0.0.20181119/build/peer.o
Assembler messages:
Error: can&= #39;t open arch/x86/kernel/macros.s for reading: No such file or directory<= br>make[1]: *** [scripts/Makefile.build:293: /var/lib/dkms/wireguard/0.= 0.20181119/build/main.o] Error 1
make[1]: *** Waiting for unfinished job= s....
Assembler messages:
Error: can't open arch/x86/kernel/macro= s.s for reading: No such file or directory
./arch/x86/include/asm/atomic= 64_64.h:160: Error: no such instruction: `lock_prefix xaddq %rax,peer_count= er(%rip)'
./arch/x86/include/asm/bitops.h:76: Error: no such instruc= tion: `lock_prefix orb $32,1592(%rbx)'
./arch/x86/include/asm/bitops= .h:114: Error: no such instruction: `lock_prefix andb $-2,1592(%rbx)'./arch/x86/include/asm/bitops.h:114: Error: no such instruction: `lock_pr= efix andb $-9,1592(%rbx)'
./arch/x86/include/asm/jump_label.h:23: Er= ror: no such instruction: `static_branch_nop l_yes=3D".L15"key=3D= "descriptor.66338+40"branch=3D"0"'
./include/lin= ux/netdevice.h:515: Error: no such instruction: `asm_bug ins=3D".byte = 0x0f, 0x0b"file=3D.LC0 line=3D515 flags=3D0 size=3D12'
./includ= e/linux/netdevice.h:515: Error: no such instruction: `annotate_unreachable = counter=3D80'
./arch/x86/include/asm/atomic.h:200: Error: no such in= struction: `lock_prefix cmpxchgl %ecx,(%rdx)'
./arch/x86/include/asm= /refcount.h:109: Error: no such instruction: `refcount_error counter=3D&quo= t;(%rdx)"'
./arch/x86/include/asm/refcount.h:90: Error: no such= instruction: `lock_prefix decl 1528(%rbx)'
./arch/x86/include/asm/r= efcount.h:91: Error: no such instruction: `refcount_check_lt_zero counter= =3D"1528(%rbx)"'
./arch/x86/include/asm/jump_label.h:23: E= rror: no such instruction: `static_branch_nop l_yes=3D".L61"key= =3D"descriptor.66372+40"branch=3D"0"'
./arch/x86= /include/asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 1= 528(%rdi)'
./arch/x86/include/asm/refcount.h:91: Error: no such inst= ruction: `refcount_check_lt_zero counter=3D"1528(%rdi)"'
.= /arch/x86/include/asm/jump_label.h:23: Error: no such instruction: `static_= branch_nop l_yes=3D".L80"key=3D"descriptor.66372+40"bra= nch=3D"0"'
Assembler messages:
Error: can't open ar= ch/x86/kernel/macros.s for reading: No such file or directory
./arch/x86= /include/asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 4= (%rdi)'
./arch/x86/include/asm/refcount.h:91: Error: no such instruc= tion: `refcount_check_lt_zero counter=3D"4(%rdi)"'
./arch/= x86/include/asm/jump_label.h:23: Error: no such instruction: `static_branch= _nop l_yes=3D".L6"key=3D"descriptor.67356+40"branch=3D&= quot;0"'
./arch/x86/include/asm/jump_label.h:23: Error: no such= instruction: `static_branch_nop l_yes=3D".L32"key=3D"descri= ptor.67420+40"branch=3D"0"'
./arch/x86/include/asm/re= fcount.h:65: Error: no such instruction: `lock_prefix incl 4(%rdi)'
= ./arch/x86/include/asm/refcount.h:66: Error: no such instruction: `refcount= _check_lt_zero counter=3D"4(%rdi)"'
./arch/x86/include/asm= /refcount.h:90: Error: no such instruction: `lock_prefix decl 4(%rdi)'<= br>./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `refco= unt_check_lt_zero counter=3D"4(%rdi)"'
/var/lib/dkms/wireg= uard/0.0.20181119/build/device.c:404: Error: no such instruction: `asm_bug = ins=3D".byte 0x0f, 0x0b"file=3D.LC7 line=3D404 flags=3D2305 size= =3D12'
/var/lib/dkms/wireguard/0.0.20181119/build/device.c:404: Erro= r: no such instruction: `annotate_reachable counter=3D163'
./arch/x8= 6/include/asm/bitops.h:76: Error: no such instruction: `lock_prefix orb $32= ,328(%rax)'
make[1]: *** [scripts/Makefile.build:293: /var/lib/d= kms/wireguard/0.0.20181119/build/peer.o] Error 1
make[1]: *** [scripts/<= a href=3D"http://Makefile.build:293" target=3D"_blank" rel=3D"noreferrer">M= akefile.build:293: /var/lib/dkms/wireguard/0.0.20181119/build/device.o]= Error 1
Assembler messages:
Error: can't open arch/x86/kernel/ma= cros.s for reading: No such file or directory
./arch/x86/include/asm/ref= count.h:90: Error: no such instruction: `lock_prefix decl 680(%rbx)'./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `refcoun= t_check_lt_zero counter=3D"680(%rbx)"'
./arch/x86/include/= asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 680(%rbx)&= #39;
./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `= refcount_check_lt_zero counter=3D"680(%rbx)"'
./arch/x86/i= nclude/asm/atomic.h:200: Error: no such instruction: `lock_prefix cmpxchgl = %ecx,(%rdx)'
./arch/x86/include/asm/refcount.h:109: Error: no such i= nstruction: `refcount_error counter=3D"(%rdx)"'
./arch/x86= /include/asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 6= 80(%rbx)'
./arch/x86/include/asm/refcount.h:91: Error: no such instr= uction: `refcount_check_lt_zero counter=3D"680(%rbx)"'
./a= rch/x86/include/asm/atomic64_64.h:160: Error: no such instruction: `lock_pr= efix xaddq %rax,keypair_counter(%rip)'
make[1]: *** [scripts/Makefil= e.build:293: /var/lib/dkms/wireguard/0.0.20181119/build/noise.o] Error = 1
make: *** [Makefile:1565: _module_/var/lib/dkms/wireguard/0.0.20181119= /build] Error 2
make: Leaving directory '/usr/src/linux-headers-4.20= .0-rc4'



<= /div>
_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinf= o/wireguard
--0000000000009d4dcb057bfe3f3c-- --===============0821856801919123320== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ WireGuard mailing list WireGuard@lists.zx2c4.com https://lists.zx2c4.com/mailman/listinfo/wireguard --===============0821856801919123320==--