$ dart pub run ffigen
Deprecated. Use `dart run` instead.
Running in Directory: '/mnt/raid10/workspace-automation/app/libusb.dart'
Input Headers: [libusb-1.0/libusb.h]
[SEVERE] : Header libusb-1.0/libusb.h: Total errors/warnings: 1.
[SEVERE] : /usr/include/sys/types.h:144:10: fatal error: 'stddef.h' file not found [Lexical or Preprocessor Issue]
[WARNING]: Skipped Function 'libusb_cpu_to_le16', inline functions are not supported.
[WARNING]: Removed All Struct Members from libusb_bos_dev_capability_descriptor(libusb_bos_dev_capability_descriptor), Flexible array members not supported.
[WARNING]: Removed All Struct Members from libusb_bos_descriptor(libusb_bos_descriptor), Flexible array members not supported.
[WARNING]: Removed All Struct Members from libusb_transfer(libusb_transfer), Flexible array members not supported.
[WARNING]: Skipped Function 'libusb_control_transfer_get_data', inline functions are not supported.
[WARNING]: Skipped Function 'libusb_control_transfer_get_setup', inline functions are not supported.
[WARNING]: Skipped Function 'libusb_fill_control_setup', inline functions are not supported.
[WARNING]: Skipped Function 'libusb_fill_control_transfer', inline functions are not supported.
[WARNING]: Skipped Function 'libusb_fill_bulk_transfer', inline functions are not supported.
[WARNING]: Skipped Function 'libusb_fill_bulk_stream_transfer', inline functions are not supported.
[WARNING]: Skipped Function 'libusb_fill_interrupt_transfer', inline functions are not supported.
[WARNING]: Skipped Function 'libusb_fill_iso_transfer', inline functions are not supported.
[WARNING]: Skipped Function 'libusb_set_iso_packet_lengths', inline functions are not supported.
[WARNING]: Skipped Function 'libusb_get_iso_packet_buffer', inline functions are not supported.
[WARNING]: Skipped Function 'libusb_get_iso_packet_buffer_simple', inline functions are not supported.
[WARNING]: Skipped Function 'libusb_get_descriptor', inline functions are not supported.
[WARNING]: Skipped Function 'libusb_get_string_descriptor', inline functions are not supported.
Finished, Bindings generated in /mnt/raid10/workspace-automation/app/libusb.dart/lib/src/libusb.ffigen.dart
$ clang --version
clang version 16.0.6 (Fedora 16.0.6-3.fc38)
Target: x86_64-redhat-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
$ find /usr -iname stddef.h
/usr/include/linux/stddef.h
/usr/include/c++/v1/stddef.h
/usr/lib/gcc/x86_64-redhat-linux/13/include/stddef.h
/usr/lib/gcc/aarch64-linux-gnu/13/include/stddef.h
/usr/lib/gcc/arm-linux-gnueabi/13/include/stddef.h
/usr/lib/gcc/arm-none-eabi/13.2.0/include/stddef.h
/usr/lib64/clang/16/include/stddef.h
/usr/lib64/llvm15/lib/clang/15.0.7/include/stddef.h
find: ‘/usr/libexec/initscripts/legacy-actions/auditd’: Permission denied
find: ‘/usr/share/empty.sshd’: Permission denied
find: ‘/usr/share/polkit-1/rules.d’: Permission denied
/usr/src/kernels/6.5.7-200.fc38.x86_64/include/linux/stddef.h
/usr/src/kernels/6.5.7-200.fc38.x86_64/include/uapi/linux/stddef.h
/usr/src/kernels/6.5.7-200.fc38.x86_64/tools/include/uapi/linux/stddef.h
/usr/src/kernels/6.5.8-200.fc38.x86_64/include/linux/stddef.h
/usr/src/kernels/6.5.8-200.fc38.x86_64/include/uapi/linux/stddef.h
/usr/src/kernels/6.5.8-200.fc38.x86_64/tools/include/uapi/linux/stddef.h
/usr/src/kernels/6.5.9-200.fc38.x86_64/include/linux/stddef.h
/usr/src/kernels/6.5.9-200.fc38.x86_64/include/uapi/linux/stddef.h
/usr/src/kernels/6.5.9-200.fc38.x86_64/tools/include/uapi/linux/stddef.h
$ dart pub run ffigen --compiler-opts "-I/usr/lib64/clang/16/include/"
Deprecated. Use `dart run` instead.
Running in Directory: '/mnt/raid10/workspace-automation/app/libusb.dart'
Input Headers: [libusb-1.0/libusb.h]
[WARNING]: Skipped Function 'libusb_cpu_to_le16', inline functions are not supported.
[WARNING]: Removed All Struct Members from libusb_bos_dev_capability_descriptor(libusb_bos_dev_capability_descriptor), Flexible array members not supported.
[WARNING]: Removed All Struct Members from libusb_bos_descriptor(libusb_bos_descriptor), Flexible array members not supported.
[WARNING]: Removed All Struct Members from libusb_transfer(libusb_transfer), Flexible array members not supported.
[WARNING]: Skipped Function 'libusb_control_transfer_get_data', inline functions are not supported.
[WARNING]: Skipped Function 'libusb_control_transfer_get_setup', inline functions are not supported.
[WARNING]: Skipped Function 'libusb_fill_control_setup', inline functions are not supported.
[WARNING]: Skipped Function 'libusb_fill_control_transfer', inline functions are not supported.
[WARNING]: Skipped Function 'libusb_fill_bulk_transfer', inline functions are not supported.
[WARNING]: Skipped Function 'libusb_fill_bulk_stream_transfer', inline functions are not supported.
[WARNING]: Skipped Function 'libusb_fill_interrupt_transfer', inline functions are not supported.
[WARNING]: Skipped Function 'libusb_fill_iso_transfer', inline functions are not supported.
[WARNING]: Skipped Function 'libusb_set_iso_packet_lengths', inline functions are not supported.
[WARNING]: Skipped Function 'libusb_get_iso_packet_buffer', inline functions are not supported.
[WARNING]: Skipped Function 'libusb_get_iso_packet_buffer_simple', inline functions are not supported.
[WARNING]: Skipped Function 'libusb_get_descriptor', inline functions are not supported.
[WARNING]: Skipped Function 'libusb_get_string_descriptor', inline functions are not supported.
Finished, Bindings generated in /mnt/raid10/workspace-automation/app/libusb.dart/lib/src/libusb.ffigen.dart