Guest User

jextract pthread error

a guest
Jun 16th, 2019
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.16 KB | None | 0 0
  1. jextract \
  2. -I /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include \
  3. --exclude-symbols "__pthread_unwind_next" \
  4. --exclude-symbols "__pthread_register_cancel" \
  5. --exclude-symbols "__pthread_unregister_cancel" \
  6. /usr/include/pthread.h -t unix.pthread -o pthread.jar
  7.  
  8.  
  9. WARNING: symbol __bswap_16 is not found in any library
  10. WARNING: symbol __bswap_32 is not found in any library
  11. WARNING: symbol __bswap_64 is not found in any library
  12. WARNING: symbol __uint16_identity is not found in any library
  13. WARNING: symbol __uint32_identity is not found in any library
  14. WARNING: symbol __uint64_identity is not found in any library
  15. WARNING: symbol timer_create is not found in any library
  16. WARNING: symbol timer_delete is not found in any library
  17. WARNING: symbol timer_settime is not found in any library
  18. WARNING: symbol timer_gettime is not found in any library
  19. WARNING: symbol timer_getoverrun is not found in any library
  20. WARNING: symbol pthread_atfork is not found in any library
  21. Cannot write source file unix.pthread.bits.thread_shared_types_h, cause: jdk.internal.clang.TypeLayoutError: InvalidFieldName. type: Type{ spelling=struct __pthread_cond_s, kind=Record }, fieldName: __low
  22. Tree causing above exception is: __pthread_cond_s
  23. ------------------------
  24. Cursor: __pthread_cond_s
  25. Kind: StructDecl
  26. Location: /usr/include/bits/thread-shared-types.h@171:8
  27. Is system header? true
  28. Is from main file? false
  29. == Type ==
  30. Type: struct __pthread_cond_s
  31. Type Kind: Record
  32. Declared by cursor: __pthread_cond_s of kind StructDecl
  33. Location: /usr/include/bits/thread-shared-types.h@171:8
  34. Is system header? true
  35. Is from main file? false
  36. Declaring cursor is definition? true
  37. Size: 48 bytes
  38. Is this cursor definition? true
  39.  
  40. Ignoring duplicate symbol: PTHREAD_CREATE_JOINABLE
  41. Ignoring duplicate symbol: PTHREAD_CREATE_DETACHED
  42. Ignoring duplicate symbol: PTHREAD_CREATE_JOINABLE
  43. Ignoring duplicate symbol: PTHREAD_CREATE_DETACHED
  44. Ignoring duplicate symbol: PTHREAD_INHERIT_SCHED
  45. Ignoring duplicate symbol: PTHREAD_EXPLICIT_SCHED
  46. Ignoring duplicate symbol: PTHREAD_INHERIT_SCHED
  47. Ignoring duplicate symbol: PTHREAD_EXPLICIT_SCHED
  48. Ignoring duplicate symbol: PTHREAD_SCOPE_SYSTEM
  49. Ignoring duplicate symbol: PTHREAD_SCOPE_PROCESS
  50. Ignoring duplicate symbol: PTHREAD_SCOPE_SYSTEM
  51. Ignoring duplicate symbol: PTHREAD_SCOPE_PROCESS
  52. Ignoring duplicate symbol: PTHREAD_PROCESS_PRIVATE
  53. Ignoring duplicate symbol: PTHREAD_PROCESS_SHARED
  54. Ignoring duplicate symbol: PTHREAD_PROCESS_PRIVATE
  55. Ignoring duplicate symbol: PTHREAD_PROCESS_SHARED
  56. Ignoring duplicate symbol: PTHREAD_CANCEL_ENABLE
  57. Ignoring duplicate symbol: PTHREAD_CANCEL_DISABLE
  58. Ignoring duplicate symbol: PTHREAD_CANCEL_ENABLE
  59. Ignoring duplicate symbol: PTHREAD_CANCEL_DISABLE
  60. Ignoring duplicate symbol: PTHREAD_CANCEL_DEFERRED
  61. Ignoring duplicate symbol: PTHREAD_CANCEL_ASYNCHRONOUS
  62. Ignoring duplicate symbol: PTHREAD_CANCEL_DEFERRED
  63. Ignoring duplicate symbol: PTHREAD_CANCEL_ASYNCHRONOUS
  64. Cannot write source file unix.pthread.pthread_h, cause: jdk.internal.clang.TypeLayoutError: InvalidFieldName. type: Type{ spelling=__pthread_unwind_buf_t, kind=Record }, fieldName: __mask_was_saved
  65. Tree causing above exception is: __pthread_unwind_buf_t
  66. ------------------------
  67. Cursor:
  68. Kind: StructDecl
  69. Location: /usr/include/pthread.h@524:9
  70. Is system header? false
  71. Is from main file? true
  72. == Type ==
  73. Type: __pthread_unwind_buf_t
  74. Type Kind: Record
  75. Declared by cursor: of kind StructDecl
  76. Location: /usr/include/pthread.h@524:9
  77. Is system header? false
  78. Is from main file? true
  79. Declaring cursor is definition? true
  80. Size: 104 bytes
  81. Is this cursor definition? true
  82.  
  83. Exception in thread "main" java.lang.RuntimeException: In memory compilation failed: /unix/pthread/bits/pthreadtypes_h.java:133: error: cannot find symbol
  84. public unix.pthread.bits.thread_shared_types_h.__pthread_cond_s __data$get();
  85. ^
  86. symbol: class __pthread_cond_s
  87. location: interface thread_shared_types_h
  88. /unix/pthread/bits/pthreadtypes_h.java:136: error: cannot find symbol
  89. public void __data$set(unix.pthread.bits.thread_shared_types_h.__pthread_cond_s value);
  90. ^
  91. symbol: class __pthread_cond_s
  92. location: interface thread_shared_types_h
  93. /unix/pthread/bits/pthreadtypes_h.java:139: error: cannot find symbol
  94. public java.foreign.memory.Pointer<unix.pthread.bits.thread_shared_types_h.__pthread_cond_s> __data$ptr();
  95. ^
  96. symbol: class __pthread_cond_s
  97. location: interface thread_shared_types_h
  98. 3 errors
  99.  
  100. at jdk.jextract/com.sun.tools.jextract.InMemoryJavaCompiler.compile(InMemoryJavaCompiler.java:59)
  101. at jdk.jextract/com.sun.tools.jextract.Writer.ensureSourcesCompiled(Writer.java:49)
  102. at jdk.jextract/com.sun.tools.jextract.Writer.writeJar(Writer.java:115)
  103. at jdk.jextract/com.sun.tools.jextract.Main.runInternal(Main.java:342)
  104. at jdk.jextract/com.sun.tools.jextract.Main.run(Main.java:211)
  105. at jdk.jextract/com.sun.tools.jextract.Main.main(Main.java:352)
Advertisement
Add Comment
Please, Sign In to add comment