netdata / netdata/kernel-collector

Compile error, kernel version 4.19

Open
#220 7 comments 0 reactions 1 assignee View on GitHub

@thiagoftsm is already working on this.

Since May 31, 2021.

Dominant language
C
Stars
67
Forks
14
PR merge metrics
No merged PRs in 30d

Description

What is the version of clang required? My clang version is clang-7 .

/home/zkf/workspace/x86-kernel/arch/x86/include/asm/atomic.h:125:2: error: 'asm goto' constructs are not supported yet GEN_UNARY_RMWcc(LOCK_PREFIX "decl", v->counter, "%0", e); ^ /home/zkf/workspace/x86-kernel/arch/x86/include/asm/rmwcc.h:42:2: note: expanded from macro 'GEN_UNARY_RMWcc' __GEN_RMWcc(op " " arg0, var, cc, __CLOBBERS_MEM()) ^ /home/zkf/workspace/x86-kernel/arch/x86/include/asm/rmwcc.h:13:2: note: expanded from macro '__GEN_RMWcc' asm_volatile_goto (fullop "; j" #cc " %l[cc_label]" \ ^ /home/zkf/workspace/x86-kernel/include/linux/compiler_types.h:155:37: note: expanded from macro 'asm_volatile_goto' #define asm_volatile_goto(x...) asm goto(x) ^ In file included from cachestat_kern.c:2: In file included from /home/zkf/workspace/x86-kernel/include/linux/bpf.h:12: In file included from /home/zkf/workspace/x86-kernel/include/linux/workqueue.h:9: In file included from /home/zkf/workspace/x86-kernel/include/linux/timer.h:6: In file included from /home/zkf/workspace/x86-kernel/include/linux/ktime.h:24: In file included from /home/zkf/workspace/x86-kernel/include/linux/time.h:6: In file included from /home/zkf/workspace/x86-kernel/include/linux/seqlock.h:36: In file included from /home/zkf/workspace/x86-kernel/include/linux/spinlock.h:51: In file included from /home/zkf/workspace/x86-kernel/include/linux/preempt.h:81: In file included from /home/zkf/workspace/x86-kernel/arch/x86/include/asm/preempt.h:7: In file included from /home/zkf/workspace/x86-kernel/include/linux/thread_info.h:38: In file included from /home/zkf/workspace/x86-kernel/arch/x86/include/asm/thread_info.h:53: In file included from /home/zkf/workspace/x86-kernel/arch/x86/include/asm/cpufeature.h:5: In file included from /home/zkf/workspace/x86-kernel/arch/x86/include/asm/processor.h:21: In file included from /home/zkf/workspace/x86-kernel/arch/x86/include/asm/msr.h:67: /home/zkf/workspace/x86-kernel/arch/x86/include/asm/atomic.h:139:2: error: 'asm goto' constructs are not supported yet GEN_UNARY_RMWcc(LOCK_PREFIX "incl", v->counter, "%0", e); ^ /home/zkf/workspace/x86-kernel/arch/x86/include/asm/rmwcc.h:42:2: note: expanded from macro 'GEN_UNARY_RMWcc' __GEN_RMWcc(op " " arg0, var, cc, __CLOBBERS_MEM()) ^ /home/zkf/workspace/x86-kernel/arch/x86/include/asm/rmwcc.h:13:2: note: expanded from macro '__GEN_RMWcc' asm_volatile_goto (fullop "; j" #cc " %l[cc_label]" \ ^ /home/zkf/workspace/x86-kernel/include/linux/compiler_types.h:155:37: note: expanded from macro 'asm_volatile_goto' #define asm_volatile_goto(x...) asm goto(x)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.