ijl / orjson

Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy
Apache License 2.0
6.29k stars 215 forks source link

Build failed on Python 3.13.0b1 linux/arm64 #484

Closed jm-nab closed 5 months ago

jm-nab commented 6 months ago

Any suggestions?

      error[E0560]: struct `pyo3_ffi::PyTypeObject` has no field named `tp_weaklist`
         --> src/ffi/fragment.rs:100:9
          |
      100 |         tp_weaklist: null_mut(),
          |         ^^^^^^^^^^^ field does not exist
          |
         ::: /tmp/pip-install-obf5br_g/orjson_b7afd63f19ea4426abbc28b336b48cc2/include/cargo/pyo3-ffi-0.21.2/src/object.rs:7:16
          |
      7   | opaque_struct!(PyTypeObject);
          |                ------------ `pyo3_ffi::PyTypeObject` defined here
          |
      help: `pyo3_ffi::PyTypeObject` is a tuple struct, use the appropriate syntax
          |
      71  |     let ob = Box::new(pyo3_ffi::PyTypeObject(/* fields */));
          |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      error[E0560]: struct `pyo3_ffi::PyTypeObject` has no field named `tp_vectorcall_offset`
         --> src/ffi/fragment.rs:103:9
          |
      103 |         tp_vectorcall_offset: 0,
          |         ^^^^^^^^^^^^^^^^^^^^ field does not exist
          |
         ::: /tmp/pip-install-obf5br_g/orjson_b7afd63f19ea4426abbc28b336b48cc2/include/cargo/pyo3-ffi-0.21.2/src/object.rs:7:16
          |
      7   | opaque_struct!(PyTypeObject);
          |                ------------ `pyo3_ffi::PyTypeObject` defined here
          |
      help: `pyo3_ffi::PyTypeObject` is a tuple struct, use the appropriate syntax
          |
      71  |     let ob = Box::new(pyo3_ffi::PyTypeObject(/* fields */));
          |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      error[E0560]: struct `pyo3_ffi::PyTypeObject` has no field named `tp_getattr`
         --> src/ffi/fragment.rs:104:9
          |
      104 |         tp_getattr: None,
          |         ^^^^^^^^^^ field does not exist
          |
         ::: /tmp/pip-install-obf5br_g/orjson_b7afd63f19ea4426abbc28b336b48cc2/include/cargo/pyo3-ffi-0.21.2/src/object.rs:7:16
          |
      7   | opaque_struct!(PyTypeObject);
          |                ------------ `pyo3_ffi::PyTypeObject` defined here
          |
      help: `pyo3_ffi::PyTypeObject` is a tuple struct, use the appropriate syntax
          |
      71  |     let ob = Box::new(pyo3_ffi::PyTypeObject(/* fields */));
          |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      error[E0560]: struct `pyo3_ffi::PyTypeObject` has no field named `tp_setattr`
         --> src/ffi/fragment.rs:105:9
          |
      105 |         tp_setattr: None,
          |         ^^^^^^^^^^ field does not exist
          |
         ::: /tmp/pip-install-obf5br_g/orjson_b7afd63f19ea4426abbc28b336b48cc2/include/cargo/pyo3-ffi-0.21.2/src/object.rs:7:16
          |
      7   | opaque_struct!(PyTypeObject);
          |                ------------ `pyo3_ffi::PyTypeObject` defined here
          |
      help: `pyo3_ffi::PyTypeObject` is a tuple struct, use the appropriate syntax
          |
      71  |     let ob = Box::new(pyo3_ffi::PyTypeObject(/* fields */));
          |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      error[E0560]: struct `pyo3_ffi::PyTypeObject` has no field named `tp_as_async`
         --> src/ffi/fragment.rs:106:9
          |
      106 |         tp_as_async: null_mut(),
          |         ^^^^^^^^^^^ field does not exist
          |
         ::: /tmp/pip-install-obf5br_g/orjson_b7afd63f19ea4426abbc28b336b48cc2/include/cargo/pyo3-ffi-0.21.2/src/object.rs:7:16
          |
      7   | opaque_struct!(PyTypeObject);
          |                ------------ `pyo3_ffi::PyTypeObject` defined here
          |
      help: `pyo3_ffi::PyTypeObject` is a tuple struct, use the appropriate syntax
          |
      71  |     let ob = Box::new(pyo3_ffi::PyTypeObject(/* fields */));
          |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      error[E0560]: struct `pyo3_ffi::PyTypeObject` has no field named `tp_repr`
         --> src/ffi/fragment.rs:107:9
          |
      107 |         tp_repr: None,
          |         ^^^^^^^ field does not exist
          |
         ::: /tmp/pip-install-obf5br_g/orjson_b7afd63f19ea4426abbc28b336b48cc2/include/cargo/pyo3-ffi-0.21.2/src/object.rs:7:16
          |
      7   | opaque_struct!(PyTypeObject);
          |                ------------ `pyo3_ffi::PyTypeObject` defined here
          |
      help: `pyo3_ffi::PyTypeObject` is a tuple struct, use the appropriate syntax
          |
      71  |     let ob = Box::new(pyo3_ffi::PyTypeObject(/* fields */));
          |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      error[E0560]: struct `pyo3_ffi::PyTypeObject` has no field named `tp_as_number`
         --> src/ffi/fragment.rs:108:9
          |
      108 |         tp_as_number: null_mut(),
          |         ^^^^^^^^^^^^ field does not exist
          |
         ::: /tmp/pip-install-obf5br_g/orjson_b7afd63f19ea4426abbc28b336b48cc2/include/cargo/pyo3-ffi-0.21.2/src/object.rs:7:16
          |
      7   | opaque_struct!(PyTypeObject);
          |                ------------ `pyo3_ffi::PyTypeObject` defined here
          |
      help: `pyo3_ffi::PyTypeObject` is a tuple struct, use the appropriate syntax
          |
      71  |     let ob = Box::new(pyo3_ffi::PyTypeObject(/* fields */));
          |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      error[E0560]: struct `pyo3_ffi::PyTypeObject` has no field named `tp_as_sequence`
         --> src/ffi/fragment.rs:109:9
          |
      109 |         tp_as_sequence: null_mut(),
          |         ^^^^^^^^^^^^^^ field does not exist
          |
         ::: /tmp/pip-install-obf5br_g/orjson_b7afd63f19ea4426abbc28b336b48cc2/include/cargo/pyo3-ffi-0.21.2/src/object.rs:7:16
          |
      7   | opaque_struct!(PyTypeObject);
          |                ------------ `pyo3_ffi::PyTypeObject` defined here
          |
      help: `pyo3_ffi::PyTypeObject` is a tuple struct, use the appropriate syntax
          |
      71  |     let ob = Box::new(pyo3_ffi::PyTypeObject(/* fields */));
          |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      error[E0560]: struct `pyo3_ffi::PyTypeObject` has no field named `tp_as_mapping`
         --> src/ffi/fragment.rs:110:9
          |
      110 |         tp_as_mapping: null_mut(),
          |         ^^^^^^^^^^^^^ field does not exist
          |
         ::: /tmp/pip-install-obf5br_g/orjson_b7afd63f19ea4426abbc28b336b48cc2/include/cargo/pyo3-ffi-0.21.2/src/object.rs:7:16
          |
      7   | opaque_struct!(PyTypeObject);
          |                ------------ `pyo3_ffi::PyTypeObject` defined here
          |
      help: `pyo3_ffi::PyTypeObject` is a tuple struct, use the appropriate syntax
          |
      71  |     let ob = Box::new(pyo3_ffi::PyTypeObject(/* fields */));
          |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      error[E0560]: struct `pyo3_ffi::PyTypeObject` has no field named `tp_hash`
         --> src/ffi/fragment.rs:111:9
          |
      111 |         tp_hash: None,
          |         ^^^^^^^ field does not exist
          |
         ::: /tmp/pip-install-obf5br_g/orjson_b7afd63f19ea4426abbc28b336b48cc2/include/cargo/pyo3-ffi-0.21.2/src/object.rs:7:16
          |
      7   | opaque_struct!(PyTypeObject);
          |                ------------ `pyo3_ffi::PyTypeObject` defined here
          |
      help: `pyo3_ffi::PyTypeObject` is a tuple struct, use the appropriate syntax
          |
      71  |     let ob = Box::new(pyo3_ffi::PyTypeObject(/* fields */));
          |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      error[E0560]: struct `pyo3_ffi::PyTypeObject` has no field named `tp_call`
         --> src/ffi/fragment.rs:112:9
          |
      112 |         tp_call: None,
          |         ^^^^^^^ field does not exist
          |
         ::: /tmp/pip-install-obf5br_g/orjson_b7afd63f19ea4426abbc28b336b48cc2/include/cargo/pyo3-ffi-0.21.2/src/object.rs:7:16
          |
      7   | opaque_struct!(PyTypeObject);
          |                ------------ `pyo3_ffi::PyTypeObject` defined here
          |
      help: `pyo3_ffi::PyTypeObject` is a tuple struct, use the appropriate syntax
          |
      71  |     let ob = Box::new(pyo3_ffi::PyTypeObject(/* fields */));
          |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      error[E0560]: struct `pyo3_ffi::PyTypeObject` has no field named `tp_str`
         --> src/ffi/fragment.rs:113:9
          |
      113 |         tp_str: None,
          |         ^^^^^^ field does not exist
          |
         ::: /tmp/pip-install-obf5br_g/orjson_b7afd63f19ea4426abbc28b336b48cc2/include/cargo/pyo3-ffi-0.21.2/src/object.rs:7:16
          |
      7   | opaque_struct!(PyTypeObject);
          |                ------------ `pyo3_ffi::PyTypeObject` defined here
          |
      help: `pyo3_ffi::PyTypeObject` is a tuple struct, use the appropriate syntax
          |
      71  |     let ob = Box::new(pyo3_ffi::PyTypeObject(/* fields */));
          |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      error[E0560]: struct `pyo3_ffi::PyTypeObject` has no field named `tp_getattro`
         --> src/ffi/fragment.rs:114:9
          |
      114 |         tp_getattro: None,
          |         ^^^^^^^^^^^ field does not exist
          |
         ::: /tmp/pip-install-obf5br_g/orjson_b7afd63f19ea4426abbc28b336b48cc2/include/cargo/pyo3-ffi-0.21.2/src/object.rs:7:16
          |
      7   | opaque_struct!(PyTypeObject);
          |                ------------ `pyo3_ffi::PyTypeObject` defined here
          |
      help: `pyo3_ffi::PyTypeObject` is a tuple struct, use the appropriate syntax
          |
      71  |     let ob = Box::new(pyo3_ffi::PyTypeObject(/* fields */));
          |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      error[E0560]: struct `pyo3_ffi::PyTypeObject` has no field named `tp_setattro`
         --> src/ffi/fragment.rs:115:9
          |
      115 |         tp_setattro: None,
          |         ^^^^^^^^^^^ field does not exist
          |
         ::: /tmp/pip-install-obf5br_g/orjson_b7afd63f19ea4426abbc28b336b48cc2/include/cargo/pyo3-ffi-0.21.2/src/object.rs:7:16
          |
      7   | opaque_struct!(PyTypeObject);
          |                ------------ `pyo3_ffi::PyTypeObject` defined here
          |
      help: `pyo3_ffi::PyTypeObject` is a tuple struct, use the appropriate syntax
          |
      71  |     let ob = Box::new(pyo3_ffi::PyTypeObject(/* fields */));
          |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      error[E0560]: struct `pyo3_ffi::PyTypeObject` has no field named `tp_as_buffer`
         --> src/ffi/fragment.rs:116:9
          |
      116 |         tp_as_buffer: null_mut(),
          |         ^^^^^^^^^^^^ field does not exist
          |
         ::: /tmp/pip-install-obf5br_g/orjson_b7afd63f19ea4426abbc28b336b48cc2/include/cargo/pyo3-ffi-0.21.2/src/object.rs:7:16
          |
      7   | opaque_struct!(PyTypeObject);
          |                ------------ `pyo3_ffi::PyTypeObject` defined here
          |
      help: `pyo3_ffi::PyTypeObject` is a tuple struct, use the appropriate syntax
          |
      71  |     let ob = Box::new(pyo3_ffi::PyTypeObject(/* fields */));
          |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      error[E0560]: struct `pyo3_ffi::PyTypeObject` has no field named `tp_doc`
         --> src/ffi/fragment.rs:117:9
          |
      117 |         tp_doc: core::ptr::null_mut(),
          |         ^^^^^^ field does not exist
          |
         ::: /tmp/pip-install-obf5br_g/orjson_b7afd63f19ea4426abbc28b336b48cc2/include/cargo/pyo3-ffi-0.21.2/src/object.rs:7:16
          |
      7   | opaque_struct!(PyTypeObject);
          |                ------------ `pyo3_ffi::PyTypeObject` defined here
          |
      help: `pyo3_ffi::PyTypeObject` is a tuple struct, use the appropriate syntax
          |
      71  |     let ob = Box::new(pyo3_ffi::PyTypeObject(/* fields */));
          |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      error[E0560]: struct `pyo3_ffi::PyTypeObject` has no field named `tp_traverse`
         --> src/ffi/fragment.rs:118:9
          |
      118 |         tp_traverse: None,
          |         ^^^^^^^^^^^ field does not exist
          |
         ::: /tmp/pip-install-obf5br_g/orjson_b7afd63f19ea4426abbc28b336b48cc2/include/cargo/pyo3-ffi-0.21.2/src/object.rs:7:16
          |
      7   | opaque_struct!(PyTypeObject);
          |                ------------ `pyo3_ffi::PyTypeObject` defined here
          |
      help: `pyo3_ffi::PyTypeObject` is a tuple struct, use the appropriate syntax
          |
      71  |     let ob = Box::new(pyo3_ffi::PyTypeObject(/* fields */));
          |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      error[E0560]: struct `pyo3_ffi::PyTypeObject` has no field named `tp_clear`
         --> src/ffi/fragment.rs:119:9
          |
      119 |         tp_clear: None,
          |         ^^^^^^^^ field does not exist
          |
         ::: /tmp/pip-install-obf5br_g/orjson_b7afd63f19ea4426abbc28b336b48cc2/include/cargo/pyo3-ffi-0.21.2/src/object.rs:7:16
          |
      7   | opaque_struct!(PyTypeObject);
          |                ------------ `pyo3_ffi::PyTypeObject` defined here
          |
      help: `pyo3_ffi::PyTypeObject` is a tuple struct, use the appropriate syntax
          |
      71  |     let ob = Box::new(pyo3_ffi::PyTypeObject(/* fields */));
          |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      error[E0560]: struct `pyo3_ffi::PyTypeObject` has no field named `tp_richcompare`
         --> src/ffi/fragment.rs:120:9
          |
      120 |         tp_richcompare: None,
          |         ^^^^^^^^^^^^^^ field does not exist
          |
         ::: /tmp/pip-install-obf5br_g/orjson_b7afd63f19ea4426abbc28b336b48cc2/include/cargo/pyo3-ffi-0.21.2/src/object.rs:7:16
          |
      7   | opaque_struct!(PyTypeObject);
          |                ------------ `pyo3_ffi::PyTypeObject` defined here
          |
      help: `pyo3_ffi::PyTypeObject` is a tuple struct, use the appropriate syntax
          |
      71  |     let ob = Box::new(pyo3_ffi::PyTypeObject(/* fields */));
          |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      error[E0560]: struct `pyo3_ffi::PyTypeObject` has no field named `tp_weaklistoffset`
         --> src/ffi/fragment.rs:121:9
          |
      121 |         tp_weaklistoffset: 0,
          |         ^^^^^^^^^^^^^^^^^ field does not exist
          |
         ::: /tmp/pip-install-obf5br_g/orjson_b7afd63f19ea4426abbc28b336b48cc2/include/cargo/pyo3-ffi-0.21.2/src/object.rs:7:16
          |
      7   | opaque_struct!(PyTypeObject);
          |                ------------ `pyo3_ffi::PyTypeObject` defined here
          |
      help: `pyo3_ffi::PyTypeObject` is a tuple struct, use the appropriate syntax
          |
      71  |     let ob = Box::new(pyo3_ffi::PyTypeObject(/* fields */));
          |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      error[E0560]: struct `pyo3_ffi::PyTypeObject` has no field named `tp_iter`
         --> src/ffi/fragment.rs:122:9
          |
      122 |         tp_iter: None,
          |         ^^^^^^^ field does not exist
          |
         ::: /tmp/pip-install-obf5br_g/orjson_b7afd63f19ea4426abbc28b336b48cc2/include/cargo/pyo3-ffi-0.21.2/src/object.rs:7:16
          |
      7   | opaque_struct!(PyTypeObject);
          |                ------------ `pyo3_ffi::PyTypeObject` defined here
          |
      help: `pyo3_ffi::PyTypeObject` is a tuple struct, use the appropriate syntax
          |
      71  |     let ob = Box::new(pyo3_ffi::PyTypeObject(/* fields */));
          |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      error[E0560]: struct `pyo3_ffi::PyTypeObject` has no field named `tp_iternext`
         --> src/ffi/fragment.rs:123:9
          |
      123 |         tp_iternext: None,
          |         ^^^^^^^^^^^ field does not exist
          |
         ::: /tmp/pip-install-obf5br_g/orjson_b7afd63f19ea4426abbc28b336b48cc2/include/cargo/pyo3-ffi-0.21.2/src/object.rs:7:16
          |
      7   | opaque_struct!(PyTypeObject);
          |                ------------ `pyo3_ffi::PyTypeObject` defined here
          |
      help: `pyo3_ffi::PyTypeObject` is a tuple struct, use the appropriate syntax
          |
      71  |     let ob = Box::new(pyo3_ffi::PyTypeObject(/* fields */));
          |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      error[E0560]: struct `pyo3_ffi::PyTypeObject` has no field named `tp_methods`
         --> src/ffi/fragment.rs:124:9
          |
      124 |         tp_methods: null_mut(),
          |         ^^^^^^^^^^ field does not exist
          |
         ::: /tmp/pip-install-obf5br_g/orjson_b7afd63f19ea4426abbc28b336b48cc2/include/cargo/pyo3-ffi-0.21.2/src/object.rs:7:16
          |
      7   | opaque_struct!(PyTypeObject);
          |                ------------ `pyo3_ffi::PyTypeObject` defined here
          |
      help: `pyo3_ffi::PyTypeObject` is a tuple struct, use the appropriate syntax
          |
      71  |     let ob = Box::new(pyo3_ffi::PyTypeObject(/* fields */));
          |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      error[E0560]: struct `pyo3_ffi::PyTypeObject` has no field named `tp_members`
         --> src/ffi/fragment.rs:125:9
          |
      125 |         tp_members: null_mut(),
          |         ^^^^^^^^^^ field does not exist
          |
         ::: /tmp/pip-install-obf5br_g/orjson_b7afd63f19ea4426abbc28b336b48cc2/include/cargo/pyo3-ffi-0.21.2/src/object.rs:7:16
          |
      7   | opaque_struct!(PyTypeObject);
          |                ------------ `pyo3_ffi::PyTypeObject` defined here
          |
      help: `pyo3_ffi::PyTypeObject` is a tuple struct, use the appropriate syntax
          |
      71  |     let ob = Box::new(pyo3_ffi::PyTypeObject(/* fields */));
          |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      error[E0560]: struct `pyo3_ffi::PyTypeObject` has no field named `tp_getset`
         --> src/ffi/fragment.rs:126:9
          |
      126 |         tp_getset: null_mut(),
          |         ^^^^^^^^^ field does not exist
          |
         ::: /tmp/pip-install-obf5br_g/orjson_b7afd63f19ea4426abbc28b336b48cc2/include/cargo/pyo3-ffi-0.21.2/src/object.rs:7:16
          |
      7   | opaque_struct!(PyTypeObject);
          |                ------------ `pyo3_ffi::PyTypeObject` defined here
          |
      help: `pyo3_ffi::PyTypeObject` is a tuple struct, use the appropriate syntax
          |
      71  |     let ob = Box::new(pyo3_ffi::PyTypeObject(/* fields */));
          |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      error[E0560]: struct `pyo3_ffi::PyTypeObject` has no field named `tp_base`
         --> src/ffi/fragment.rs:127:9
          |
      127 |         tp_base: null_mut(),
          |         ^^^^^^^ field does not exist
          |
         ::: /tmp/pip-install-obf5br_g/orjson_b7afd63f19ea4426abbc28b336b48cc2/include/cargo/pyo3-ffi-0.21.2/src/object.rs:7:16
          |
      7   | opaque_struct!(PyTypeObject);
          |                ------------ `pyo3_ffi::PyTypeObject` defined here
          |
      help: `pyo3_ffi::PyTypeObject` is a tuple struct, use the appropriate syntax
          |
      71  |     let ob = Box::new(pyo3_ffi::PyTypeObject(/* fields */));
          |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      error[E0560]: struct `pyo3_ffi::PyTypeObject` has no field named `tp_dict`
         --> src/ffi/fragment.rs:128:9
          |
      128 |         tp_dict: null_mut(),
          |         ^^^^^^^ field does not exist
          |
         ::: /tmp/pip-install-obf5br_g/orjson_b7afd63f19ea4426abbc28b336b48cc2/include/cargo/pyo3-ffi-0.21.2/src/object.rs:7:16
          |
      7   | opaque_struct!(PyTypeObject);
          |                ------------ `pyo3_ffi::PyTypeObject` defined here
          |
      help: `pyo3_ffi::PyTypeObject` is a tuple struct, use the appropriate syntax
          |
      71  |     let ob = Box::new(pyo3_ffi::PyTypeObject(/* fields */));
          |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      error[E0560]: struct `pyo3_ffi::PyTypeObject` has no field named `tp_descr_get`
         --> src/ffi/fragment.rs:129:9
          |
      129 |         tp_descr_get: None,
          |         ^^^^^^^^^^^^ field does not exist
          |
         ::: /tmp/pip-install-obf5br_g/orjson_b7afd63f19ea4426abbc28b336b48cc2/include/cargo/pyo3-ffi-0.21.2/src/object.rs:7:16
          |
      7   | opaque_struct!(PyTypeObject);
          |                ------------ `pyo3_ffi::PyTypeObject` defined here
          |
      help: `pyo3_ffi::PyTypeObject` is a tuple struct, use the appropriate syntax
          |
      71  |     let ob = Box::new(pyo3_ffi::PyTypeObject(/* fields */));
          |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      error[E0560]: struct `pyo3_ffi::PyTypeObject` has no field named `tp_descr_set`
         --> src/ffi/fragment.rs:130:9
          |
      130 |         tp_descr_set: None,
          |         ^^^^^^^^^^^^ field does not exist
          |
         ::: /tmp/pip-install-obf5br_g/orjson_b7afd63f19ea4426abbc28b336b48cc2/include/cargo/pyo3-ffi-0.21.2/src/object.rs:7:16
          |
      7   | opaque_struct!(PyTypeObject);
          |                ------------ `pyo3_ffi::PyTypeObject` defined here
          |
      help: `pyo3_ffi::PyTypeObject` is a tuple struct, use the appropriate syntax
          |
      71  |     let ob = Box::new(pyo3_ffi::PyTypeObject(/* fields */));
          |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      error[E0560]: struct `pyo3_ffi::PyTypeObject` has no field named `tp_dictoffset`
         --> src/ffi/fragment.rs:131:9
          |
      131 |         tp_dictoffset: 0,
          |         ^^^^^^^^^^^^^ field does not exist
          |
         ::: /tmp/pip-install-obf5br_g/orjson_b7afd63f19ea4426abbc28b336b48cc2/include/cargo/pyo3-ffi-0.21.2/src/object.rs:7:16
          |
      7   | opaque_struct!(PyTypeObject);
          |                ------------ `pyo3_ffi::PyTypeObject` defined here
          |
      help: `pyo3_ffi::PyTypeObject` is a tuple struct, use the appropriate syntax
          |
      71  |     let ob = Box::new(pyo3_ffi::PyTypeObject(/* fields */));
          |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      error[E0560]: struct `pyo3_ffi::PyTypeObject` has no field named `tp_alloc`
         --> src/ffi/fragment.rs:132:9
          |
      132 |         tp_alloc: None,
          |         ^^^^^^^^ field does not exist
          |
         ::: /tmp/pip-install-obf5br_g/orjson_b7afd63f19ea4426abbc28b336b48cc2/include/cargo/pyo3-ffi-0.21.2/src/object.rs:7:16
          |
      7   | opaque_struct!(PyTypeObject);
          |                ------------ `pyo3_ffi::PyTypeObject` defined here
          |
      help: `pyo3_ffi::PyTypeObject` is a tuple struct, use the appropriate syntax
          |
      71  |     let ob = Box::new(pyo3_ffi::PyTypeObject(/* fields */));
          |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      error[E0560]: struct `pyo3_ffi::PyTypeObject` has no field named `tp_watched`
         --> src/ffi/fragment.rs:134:9
          |
      134 |         tp_watched: 0,
          |         ^^^^^^^^^^ field does not exist
          |
         ::: /tmp/pip-install-obf5br_g/orjson_b7afd63f19ea4426abbc28b336b48cc2/include/cargo/pyo3-ffi-0.21.2/src/object.rs:7:16
          |
      7   | opaque_struct!(PyTypeObject);
          |                ------------ `pyo3_ffi::PyTypeObject` defined here
          |
      help: `pyo3_ffi::PyTypeObject` is a tuple struct, use the appropriate syntax
          |
      71  |     let ob = Box::new(pyo3_ffi::PyTypeObject(/* fields */));
          |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      error[E0609]: no field `tp_name` on type `pyo3_ffi::PyTypeObject`
        --> src/serialize/error.rs:60:78
         |
      60 |                 let name = unsafe { CStr::from_ptr((*ob_type!(ptr.as_ptr())).tp_name).to_string_lossy() };
         |                                                                              ^^^^^^^ unknown field

      error[E0609]: no field `tp_flags` on type `pyo3_ffi::PyTypeObject`
        --> src/util.rs:25:32
         |
      25 |         unsafe { (((*$ob_type).tp_flags & pyo3_ffi::$flag) != 0) }
         |                                ^^^^^^^^ unknown field
         |
        ::: src/serialize/obtype.rs:79:12
         |
      79 |         if is_subclass_by_flag!(ob_type, Py_TPFLAGS_UNICODE_SUBCLASS) {
         |            ---------------------------------------------------------- in this macro invocation
         |
         = note: this error originates in the macro `is_subclass_by_flag` (in Nightly builds, run with -Z macro-backtrace for more info)

      error[E0609]: no field `tp_flags` on type `pyo3_ffi::PyTypeObject`
        --> src/util.rs:25:32
         |
      25 |         unsafe { (((*$ob_type).tp_flags & pyo3_ffi::$flag) != 0) }
         |                                ^^^^^^^^ unknown field
         |
        ::: src/serialize/obtype.rs:81:19
         |
      81 |         } else if is_subclass_by_flag!(ob_type, Py_TPFLAGS_LONG_SUBCLASS) {
         |                   ------------------------------------------------------- in this macro invocation
         |
         = note: this error originates in the macro `is_subclass_by_flag` (in Nightly builds, run with -Z macro-backtrace for more info)

      error[E0609]: no field `tp_flags` on type `pyo3_ffi::PyTypeObject`
        --> src/util.rs:25:32
         |
      25 |         unsafe { (((*$ob_type).tp_flags & pyo3_ffi::$flag) != 0) }
         |                                ^^^^^^^^ unknown field
         |
        ::: src/serialize/obtype.rs:83:19
         |
      83 |         } else if is_subclass_by_flag!(ob_type, Py_TPFLAGS_LIST_SUBCLASS) {
         |                   ------------------------------------------------------- in this macro invocation
         |
         = note: this error originates in the macro `is_subclass_by_flag` (in Nightly builds, run with -Z macro-backtrace for more info)

      error[E0609]: no field `tp_flags` on type `pyo3_ffi::PyTypeObject`
        --> src/util.rs:25:32
         |
      25 |         unsafe { (((*$ob_type).tp_flags & pyo3_ffi::$flag) != 0) }
         |                                ^^^^^^^^ unknown field
         |
        ::: src/serialize/obtype.rs:85:19
         |
      85 |         } else if is_subclass_by_flag!(ob_type, Py_TPFLAGS_DICT_SUBCLASS) {
         |                   ------------------------------------------------------- in this macro invocation
         |
         = note: this error originates in the macro `is_subclass_by_flag` (in Nightly builds, run with -Z macro-backtrace for more info)

      error[E0609]: no field `ob_base` on type `pyo3_ffi::PyTypeObject`
        --> src/util.rs:33:18
         |
      33 |                 .ob_base
         |                  ^^^^^^^ unknown field
         |
        ::: src/serialize/obtype.rs:90:8
         |
      90 |     if is_subclass_by_type!(ob_type, ENUM_TYPE) {
         |        ---------------------------------------- in this macro invocation
         |
         = note: this error originates in the macro `is_subclass_by_type` (in Nightly builds, run with -Z macro-backtrace for more info)

      error[E0609]: no field `tp_flags` on type `pyo3_ffi::PyTypeObject`
        --> src/util.rs:25:32
         |
      25 |         unsafe { (((*$ob_type).tp_flags & pyo3_ffi::$flag) != 0) }
         |                                ^^^^^^^^ unknown field
         |
        ::: src/serialize/per_type/list.rs:49:20
         |
      49 |                 || is_subclass_by_flag!(ob_type!(ptr), Py_TPFLAGS_LIST_SUBCLASS)
         |                    ------------------------------------------------------------- in this macro invocation
         |
         = note: this error originates in the macro `is_subclass_by_flag` (in Nightly builds, run with -Z macro-backtrace for more info)

      error[E0609]: no field `tp_flags` on type `pyo3_ffi::PyTypeObject`
        --> src/util.rs:25:32
         |
      25 |         unsafe { (((*$ob_type).tp_flags & pyo3_ffi::$flag) != 0) }
         |                                ^^^^^^^^ unknown field
         |
        ::: src/serialize/per_type/list.rs:68:20
         |
      68 |                 || is_subclass_by_flag!(ob_type!(ptr), Py_TPFLAGS_TUPLE_SUBCLASS)
         |                    -------------------------------------------------------------- in this macro invocation
         |
         = note: this error originates in the macro `is_subclass_by_flag` (in Nightly builds, run with -Z macro-backtrace for more info)

      error[E0425]: cannot find function, tuple struct or tuple variant `PyDateTime_IMPORT` in this scope
         --> src/typeref.rs:144:9
          |
      144 |         PyDateTime_IMPORT();
          |         ^^^^^^^^^^^^^^^^^ not found in this scope

      error[E0425]: cannot find function, tuple struct or tuple variant `PyUnicode_New` in this scope
         --> src/typeref.rs:148:25
          |
      148 |           EMPTY_UNICODE = PyUnicode_New(0, 255);
          |                           ^^^^^^^^^^^^^ help: a function with a similar name exists: `PySlice_New`
          |
         ::: /tmp/pip-install-obf5br_g/orjson_b7afd63f19ea4426abbc28b336b48cc2/include/cargo/pyo3-ffi-0.21.2/src/sliceobject.rs:50:5
          |
      50  | /     pub fn PySlice_New(
      51  | |         start: *mut PyObject,
      52  | |         stop: *mut PyObject,
      53  | |         step: *mut PyObject,
      54  | |     ) -> *mut PyObject;
          | |______________________- similarly named function `PySlice_New` defined here

      error[E0425]: cannot find function, tuple struct or tuple variant `PyDateTimeAPI` in this scope
         --> src/typeref.rs:303:23
          |
      303 |     let datetime = ((*PyDateTimeAPI()).DateTime_FromDateAndTime)(
          |                       ^^^^^^^^^^^^^ not found in this scope

      error[E0425]: cannot find function, tuple struct or tuple variant `PyDateTimeAPI` in this scope
         --> src/typeref.rs:312:12
          |
      312 |         (*(PyDateTimeAPI())).DateTimeType,
          |            ^^^^^^^^^^^^^ not found in this scope

      error[E0425]: cannot find function, tuple struct or tuple variant `PyDateTimeAPI` in this scope
         --> src/typeref.rs:322:19
          |
      322 |     let date = ((*PyDateTimeAPI()).Date_FromDate)(1, 1, 1, (*(PyDateTimeAPI())).DateType);
          |                   ^^^^^^^^^^^^^ not found in this scope

      error[E0425]: cannot find function, tuple struct or tuple variant `PyDateTimeAPI` in this scope
         --> src/typeref.rs:322:63
          |
      322 |     let date = ((*PyDateTimeAPI()).Date_FromDate)(1, 1, 1, (*(PyDateTimeAPI())).DateType);
          |                                                               ^^^^^^^^^^^^^ not found in this scope

      error[E0425]: cannot find function, tuple struct or tuple variant `PyDateTimeAPI` in this scope
         --> src/typeref.rs:331:19
          |
      331 |     let time = ((*PyDateTimeAPI()).Time_FromTime)(0, 0, 0, 0, NONE, (*(PyDateTimeAPI())).TimeType);
          |                   ^^^^^^^^^^^^^ not found in this scope

      error[E0425]: cannot find function, tuple struct or tuple variant `PyDateTimeAPI` in this scope
         --> src/typeref.rs:331:72
          |
      331 |     let time = ((*PyDateTimeAPI()).Time_FromTime)(0, 0, 0, 0, NONE, (*(PyDateTimeAPI())).TimeType);
          |                                                                        ^^^^^^^^^^^^^ not found in this scope

      error[E0560]: union `pyo3_ffi::PyMethodDefPointer` has no field named `_PyCFunctionFastWithKeywords`
        --> src/lib.rs:86:17
         |
      86 |                 _PyCFunctionFastWithKeywords: dumps,
         |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unknown field
         |
      help: a field with a similar name exists
         |
      86 |                 PyCFunctionWithKeywords: dumps,
         |                 ~~~~~~~~~~~~~~~~~~~~~~~

      error[E0425]: cannot find function, tuple struct or tuple variant `PyTuple_SET_ITEM` in this scope
         --> src/lib.rs:213:9
          |
      213 |         PyTuple_SET_ITEM(args, 0, err_msg);
          |         ^^^^^^^^^^^^^^^^ not found in this scope

      error[E0425]: cannot find function, tuple struct or tuple variant `PyTuple_SET_ITEM` in this scope
         --> src/lib.rs:214:9
          |
      214 |         PyTuple_SET_ITEM(args, 1, doc);
          |         ^^^^^^^^^^^^^^^^ not found in this scope

      error[E0425]: cannot find function, tuple struct or tuple variant `PyTuple_SET_ITEM` in this scope
         --> src/lib.rs:215:9
          |
      215 |         PyTuple_SET_ITEM(args, 2, pos);
          |         ^^^^^^^^^^^^^^^^ not found in this scope

      error[E0425]: cannot find function, tuple struct or tuple variant `PyVectorcall_NARGS` in this scope
         --> src/lib.rs:314:20
          |
      314 |     let num_args = PyVectorcall_NARGS(nargs as usize);
          |                    ^^^^^^^^^^^^^^^^^^ not found in this scope

      error[E0425]: cannot find function, tuple struct or tuple variant `PyTuple_GET_ITEM` in this scope
         --> src/lib.rs:328:23
          |
      328 |             let arg = PyTuple_GET_ITEM(kwnames, i as Py_ssize_t);
          |                       ^^^^^^^^^^^^^^^^ not found in this scope

      Some errors have detailed explanations: E0412, E0425, E0432, E0560, E0609.
      For more information about an error, try `rustc --explain E0412`.
      warning: `orjson` (lib) generated 1 warning
      The following warnings were emitted during compilation:

      warning: orjson@3.10.3: include/yyjson/yyjson.c: In function ‘read_string’:
      warning: orjson@3.10.3: include/yyjson/yyjson.c:5268:29: warning: variable ‘pos’ set but not used [-Wunused-but-set-variable]
      warning: orjson@3.10.3:  5268 |     u8 *src = ++cur, *dst, *pos;
      warning: orjson@3.10.3:       |                             ^~~

      error: could not compile `orjson` (lib) due to 150 previous errors; 1 warning emitted
      💥 maturin failed
        Caused by: Failed to build a native library through cargo
        Caused by: Cargo build finished with "exit status: 101": `env -u CARGO PYO3_ENVIRONMENT_SIGNATURE="cpython-3.13-64bit" PYO3_PYTHON="/home/jm/repos/test/vertexai_loaders/venv_313/bin/python" PYTHON_SYS_EXECUTABLE="/home/jm/repos/test/vertexai_loaders/venv_313/bin/python" "cargo" "rustc" "--message-format" "json-render-diagnostics" "--manifest-path" "/tmp/pip-install-obf5br_g/orjson_b7afd63f19ea4426abbc28b336b48cc2/Cargo.toml" "--release" "--lib"`
      Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/home/jm/repos/test/vertexai_loaders/venv_313/bin/python', '--compatibility', 'off'] returned non-zero exit status 1
      [end of output]
jm-nab commented 5 months ago

why?