WireGuard Archive on lore.kernel.org
 help / Atom feed
* Build fails on Debian, kernel 4.20.0-rc4
@ 2018-12-01 20:56 Laszlo KERTESZ
  2018-12-01 21:02 ` QINGWEI ZHANG
  2018-12-02 10:29 ` John
  0 siblings, 2 replies; 7+ messages in thread
From: Laszlo KERTESZ @ 2018-12-01 20:56 UTC (permalink / raw)
  To: WireGuard mailing list

[-- Attachment #1.1: Type: text/plain, Size: 5659 bytes --]

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'
>
>

[-- Attachment #1.2: Type: text/html, Size: 6383 bytes --]

<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi,</div><div>The wireguard module (0.0.20181119 from Debian Unstable) fails to build on my machine using kernel 4.20 rc4. <br></div><div><br></div><div>I get the following errors:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div># cat /var/lib/dkms/wireguard/0.0.20181119/build/make.log<br>DKMS make.log for wireguard-0.0.20181119 for kernel 4.20.0-rc4 (x86_64)<br>Sat Dec  1 22:51:18 EET 2018<br>make: Entering directory &#39;/usr/src/linux-headers-4.20.0-rc4&#39;<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20181119/build/main.o<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20181119/build/noise.o<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20181119/build/device.o<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20181119/build/peer.o<br>Assembler messages:<br>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<br>make[1]: *** Waiting for unfinished jobs....<br>Assembler messages:<br>Error: can&#39;t open arch/x86/kernel/macros.s for reading: No such file or directory<br>./arch/x86/include/asm/atomic64_64.h:160: Error: no such instruction: `lock_prefix xaddq %rax,peer_counter(%rip)&#39;<br>./arch/x86/include/asm/bitops.h:76: Error: no such instruction: `lock_prefix orb $32,1592(%rbx)&#39;<br>./arch/x86/include/asm/bitops.h:114: Error: no such instruction: `lock_prefix andb $-2,1592(%rbx)&#39;<br>./arch/x86/include/asm/bitops.h:114: Error: no such instruction: `lock_prefix andb $-9,1592(%rbx)&#39;<br>./arch/x86/include/asm/jump_label.h:23: Error: no such instruction: `static_branch_nop l_yes=&quot;.L15&quot;key=&quot;descriptor.66338+40&quot;branch=&quot;0&quot;&#39;<br>./include/linux/netdevice.h:515: Error: no such instruction: `asm_bug ins=&quot;.byte 0x0f, 0x0b&quot;file=.LC0 line=515 flags=0 size=12&#39;<br>./include/linux/netdevice.h:515: Error: no such instruction: `annotate_unreachable counter=80&#39;<br>./arch/x86/include/asm/atomic.h:200: Error: no such instruction: `lock_prefix cmpxchgl %ecx,(%rdx)&#39;<br>./arch/x86/include/asm/refcount.h:109: Error: no such instruction: `refcount_error counter=&quot;(%rdx)&quot;&#39;<br>./arch/x86/include/asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 1528(%rbx)&#39;<br>./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `refcount_check_lt_zero counter=&quot;1528(%rbx)&quot;&#39;<br>./arch/x86/include/asm/jump_label.h:23: Error: no such instruction: `static_branch_nop l_yes=&quot;.L61&quot;key=&quot;descriptor.66372+40&quot;branch=&quot;0&quot;&#39;<br>./arch/x86/include/asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 1528(%rdi)&#39;<br>./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `refcount_check_lt_zero counter=&quot;1528(%rdi)&quot;&#39;<br>./arch/x86/include/asm/jump_label.h:23: Error: no such instruction: `static_branch_nop l_yes=&quot;.L80&quot;key=&quot;descriptor.66372+40&quot;branch=&quot;0&quot;&#39;<br>Assembler messages:<br>Error: can&#39;t open arch/x86/kernel/macros.s for reading: No such file or directory<br>./arch/x86/include/asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 4(%rdi)&#39;<br>./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `refcount_check_lt_zero counter=&quot;4(%rdi)&quot;&#39;<br>./arch/x86/include/asm/jump_label.h:23: Error: no such instruction: `static_branch_nop l_yes=&quot;.L6&quot;key=&quot;descriptor.67356+40&quot;branch=&quot;0&quot;&#39;<br>./arch/x86/include/asm/jump_label.h:23: Error: no such instruction: `static_branch_nop l_yes=&quot;.L32&quot;key=&quot;descriptor.67420+40&quot;branch=&quot;0&quot;&#39;<br>./arch/x86/include/asm/refcount.h:65: Error: no such instruction: `lock_prefix incl 4(%rdi)&#39;<br>./arch/x86/include/asm/refcount.h:66: Error: no such instruction: `refcount_check_lt_zero counter=&quot;4(%rdi)&quot;&#39;<br>./arch/x86/include/asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 4(%rdi)&#39;<br>./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `refcount_check_lt_zero counter=&quot;4(%rdi)&quot;&#39;<br>/var/lib/dkms/wireguard/0.0.20181119/build/device.c:404: Error: no such instruction: `asm_bug ins=&quot;.byte 0x0f, 0x0b&quot;file=.LC7 line=404 flags=2305 size=12&#39;<br>/var/lib/dkms/wireguard/0.0.20181119/build/device.c:404: Error: no such instruction: `annotate_reachable counter=163&#39;<br>./arch/x86/include/asm/bitops.h:76: Error: no such instruction: `lock_prefix orb $32,328(%rax)&#39;<br>make[1]: *** [scripts/Makefile.build:293: /var/lib/dkms/wireguard/0.0.20181119/build/peer.o] Error 1<br>make[1]: *** [scripts/Makefile.build:293: /var/lib/dkms/wireguard/0.0.20181119/build/device.o] Error 1<br>Assembler messages:<br>Error: can&#39;t open arch/x86/kernel/macros.s for reading: No such file or directory<br>./arch/x86/include/asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 680(%rbx)&#39;<br>./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `refcount_check_lt_zero counter=&quot;680(%rbx)&quot;&#39;<br>./arch/x86/include/asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 680(%rbx)&#39;<br>./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `refcount_check_lt_zero counter=&quot;680(%rbx)&quot;&#39;<br>./arch/x86/include/asm/atomic.h:200: Error: no such instruction: `lock_prefix cmpxchgl %ecx,(%rdx)&#39;<br>./arch/x86/include/asm/refcount.h:109: Error: no such instruction: `refcount_error counter=&quot;(%rdx)&quot;&#39;<br>./arch/x86/include/asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 680(%rbx)&#39;<br>./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `refcount_check_lt_zero counter=&quot;680(%rbx)&quot;&#39;<br>./arch/x86/include/asm/atomic64_64.h:160: Error: no such instruction: `lock_prefix xaddq %rax,keypair_counter(%rip)&#39;<br>make[1]: *** [scripts/Makefile.build:293: /var/lib/dkms/wireguard/0.0.20181119/build/noise.o] Error 1<br>make: *** [Makefile:1565: _module_/var/lib/dkms/wireguard/0.0.20181119/build] Error 2<br>make: Leaving directory &#39;/usr/src/linux-headers-4.20.0-rc4&#39;<br><br></div></blockquote><div><br></div><div><br></div></div></div></div>

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Build fails on Debian, kernel 4.20.0-rc4
  2018-12-01 20:56 Build fails on Debian, kernel 4.20.0-rc4 Laszlo KERTESZ
@ 2018-12-01 21:02 ` QINGWEI ZHANG
  2018-12-01 23:22   ` Laszlo KERTESZ
  2018-12-02 10:29 ` John
  1 sibling, 1 reply; 7+ messages in thread
From: QINGWEI ZHANG @ 2018-12-01 21:02 UTC (permalink / raw)
  To: Laszlo KERTESZ, WireGuard mailing list

[-- Attachment #1: Type: text/html, Size: 8607 bytes --]

<html><head><meta http-equiv="Content-Security-Policy" content="script-src 'self'; img-src * cid: data:;"><style id="outgoing-font-settings">#response_container_BBPPID{font-family: initial; font-size:initial; color: initial;}</style></head><body style="background-color: rgb(255, 255, 255); background-image: initial; line-height: initial;"><div id="response_container_BBPPID" style="outline:none;" dir="auto" contenteditable="false"> <div name="BB10" id="BB10_response_div_BBPPID" dir="auto" style="width:100%;"> This kernel is the latest one, could you try with 4.19?</div>                                                                                                                                      <div name="BB10" id="response_div_spacer_BBPPID" dir="auto" style="width:100%;"> <br style="display:initial"></div>                            <div id="blackberry_signature_BBPPID" name="BB10" dir="auto">     <div id="_signaturePlaceholder_BBPPID" name="BB10" dir="auto">Sent via the <a href="http://play.google.com/store/apps/details?id=com.blackberry.hub">BlackBerry Hub for Android</a></div> </div></div><div id="_original_msg_header_BBPPID" dir="auto">                                                                                                                                             <table width="100%" style="background-color: white; border-spacing: 0px; display: table; outline: none;" contenteditable="false"><tbody><tr><td colspan="2" style="padding: initial; font-size: initial; text-align: initial; background-color: rgb(255, 255, 255);">                           <div style="border-right: none; border-bottom: none; border-left: none; border-image: initial; border-top: 1pt solid rgb(181, 196, 223); padding: 3pt 0in 0in; font-family: Tahoma, &quot;BB Alpha Sans&quot;, &quot;Slate Pro&quot;; font-size: 10pt;">  <div id="from"><b>From:</b> laszlo.kertesz@gmail.com</div><div id="sent"><b>Sent:</b> December 1, 2018 15:58</div><div id="to"><b>To:</b> wireguard@lists.zx2c4.com</div><div id="subject"><b>Subject:</b> Build fails on Debian, kernel 4.20.0-rc4</div></div></td></tr></tbody></table> <br> </div><!--start of _originalContent --><div name="BB10" dir="auto" style="background-image: initial; line-height: initial; outline: none;" contenteditable="false"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi,</div><div>The wireguard module (0.0.20181119 from Debian Unstable) fails to build on my machine using kernel 4.20 rc4. <br></div><div><br></div><div>I get the following errors:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb( 204 , 204 , 204 );padding-left:1ex"><div># cat /var/lib/dkms/wireguard/0.0.20181119/build/<wbr><a href="http://make.log">make.log</a><wbr><br>DKMS <wbr><a href="http://make.log">make.log</a><wbr> for wireguard-0.0.20181119 for kernel 4.20.0-rc4 (x86_64)<br>Sat Dec&nbsp; 1 22:51:18 EET 2018<br>make: Entering directory '/usr/src/linux-headers-4.20.0-rc4'<br>&nbsp; CC [M]&nbsp; /var/lib/dkms/wireguard/0.0.20181119/build/main.o<br>&nbsp; CC [M]&nbsp; /var/lib/dkms/wireguard/0.0.20181119/build/noise.o<br>&nbsp; CC [M]&nbsp; /var/lib/dkms/wireguard/0.0.20181119/build/device.o<br>&nbsp; CC [M]&nbsp; /var/lib/dkms/wireguard/0.0.20181119/build/peer.o<br>Assembler messages:<br>Error: can't open arch/x86/kernel/macros.s for reading: No such file or directory<br>make[1]: *** [scripts/<wbr><a href="http://Makefile.build:293">Makefile.build:293</a><wbr>: /var/lib/dkms/wireguard/0.0.20181119/build/main.o] Error 1<br>make[1]: *** Waiting for unfinished jobs....<br>Assembler messages:<br>Error: can't open arch/x86/kernel/macros.s for reading: No such file or directory<br>./arch/x86/include/asm/atomic64_64.h:160: Error: no such instruction: `lock_prefix xaddq %rax,peer_counter(%rip)'<br>./arch/x86/include/asm/bitops.h:76: Error: no such instruction: `lock_prefix orb $32,1592(%rbx)'<br>./arch/x86/include/asm/bitops.h:114: Error: no such instruction: `lock_prefix andb $-2,1592(%rbx)'<br>./arch/x86/include/asm/bitops.h:114: Error: no such instruction: `lock_prefix andb $-9,1592(%rbx)'<br>./arch/x86/include/asm/jump_label.h:23: Error: no such instruction: `static_branch_nop l_yes=".L15"key="descriptor.66338+40"branch="0"'<br>./include/linux/netdevice.h:515: Error: no such instruction: `asm_bug ins=".byte 0x0f, 0x0b"file=.LC0 line=515 flags=0 size=12'<br>./include/linux/netdevice.h:515: Error: no such instruction: `annotate_unreachable counter=80'<br>./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: `refcount_error counter="(%rdx)"'<br>./arch/x86/include/asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 1528(%rbx)'<br>./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `refcount_check_lt_zero counter="1528(%rbx)"'<br>./arch/x86/include/asm/jump_label.h:23: Error: no such instruction: `static_branch_nop l_yes=".L61"key="descriptor.66372+40"branch="0"'<br>./arch/x86/include/asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 1528(%rdi)'<br>./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `refcount_check_lt_zero counter="1528(%rdi)"'<br>./arch/x86/include/asm/jump_label.h:23: Error: no such instruction: `static_branch_nop l_yes=".L80"key="descriptor.66372+40"branch="0"'<br>Assembler messages:<br>Error: can't open arch/x86/kernel/macros.s for reading: No such file or directory<br>./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: `refcount_check_lt_zero counter="4(%rdi)"'<br>./arch/x86/include/asm/jump_label.h:23: Error: no such instruction: `static_branch_nop l_yes=".L6"key="descriptor.67356+40"branch="0"'<br>./arch/x86/include/asm/jump_label.h:23: Error: no such instruction: `static_branch_nop l_yes=".L32"key="descriptor.67420+40"branch="0"'<br>./arch/x86/include/asm/refcount.h:65: Error: no such instruction: `lock_prefix incl 4(%rdi)'<br>./arch/x86/include/asm/refcount.h:66: Error: no such instruction: `refcount_check_lt_zero counter="4(%rdi)"'<br>./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: `refcount_check_lt_zero counter="4(%rdi)"'<br>/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'<br>/var/lib/dkms/wireguard/0.0.20181119/build/device.c:404: Error: no such instruction: `annotate_reachable counter=163'<br>./arch/x86/include/asm/bitops.h:76: Error: no such instruction: `lock_prefix orb $32,328(%rax)'<br>make[1]: *** [scripts/<wbr><a href="http://Makefile.build:293">Makefile.build:293</a><wbr>: /var/lib/dkms/wireguard/0.0.20181119/build/peer.o] Error 1<br>make[1]: *** [scripts/<wbr><a href="http://Makefile.build:293">Makefile.build:293</a><wbr>: /var/lib/dkms/wireguard/0.0.20181119/build/device.o] Error 1<br>Assembler messages:<br>Error: can't open arch/x86/kernel/macros.s for reading: No such file or directory<br>./arch/x86/include/asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 680(%rbx)'<br>./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `refcount_check_lt_zero counter="680(%rbx)"'<br>./arch/x86/include/asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 680(%rbx)'<br>./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `refcount_check_lt_zero counter="680(%rbx)"'<br>./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: `refcount_error counter="(%rdx)"'<br>./arch/x86/include/asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 680(%rbx)'<br>./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `refcount_check_lt_zero counter="680(%rbx)"'<br>./arch/x86/include/asm/atomic64_64.h:160: Error: no such instruction: `lock_prefix xaddq %rax,keypair_counter(%rip)'<br>make[1]: *** [scripts/<wbr><a href="http://Makefile.build:293">Makefile.build:293</a><wbr>: /var/lib/dkms/wireguard/0.0.20181119/build/noise.o] Error 1<br>make: *** [Makefile:1565: _module_/var/lib/dkms/wireguard/0.0.20181119/build] Error 2<br>make: Leaving directory '/usr/src/linux-headers-4.20.0-rc4'<br><br></div></blockquote><div><br></div><div><br></div></div></div></div>
<!--end of _originalContent --></div></body></html>

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Build fails on Debian, kernel 4.20.0-rc4
  2018-12-01 21:02 ` QINGWEI ZHANG
@ 2018-12-01 23:22   ` Laszlo KERTESZ
  2018-12-01 23:26     ` Tushar Pankaj
  0 siblings, 1 reply; 7+ messages in thread
From: Laszlo KERTESZ @ 2018-12-01 23:22 UTC (permalink / raw)
  To: qzhang.canada; +Cc: WireGuard mailing list

[-- Attachment #1.1: Type: text/plain, Size: 6396 bytes --]

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 <qzhang.canada@gmail.com>
wrote:

> This kernel is the latest one, could you try with 4.19?
>
> Sent via the BlackBerry Hub for Android
> <http://play.google.com/store/apps/details?id=com.blackberry.hub>
> *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'
>>
>>
>
>

[-- Attachment #1.2: Type: text/html, Size: 9674 bytes --]

<div dir="ltr"><div dir="ltr"><div>Hi,<br></div><div>It builds with 4.19.x. What happened to 4.20? <br></div><div>On the Fedore bug tracker there is something related:</div><div><br></div><div><a href="https://src.fedoraproject.org/cgit/rpms/kernel.git/commit/?id=6904e708917a12819d1fe0d329f605030d6e4b0d">https://src.fedoraproject.org/cgit/rpms/kernel.git/commit/?id=6904e708917a12819d1fe0d329f605030d6e4b0d</a><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Dec 1, 2018 at 11:03 PM QINGWEI ZHANG &lt;<a href="mailto:qzhang.canada@gmail.com">qzhang.canada@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="background-color:rgb(255,255,255);background-image:initial;line-height:initial"><div id="m_5093046255808516082response_container_BBPPID" style="outline:none" dir="auto"> <div name="BB10" id="m_5093046255808516082BB10_response_div_BBPPID" dir="auto" style="width:100%"> This kernel is the latest one, could you try with 4.19?</div>                                                                                                                                      <div name="BB10" id="m_5093046255808516082response_div_spacer_BBPPID" dir="auto" style="width:100%"> <br style="display:initial"></div>                            <div id="m_5093046255808516082blackberry_signature_BBPPID" name="BB10" dir="auto">     <div id="m_5093046255808516082_signaturePlaceholder_BBPPID" name="BB10" dir="auto">Sent via the <a href="http://play.google.com/store/apps/details?id=com.blackberry.hub" target="_blank">BlackBerry Hub for Android</a></div> </div></div><div id="m_5093046255808516082_original_msg_header_BBPPID" dir="auto">                                                                                                                                             <table width="100%" style="background-color:white;border-spacing:0px;display:table;outline:none"><tbody><tr><td colspan="2" style="padding:initial;font-size:initial;text-align:initial;background-color:rgb(255,255,255)">                           <div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(181,196,223);padding:3pt 0in 0in;font-family:Tahoma,&quot;BB Alpha Sans&quot;,&quot;Slate Pro&quot;;font-size:10pt">  <div id="m_5093046255808516082from"><b>From:</b> <a href="mailto:laszlo.kertesz@gmail.com" target="_blank">laszlo.kertesz@gmail.com</a></div><div id="m_5093046255808516082sent"><b>Sent:</b> December 1, 2018 15:58</div><div id="m_5093046255808516082to"><b>To:</b> <a href="mailto:wireguard@lists.zx2c4.com" target="_blank">wireguard@lists.zx2c4.com</a></div><div id="m_5093046255808516082subject"><b>Subject:</b> Build fails on Debian, kernel 4.20.0-rc4</div></div></td></tr></tbody></table> <br> </div><div name="BB10" dir="auto" style="background-image:initial;line-height:initial;outline:none"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi,</div><div>The wireguard module (0.0.20181119 from Debian Unstable) fails to build on my machine using kernel 4.20 rc4. <br></div><div><br></div><div>I get the following errors:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div># cat /var/lib/dkms/wireguard/0.0.20181119/build/<a href="http://make.log" target="_blank">make.log</a><br>DKMS <a href="http://make.log" target="_blank">make.log</a> for wireguard-0.0.20181119 for kernel 4.20.0-rc4 (x86_64)<br>Sat Dec  1 22:51:18 EET 2018<br>make: Entering directory &#39;/usr/src/linux-headers-4.20.0-rc4&#39;<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20181119/build/main.o<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20181119/build/noise.o<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20181119/build/device.o<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20181119/build/peer.o<br>Assembler messages:<br>Error: can&#39;t open arch/x86/kernel/macros.s for reading: No such file or directory<br>make[1]: *** [scripts/<a href="http://Makefile.build:293" target="_blank">Makefile.build:293</a>: /var/lib/dkms/wireguard/0.0.20181119/build/main.o] Error 1<br>make[1]: *** Waiting for unfinished jobs....<br>Assembler messages:<br>Error: can&#39;t open arch/x86/kernel/macros.s for reading: No such file or directory<br>./arch/x86/include/asm/atomic64_64.h:160: Error: no such instruction: `lock_prefix xaddq %rax,peer_counter(%rip)&#39;<br>./arch/x86/include/asm/bitops.h:76: Error: no such instruction: `lock_prefix orb $32,1592(%rbx)&#39;<br>./arch/x86/include/asm/bitops.h:114: Error: no such instruction: `lock_prefix andb $-2,1592(%rbx)&#39;<br>./arch/x86/include/asm/bitops.h:114: Error: no such instruction: `lock_prefix andb $-9,1592(%rbx)&#39;<br>./arch/x86/include/asm/jump_label.h:23: Error: no such instruction: `static_branch_nop l_yes=&quot;.L15&quot;key=&quot;descriptor.66338+40&quot;branch=&quot;0&quot;&#39;<br>./include/linux/netdevice.h:515: Error: no such instruction: `asm_bug ins=&quot;.byte 0x0f, 0x0b&quot;file=.LC0 line=515 flags=0 size=12&#39;<br>./include/linux/netdevice.h:515: Error: no such instruction: `annotate_unreachable counter=80&#39;<br>./arch/x86/include/asm/atomic.h:200: Error: no such instruction: `lock_prefix cmpxchgl %ecx,(%rdx)&#39;<br>./arch/x86/include/asm/refcount.h:109: Error: no such instruction: `refcount_error counter=&quot;(%rdx)&quot;&#39;<br>./arch/x86/include/asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 1528(%rbx)&#39;<br>./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `refcount_check_lt_zero counter=&quot;1528(%rbx)&quot;&#39;<br>./arch/x86/include/asm/jump_label.h:23: Error: no such instruction: `static_branch_nop l_yes=&quot;.L61&quot;key=&quot;descriptor.66372+40&quot;branch=&quot;0&quot;&#39;<br>./arch/x86/include/asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 1528(%rdi)&#39;<br>./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `refcount_check_lt_zero counter=&quot;1528(%rdi)&quot;&#39;<br>./arch/x86/include/asm/jump_label.h:23: Error: no such instruction: `static_branch_nop l_yes=&quot;.L80&quot;key=&quot;descriptor.66372+40&quot;branch=&quot;0&quot;&#39;<br>Assembler messages:<br>Error: can&#39;t open arch/x86/kernel/macros.s for reading: No such file or directory<br>./arch/x86/include/asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 4(%rdi)&#39;<br>./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `refcount_check_lt_zero counter=&quot;4(%rdi)&quot;&#39;<br>./arch/x86/include/asm/jump_label.h:23: Error: no such instruction: `static_branch_nop l_yes=&quot;.L6&quot;key=&quot;descriptor.67356+40&quot;branch=&quot;0&quot;&#39;<br>./arch/x86/include/asm/jump_label.h:23: Error: no such instruction: `static_branch_nop l_yes=&quot;.L32&quot;key=&quot;descriptor.67420+40&quot;branch=&quot;0&quot;&#39;<br>./arch/x86/include/asm/refcount.h:65: Error: no such instruction: `lock_prefix incl 4(%rdi)&#39;<br>./arch/x86/include/asm/refcount.h:66: Error: no such instruction: `refcount_check_lt_zero counter=&quot;4(%rdi)&quot;&#39;<br>./arch/x86/include/asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 4(%rdi)&#39;<br>./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `refcount_check_lt_zero counter=&quot;4(%rdi)&quot;&#39;<br>/var/lib/dkms/wireguard/0.0.20181119/build/device.c:404: Error: no such instruction: `asm_bug ins=&quot;.byte 0x0f, 0x0b&quot;file=.LC7 line=404 flags=2305 size=12&#39;<br>/var/lib/dkms/wireguard/0.0.20181119/build/device.c:404: Error: no such instruction: `annotate_reachable counter=163&#39;<br>./arch/x86/include/asm/bitops.h:76: Error: no such instruction: `lock_prefix orb $32,328(%rax)&#39;<br>make[1]: *** [scripts/<a href="http://Makefile.build:293" target="_blank">Makefile.build:293</a>: /var/lib/dkms/wireguard/0.0.20181119/build/peer.o] Error 1<br>make[1]: *** [scripts/<a href="http://Makefile.build:293" target="_blank">Makefile.build:293</a>: /var/lib/dkms/wireguard/0.0.20181119/build/device.o] Error 1<br>Assembler messages:<br>Error: can&#39;t open arch/x86/kernel/macros.s for reading: No such file or directory<br>./arch/x86/include/asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 680(%rbx)&#39;<br>./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `refcount_check_lt_zero counter=&quot;680(%rbx)&quot;&#39;<br>./arch/x86/include/asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 680(%rbx)&#39;<br>./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `refcount_check_lt_zero counter=&quot;680(%rbx)&quot;&#39;<br>./arch/x86/include/asm/atomic.h:200: Error: no such instruction: `lock_prefix cmpxchgl %ecx,(%rdx)&#39;<br>./arch/x86/include/asm/refcount.h:109: Error: no such instruction: `refcount_error counter=&quot;(%rdx)&quot;&#39;<br>./arch/x86/include/asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 680(%rbx)&#39;<br>./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `refcount_check_lt_zero counter=&quot;680(%rbx)&quot;&#39;<br>./arch/x86/include/asm/atomic64_64.h:160: Error: no such instruction: `lock_prefix xaddq %rax,keypair_counter(%rip)&#39;<br>make[1]: *** [scripts/<a href="http://Makefile.build:293" target="_blank">Makefile.build:293</a>: /var/lib/dkms/wireguard/0.0.20181119/build/noise.o] Error 1<br>make: *** [Makefile:1565: _module_/var/lib/dkms/wireguard/0.0.20181119/build] Error 2<br>make: Leaving directory &#39;/usr/src/linux-headers-4.20.0-rc4&#39;<br><br></div></blockquote><div><br></div><div><br></div></div></div></div>
</div></div></blockquote></div>

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Build fails on Debian, kernel 4.20.0-rc4
  2018-12-01 23:22   ` Laszlo KERTESZ
@ 2018-12-01 23:26     ` Tushar Pankaj
  2018-12-01 23:38       ` Laszlo KERTESZ
  0 siblings, 1 reply; 7+ messages in thread
From: Tushar Pankaj @ 2018-12-01 23:26 UTC (permalink / raw)
  To: Laszlo KERTESZ; +Cc: WireGuard mailing list

[-- Attachment #1.1: Type: text/plain, Size: 6854 bytes --]

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 <laszlo.kertesz@gmail.com wrote:

> 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 <qzhang.canada@gmail.com>
> wrote:
>
>> This kernel is the latest one, could you try with 4.19?
>>
>> Sent via the BlackBerry Hub for Android
>> <http://play.google.com/store/apps/details?id=com.blackberry.hub>
>> *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
>

[-- Attachment #1.2: Type: text/html, Size: 10930 bytes --]

<div dir="auto">Does it have to do with macros.S having a capital S extension?<br><br><div data-smartmail="gmail_signature">Thanks,<br>Tushar Pankaj</div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Dec 1, 2018, 17:24 Laszlo KERTESZ &lt;<a href="mailto:laszlo.kertesz@gmail.com">laszlo.kertesz@gmail.com</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>Hi,<br></div><div>It builds with 4.19.x. What happened to 4.20? <br></div><div>On the Fedore bug tracker there is something related:</div><div><br></div><div><a href="https://src.fedoraproject.org/cgit/rpms/kernel.git/commit/?id=6904e708917a12819d1fe0d329f605030d6e4b0d" target="_blank" rel="noreferrer">https://src.fedoraproject.org/cgit/rpms/kernel.git/commit/?id=6904e708917a12819d1fe0d329f605030d6e4b0d</a><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Dec 1, 2018 at 11:03 PM QINGWEI ZHANG &lt;<a href="mailto:qzhang.canada@gmail.com" target="_blank" rel="noreferrer">qzhang.canada@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="background-color:rgb(255,255,255);background-image:initial;line-height:initial"><div id="m_-1194933585637765609m_5093046255808516082response_container_BBPPID" style="outline:none" dir="auto"> <div name="BB10" id="m_-1194933585637765609m_5093046255808516082BB10_response_div_BBPPID" dir="auto" style="width:100%"> This kernel is the latest one, could you try with 4.19?</div>                                                                                                                                      <div name="BB10" id="m_-1194933585637765609m_5093046255808516082response_div_spacer_BBPPID" dir="auto" style="width:100%"> <br style="display:initial"></div>                            <div id="m_-1194933585637765609m_5093046255808516082blackberry_signature_BBPPID" name="BB10" dir="auto">     <div id="m_-1194933585637765609m_5093046255808516082_signaturePlaceholder_BBPPID" name="BB10" dir="auto">Sent via the <a href="http://play.google.com/store/apps/details?id=com.blackberry.hub" target="_blank" rel="noreferrer">BlackBerry Hub for Android</a></div> </div></div><div id="m_-1194933585637765609m_5093046255808516082_original_msg_header_BBPPID" dir="auto">                                                                                                                                             <table width="100%" style="background-color:white;border-spacing:0px;display:table;outline:none"><tbody><tr><td colspan="2" style="padding:initial;font-size:initial;text-align:initial;background-color:rgb(255,255,255)">                           <div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(181,196,223);padding:3pt 0in 0in;font-family:Tahoma,&quot;BB Alpha Sans&quot;,&quot;Slate Pro&quot;;font-size:10pt">  <div id="m_-1194933585637765609m_5093046255808516082from"><b>From:</b> <a href="mailto:laszlo.kertesz@gmail.com" target="_blank" rel="noreferrer">laszlo.kertesz@gmail.com</a></div><div id="m_-1194933585637765609m_5093046255808516082sent"><b>Sent:</b> December 1, 2018 15:58</div><div id="m_-1194933585637765609m_5093046255808516082to"><b>To:</b> <a href="mailto:wireguard@lists.zx2c4.com" target="_blank" rel="noreferrer">wireguard@lists.zx2c4.com</a></div><div id="m_-1194933585637765609m_5093046255808516082subject"><b>Subject:</b> Build fails on Debian, kernel 4.20.0-rc4</div></div></td></tr></tbody></table> <br> </div><div name="BB10" dir="auto" style="background-image:initial;line-height:initial;outline:none"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi,</div><div>The wireguard module (0.0.20181119 from Debian Unstable) fails to build on my machine using kernel 4.20 rc4. <br></div><div><br></div><div>I get the following errors:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div># cat /var/lib/dkms/wireguard/0.0.20181119/build/<a href="http://make.log" target="_blank" rel="noreferrer">make.log</a><br>DKMS <a href="http://make.log" target="_blank" rel="noreferrer">make.log</a> for wireguard-0.0.20181119 for kernel 4.20.0-rc4 (x86_64)<br>Sat Dec  1 22:51:18 EET 2018<br>make: Entering directory &#39;/usr/src/linux-headers-4.20.0-rc4&#39;<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20181119/build/main.o<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20181119/build/noise.o<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20181119/build/device.o<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20181119/build/peer.o<br>Assembler messages:<br>Error: can&#39;t open arch/x86/kernel/macros.s for reading: No such file or directory<br>make[1]: *** [scripts/<a href="http://Makefile.build:293" target="_blank" rel="noreferrer">Makefile.build:293</a>: /var/lib/dkms/wireguard/0.0.20181119/build/main.o] Error 1<br>make[1]: *** Waiting for unfinished jobs....<br>Assembler messages:<br>Error: can&#39;t open arch/x86/kernel/macros.s for reading: No such file or directory<br>./arch/x86/include/asm/atomic64_64.h:160: Error: no such instruction: `lock_prefix xaddq %rax,peer_counter(%rip)&#39;<br>./arch/x86/include/asm/bitops.h:76: Error: no such instruction: `lock_prefix orb $32,1592(%rbx)&#39;<br>./arch/x86/include/asm/bitops.h:114: Error: no such instruction: `lock_prefix andb $-2,1592(%rbx)&#39;<br>./arch/x86/include/asm/bitops.h:114: Error: no such instruction: `lock_prefix andb $-9,1592(%rbx)&#39;<br>./arch/x86/include/asm/jump_label.h:23: Error: no such instruction: `static_branch_nop l_yes=&quot;.L15&quot;key=&quot;descriptor.66338+40&quot;branch=&quot;0&quot;&#39;<br>./include/linux/netdevice.h:515: Error: no such instruction: `asm_bug ins=&quot;.byte 0x0f, 0x0b&quot;file=.LC0 line=515 flags=0 size=12&#39;<br>./include/linux/netdevice.h:515: Error: no such instruction: `annotate_unreachable counter=80&#39;<br>./arch/x86/include/asm/atomic.h:200: Error: no such instruction: `lock_prefix cmpxchgl %ecx,(%rdx)&#39;<br>./arch/x86/include/asm/refcount.h:109: Error: no such instruction: `refcount_error counter=&quot;(%rdx)&quot;&#39;<br>./arch/x86/include/asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 1528(%rbx)&#39;<br>./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `refcount_check_lt_zero counter=&quot;1528(%rbx)&quot;&#39;<br>./arch/x86/include/asm/jump_label.h:23: Error: no such instruction: `static_branch_nop l_yes=&quot;.L61&quot;key=&quot;descriptor.66372+40&quot;branch=&quot;0&quot;&#39;<br>./arch/x86/include/asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 1528(%rdi)&#39;<br>./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `refcount_check_lt_zero counter=&quot;1528(%rdi)&quot;&#39;<br>./arch/x86/include/asm/jump_label.h:23: Error: no such instruction: `static_branch_nop l_yes=&quot;.L80&quot;key=&quot;descriptor.66372+40&quot;branch=&quot;0&quot;&#39;<br>Assembler messages:<br>Error: can&#39;t open arch/x86/kernel/macros.s for reading: No such file or directory<br>./arch/x86/include/asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 4(%rdi)&#39;<br>./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `refcount_check_lt_zero counter=&quot;4(%rdi)&quot;&#39;<br>./arch/x86/include/asm/jump_label.h:23: Error: no such instruction: `static_branch_nop l_yes=&quot;.L6&quot;key=&quot;descriptor.67356+40&quot;branch=&quot;0&quot;&#39;<br>./arch/x86/include/asm/jump_label.h:23: Error: no such instruction: `static_branch_nop l_yes=&quot;.L32&quot;key=&quot;descriptor.67420+40&quot;branch=&quot;0&quot;&#39;<br>./arch/x86/include/asm/refcount.h:65: Error: no such instruction: `lock_prefix incl 4(%rdi)&#39;<br>./arch/x86/include/asm/refcount.h:66: Error: no such instruction: `refcount_check_lt_zero counter=&quot;4(%rdi)&quot;&#39;<br>./arch/x86/include/asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 4(%rdi)&#39;<br>./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `refcount_check_lt_zero counter=&quot;4(%rdi)&quot;&#39;<br>/var/lib/dkms/wireguard/0.0.20181119/build/device.c:404: Error: no such instruction: `asm_bug ins=&quot;.byte 0x0f, 0x0b&quot;file=.LC7 line=404 flags=2305 size=12&#39;<br>/var/lib/dkms/wireguard/0.0.20181119/build/device.c:404: Error: no such instruction: `annotate_reachable counter=163&#39;<br>./arch/x86/include/asm/bitops.h:76: Error: no such instruction: `lock_prefix orb $32,328(%rax)&#39;<br>make[1]: *** [scripts/<a href="http://Makefile.build:293" target="_blank" rel="noreferrer">Makefile.build:293</a>: /var/lib/dkms/wireguard/0.0.20181119/build/peer.o] Error 1<br>make[1]: *** [scripts/<a href="http://Makefile.build:293" target="_blank" rel="noreferrer">Makefile.build:293</a>: /var/lib/dkms/wireguard/0.0.20181119/build/device.o] Error 1<br>Assembler messages:<br>Error: can&#39;t open arch/x86/kernel/macros.s for reading: No such file or directory<br>./arch/x86/include/asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 680(%rbx)&#39;<br>./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `refcount_check_lt_zero counter=&quot;680(%rbx)&quot;&#39;<br>./arch/x86/include/asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 680(%rbx)&#39;<br>./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `refcount_check_lt_zero counter=&quot;680(%rbx)&quot;&#39;<br>./arch/x86/include/asm/atomic.h:200: Error: no such instruction: `lock_prefix cmpxchgl %ecx,(%rdx)&#39;<br>./arch/x86/include/asm/refcount.h:109: Error: no such instruction: `refcount_error counter=&quot;(%rdx)&quot;&#39;<br>./arch/x86/include/asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 680(%rbx)&#39;<br>./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `refcount_check_lt_zero counter=&quot;680(%rbx)&quot;&#39;<br>./arch/x86/include/asm/atomic64_64.h:160: Error: no such instruction: `lock_prefix xaddq %rax,keypair_counter(%rip)&#39;<br>make[1]: *** [scripts/<a href="http://Makefile.build:293" target="_blank" rel="noreferrer">Makefile.build:293</a>: /var/lib/dkms/wireguard/0.0.20181119/build/noise.o] Error 1<br>make: *** [Makefile:1565: _module_/var/lib/dkms/wireguard/0.0.20181119/build] Error 2<br>make: Leaving directory &#39;/usr/src/linux-headers-4.20.0-rc4&#39;<br><br></div></blockquote><div><br></div><div><br></div></div></div></div>
</div></div></blockquote></div>
_______________________________________________<br>
WireGuard mailing list<br>
<a href="mailto:WireGuard@lists.zx2c4.com" target="_blank" rel="noreferrer">WireGuard@lists.zx2c4.com</a><br>
<a href="https://lists.zx2c4.com/mailman/listinfo/wireguard" rel="noreferrer noreferrer" target="_blank">https://lists.zx2c4.com/mailman/listinfo/wireguard</a><br>
</blockquote></div>

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Build fails on Debian, kernel 4.20.0-rc4
  2018-12-01 23:26     ` Tushar Pankaj
@ 2018-12-01 23:38       ` Laszlo KERTESZ
  2018-12-02 11:10         ` Jordan Glover
  0 siblings, 1 reply; 7+ messages in thread
From: Laszlo KERTESZ @ 2018-12-01 23:38 UTC (permalink / raw)
  To: tushar.s.pankaj; +Cc: WireGuard mailing list

[-- Attachment #1.1: Type: text/plain, Size: 7311 bytes --]

On Sun, Dec 2, 2018 at 1:26 AM Tushar Pankaj <tushar.s.pankaj@gmail.com>
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 <laszlo.kertesz@gmail.com wrote:
>
>> 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 <qzhang.canada@gmail.com>
>> wrote:
>>
>>> This kernel is the latest one, could you try with 4.19?
>>>
>>> Sent via the BlackBerry Hub for Android
>>> <http://play.google.com/store/apps/details?id=com.blackberry.hub>
>>> *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
>>
>

[-- Attachment #1.2: Type: text/html, Size: 12133 bytes --]

<div dir="ltr"><div dir="ltr"><div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Sun, Dec 2, 2018 at 1:26 AM Tushar Pankaj &lt;<a href="mailto:tushar.s.pankaj@gmail.com">tushar.s.pankaj@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Does it have to do with macros.S having a capital S extension?<br><br><div>Thanks,<br>Tushar Pankaj</div></div><br></blockquote><div><br></div><div>Probably not. I don&#39;t have any &quot;arch/x86/kernel/macros.s&quot; file (actually &quot;/usr/src/linux-headers-4.20.0-rc4/arch/x86/kernel/macros.s&quot;) at all. In fact neither do i have macros.s or macros.S in previous kernels directories.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_quote"><div dir="ltr">On Sat, Dec 1, 2018, 17:24 Laszlo KERTESZ &lt;<a href="mailto:laszlo.kertesz@gmail.com" target="_blank">laszlo.kertesz@gmail.com</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>Hi,<br></div><div>It builds with 4.19.x. What happened to 4.20? <br></div><div>On the Fedore bug tracker there is something related:</div><div><br></div><div><a href="https://src.fedoraproject.org/cgit/rpms/kernel.git/commit/?id=6904e708917a12819d1fe0d329f605030d6e4b0d" rel="noreferrer" target="_blank">https://src.fedoraproject.org/cgit/rpms/kernel.git/commit/?id=6904e708917a12819d1fe0d329f605030d6e4b0d</a><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Dec 1, 2018 at 11:03 PM QINGWEI ZHANG &lt;<a href="mailto:qzhang.canada@gmail.com" rel="noreferrer" target="_blank">qzhang.canada@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="background-color:rgb(255,255,255);background-image:initial;line-height:initial"><div id="gmail-m_-1362399965051979972m_-1194933585637765609m_5093046255808516082response_container_BBPPID" style="outline:currentcolor none medium" dir="auto"> <div name="BB10" id="gmail-m_-1362399965051979972m_-1194933585637765609m_5093046255808516082BB10_response_div_BBPPID" dir="auto" style="width:100%"> This kernel is the latest one, could you try with 4.19?</div>                                                                                                                                      <div name="BB10" id="gmail-m_-1362399965051979972m_-1194933585637765609m_5093046255808516082response_div_spacer_BBPPID" dir="auto" style="width:100%"> <br style="display:initial"></div>                            <div id="gmail-m_-1362399965051979972m_-1194933585637765609m_5093046255808516082blackberry_signature_BBPPID" name="BB10" dir="auto">     <div id="gmail-m_-1362399965051979972m_-1194933585637765609m_5093046255808516082_signaturePlaceholder_BBPPID" name="BB10" dir="auto">Sent via the <a href="http://play.google.com/store/apps/details?id=com.blackberry.hub" rel="noreferrer" target="_blank">BlackBerry Hub for Android</a></div> </div></div><div id="gmail-m_-1362399965051979972m_-1194933585637765609m_5093046255808516082_original_msg_header_BBPPID" dir="auto">                                                                                                                                             <table style="background-color:white;border-spacing:0px;display:table;outline:currentcolor none medium" width="100%"><tbody><tr><td colspan="2" style="padding:initial;font-size:initial;text-align:initial;background-color:rgb(255,255,255)">                           <div style="border-color:rgb(181,196,223) currentcolor currentcolor;border-style:solid none none;border-width:1pt medium medium;padding:3pt 0in 0in;font-family:Tahoma,&quot;BB Alpha Sans&quot;,&quot;Slate Pro&quot;;font-size:10pt">  <div id="gmail-m_-1362399965051979972m_-1194933585637765609m_5093046255808516082from"><b>From:</b> <a href="mailto:laszlo.kertesz@gmail.com" rel="noreferrer" target="_blank">laszlo.kertesz@gmail.com</a></div><div id="gmail-m_-1362399965051979972m_-1194933585637765609m_5093046255808516082sent"><b>Sent:</b> December 1, 2018 15:58</div><div id="gmail-m_-1362399965051979972m_-1194933585637765609m_5093046255808516082to"><b>To:</b> <a href="mailto:wireguard@lists.zx2c4.com" rel="noreferrer" target="_blank">wireguard@lists.zx2c4.com</a></div><div id="gmail-m_-1362399965051979972m_-1194933585637765609m_5093046255808516082subject"><b>Subject:</b> Build fails on Debian, kernel 4.20.0-rc4</div></div></td></tr></tbody></table> <br> </div><div name="BB10" dir="auto" style="background-image:initial;line-height:initial;outline:currentcolor none medium"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi,</div><div>The wireguard module (0.0.20181119 from Debian Unstable) fails to build on my machine using kernel 4.20 rc4. <br></div><div><br></div><div>I get the following errors:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div># cat /var/lib/dkms/wireguard/0.0.20181119/build/<a href="http://make.log" rel="noreferrer" target="_blank">make.log</a><br>DKMS <a href="http://make.log" rel="noreferrer" target="_blank">make.log</a> for wireguard-0.0.20181119 for kernel 4.20.0-rc4 (x86_64)<br>Sat Dec  1 22:51:18 EET 2018<br>make: Entering directory &#39;/usr/src/linux-headers-4.20.0-rc4&#39;<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20181119/build/main.o<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20181119/build/noise.o<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20181119/build/device.o<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20181119/build/peer.o<br>Assembler messages:<br>Error: can&#39;t open arch/x86/kernel/macros.s for reading: No such file or directory<br>make[1]: *** [scripts/<a href="http://Makefile.build:293" rel="noreferrer" target="_blank">Makefile.build:293</a>: /var/lib/dkms/wireguard/0.0.20181119/build/main.o] Error 1<br>make[1]: *** Waiting for unfinished jobs....<br>Assembler messages:<br>Error: can&#39;t open arch/x86/kernel/macros.s for reading: No such file or directory<br>./arch/x86/include/asm/atomic64_64.h:160: Error: no such instruction: `lock_prefix xaddq %rax,peer_counter(%rip)&#39;<br>./arch/x86/include/asm/bitops.h:76: Error: no such instruction: `lock_prefix orb $32,1592(%rbx)&#39;<br>./arch/x86/include/asm/bitops.h:114: Error: no such instruction: `lock_prefix andb $-2,1592(%rbx)&#39;<br>./arch/x86/include/asm/bitops.h:114: Error: no such instruction: `lock_prefix andb $-9,1592(%rbx)&#39;<br>./arch/x86/include/asm/jump_label.h:23: Error: no such instruction: `static_branch_nop l_yes=&quot;.L15&quot;key=&quot;descriptor.66338+40&quot;branch=&quot;0&quot;&#39;<br>./include/linux/netdevice.h:515: Error: no such instruction: `asm_bug ins=&quot;.byte 0x0f, 0x0b&quot;file=.LC0 line=515 flags=0 size=12&#39;<br>./include/linux/netdevice.h:515: Error: no such instruction: `annotate_unreachable counter=80&#39;<br>./arch/x86/include/asm/atomic.h:200: Error: no such instruction: `lock_prefix cmpxchgl %ecx,(%rdx)&#39;<br>./arch/x86/include/asm/refcount.h:109: Error: no such instruction: `refcount_error counter=&quot;(%rdx)&quot;&#39;<br>./arch/x86/include/asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 1528(%rbx)&#39;<br>./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `refcount_check_lt_zero counter=&quot;1528(%rbx)&quot;&#39;<br>./arch/x86/include/asm/jump_label.h:23: Error: no such instruction: `static_branch_nop l_yes=&quot;.L61&quot;key=&quot;descriptor.66372+40&quot;branch=&quot;0&quot;&#39;<br>./arch/x86/include/asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 1528(%rdi)&#39;<br>./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `refcount_check_lt_zero counter=&quot;1528(%rdi)&quot;&#39;<br>./arch/x86/include/asm/jump_label.h:23: Error: no such instruction: `static_branch_nop l_yes=&quot;.L80&quot;key=&quot;descriptor.66372+40&quot;branch=&quot;0&quot;&#39;<br>Assembler messages:<br>Error: can&#39;t open arch/x86/kernel/macros.s for reading: No such file or directory<br>./arch/x86/include/asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 4(%rdi)&#39;<br>./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `refcount_check_lt_zero counter=&quot;4(%rdi)&quot;&#39;<br>./arch/x86/include/asm/jump_label.h:23: Error: no such instruction: `static_branch_nop l_yes=&quot;.L6&quot;key=&quot;descriptor.67356+40&quot;branch=&quot;0&quot;&#39;<br>./arch/x86/include/asm/jump_label.h:23: Error: no such instruction: `static_branch_nop l_yes=&quot;.L32&quot;key=&quot;descriptor.67420+40&quot;branch=&quot;0&quot;&#39;<br>./arch/x86/include/asm/refcount.h:65: Error: no such instruction: `lock_prefix incl 4(%rdi)&#39;<br>./arch/x86/include/asm/refcount.h:66: Error: no such instruction: `refcount_check_lt_zero counter=&quot;4(%rdi)&quot;&#39;<br>./arch/x86/include/asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 4(%rdi)&#39;<br>./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `refcount_check_lt_zero counter=&quot;4(%rdi)&quot;&#39;<br>/var/lib/dkms/wireguard/0.0.20181119/build/device.c:404: Error: no such instruction: `asm_bug ins=&quot;.byte 0x0f, 0x0b&quot;file=.LC7 line=404 flags=2305 size=12&#39;<br>/var/lib/dkms/wireguard/0.0.20181119/build/device.c:404: Error: no such instruction: `annotate_reachable counter=163&#39;<br>./arch/x86/include/asm/bitops.h:76: Error: no such instruction: `lock_prefix orb $32,328(%rax)&#39;<br>make[1]: *** [scripts/<a href="http://Makefile.build:293" rel="noreferrer" target="_blank">Makefile.build:293</a>: /var/lib/dkms/wireguard/0.0.20181119/build/peer.o] Error 1<br>make[1]: *** [scripts/<a href="http://Makefile.build:293" rel="noreferrer" target="_blank">Makefile.build:293</a>: /var/lib/dkms/wireguard/0.0.20181119/build/device.o] Error 1<br>Assembler messages:<br>Error: can&#39;t open arch/x86/kernel/macros.s for reading: No such file or directory<br>./arch/x86/include/asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 680(%rbx)&#39;<br>./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `refcount_check_lt_zero counter=&quot;680(%rbx)&quot;&#39;<br>./arch/x86/include/asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 680(%rbx)&#39;<br>./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `refcount_check_lt_zero counter=&quot;680(%rbx)&quot;&#39;<br>./arch/x86/include/asm/atomic.h:200: Error: no such instruction: `lock_prefix cmpxchgl %ecx,(%rdx)&#39;<br>./arch/x86/include/asm/refcount.h:109: Error: no such instruction: `refcount_error counter=&quot;(%rdx)&quot;&#39;<br>./arch/x86/include/asm/refcount.h:90: Error: no such instruction: `lock_prefix decl 680(%rbx)&#39;<br>./arch/x86/include/asm/refcount.h:91: Error: no such instruction: `refcount_check_lt_zero counter=&quot;680(%rbx)&quot;&#39;<br>./arch/x86/include/asm/atomic64_64.h:160: Error: no such instruction: `lock_prefix xaddq %rax,keypair_counter(%rip)&#39;<br>make[1]: *** [scripts/<a href="http://Makefile.build:293" rel="noreferrer" target="_blank">Makefile.build:293</a>: /var/lib/dkms/wireguard/0.0.20181119/build/noise.o] Error 1<br>make: *** [Makefile:1565: _module_/var/lib/dkms/wireguard/0.0.20181119/build] Error 2<br>make: Leaving directory &#39;/usr/src/linux-headers-4.20.0-rc4&#39;<br><br></div></blockquote><div><br></div><div><br></div></div></div></div>
</div></div></blockquote></div>
_______________________________________________<br>
WireGuard mailing list<br>
<a href="mailto:WireGuard@lists.zx2c4.com" rel="noreferrer" target="_blank">WireGuard@lists.zx2c4.com</a><br>
<a href="https://lists.zx2c4.com/mailman/listinfo/wireguard" rel="noreferrer noreferrer" target="_blank">https://lists.zx2c4.com/mailman/listinfo/wireguard</a><br>
</blockquote></div>
</blockquote></div></div></div></div>

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Build fails on Debian, kernel 4.20.0-rc4
  2018-12-01 20:56 Build fails on Debian, kernel 4.20.0-rc4 Laszlo KERTESZ
  2018-12-01 21:02 ` QINGWEI ZHANG
@ 2018-12-02 10:29 ` John
  1 sibling, 0 replies; 7+ messages in thread
From: John @ 2018-12-02 10:29 UTC (permalink / raw)
  To: laszlo.kertesz; +Cc: wireguard

I think the issue isn't with the WireGuard code but with something
unique to Debian or to dkms.  I am able to build the module on Arch
Linux using 4.20-rc4 (linux-mainline package from the AUR) with issue.
I haven't tried dkms (not a fan).

Here is a PKGBUILD for wireguard tools and module without using DKMS:
https://gist.github.com/graysky2/c9b3a44576f498e002fd1a255dab1c44

make -C src module
make: Entering directory '/build/wireguard/src/WireGuard-0.0.20181119/src'
  CC [M]  /build/wireguard/src/WireGuard-0.0.20181119/src/main.o
  CC [M]  /build/wireguard/src/WireGuard-0.0.20181119/src/noise.o
  CC [M]  /build/wireguard/src/WireGuard-0.0.20181119/src/peer.o
  CC [M]  /build/wireguard/src/WireGuard-0.0.20181119/src/device.o
  CC [M]  /build/wireguard/src/WireGuard-0.0.20181119/src/timers.o
  CC [M]  /build/wireguard/src/WireGuard-0.0.20181119/src/queueing.o
  CC [M]  /build/wireguard/src/WireGuard-0.0.20181119/src/send.o
  CC [M]  /build/wireguard/src/WireGuard-0.0.20181119/src/receive.o
  CC [M]  /build/wireguard/src/WireGuard-0.0.20181119/src/socket.o
  CC [M]  /build/wireguard/src/WireGuard-0.0.20181119/src/hashtables.o
  CC [M]  /build/wireguard/src/WireGuard-0.0.20181119/src/allowedips.o
  CC [M]  /build/wireguard/src/WireGuard-0.0.20181119/src/ratelimiter.o
  CC [M]  /build/wireguard/src/WireGuard-0.0.20181119/src/cookie.o
  CC [M]  /build/wireguard/src/WireGuard-0.0.20181119/src/netlink.o
  CC [M]  /build/wireguard/src/WireGuard-0.0.20181119/src/crypto/zinc/chacha20/chacha20.o
  PERLASM /build/wireguard/src/WireGuard-0.0.20181119/src/crypto/zinc/chacha20/chacha20-x86_64.S
  CC [M]  /build/wireguard/src/WireGuard-0.0.20181119/src/crypto/zinc/poly1305/poly1305.o
  PERLASM /build/wireguard/src/WireGuard-0.0.20181119/src/crypto/zinc/poly1305/poly1305-x86_64.S
  CC [M]  /build/wireguard/src/WireGuard-0.0.20181119/src/crypto/zinc/chacha20poly1305.o
  CC [M]  /build/wireguard/src/WireGuard-0.0.20181119/src/crypto/zinc/blake2s/blake2s.o
  AS [M]  /build/wireguard/src/WireGuard-0.0.20181119/src/crypto/zinc/blake2s/blake2s-x86_64.o
  CC [M]  /build/wireguard/src/WireGuard-0.0.20181119/src/crypto/zinc/curve25519/curve25519.o
  AS [M]  /build/wireguard/src/WireGuard-0.0.20181119/src/crypto/zinc/chacha20/chacha20-x86_64.o
  AS [M]  /build/wireguard/src/WireGuard-0.0.20181119/src/crypto/zinc/poly1305/poly1305-x86_64.o
  LD [M]  /build/wireguard/src/WireGuard-0.0.20181119/src/wireguard.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /build/wireguard/src/WireGuard-0.0.20181119/src/wireguard.mod.o
  LD [M]  /build/wireguard/src/WireGuard-0.0.20181119/src/wireguard.ko
make: Leaving directory '/build/wireguard/src/WireGuard-0.0.20181119/src'
On Sat, Dec 1, 2018 at 4:00 PM Laszlo KERTESZ <laszlo.kertesz@gmail.com> wrote:
>
> 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
_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Build fails on Debian, kernel 4.20.0-rc4
  2018-12-01 23:38       ` Laszlo KERTESZ
@ 2018-12-02 11:10         ` Jordan Glover
  0 siblings, 0 replies; 7+ messages in thread
From: Jordan Glover @ 2018-12-02 11:10 UTC (permalink / raw)
  To: Laszlo KERTESZ; +Cc: WireGuard mailing list

[-- Attachment #1.1: Type: text/plain, Size: 904 bytes --]

On Sunday, December 2, 2018 12:38 AM, Laszlo KERTESZ <laszlo.kertesz@gmail.com> wrote:

> On Sun, Dec 2, 2018 at 1:26 AM Tushar Pankaj <tushar.s.pankaj@gmail.com> 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.

And that's why it fails[1]. You have to add "arch/x86/kernel/macros.s" to list of files
to be copied as fedora did. Their first patch contained a typo (capital 'S' instead of 's'[2].
I don' know where debian does handle this though.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1643599
[2] https://src.fedoraproject.org/cgit/rpms/kernel.git/commit/kernel.spec?id=e7c396bbf3cd1563d445275f92b63f8e9da3f13e

[-- Attachment #1.2: Type: text/html, Size: 1744 bytes --]

<div> On Sunday, December 2, 2018 12:38 AM, Laszlo KERTESZ &lt;laszlo.kertesz@gmail.com&gt; wrote:<br></div><div> <br></div><blockquote type="cite" class="protonmail_quote"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div><div><br></div><div class="gmail_quote"><div dir="ltr">On Sun, Dec 2, 2018 at 1:26 AM Tushar Pankaj &lt;<a href="mailto:tushar.s.pankaj@gmail.com">tushar.s.pankaj@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div>Does it have to do with macros.S having a capital S extension?<br></div><div><br></div><div><div>Thanks,<br></div><div>Tushar Pankaj<br></div></div></div></blockquote><div><br></div><div>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.<br></div></div></div></div></div></blockquote><div><br></div><div>And that's why it fails[1]. You have to add "arch/x86/kernel/macros.s" to list of files<br></div><div>to be copied as fedora did. Their first patch contained a typo (capital 'S' instead of 's'[2].<br></div><div>I don' know where debian does handle this though.<br></div><div><br></div><div>[1] <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1643599">https://bugzilla.redhat.com/show_bug.cgi?id=1643599</a><br></div><div>[2] <a href="https://src.fedoraproject.org/cgit/rpms/kernel.git/commit/kernel.spec?id=e7c396bbf3cd1563d445275f92b63f8e9da3f13e">https://src.fedoraproject.org/cgit/rpms/kernel.git/commit/kernel.spec?id=e7c396bbf3cd1563d445275f92b63f8e9da3f13e</a><br></div><div><br></div>

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, back to index

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-01 20:56 Build fails on Debian, kernel 4.20.0-rc4 Laszlo KERTESZ
2018-12-01 21:02 ` QINGWEI ZHANG
2018-12-01 23:22   ` Laszlo KERTESZ
2018-12-01 23:26     ` Tushar Pankaj
2018-12-01 23:38       ` Laszlo KERTESZ
2018-12-02 11:10         ` Jordan Glover
2018-12-02 10:29 ` John

WireGuard Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/wireguard/0 wireguard/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 wireguard wireguard/ https://lore.kernel.org/wireguard \
		wireguard@lists.zx2c4.com zx2c4-wireguard@archiver.kernel.org
	public-inbox-index wireguard


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/com.zx2c4.lists.wireguard


AGPL code for this site: git clone https://public-inbox.org/ public-inbox