Xuanwo opened a new pull request, #9062: URL: https://github.com/apache/opendal/pull/9062
# Which issue does this PR close? Related to #4057. The source archive and offline opam packaging work are tracked separately. # Rationale for this change Installed OCaml consumers on Linux failed in both modes. Native executables needed `libopendal_core.so` outside the loader search path. Bytecode could find its shared stub, but loading it failed on an undefined `caml_startup` symbol. # What changes are included in this PR? Build and link the real Rust static archive into native consumers. Let Dune install the shared bytecode stub in the switch’s standard `stublibs` directory. Obtain native system linker flags from rustc. The OCaml executable initializes its runtime, and the binding explicitly registers OpenDAL’s default services before creating an operator. Tests and examples now use the installed library layout without overriding the system loader path. # Are there any user-facing changes? On Linux x86-64 with opam 2.1.5, OCaml 4.14.1 and Dune 3.25.0, fresh native and bytecode consumers of the installed package both wrote and read back Memory objects. The native executable also ran with a clean environment. The existing 23 package tests passed. # Breaking changes # AI Usage Statement - Pi, `magpie/codex/gpt-6.2-sol`, xhigh: implementation and consumer verification. - Pi, `magpie/codex/gpt-6.2-astra`, high: coordination and baseline investigation. - Pi, `magpie/devin/swe-2`, high: independent review. - Pi, `magpie/agy-cli/gemini-4-neon`, high: PR text. Local verification used Linux x86-64 and OCaml 4.14.1. macOS and other OCaml compiler versions were not exercised locally. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
