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 A9B68C04EB9 for ; Sat, 1 Dec 2018 23:38:49 +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 1AD492082F for ; Sat, 1 Dec 2018 23:38:48 +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="bIZbRVN0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1AD492082F 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 06752ba5; Sat, 1 Dec 2018 23:31:13 +0000 (UTC) Received: from krantz.zx2c4.com (localhost [127.0.0.1]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 044d6a01 for ; Sat, 1 Dec 2018 23:31:10 +0000 (UTC) Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 29b5eb31 for ; Sat, 1 Dec 2018 23:31:10 +0000 (UTC) Received: by mail-qk1-x72b.google.com with SMTP id a132so5373060qkg.1 for ; Sat, 01 Dec 2018 15:38:44 -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=O04vFq2sDTumsUF8YWz5gwtIeVOsoqOrcHpoIkUdlCI=; b=bIZbRVN07iFHAIu6J8k6xn8m+hfIm/2cp5n1Hhhcdrjy8/egmUzCWK2pPAOBU8ZiZK JhPf3oKnYWC7b6VOP8KEnYgCYxlQY2kRYNsodqmWMkpJ4bEWgnDQu6V7TwM9NTe+U/Vf j3jvJlC45GoAmuqXk0CtgMVl8cUkFy87DYTTwqJR++JlPCf+sU2EAKKsNSMj/lKuaVN5 WtE+EpeR+8nVuV27cxFqAKN6CH6I6K3DcAZtoBtxJGB+ST3KaT7zTKiuFIg7z8EzJ8hY x2qGoZBd1OC4WeCwOjKq/VuI+v0g7ZGLiN4VUruxRw1rQVlYYWqAlhbWhZdH90f8ajDt AjLg== 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=O04vFq2sDTumsUF8YWz5gwtIeVOsoqOrcHpoIkUdlCI=; b=YvhsvJo2n9kTPVmINtLwBR9L7wbndRXKNnan5ighdF9/4dF0mZ8Cxgu16VBFIP4GD2 Lr/SFryxw58rZWdPAu9+s4Ur2ya+3QfWP4iqZdcRajNpMnnR5+LaQtxyPJRLB6Wtdt5X s3pqhJqrgzGcLgpz8fAfH0hZ4C6YEiP9UQuOkxC/+o/b8ppR8Xe3npUBnzapmzK+OLcF 50lFOYsrA1yaC9Jn/FzB0JURJ4eiLOZ00tV9LMxYsG65Yj1oav42U/WQBikajRefRcxf 9H+UD3KsrLuqvrVHi3Ep5KAmIO6Xrs/bsk7fvhI80TVoRvjXUY90Z/CfXX9JNX27ykmA 1Rzw== X-Gm-Message-State: AA+aEWbZaLb7tHi9yrn5EJtvu/EYfKUx9i1zMPpdCX3G/gi9ZenWwZN2 7EY+v/pDSWciU+CubQINo8yg9PBhO1svfNfyBhQg8nvB X-Google-Smtp-Source: AFSGD/URqcbYhqw/yh89o4i3JrkNztcJ1V2PuJCYLADSLUDFY2VzOSkPqVTRTg0EvUZ5huR0TRy3+Kk9JpOCYrLakFE= X-Received: by 2002:a37:9cd4:: with SMTP id f203mr10344092qke.155.1543707524271; Sat, 01 Dec 2018 15:38:44 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Laszlo KERTESZ Date: Sun, 2 Dec 2018 01:38:32 +0200 Message-ID: Subject: Re: Build fails on Debian, kernel 4.20.0-rc4 To: tushar.s.pankaj@gmail.com 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="===============4861024272184823447==" Errors-To: wireguard-bounces@lists.zx2c4.com Sender: "WireGuard" --===============4861024272184823447== Content-Type: multipart/alternative; boundary="0000000000009f1264057bfe6af5" --0000000000009f1264057bfe6af5 Content-Type: text/plain; charset="UTF-8" On Sun, Dec 2, 2018 at 1:26 AM Tushar Pankaj wrote: > Does it have to do with macros.S having a capital S extension? > > Thanks, > Tushar Pankaj > > Probably not. I don't have any "arch/x86/kernel/macros.s" file (actually "/usr/src/linux-headers-4.20.0-rc4/arch/x86/kernel/macros.s") at all. In fact neither do i have macros.s or macros.S in previous kernels directories. > 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 >> > --0000000000009f1264057bfe6af5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable



Probably not. I don't have any "arch/x86/kernel/macro= s.s" file (actually "/usr/src/linux-headers-4.20.0-rc4/arch/x86/k= ernel/macros.s") at all. In fact neither do i have macros.s or macros.= S in previous kernels directories.
=C2=A0
=
Hi,
It builds with 4.19.x. What happene= d to 4.20?
On the Fedore bug tracker there is something rela= ted:


On Sat, Dec 1= , 2018 at 11:03 PM QINGWEI ZHANG <qzhang.canada@gmail.com> w= rote:
This kernel is the latest one, could you tr= y with 4.19?
= =

=
= =
=
Sent: December 1, 2018 15:58
Subject: Build fails on Debian, kernel 4.20.0-rc4

Hi,
The wireguard module (0.0.20181119 from Debian Unstable) fails to bui= ld on my machine using kernel 4.20 rc4.

I get= the following errors:

# cat /var/lib/dkms/wireguard/0.0.20181119/build/make.log<= br>DKMS ma= ke.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 '/usr/src/li= nux-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/dkms/wireguard/0.= 0.20181119/build/noise.o
=C2=A0 CC [M]=C2=A0 /var/lib/dkms/wireguard/0.0= .20181119/build/device.o
=C2=A0 CC [M]=C2=A0 /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/bu= ild/main.o] Error 1
make[1]: *** Waiting for unfinished jobs....
Asse= mbler messages:
Error: can't open arch/x86/kernel/macros.s for readi= ng: 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_p= refix 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=3D".L15"key=3D"descrip= tor.66338+40"branch=3D"0"'
./include/linux/netdevice.= h:515: Error: no such instruction: `asm_bug ins=3D".byte 0x0f, 0x0b&qu= ot;file=3D.LC0 line=3D515 flags=3D0 size=3D12'
./include/linux/netde= vice.h:515: Error: no such instruction: `annotate_unreachable counter=3D80&= #39;
./arch/x86/include/asm/atomic.h:200: Error: no such instruction: `l= ock_prefix cmpxchgl %ecx,(%rdx)'
./arch/x86/include/asm/refcount.h:1= 09: Error: no such instruction: `refcount_error counter=3D"(%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=3D"1528(%= rbx)"'
./arch/x86/include/asm/jump_label.h:23: Error: no such i= nstruction: `static_branch_nop l_yes=3D".L61"key=3D"descript= or.66372+40"branch=3D"0"'
./arch/x86/include/asm/refc= ount.h:90: Error: no such instruction: `lock_prefix decl 1528(%rdi)'./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `refcoun= t_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"branch=3D"0&qu= ot;'
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 4(%rdi)'
.= /arch/x86/include/asm/refcount.h:91: Error: no such instruction: `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&qu= ot;.L6"key=3D"descriptor.67356+40"branch=3D"0"'= ;
./arch/x86/include/asm/jump_label.h:23: Error: no such instruction: `s= tatic_branch_nop l_yes=3D".L32"key=3D"descriptor.67420+40&qu= ot;branch=3D"0"'
./arch/x86/include/asm/refcount.h:65: Err= or: no such instruction: `lock_prefix incl 4(%rdi)'
./arch/x86/inclu= de/asm/refcount.h:66: Error: no such instruction: `refcount_check_lt_zero c= ounter=3D"4(%rdi)"'
./arch/x86/include/asm/refcount.h:90: = Error: no such instruction: `lock_prefix decl 4(%rdi)'
./arch/x86/in= clude/asm/refcount.h:91: Error: no such instruction: `refcount_check_lt_zer= o counter=3D"4(%rdi)"'
/var/lib/dkms/wireguard/0.0.2018111= 9/build/device.c:404: Error: no such instruction: `asm_bug ins=3D".byt= e 0x0f, 0x0b"file=3D.LC7 line=3D404 flags=3D2305 size=3D12'
/va= r/lib/dkms/wireguard/0.0.20181119/build/device.c:404: Error: no such instru= ction: `annotate_reachable counter=3D163'
./arch/x86/include/asm/bit= ops.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
Assem= bler messages:
Error: can't open arch/x86/kernel/macros.s for readin= g: No such file or directory
./arch/x86/include/asm/refcount.h:90: Error= : no such instruction: `lock_prefix decl 680(%rbx)'
./arch/x86/inclu= de/asm/refcount.h:91: Error: no such instruction: `refcount_check_lt_zero c= ounter=3D"680(%rbx)"'
./arch/x86/include/asm/refcount.h:90= : Error: no such instruction: `lock_prefix decl 680(%rbx)'
./arch/x8= 6/include/asm/refcount.h:91: Error: no such instruction: `refcount_check_lt= _zero counter=3D"680(%rbx)"'
./arch/x86/include/asm/atomic= .h:200: Error: no such instruction: `lock_prefix cmpxchgl %ecx,(%rdx)'<= br>./arch/x86/include/asm/refcount.h:109: Error: no such instruction: `refc= ount_error counter=3D"(%rdx)"'
./arch/x86/include/asm/refc= ount.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=3D"680(%rbx)"'
./arch/x86/include/a= sm/atomic64_64.h:160: Error: no such instruction: `lock_prefix xaddq %rax,k= eypair_counter(%rip)'
make[1]: *** [scripts/Makefile.build:293: = /var/lib/dkms/wireguard/0.0.20181119/build/noise.o] Error 1
make: *** [M= akefile:1565: _module_/var/lib/dkms/wireguard/0.0.20181119/build] Error 2make: Leaving directory '/usr/src/linux-headers-4.20.0-rc4'


_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinf= o/wireguard
--0000000000009f1264057bfe6af5-- --===============4861024272184823447== 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 --===============4861024272184823447==--