Some discussion regarding this. https://github.com/rust-lang/rust/issues/94232 . We will involve rust compiler team for further debugging.
But for time being, can you follow below steps and try it in your system. Suggested patch is disabing lto in Cargo.toml.
-
git clone https://github.com/ijl/orjson.git
-
git checkout 3.10.12
- Apply below patch.
diff --git a/Cargo.toml b/Cargo.toml
index 4a6213e..9ed7037 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -88,7 +88,7 @@ overflow-checks = true
codegen-units = 1
debug = false
incremental = false
-lto = "thin"
+lto = "off"
opt-level = 3
panic = "abort"
-
python3 -m pip install . --root $PWD/install -v
In above command, change the value of '--root' as per your need.
-
# python3
Python 3.9.20 (main, Sep 27 2024, 03:16:26)
[GCC 10.3.0] on aix
Type "help", "copyright", "credits" or "license" for more information.
>>> import orjson
>>>
#AIXOpenSource