新手上路
- 积分
- 47
- 金钱
- 47
- 注册时间
- 2021-5-11
- 在线时间
- 13 小时
|
10金钱
报错:- CC kernel/fork.o
- In file included from include/linux/kernel.h:11,
- from include/linux/list.h:8,
- from include/linux/preempt.h:10,
- from include/linux/spinlock.h:50,
- from include/linux/mmzone.h:7,
- from include/linux/gfp.h:5,
- from include/linux/slab.h:14,
- from kernel/fork.c:14:
- include/linux/log2.h:22:1: 警告: ignoring attribute ‘noreturn’ because it conflicts with attribute ‘const’ [-Wattributes]
- 22 | int ____ilog2_NaN(void);
- | ^~~
- In file included from kernel/fork.c:41:
- include/linux/syscalls.h:195:25: 警告: ‘sys_set_tid_address’ alias between functions of incompatible types ‘long int(int *)’ and ‘long int(long int)’ [-Wattribute-alias=]
- 195 | asmlinkage long sys##name(__MAP(x,__SC_DECL,__VA_ARGS__)) \
- | ^~~
- include/linux/syscalls.h:191:9: 附注: in expansion of macro ‘__SYSCALL_DEFINEx’
- 191 | __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
- | ^~~~~~~~~~~~~~~~~
- include/linux/syscalls.h:182:36: 附注: in expansion of macro ‘SYSCALL_DEFINEx’
- 182 | #define SYSCALL_DEFINE1(name, ...) SYSCALL_DEFINEx(1, _##name, __VA_ARGS__)
- | ^~~~~~~~~~~~~~~
- kernel/fork.c:1195:1: 附注: in expansion of macro ‘SYSCALL_DEFINE1’
- 1195 | SYSCALL_DEFINE1(set_tid_address, int __user *, tidptr)
- | ^~~~~~~~~~~~~~~
- include/linux/syscalls.h:199:25: 附注: aliased declaration here
- 199 | asmlinkage long SyS##name(__MAP(x,__SC_LONG,__VA_ARGS__)) \
- | ^~~
- include/linux/syscalls.h:191:9: 附注: in expansion of macro ‘__SYSCALL_DEFINEx’
- 191 | __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
- | ^~~~~~~~~~~~~~~~~
- include/linux/syscalls.h:182:36: 附注: in expansion of macro ‘SYSCALL_DEFINEx’
- 182 | #define SYSCALL_DEFINE1(name, ...) SYSCALL_DEFINEx(1, _##name, __VA_ARGS__)
- | ^~~~~~~~~~~~~~~
- kernel/fork.c:1195:1: 附注: in expansion of macro ‘SYSCALL_DEFINE1’
- 1195 | SYSCALL_DEFINE1(set_tid_address, int __user *, tidptr)
- | ^~~~~~~~~~~~~~~
- include/linux/syscalls.h:195:25: 警告: ‘sys_unshare’ alias between functions of incompatible types ‘long int(long unsigned int)’ and ‘long int(long int)’ [-Wattribute-alias=]
- 195 | asmlinkage long sys##name(__MAP(x,__SC_DECL,__VA_ARGS__)) \
- | ^~~
- include/linux/syscalls.h:191:9: 附注: in expansion of macro ‘__SYSCALL_DEFINEx’
- 191 | __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
- | ^~~~~~~~~~~~~~~~~
- include/linux/syscalls.h:182:36: 附注: in expansion of macro ‘SYSCALL_DEFINEx’
- 182 | #define SYSCALL_DEFINE1(name, ...) SYSCALL_DEFINEx(1, _##name, __VA_ARGS__)
- | ^~~~~~~~~~~~~~~
- kernel/fork.c:1925:1: 附注: in expansion of macro ‘SYSCALL_DEFINE1’
- 1925 | SYSCALL_DEFINE1(unshare, unsigned long, unshare_flags)
- | ^~~~~~~~~~~~~~~
- include/linux/syscalls.h:199:25: 附注: aliased declaration here
- 199 | asmlinkage long SyS##name(__MAP(x,__SC_LONG,__VA_ARGS__)) \
- | ^~~
- include/linux/syscalls.h:191:9: 附注: in expansion of macro ‘__SYSCALL_DEFINEx’
- 191 | __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
- | ^~~~~~~~~~~~~~~~~
- include/linux/syscalls.h:182:36: 附注: in expansion of macro ‘SYSCALL_DEFINEx’
- 182 | #define SYSCALL_DEFINE1(name, ...) SYSCALL_DEFINEx(1, _##name, __VA_ARGS__)
- | ^~~~~~~~~~~~~~~
- kernel/fork.c:1925:1: 附注: in expansion of macro ‘SYSCALL_DEFINE1’
- 1925 | SYSCALL_DEFINE1(unshare, unsigned long, unshare_flags)
- | ^~~~~~~~~~~~~~~
- include/linux/syscalls.h:195:25: 警告: ‘sys_clone’ alias between functions of incompatible types ‘long int(long unsigned int, long unsigned int, int *, int, int *)’ and ‘long int(long int, long int, long int, long int, long int)’ [-Wattribute-alias=]
- 195 | asmlinkage long sys##name(__MAP(x,__SC_DECL,__VA_ARGS__)) \
- | ^~~
- include/linux/syscalls.h:191:9: 附注: in expansion of macro ‘__SYSCALL_DEFINEx’
- 191 | __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
- | ^~~~~~~~~~~~~~~~~
- include/linux/syscalls.h:186:36: 附注: in expansion of macro ‘SYSCALL_DEFINEx’
- 186 | #define SYSCALL_DEFINE5(name, ...) SYSCALL_DEFINEx(5, _##name, __VA_ARGS__)
- | ^~~~~~~~~~~~~~~
- kernel/fork.c:1778:1: 附注: in expansion of macro ‘SYSCALL_DEFINE5’
- 1778 | SYSCALL_DEFINE5(clone, unsigned long, clone_flags, unsigned long, newsp,
- | ^~~~~~~~~~~~~~~
- include/linux/syscalls.h:199:25: 附注: aliased declaration here
- 199 | asmlinkage long SyS##name(__MAP(x,__SC_LONG,__VA_ARGS__)) \
- | ^~~
- include/linux/syscalls.h:191:9: 附注: in expansion of macro ‘__SYSCALL_DEFINEx’
- 191 | __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
- | ^~~~~~~~~~~~~~~~~
- include/linux/syscalls.h:186:36: 附注: in expansion of macro ‘SYSCALL_DEFINEx’
- 186 | #define SYSCALL_DEFINE5(name, ...) SYSCALL_DEFINEx(5, _##name, __VA_ARGS__)
- | ^~~~~~~~~~~~~~~
- kernel/fork.c:1778:1: 附注: in expansion of macro ‘SYSCALL_DEFINE5’
- 1778 | SYSCALL_DEFINE5(clone, unsigned long, clone_flags, unsigned long, newsp,
- | ^~~~~~~~~~~~~~~
- /tmp/cc35ynOa.s: Assembler messages:
- /tmp/cc35ynOa.s:1071: 错误: .err encountered
- scripts/Makefile.build:257: recipe for target 'kernel/fork.o' failed
- make[1]: *** [kernel/fork.o] Error 1
- Makefile:947: recipe for target 'kernel' failed
- make: *** [kernel] Error 2
复制代码
网上找没有找到关于这个问题解决方法
使用ubuntu18.04
|
|