Xuanwo opened a new pull request, #9406:
URL: https://github.com/apache/opendal/pull/9406

   # Which issue does this PR close?
   
   Related to #9390 and #9391.
   
   # Rationale for this change
   
   With RocksDB or HDFS enabled, Cargo built the Rust archive, but Linux C++ 
executables linking `opendal_cpp` failed to resolve its native symbols. The 
CMake target omitted the archive’s native dependencies from the final link.
   
   # What changes are included in this PR?
   
   A Cargo probe resolves the configured Rust compiler. A shim records native 
search paths from the final `rustc` invocation after Cargo’s compiler wrappers 
run. This excludes directories used only by host build scripts, where a 
different version of the same library can be installed.
   
   CMake passes a linker response file after the Rust archive. It preserves 
rustc’s `native-static-libs` order, including repeats, and the target’s search 
path order. With both Clang/Ninja and GCC/Make, the linker selected RocksDB 
10.4.2 from a path containing a semicolon. Reversing the two target paths 
selected 8.9 and failed on `rocksdb_logger_destroy`. Both builds recovered a 
deleted response file from cached Cargo diagnostics without recompiling the 
archive.
   
   # Are there any user-facing changes?
   
   A Linux `FetchContent` consumer linked only `opendal_cpp` and wrote, read, 
and deleted data on both RocksDB and HDFS. The local behavior runs used the 
nightly sanitizer settings and test filter.
   
   - RocksDB passed 53/53 tests on both runs. Both exited 0 with empty stderr.
   - HDFS passed 51 tests and skipped two for unsupported capabilities. 
LeakSanitizer reported JVM leaks at shutdown and the process exited 1. A 
standalone libhdfs client reproduced that exit. The GCS-backed HDFS data path 
remains unverified locally.
   
   # Breaking changes
   
   # AI Usage Statement
   
   All models ran in Pi via T3 Code.
   
   - `magpie/codex/gpt-6.2-sol` (max) implemented and tested the change.
   - `magpie/codex/gpt-6.2-sol` (high) reproduced the host-path and semicolon 
failures in the earlier design.
   - `magpie/codex/gpt-6.2-astra` (xhigh) coordinated the work and checked the 
evidence.
   - `magpie/codex/gpt-6.2-astra` (high) investigated the failures, prototyped 
fixes, and drafted the PR text.
   - `magpie/kimi-code-cn/k3.1-pro` (high) independently reviewed the revision 
and checked compiler-cache behavior.
   


-- 
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]

Reply via email to