-
Notifications
You must be signed in to change notification settings - Fork 715
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Java binding built faield for
Compiling static_assertions v1.1.0
Compiling aliasable v0.1.3
Compiling mongodb v3.2.3
Compiling ouroboros v0.18.5
Compiling persy v1.6.0
Compiling redis v0.29.2
Compiling sled v0.34.7
Compiling cacache v13.1.0
Compiling reqsign v0.16.1
Compiling tikv-client v0.3.0
Compiling sqlx v0.8.3
error: /home/runner/work/opendal/opendal/bindings/java/target/bindings/release/deps/libsqlx_macros-9baa12b284d3f8b3.so: undefined symbol: __ubsan_handle_type_mismatch_v1
--> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.3/src/lib.rs:64:1
|
64 | pub extern crate sqlx_macros;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0432]: unresolved imports `self::encode::Encode`, `self::decode::Decode`, `super::Decode`, `super::Encode`, `super::FromRow`, `super::Type`
--> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.3/src/lib.rs:133:9
|
133 | pub use self::encode::Encode;
| ^^^^^^^^^^^^^^^^^^^^
...
144 | pub use self::decode::Decode;
| ^^^^^^^^^^^^^^^^^^^^
...
158 | pub use super::Decode;
| ^^^^^^^^^^^^^
159 | pub use super::Encode;
| ^^^^^^^^^^^^^
160 | pub use super::Executor;
161 | pub use super::FromRow;
| ^^^^^^^^^^^^^^
...
165 | pub use super::Type;
| ^^^^^^^^^^^
For more information about this error, try `rustc --explain E0432`.
error: could not compile `sqlx` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
Traceback (most recent call last):
File "/home/runner/work/opendal/opendal/bindings/java/tools/build.py", line 95, in <module>
$ rustup target add x86_64-unknown-linux-gnu
$ cargo zigbuild --color=always --profile=release --features services-all --target x86_64-unknown-linux-gnu.2.17 --target-dir /home/runner/work/opendal/opendal/bindings/java/target/bindings
subprocess.run(cmd, cwd=basedir, check=True)
File "/opt/hostedtoolcache/Python/3.11.11/x64/lib/python3.11/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['cargo', 'zigbuild', '--color=always', '--profile=release', '--features', 'services-all', '--target', 'x86_64-unknown-linux-gnu.2.17', '--target-dir', '/home/runner/work/opendal/opendal/bindings/java/target/bindings']' returned non-zero exit status 101.
Steps to Reproduce
cd bindings/java
cargo zigbuild
Expected Behavior
Build pass like before.
Additional Context
No response
Are you willing to submit a PR to fix this bug?
- Yes, I would like to submit a PR.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working