opendal icon indicating copy to clipboard operation
opendal copied to clipboard

python: hdfs_native released failed on ubuntu-latest, armv7l

Open Xuanwo opened this issue 1 month ago • 5 comments

   Compiling bumpalo v3.19.0
   Compiling sha1_smol v1.0.1
   Compiling bitflags v1.3.2
   Compiling redis v0.32.7
   Compiling mongodb v3.3.0
error[E0080]: attempt to compute `8_usize - 16_usize`, which would overflow
  --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/hdfs-native-0.13.0/src/security/./gssapi_bindings.rs:85:37
   |
85 |     ["Size of gss_OID_desc_struct"][::std::mem::size_of::<gss_OID_desc_struct>() - 16usize];
   |                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `security::gssapi::bindings::_` failed here

error[E0080]: attempt to compute `8_usize - 16_usize`, which would overflow
   --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/hdfs-native-0.13.0/src/security/./gssapi_bindings.rs:102:41
    |
102 |     ["Size of gss_OID_set_desc_struct"][::std::mem::size_of::<gss_OID_set_desc_struct>() - 16usize];
    |                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `security::gssapi::bindings::_` failed here

error[E0080]: attempt to compute `8_usize - 16_usize`, which would overflow
   --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/hdfs-native-0.13.0/src/security/./gssapi_bindings.rs:120:40
    |
120 |     ["Size of gss_buffer_desc_struct"][::std::mem::size_of::<gss_buffer_desc_struct>() - 16usize];
    |                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `security::gssapi::bindings::_` failed here

error[E0080]: attempt to compute `32_usize - 64_usize`, which would overflow
   --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/hdfs-native-0.13.0/src/security/./gssapi_bindings.rs:142:10
    |
142 |         [::std::mem::size_of::<gss_channel_bindings_struct>() - 64usize];
    |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `security::gssapi::bindings::_` failed here

error[E0080]: attempt to compute `12_usize - 16_usize`, which would overflow
   --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/hdfs-native-0.13.0/src/security/./gssapi_bindings.rs:178:36
    |
178 |     ["Size of gss_krb5_lucid_key"][::std::mem::size_of::<gss_krb5_lucid_key>() - 16usize];
    |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `security::gssapi::bindings::_` failed here

error[E0080]: attempt to compute `20_usize - 24_usize`, which would overflow
   --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/hdfs-native-0.13.0/src/security/./gssapi_bindings.rs:198:10
    |
198 |         [::std::mem::size_of::<gss_krb5_rfc1964_keydata>() - 24usize];
    |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `security::gssapi::bindings::_` failed here

error[E0080]: attempt to compute `28_usize - 40_usize`, which would overflow
   --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/hdfs-native-0.13.0/src/security/./gssapi_bindings.rs:218:38
    |
218 |     ["Size of gss_krb5_cfx_keydata"][::std::mem::size_of::<gss_krb5_cfx_keydata>() - 40usize];
    |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `security::gssapi::bindings::_` failed here

error[E0080]: attempt to compute `88_usize - 104_usize`, which would overflow
   --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/hdfs-native-0.13.0/src/security/./gssapi_bindings.rs:243:10
    |
243 |         [::std::mem::size_of::<gss_krb5_lucid_context_v1>() - 104usize];
    |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `security::gssapi::bindings::_` failed here

For more information about this error, try `rustc --explain E0080`.
error: could not compile `hdfs-native` (lib) due to 8 previous errors
warning: build failed, waiting for other jobs to finish...
💥 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_BUILD_EXTENSION_MODULE="1" PYO3_ENVIRONMENT_SIGNATURE="cpython-3.11-64bit" PYO3_PYTHON="/usr/bin/python3.11" PYTHON_SYS_EXECUTABLE="/usr/bin/python3.11" "cargo" "rustc" "--profile" "release" "--features" "pyo3/extension-module,services-all,abi3" "--target" "armv7-unknown-linux-gnueabihf" "--message-format" "json-render-diagnostics" "--manifest-path" "/home/runner/work/opendal/opendal/bindings/python/Cargo.toml" "--lib" "--crate-type" "cdylib" "--" "-C" "strip=symbols"`
Error: The process '/usr/bin/docker' failed with exit code 1
    at ExecState._setResult (/home/runner/work/_actions/PyO3/maturin-action/v1/dist/index.js:1823:25)
    at ExecState.CheckComplete (/home/runner/work/_actions/PyO3/maturin-action/v1/dist/index.js:1806:18)
    at ChildProcess.<anonymous> (/home/runner/work/_actions/PyO3/maturin-action/v1/dist/index.js:1700:27)
    at ChildProcess.emit (node:events:524:28)
    at maybeClose (node:internal/child_process:1104:16)
    at ChildProcess._handle.onexit (node:internal/child_process:304:5)

More details could be found at https://github.com/apache/opendal/actions/runs/19428307423/job/55580898332

Xuanwo avatar Nov 17 '25 11:11 Xuanwo

cc @chitralverma, I'll remove hdfs_native from this release as a quick workaround.

Xuanwo avatar Nov 17 '25 11:11 Xuanwo

i think this is because of the version update

chitralverma avatar Nov 17 '25 12:11 chitralverma

i think this is because of the version update

I'm guessing hdfs_native never be used over armv7l before.

Xuanwo avatar Nov 17 '25 14:11 Xuanwo

i think this is because of the version update

I'm guessing hdfs_native never be used over armv7l before.

will check with the repo owner of hdfs-native for this

chitralverma avatar Nov 17 '25 14:11 chitralverma

will check with the repo owner of hdfs-native for this

Thank you for that!

Xuanwo avatar Nov 17 '25 14:11 Xuanwo