Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jextract \
- -I /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include \
- --exclude-symbols "__pthread_unwind_next" \
- --exclude-symbols "__pthread_register_cancel" \
- --exclude-symbols "__pthread_unregister_cancel" \
- /usr/include/pthread.h -t unix.pthread -o pthread.jar
- WARNING: symbol __bswap_16 is not found in any library
- WARNING: symbol __bswap_32 is not found in any library
- WARNING: symbol __bswap_64 is not found in any library
- WARNING: symbol __uint16_identity is not found in any library
- WARNING: symbol __uint32_identity is not found in any library
- WARNING: symbol __uint64_identity is not found in any library
- WARNING: symbol timer_create is not found in any library
- WARNING: symbol timer_delete is not found in any library
- WARNING: symbol timer_settime is not found in any library
- WARNING: symbol timer_gettime is not found in any library
- WARNING: symbol timer_getoverrun is not found in any library
- WARNING: symbol pthread_atfork is not found in any library
- 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
- Tree causing above exception is: __pthread_cond_s
- ------------------------
- Cursor: __pthread_cond_s
- Kind: StructDecl
- Location: /usr/include/bits/thread-shared-types.h@171:8
- Is system header? true
- Is from main file? false
- == Type ==
- Type: struct __pthread_cond_s
- Type Kind: Record
- Declared by cursor: __pthread_cond_s of kind StructDecl
- Location: /usr/include/bits/thread-shared-types.h@171:8
- Is system header? true
- Is from main file? false
- Declaring cursor is definition? true
- Size: 48 bytes
- Is this cursor definition? true
- Ignoring duplicate symbol: PTHREAD_CREATE_JOINABLE
- Ignoring duplicate symbol: PTHREAD_CREATE_DETACHED
- Ignoring duplicate symbol: PTHREAD_CREATE_JOINABLE
- Ignoring duplicate symbol: PTHREAD_CREATE_DETACHED
- Ignoring duplicate symbol: PTHREAD_INHERIT_SCHED
- Ignoring duplicate symbol: PTHREAD_EXPLICIT_SCHED
- Ignoring duplicate symbol: PTHREAD_INHERIT_SCHED
- Ignoring duplicate symbol: PTHREAD_EXPLICIT_SCHED
- Ignoring duplicate symbol: PTHREAD_SCOPE_SYSTEM
- Ignoring duplicate symbol: PTHREAD_SCOPE_PROCESS
- Ignoring duplicate symbol: PTHREAD_SCOPE_SYSTEM
- Ignoring duplicate symbol: PTHREAD_SCOPE_PROCESS
- Ignoring duplicate symbol: PTHREAD_PROCESS_PRIVATE
- Ignoring duplicate symbol: PTHREAD_PROCESS_SHARED
- Ignoring duplicate symbol: PTHREAD_PROCESS_PRIVATE
- Ignoring duplicate symbol: PTHREAD_PROCESS_SHARED
- Ignoring duplicate symbol: PTHREAD_CANCEL_ENABLE
- Ignoring duplicate symbol: PTHREAD_CANCEL_DISABLE
- Ignoring duplicate symbol: PTHREAD_CANCEL_ENABLE
- Ignoring duplicate symbol: PTHREAD_CANCEL_DISABLE
- Ignoring duplicate symbol: PTHREAD_CANCEL_DEFERRED
- Ignoring duplicate symbol: PTHREAD_CANCEL_ASYNCHRONOUS
- Ignoring duplicate symbol: PTHREAD_CANCEL_DEFERRED
- Ignoring duplicate symbol: PTHREAD_CANCEL_ASYNCHRONOUS
- 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
- Tree causing above exception is: __pthread_unwind_buf_t
- ------------------------
- Cursor:
- Kind: StructDecl
- Location: /usr/include/pthread.h@524:9
- Is system header? false
- Is from main file? true
- == Type ==
- Type: __pthread_unwind_buf_t
- Type Kind: Record
- Declared by cursor: of kind StructDecl
- Location: /usr/include/pthread.h@524:9
- Is system header? false
- Is from main file? true
- Declaring cursor is definition? true
- Size: 104 bytes
- Is this cursor definition? true
- Exception in thread "main" java.lang.RuntimeException: In memory compilation failed: /unix/pthread/bits/pthreadtypes_h.java:133: error: cannot find symbol
- public unix.pthread.bits.thread_shared_types_h.__pthread_cond_s __data$get();
- ^
- symbol: class __pthread_cond_s
- location: interface thread_shared_types_h
- /unix/pthread/bits/pthreadtypes_h.java:136: error: cannot find symbol
- public void __data$set(unix.pthread.bits.thread_shared_types_h.__pthread_cond_s value);
- ^
- symbol: class __pthread_cond_s
- location: interface thread_shared_types_h
- /unix/pthread/bits/pthreadtypes_h.java:139: error: cannot find symbol
- public java.foreign.memory.Pointer<unix.pthread.bits.thread_shared_types_h.__pthread_cond_s> __data$ptr();
- ^
- symbol: class __pthread_cond_s
- location: interface thread_shared_types_h
- 3 errors
- at jdk.jextract/com.sun.tools.jextract.InMemoryJavaCompiler.compile(InMemoryJavaCompiler.java:59)
- at jdk.jextract/com.sun.tools.jextract.Writer.ensureSourcesCompiled(Writer.java:49)
- at jdk.jextract/com.sun.tools.jextract.Writer.writeJar(Writer.java:115)
- at jdk.jextract/com.sun.tools.jextract.Main.runInternal(Main.java:342)
- at jdk.jextract/com.sun.tools.jextract.Main.run(Main.java:211)
- at jdk.jextract/com.sun.tools.jextract.Main.main(Main.java:352)
Advertisement
Add Comment
Please, Sign In to add comment