Skip to content

Compile error, kernel version 4.19  #220

Description

@zhanglianjie-163

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions