WireGuard Archive on lore.kernel.org
 help / Atom feed
* Compilation fails with linux-headers-4.20
@ 2018-11-28  9:25 Martin Hundebøll
  0 siblings, 0 replies; 1+ messages in thread
From: Martin Hundebøll @ 2018-11-28  9:25 UTC (permalink / raw)
  To: wireguard

[-- Attachment #1: Type: text/plain, Size: 2209 bytes --]

Hi,

I am experiencing the following error (verbose log attached) when 
building the wireguard module on my Arch Linux running 4.20-rc4:

% make -C /usr/lib/modules/4.20.0-rc4-1-git/build/ M=$(pwd) modules 
 
 

make: Entering directory '/usr/lib/modules/4.20.0-rc4-1-git/build' 
 
 

   CC [M]  /home/martin/projects/wireguard/git/src/main.o 
 
 

   CC [M]  /home/martin/projects/wireguard/git/src/noise.o 
 
 

./arch/x86/include/asm/refcount.h: Assembler messages: 
 
 

./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:294: 
/home/martin/projects/wireguard/git/src/noise.o] Error 1 
 
 

make: *** [Makefile:1565: 
_module_/home/martin/projects/wireguard/git/src] Error 2 
 
 

make: Leaving directory '/usr/lib/modules/4.20.0-rc4-1-git/build'

The issue seems to be caused by this series:
https://lkml.org/lkml/2018/10/4/25

The compilation succeeds when building against a full checkout of the 
kernel, so I suspect that something is missing in the linux-headers 
package on my distro.

Can you point me any direction to make this work? Let me know if any 
testing/logging is needed.

Thanks.

-- 
Kind regards,
Martin Hundebøll
Embedded Linux Consultant

+45 61 65 54 61
martin@geanix.com

Geanix IVS
https://geanix.com
DK39600706

[-- Attachment #2: compile.log --]
[-- Type: text/x-log, Size: 7150 bytes --]

[-- Attachment #3: 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] 1+ messages in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-28  9:25 Compilation fails with linux-headers-4.20 Martin Hundebøll

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