Repository navigation
Conversation
|
Workflow [PR], commit [de4dae0] Summary: ✅ AI ReviewSummaryThis PR updates Rust symbol-stripping integration to resolve ClickHouse Rules
Final Verdict
|
azat
left a comment
There was a problem hiding this comment.
So, objcopy from binutils cannot handle rust mangling? Does it leads to an error?
In my case it exploded at processing There are some differences between gnu and llvm objcopy. Specifically dropping of GRP_COMDAT flag when a symbol becomes local. If I understand it correctly, it is bug/feature-request which was implemented for LLVM, but still pending for GNU. |
|
Thanks for the details!
I see, so the reason is the difference between binutils and llvm - https://pastila.nl/?01433e71/cec99653abb956222c2d37169d3f1cd0#SqT2bGq7XeNHXCZmmaEJ6g==GCM |
| find_program(_LLVM_OBJCOPY_FOR_STRIP NAMES "llvm-objcopy-${COMPILER_VERSION_MAJOR}" "llvm-objcopy") | ||
| if (_LLD_FOR_STRIP AND _LLVM_OBJCOPY_FOR_STRIP) | ||
| set(_prql_lib "${CMAKE_CURRENT_BINARY_DIR}/lib_ch_rust_prql.a") | ||
| add_custom_target(strip_prql_symbols | ||
| COMMAND bash "${ClickHouse_SOURCE_DIR}/cmake/strip_rust_symbols.sh" | ||
| "${_prql_lib}" "${CMAKE_AR}" "${CMAKE_OBJCOPY}" "${_LLD_FOR_STRIP}" | ||
| "${_prql_lib}" "${CMAKE_AR}" "${_LLVM_OBJCOPY_FOR_STRIP}" "${_LLD_FOR_STRIP}" | ||
| prql_to_sql prql_free_pointer | ||
| DEPENDS cargo-build__ch_rust_prql | ||
| COMMENT "Stripping internal symbols from PRQL library" |
There was a problem hiding this comment.
There is a lot of copy-paste for prql and polyglot, can you unify this? (can be done separately)
|
Dear @arsenmuk, this PR hasn't been updated for a while. Will you continue working on it? If not, please close it. Otherwise, ignore this message. |
Changelog category (leave one):
With introduction of symbol stripping for Rust libraries in #98446, the llvm-objcopy is not always discoverable
Original error: