Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported type: 'CX_TypeClass_MemberPointer' #511

Open
rubo opened this issue Dec 11, 2023 · 0 comments
Open

Unsupported type: 'CX_TypeClass_MemberPointer' #511

rubo opened this issue Dec 11, 2023 · 0 comments

Comments

@rubo
Copy link

rubo commented Dec 11, 2023

I'm getting an error when trying to generate bindings for options.h:

Unsupported type: 'CX_TypeClass_MemberPointer'

Info: Visiting
Info: Visiting /usr/include/clang/17.0.6/include/stddef.h
Info: Visiting /usr/include/clang/17.0.6/include/__stddef_max_align_t.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/types.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/stdint-intn.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/stdint-uintn.h
Info: Visiting /usr/include/stdint.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/x86_64-linux-gnu/c++/11/bits/c++config.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/limits
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/functexcept.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/cpp_type_traits.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ext/type_traits.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ext/numeric_traits.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/move.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/type_traits
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/stl_pair.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/stl_iterator_base_types.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/stl_iterator_base_funcs.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ptr_traits.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/stl_iterator.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/debug/debug.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/predefined_ops.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/stl_algobase.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/exception.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/new
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ext/new_allocator.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/memoryfwd.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/allocator.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/stl_construct.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/alloc_traits.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/stl_uninitialized.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/stl_tempbuf.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bit
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/align.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/uses_allocator.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/utility
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/array
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/tuple
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/stl_function.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/hash_bytes.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/functional_hash.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/unique_ptr.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/stringfwd.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/floatn-common.h
Info: Visiting /usr/include/clang/17.0.6/include/stdarg.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/types/wint_t.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/types/__FILE.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/types/FILE.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/types/__locale_t.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/types/locale_t.h
Info: Visiting /usr/include/wchar.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/cwchar
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/postypes.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/iosfwd
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/typeinfo
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/refwrap.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/types/time_t.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h
Info: Visiting /usr/include/sched.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/types/struct_sched_param.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/sched.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/cpu-set.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/timex.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/time.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/types/clock_t.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/types/struct_tm.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/types/clockid_t.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/types/timer_t.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/types/struct_itimerspec.h
Info: Visiting /usr/include/time.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/atomic_wide_counter.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/thread-shared-types.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/struct_mutex.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/struct_rwlock.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/setjmp.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/types/struct___jmp_buf_tag.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/pthread_stack_min-dynamic.h
Info: Visiting /usr/include/pthread.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/x86_64-linux-gnu/c++/11/bits/gthr-default.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/x86_64-linux-gnu/c++/11/bits/atomic_word.h
Info: Visiting /usr/include/x86_64-linux-gnu/sys/single_threaded.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ext/atomicity.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/exception
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/cxxabi_init_exception.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/exception_ptr.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/nested_exception.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ext/concurrence.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/shared_ptr_base.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/shared_ptr.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/atomic_base.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/shared_ptr_atomic.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/backward/auto_ptr.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/memory
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/pstl/execution_defs.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/enable_special_members.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/optional
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/char_traits.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/cstdint
Info: Visiting /usr/include/locale.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/clocale
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/x86_64-linux-gnu/c++/11/bits/c++locale.h
Info: Visiting /usr/include/ctype.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/cctype
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/localefwd.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/cxxabi_forced.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/string_view
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/string_view.tcc
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/basic_string.h
Info: Visiting /usr/include/stdlib.h
Info: Visiting /usr/include/x86_64-linux-gnu/sys/types.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/byteswap.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/uintn-identity.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/types/sigset_t.h
Info: Visiting /usr/include/x86_64-linux-gnu/sys/select.h
Info: Visiting /usr/include/alloca.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/std_abs.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/cstdlib
Info: Visiting /usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h
Info: Visiting /usr/include/stdio.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/cstdio
Info: Visiting /usr/include/errno.h
Info: Visiting /usr/include/x86_64-linux-gnu/bits/types/error_t.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ext/string_conversions.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/basic_string.tcc
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/string
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/hashtable_policy.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/node_handle.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/hashtable.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/unordered_map.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/stl_vector.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/stl_bvector.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/vector.tcc
Info: Visiting /rocksdb/include/rocksdb/rocksdb2/compression_type.h
Info: Visiting /usr/include/assert.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/cstddef
Info: Visiting /rocksdb/include/rocksdb/rocksdb2/data_structure.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/atomic
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/unordered_set.h
Info: Visiting /usr/include/string.h
Info: Visiting /usr/include/strings.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/cstring
Info: Visiting /rocksdb/include/rocksdb/rocksdb2/cleanable.h
Info: Visiting /rocksdb/include/rocksdb/rocksdb2/slice.h
Info: Visiting /rocksdb/include/rocksdb/rocksdb2/status.h
Info: Visiting /rocksdb/include/rocksdb/rocksdb2/configurable.h
Info: Visiting /rocksdb/include/rocksdb/rocksdb2/customizable.h
Info: Visiting /rocksdb/include/rocksdb/rocksdb2/memory_allocator.h
Info: Visiting /rocksdb/include/rocksdb/rocksdb2/cache.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/stdlib.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/stdexcept
Info: Visiting /rocksdb/include/rocksdb/rocksdb2/memtablerep.h
Info: Visiting /rocksdb/include/rocksdb/rocksdb2/universal_compaction.h
Info: Visiting /rocksdb/include/rocksdb/rocksdb2/advanced_options.h
Info: Visiting /rocksdb/include/rocksdb/rocksdb2/comparator.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/cstdarg
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/std_function.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/stl_algo.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/functional
Info: Visiting /rocksdb/include/rocksdb/rocksdb2/functor_wrapper.h
Info: Visiting /rocksdb/include/rocksdb/rocksdb2/port_defs.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/stl_tree.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/stl_map.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/stl_multimap.h
Info: Visiting /rocksdb/include/rocksdb/rocksdb2/thread_status.h
Info: Visiting /rocksdb/include/rocksdb/rocksdb2/env.h
Info: Visiting /rocksdb/include/rocksdb/rocksdb2/file_checksum.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ratio
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ctime
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/parse_numbers.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/chrono
Info: Visiting /rocksdb/include/rocksdb/rocksdb2/compaction_job_stats.h
Info: Visiting /rocksdb/include/rocksdb/rocksdb2/io_status.h
Info: Visiting /rocksdb/include/rocksdb/rocksdb2/types.h
Info: Visiting /rocksdb/include/rocksdb/rocksdb2/table_properties.h
Info: Visiting /rocksdb/include/rocksdb/rocksdb2/listener.h
Info: Visiting /rocksdb/include/rocksdb/rocksdb2/sst_partitioner.h
Info: Visiting /rocksdb/include/rocksdb/rocksdb2/version.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/x86_64-linux-gnu/c++/11/bits/error_constants.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/system_error
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/std_mutex.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/condition_variable
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/stl_list.h
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/list.tcc
Info: Visiting /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/mutex
Info: Visiting /rocksdb/include/rocksdb/rocksdb2/write_buffer_manager.h
Info: Visiting /rocksdb/include/rocksdb/rocksdb2/options.h
Error (Line 80, Column 30 in /../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/std_function.h): Unsupported type: 'CX_TypeClass_MemberPointer'.

I'm trying to generate bindings for c.h, but it doesn't generate struct members. Adding -t options.h makes things worse, ending up with no bindings at all.

Do I miss something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant