Advertisement
CyanBlob

Kernel_Compile_Errors

Nov 18th, 2016
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 14.55 KB | None | 0 0
  1. #####@make -f ./Makefile silentoldconfig
  2.   CHK     include/config/kernel.release
  3.   CHK     include/generated/uapi/linux/version.h
  4.   CHK     include/generated/utsrelease.h
  5.   CHK     include/generated/timeconst.h
  6.   CHK     include/generated/bounds.h
  7.   CC      arch/x86/kernel/asm-offsets.s
  8. In file included from ./arch/x86/include/asm/atomic.h:4:0,
  9.                  from ./include/linux/atomic.h:4,
  10.                  from ./include/linux/crypto.h:20,
  11.                  from arch/x86/kernel/asm-offsets.c:8:
  12. ./include/linux/seccomp.h: In function ‘secure_computing’:
  13. ./include/linux/thread_info.h:108:22: error: implicit declaration of function ‘current_thread_info’ [-Werror=implicit-function-declaration]
  14.   test_ti_thread_flag(current_thread_info(), flag)
  15.                       ^
  16. ./include/linux/compiler.h:168:42: note: in definition of macro ‘unlikely’
  17.  # define unlikely(x) __builtin_expect(!!(x), 0)
  18.                                           ^
  19. ./include/linux/seccomp.h:34:15: note: in expansion of macro ‘test_thread_flag’
  20.   if (unlikely(test_thread_flag(TIF_SECCOMP)))
  21.                ^~~~~~~~~~~~~~~~
  22. ./include/linux/thread_info.h:108:22: warning: passing argument 1 of ‘test_ti_thread_flag’ makes pointer from integer without a cast [-Wint-conversion]
  23.   test_ti_thread_flag(current_thread_info(), flag)
  24.                       ^
  25. ./include/linux/compiler.h:168:42: note: in definition of macro ‘unlikely’
  26.  # define unlikely(x) __builtin_expect(!!(x), 0)
  27.                                           ^
  28. ./include/linux/seccomp.h:34:15: note: in expansion of macro ‘test_thread_flag’
  29.   if (unlikely(test_thread_flag(TIF_SECCOMP)))
  30.                ^~~~~~~~~~~~~~~~
  31. In file included from ./arch/x86/include/asm/preempt.h:6:0,
  32.                  from ./include/linux/preempt.h:59,
  33.                  from ./include/linux/spinlock.h:50,
  34.                  from ./include/linux/mmzone.h:7,
  35.                  from ./include/linux/gfp.h:5,
  36.                  from ./include/linux/slab.h:14,
  37.                  from ./include/linux/crypto.h:24,
  38.                  from arch/x86/kernel/asm-offsets.c:8:
  39. ./include/linux/thread_info.h:94:19: note: expected ‘struct thread_info *’ but argument is of type ‘int’
  40.  static inline int test_ti_thread_flag(struct thread_info *ti, int flag)
  41.                    ^~~~~~~~~~~~~~~~~~~
  42. In file included from ./arch/x86/include/asm/bug.h:35:0,
  43.                  from ./include/linux/bug.h:4,
  44.                  from ./include/linux/crypto.h:23,
  45.                  from arch/x86/kernel/asm-offsets.c:8:
  46. ./include/linux/sched.h: In function ‘set_restore_sigmask’:
  47. ./include/linux/thread_info.h:108:22: warning: passing argument 1 of ‘test_ti_thread_flag’ makes pointer from integer without a cast [-Wint-conversion]
  48.   test_ti_thread_flag(current_thread_info(), flag)
  49.                       ^
  50. ./include/asm-generic/bug.h:92:25: note: in definition of macro ‘WARN_ON’
  51.   int __ret_warn_on = !!(condition);    \
  52.                          ^~~~~~~~~
  53. ./include/linux/sched.h:2773:11: note: in expansion of macro ‘test_thread_flag’
  54.   WARN_ON(!test_thread_flag(TIF_SIGPENDING));
  55.            ^~~~~~~~~~~~~~~~
  56. In file included from ./arch/x86/include/asm/preempt.h:6:0,
  57.                  from ./include/linux/preempt.h:59,
  58.                  from ./include/linux/spinlock.h:50,
  59.                  from ./include/linux/mmzone.h:7,
  60.                  from ./include/linux/gfp.h:5,
  61.                  from ./include/linux/slab.h:14,
  62.                  from ./include/linux/crypto.h:24,
  63.                  from arch/x86/kernel/asm-offsets.c:8:
  64. ./include/linux/thread_info.h:94:19: note: expected ‘struct thread_info *’ but argument is of type ‘int’
  65.  static inline int test_ti_thread_flag(struct thread_info *ti, int flag)
  66.                    ^~~~~~~~~~~~~~~~~~~
  67. In file included from ./include/linux/kasan.h:4:0,
  68.                  from ./include/linux/slab.h:118,
  69.                  from ./include/linux/crypto.h:24,
  70.                  from arch/x86/kernel/asm-offsets.c:8:
  71. ./include/linux/sched.h: In function ‘setup_thread_stack’:
  72. ./include/linux/sched.h:3156:21: error: ‘struct thread_info’ has no member named ‘task’
  73.   task_thread_info(p)->task = p;
  74.                      ^~
  75. In file included from ./arch/x86/include/asm/preempt.h:6:0,
  76.                  from ./include/linux/preempt.h:59,
  77.                  from ./include/linux/spinlock.h:50,
  78.                  from ./include/linux/mmzone.h:7,
  79.                  from ./include/linux/gfp.h:5,
  80.                  from ./include/linux/slab.h:14,
  81.                  from ./include/linux/crypto.h:24,
  82.                  from arch/x86/kernel/asm-offsets.c:8:
  83. ./include/linux/sched.h: In function ‘__current_set_polling’:
  84. ./include/linux/thread_info.h:100:21: warning: passing argument 1 of ‘set_ti_thread_flag’ makes pointer from integer without a cast [-Wint-conversion]
  85.   set_ti_thread_flag(current_thread_info(), flag)
  86.                      ^
  87. ./include/linux/sched.h:3380:2: note: in expansion of macro ‘set_thread_flag’
  88.   set_thread_flag(TIF_POLLING_NRFLAG);
  89.   ^~~~~~~~~~~~~~~
  90. ./include/linux/thread_info.h:74:20: note: expected ‘struct thread_info *’ but argument is of type ‘int’
  91.  static inline void set_ti_thread_flag(struct thread_info *ti, int flag)
  92.                     ^~~~~~~~~~~~~~~~~~
  93. In file included from ./arch/x86/include/asm/atomic.h:4:0,
  94.                  from ./include/linux/atomic.h:4,
  95.                  from ./include/linux/crypto.h:20,
  96.                  from arch/x86/kernel/asm-offsets.c:8:
  97. ./include/linux/sched.h: In function ‘current_set_polling_and_test’:
  98. ./include/linux/thread_info.h:108:22: warning: passing argument 1 of ‘test_ti_thread_flag’ makes pointer from integer without a cast [-Wint-conversion]
  99.   test_ti_thread_flag(current_thread_info(), flag)
  100.                       ^
  101. ./include/linux/compiler.h:168:42: note: in definition of macro ‘unlikely’
  102.  # define unlikely(x) __builtin_expect(!!(x), 0)
  103.                                           ^
  104. ./include/linux/thread_info.h:110:28: note: in expansion of macro ‘test_thread_flag’
  105.  #define tif_need_resched() test_thread_flag(TIF_NEED_RESCHED)
  106.                             ^~~~~~~~~~~~~~~~
  107. ./include/linux/sched.h:3393:18: note: in expansion of macro ‘tif_need_resched’
  108.   return unlikely(tif_need_resched());
  109.                   ^~~~~~~~~~~~~~~~
  110. In file included from ./arch/x86/include/asm/preempt.h:6:0,
  111.                  from ./include/linux/preempt.h:59,
  112.                  from ./include/linux/spinlock.h:50,
  113.                  from ./include/linux/mmzone.h:7,
  114.                  from ./include/linux/gfp.h:5,
  115.                  from ./include/linux/slab.h:14,
  116.                  from ./include/linux/crypto.h:24,
  117.                  from arch/x86/kernel/asm-offsets.c:8:
  118. ./include/linux/thread_info.h:94:19: note: expected ‘struct thread_info *’ but argument is of type ‘int’
  119.  static inline int test_ti_thread_flag(struct thread_info *ti, int flag)
  120.                    ^~~~~~~~~~~~~~~~~~~
  121. ./include/linux/sched.h: In function ‘__current_clr_polling’:
  122. ./include/linux/thread_info.h:102:23: warning: passing argument 1 of ‘clear_ti_thread_flag’ makes pointer from integer without a cast [-Wint-conversion]
  123.   clear_ti_thread_flag(current_thread_info(), flag)
  124.                        ^
  125. ./include/linux/sched.h:3398:2: note: in expansion of macro ‘clear_thread_flag’
  126.   clear_thread_flag(TIF_POLLING_NRFLAG);
  127.   ^~~~~~~~~~~~~~~~~
  128. ./include/linux/thread_info.h:79:20: note: expected ‘struct thread_info *’ but argument is of type ‘int’
  129.  static inline void clear_ti_thread_flag(struct thread_info *ti, int flag)
  130.                     ^~~~~~~~~~~~~~~~~~~~
  131. In file included from ./arch/x86/include/asm/atomic.h:4:0,
  132.                  from ./include/linux/atomic.h:4,
  133.                  from ./include/linux/crypto.h:20,
  134.                  from arch/x86/kernel/asm-offsets.c:8:
  135. ./include/linux/sched.h: In function ‘current_clr_polling_and_test’:
  136. ./include/linux/thread_info.h:108:22: warning: passing argument 1 of ‘test_ti_thread_flag’ makes pointer from integer without a cast [-Wint-conversion]
  137.   test_ti_thread_flag(current_thread_info(), flag)
  138.                       ^
  139. ./include/linux/compiler.h:168:42: note: in definition of macro ‘unlikely’
  140.  # define unlikely(x) __builtin_expect(!!(x), 0)
  141.                                           ^
  142. ./include/linux/thread_info.h:110:28: note: in expansion of macro ‘test_thread_flag’
  143.  #define tif_need_resched() test_thread_flag(TIF_NEED_RESCHED)
  144.                             ^~~~~~~~~~~~~~~~
  145. ./include/linux/sched.h:3411:18: note: in expansion of macro ‘tif_need_resched’
  146.   return unlikely(tif_need_resched());
  147.                   ^~~~~~~~~~~~~~~~
  148. In file included from ./arch/x86/include/asm/preempt.h:6:0,
  149.                  from ./include/linux/preempt.h:59,
  150.                  from ./include/linux/spinlock.h:50,
  151.                  from ./include/linux/mmzone.h:7,
  152.                  from ./include/linux/gfp.h:5,
  153.                  from ./include/linux/slab.h:14,
  154.                  from ./include/linux/crypto.h:24,
  155.                  from arch/x86/kernel/asm-offsets.c:8:
  156. ./include/linux/thread_info.h:94:19: note: expected ‘struct thread_info *’ but argument is of type ‘int’
  157.  static inline int test_ti_thread_flag(struct thread_info *ti, int flag)
  158.                    ^~~~~~~~~~~~~~~~~~~
  159. ./include/linux/sched.h: In function ‘current_clr_polling’:
  160. ./include/linux/thread_info.h:108:22: warning: passing argument 1 of ‘test_ti_thread_flag’ makes pointer from integer without a cast [-Wint-conversion]
  161.   test_ti_thread_flag(current_thread_info(), flag)
  162.                       ^
  163. ./include/linux/thread_info.h:110:28: note: in expansion of macro ‘test_thread_flag’
  164.  #define tif_need_resched() test_thread_flag(TIF_NEED_RESCHED)
  165.                             ^~~~~~~~~~~~~~~~
  166. ./include/linux/preempt.h:247:6: note: in expansion of macro ‘tif_need_resched’
  167.   if (tif_need_resched()) \
  168.       ^~~~~~~~~~~~~~~~
  169. ./include/linux/sched.h:3441:2: note: in expansion of macro ‘preempt_fold_need_resched’
  170.   preempt_fold_need_resched();
  171.   ^~~~~~~~~~~~~~~~~~~~~~~~~
  172. ./include/linux/thread_info.h:94:19: note: expected ‘struct thread_info *’ but argument is of type ‘int’
  173.  static inline int test_ti_thread_flag(struct thread_info *ti, int flag)
  174.                    ^~~~~~~~~~~~~~~~~~~
  175. In file included from ./arch/x86/include/asm/atomic.h:4:0,
  176.                  from ./include/linux/atomic.h:4,
  177.                  from ./include/linux/crypto.h:20,
  178.                  from arch/x86/kernel/asm-offsets.c:8:
  179. ./include/linux/sched.h: In function ‘need_resched’:
  180. ./include/linux/thread_info.h:108:22: warning: passing argument 1 of ‘test_ti_thread_flag’ makes pointer from integer without a cast [-Wint-conversion]
  181.   test_ti_thread_flag(current_thread_info(), flag)
  182.                       ^
  183. ./include/linux/compiler.h:168:42: note: in definition of macro ‘unlikely’
  184.  # define unlikely(x) __builtin_expect(!!(x), 0)
  185.                                           ^
  186. ./include/linux/thread_info.h:110:28: note: in expansion of macro ‘test_thread_flag’
  187.  #define tif_need_resched() test_thread_flag(TIF_NEED_RESCHED)
  188.                             ^~~~~~~~~~~~~~~~
  189. ./include/linux/sched.h:3446:18: note: in expansion of macro ‘tif_need_resched’
  190.   return unlikely(tif_need_resched());
  191.                   ^~~~~~~~~~~~~~~~
  192. In file included from ./arch/x86/include/asm/preempt.h:6:0,
  193.                  from ./include/linux/preempt.h:59,
  194.                  from ./include/linux/spinlock.h:50,
  195.                  from ./include/linux/mmzone.h:7,
  196.                  from ./include/linux/gfp.h:5,
  197.                  from ./include/linux/slab.h:14,
  198.                  from ./include/linux/crypto.h:24,
  199.                  from arch/x86/kernel/asm-offsets.c:8:
  200. ./include/linux/thread_info.h:94:19: note: expected ‘struct thread_info *’ but argument is of type ‘int’
  201.  static inline int test_ti_thread_flag(struct thread_info *ti, int flag)
  202.                    ^~~~~~~~~~~~~~~~~~~
  203. In file included from ./include/linux/kasan.h:4:0,
  204.                  from ./include/linux/slab.h:118,
  205.                  from ./include/linux/crypto.h:24,
  206.                  from arch/x86/kernel/asm-offsets.c:8:
  207. ./include/linux/sched.h: In function ‘task_cpu’:
  208. ./include/linux/sched.h:3485:28: error: ‘struct thread_info’ has no member named ‘cpu’
  209.   return task_thread_info(p)->cpu;
  210.                             ^~
  211. In file included from ./arch/x86/include/asm/preempt.h:6:0,
  212.                  from ./include/linux/preempt.h:59,
  213.                  from ./include/linux/spinlock.h:50,
  214.                  from ./include/linux/mmzone.h:7,
  215.                  from ./include/linux/gfp.h:5,
  216.                  from ./include/linux/slab.h:14,
  217.                  from ./include/linux/crypto.h:24,
  218.                  from arch/x86/kernel/asm-offsets.c:8:
  219. ./arch/x86/include/asm/compat.h: In function ‘arch_compat_alloc_user_space’:
  220. ./include/linux/thread_info.h:108:22: warning: passing argument 1 of ‘test_ti_thread_flag’ makes pointer from integer without a cast [-Wint-conversion]
  221.   test_ti_thread_flag(current_thread_info(), flag)
  222.                       ^
  223. ./arch/x86/include/asm/compat.h:311:6: note: in expansion of macro ‘test_thread_flag’
  224.   if (test_thread_flag(TIF_IA32)) {
  225.       ^~~~~~~~~~~~~~~~
  226. ./include/linux/thread_info.h:94:19: note: expected ‘struct thread_info *’ but argument is of type ‘int’
  227.  static inline int test_ti_thread_flag(struct thread_info *ti, int flag)
  228.                    ^~~~~~~~~~~~~~~~~~~
  229. In file included from arch/x86/kernel/asm-offsets.c:13:0:
  230. arch/x86/kernel/asm-offsets.c: In function ‘common’:
  231. ./include/linux/compiler-gcc.h:159:2: error: ‘struct task_struct’ has no member named ‘thread_info’; did you mean ‘sched_info’?
  232.   __builtin_offsetof(a, b)
  233.   ^
  234. ./include/linux/kbuild.h:5:55: note: in definition of macro ‘DEFINE’
  235.          asm volatile("\n->" #sym " %0 " #val : : "i" (val))
  236.                                                        ^~~
  237. ./include/linux/stddef.h:16:32: note: in expansion of macro ‘__compiler_offsetof’
  238.  #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
  239.                                 ^~~~~~~~~~~~~~~~~~~
  240. ./include/linux/kbuild.h:10:14: note: in expansion of macro ‘offsetof’
  241.   DEFINE(sym, offsetof(struct str, mem))
  242.               ^~~~~~~~
  243. arch/x86/kernel/asm-offsets.c:38:2: note: in expansion of macro ‘OFFSET’
  244.   OFFSET(TASK_TI_flags, task_struct, thread_info.flags);
  245.   ^~~~~~
  246. cc1: some warnings being treated as errors
  247. make[1]: *** [Kbuild:82: arch/x86/kernel/asm-offsets.s] Error 1
  248. make: *** [Makefile:1027: prepare0] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement