SHARE
TWEET

Untitled

a guest Jul 17th, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ✘ soar@soar-XPS-13-9360  ~/linux_compile/linux-5.1.18  make                    
  2.   CALL    scripts/checksyscalls.sh
  3.   CALL    scripts/atomic/check-atomics.sh
  4.   DESCEND  objtool
  5.   CC       /home/soar/linux_compile/linux-5.1.18/tools/objtool/arch/x86/decode.o
  6. In file included from /usr/include/gelf.h:32:0,
  7.                  from arch/x86/../../elf.h:22,
  8.                  from arch/x86/decode.c:26:
  9. /usr/include/libelf.h:46:4: error: unknown type name ‘Elf32_Word’
  10.     Elf32_Word   ch_type;        /* Compression format.  */
  11.     ^~~~~~~~~~
  12. /usr/include/libelf.h:47:4: error: unknown type name ‘Elf32_Word’
  13.     Elf32_Word   ch_size;        /* Uncompressed data size.  */
  14.     ^~~~~~~~~~
  15. /usr/include/libelf.h:48:4: error: unknown type name ‘Elf32_Word’
  16.     Elf32_Word   ch_addralign;   /* Uncompressed data alignment.  */
  17.     ^~~~~~~~~~
  18. /usr/include/libelf.h:53:4: error: unknown type name ‘Elf64_Word’
  19.     Elf64_Word   ch_type;        /* Compression format.  */
  20.     ^~~~~~~~~~
  21. /usr/include/libelf.h:54:4: error: unknown type name ‘Elf64_Word’
  22.     Elf64_Word   ch_reserved;
  23.     ^~~~~~~~~~
  24. /usr/include/libelf.h:55:4: error: unknown type name ‘Elf64_Xword’
  25.     Elf64_Xword  ch_size;        /* Uncompressed data size.  */
  26.     ^~~~~~~~~~~
  27. /usr/include/libelf.h:56:4: error: unknown type name ‘Elf64_Xword’
  28.     Elf64_Xword  ch_addralign;   /* Uncompressed data alignment.  */
  29.     ^~~~~~~~~~~
  30. /usr/include/libelf.h:253:8: error: unknown type name ‘Elf32_Ehdr’
  31.  extern Elf32_Ehdr *elf32_getehdr (Elf *__elf);
  32.         ^~~~~~~~~~
  33. /usr/include/libelf.h:255:8: error: unknown type name ‘Elf64_Ehdr’
  34.  extern Elf64_Ehdr *elf64_getehdr (Elf *__elf);
  35.         ^~~~~~~~~~
  36. /usr/include/libelf.h:258:8: error: unknown type name ‘Elf32_Ehdr’
  37.  extern Elf32_Ehdr *elf32_newehdr (Elf *__elf);
  38.         ^~~~~~~~~~
  39. /usr/include/libelf.h:260:8: error: unknown type name ‘Elf64_Ehdr’
  40.  extern Elf64_Ehdr *elf64_newehdr (Elf *__elf);
  41.         ^~~~~~~~~~
  42. /usr/include/libelf.h:269:8: error: unknown type name ‘Elf32_Phdr’
  43.  extern Elf32_Phdr *elf32_getphdr (Elf *__elf);
  44.         ^~~~~~~~~~
  45. /usr/include/libelf.h:271:8: error: unknown type name ‘Elf64_Phdr’
  46.  extern Elf64_Phdr *elf64_getphdr (Elf *__elf);
  47.         ^~~~~~~~~~
  48. /usr/include/libelf.h:274:8: error: unknown type name ‘Elf32_Phdr’
  49.  extern Elf32_Phdr *elf32_newphdr (Elf *__elf, size_t __cnt);
  50.         ^~~~~~~~~~
  51. /usr/include/libelf.h:276:8: error: unknown type name ‘Elf64_Phdr’
  52.  extern Elf64_Phdr *elf64_newphdr (Elf *__elf, size_t __cnt);
  53.         ^~~~~~~~~~
  54. /usr/include/libelf.h:283:43: error: unknown type name ‘Elf32_Off’; did you mean ‘Elf32_Chdr’?
  55.  extern Elf_Scn *elf32_offscn (Elf *__elf, Elf32_Off __offset);
  56.                                            ^~~~~~~~~
  57.                                            Elf32_Chdr
  58. /usr/include/libelf.h:285:43: error: unknown type name ‘Elf64_Off’; did you mean ‘Elf64_Chdr’?
  59.  extern Elf_Scn *elf64_offscn (Elf *__elf, Elf64_Off __offset);
  60.                                            ^~~~~~~~~
  61.                                            Elf64_Chdr
  62. /usr/include/libelf.h:325:8: error: unknown type name ‘Elf32_Shdr’
  63.  extern Elf32_Shdr *elf32_getshdr (Elf_Scn *__scn);
  64.         ^~~~~~~~~~
  65. /usr/include/libelf.h:327:8: error: unknown type name ‘Elf64_Shdr’
  66.  extern Elf64_Shdr *elf64_getshdr (Elf_Scn *__scn);
  67.         ^~~~~~~~~~
  68. In file included from arch/x86/../../elf.h:22:0,
  69.                  from arch/x86/decode.c:26:
  70. /usr/include/gelf.h:44:9: error: unknown type name ‘Elf64_Half’
  71.  typedef Elf64_Half GElf_Half;
  72.          ^~~~~~~~~~
  73. /usr/include/gelf.h:47:9: error: unknown type name ‘Elf64_Word’
  74.  typedef Elf64_Word GElf_Word;
  75.          ^~~~~~~~~~
  76. /usr/include/gelf.h:48:9: error: unknown type name ‘Elf64_Sword’
  77.  typedef Elf64_Sword GElf_Sword;
  78.          ^~~~~~~~~~~
  79. /usr/include/gelf.h:51:9: error: unknown type name ‘Elf64_Xword’
  80.  typedef Elf64_Xword GElf_Xword;
  81.          ^~~~~~~~~~~
  82. /usr/include/gelf.h:52:9: error: unknown type name ‘Elf64_Sxword’
  83.  typedef Elf64_Sxword GElf_Sxword;
  84.          ^~~~~~~~~~~~
  85. /usr/include/gelf.h:55:9: error: unknown type name ‘Elf64_Addr’
  86.  typedef Elf64_Addr GElf_Addr;
  87.          ^~~~~~~~~~
  88. /usr/include/gelf.h:58:9: error: unknown type name ‘Elf64_Off’
  89.  typedef Elf64_Off GElf_Off;
  90.          ^~~~~~~~~
  91. /usr/include/gelf.h:62:9: error: unknown type name ‘Elf64_Ehdr’
  92.  typedef Elf64_Ehdr GElf_Ehdr;
  93.          ^~~~~~~~~~
  94. /usr/include/gelf.h:65:9: error: unknown type name ‘Elf64_Shdr’
  95.  typedef Elf64_Shdr GElf_Shdr;
  96.          ^~~~~~~~~~
  97. /usr/include/gelf.h:70:9: error: unknown type name ‘Elf64_Section’
  98.  typedef Elf64_Section GElf_Section;
  99.          ^~~~~~~~~~~~~
  100. /usr/include/gelf.h:73:9: error: unknown type name ‘Elf64_Sym’
  101.  typedef Elf64_Sym GElf_Sym;
  102.          ^~~~~~~~~
  103. /usr/include/gelf.h:77:9: error: unknown type name ‘Elf64_Syminfo’
  104.  typedef Elf64_Syminfo GElf_Syminfo;
  105.          ^~~~~~~~~~~~~
  106. /usr/include/gelf.h:80:9: error: unknown type name ‘Elf64_Rel’
  107.  typedef Elf64_Rel GElf_Rel;
  108.          ^~~~~~~~~
  109. /usr/include/gelf.h:83:9: error: unknown type name ‘Elf64_Rela’
  110.  typedef Elf64_Rela GElf_Rela;
  111.          ^~~~~~~~~~
  112. /usr/include/gelf.h:86:9: error: unknown type name ‘Elf64_Phdr’
  113.  typedef Elf64_Phdr GElf_Phdr;
  114.          ^~~~~~~~~~
  115. /usr/include/gelf.h:92:9: error: unknown type name ‘Elf64_Dyn’
  116.  typedef Elf64_Dyn GElf_Dyn;
  117.          ^~~~~~~~~
  118. /usr/include/gelf.h:96:9: error: unknown type name ‘Elf64_Verdef’
  119.  typedef Elf64_Verdef GElf_Verdef;
  120.          ^~~~~~~~~~~~
  121. /usr/include/gelf.h:99:9: error: unknown type name ‘Elf64_Verdaux’
  122.  typedef Elf64_Verdaux GElf_Verdaux;
  123.          ^~~~~~~~~~~~~
  124. /usr/include/gelf.h:102:9: error: unknown type name ‘Elf64_Verneed’
  125.  typedef Elf64_Verneed GElf_Verneed;
  126.          ^~~~~~~~~~~~~
  127. /usr/include/gelf.h:105:9: error: unknown type name ‘Elf64_Vernaux’
  128.  typedef Elf64_Vernaux GElf_Vernaux;
  129.          ^~~~~~~~~~~~~
  130. /usr/include/gelf.h:109:9: error: unknown type name ‘Elf64_Versym’
  131.  typedef Elf64_Versym GElf_Versym;
  132.          ^~~~~~~~~~~~
  133. /usr/include/gelf.h:113:9: error: unknown type name ‘Elf64_auxv_t’
  134.  typedef Elf64_auxv_t GElf_auxv_t;
  135.          ^~~~~~~~~~~~
  136. /usr/include/gelf.h:117:9: error: unknown type name ‘Elf64_Nhdr’
  137.  typedef Elf64_Nhdr GElf_Nhdr;
  138.          ^~~~~~~~~~
  139. /usr/include/gelf.h:121:9: error: unknown type name ‘Elf64_Move’
  140.  typedef Elf64_Move GElf_Move;
  141.          ^~~~~~~~~~
  142. /usr/include/gelf.h:125:9: error: unknown type name ‘Elf64_Lib’
  143.  typedef Elf64_Lib GElf_Lib;
  144.          ^~~~~~~~~
  145. /usr/include/gelf.h:232:8: error: unknown type name ‘Elf32_Word’; did you mean ‘GElf_Word’?
  146.         Elf32_Word *__xshndx);
  147.         ^~~~~~~~~~
  148.         GElf_Word
  149. /usr/include/gelf.h:238:6: error: unknown type name ‘Elf32_Word’; did you mean ‘GElf_Word’?
  150.       Elf32_Word __xshndx);
  151.       ^~~~~~~~~~
  152.       GElf_Word
  153. arch/x86/decode.c: In function ‘is_x86_64’:
  154. arch/x86/decode.c:43:19: error: request for member ‘e_machine’ in something not a structure or union
  155.   switch (elf->ehdr.e_machine) {
  156.                    ^
  157. arch/x86/decode.c:44:7: error: ‘EM_X86_64’ undeclared (first use in this function); did you mean ‘is_x86_64’?
  158.   case EM_X86_64:
  159.        ^~~~~~~~~
  160.        is_x86_64
  161. arch/x86/decode.c:44:7: note: each undeclared identifier is reported only once for each function it appears in
  162. arch/x86/decode.c:46:7: error: ‘EM_386’ undeclared (first use in this function); did you mean ‘EM_X86_64’?
  163.   case EM_386:
  164.        ^~~~~~
  165.        EM_X86_64
  166. In file included from arch/x86/decode.c:28:0:
  167. arch/x86/decode.c:49:51: error: request for member ‘e_machine’ in something not a structure or union
  168.    WARN("unexpected ELF machine type %d", elf->ehdr.e_machine);
  169.                                                    ^
  170. arch/x86/../../warn.h:58:14: note: in definition of macro ‘WARN’
  171.    objname, ##__VA_ARGS__)
  172.               ^~~~~~~~~~~
  173. arch/x86/decode.c:52:1: error: control reaches end of non-void function [-Werror=return-type]
  174.  }
  175.  ^
  176. cc1: all warnings being treated as errors
  177. mv: cannot stat '/home/soar/linux_compile/linux-5.1.18/tools/objtool/arch/x86/.decode.o.tmp': No such file or directory
  178. /home/soar/linux_compile/linux-5.1.18/tools/build/Makefile.build:96: recipe for target '/home/soar/linux_compile/linux-5.1.18/tools/objtool/arch/x86/decode.o' failed
  179. make[4]: *** [/home/soar/linux_compile/linux-5.1.18/tools/objtool/arch/x86/decode.o] Error 1
  180. /home/soar/linux_compile/linux-5.1.18/tools/build/Makefile.build:139: recipe for target 'arch/x86' failed
  181. make[3]: *** [arch/x86] Error 2
  182. Makefile:50: recipe for target '/home/soar/linux_compile/linux-5.1.18/tools/objtool/objtool-in.o' failed
  183. make[2]: *** [/home/soar/linux_compile/linux-5.1.18/tools/objtool/objtool-in.o] Error 2
  184. Makefile:66: recipe for target 'objtool' failed
  185. make[1]: *** [objtool] Error 2
  186. Makefile:1699: recipe for target 'tools/objtool' failed
  187. make: *** [tools/objtool] Error 2
  188.  ✘ soar@soar-XPS-13-9360  ~/linux_compile/linux-5.1.18 
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top