You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "kassane (via GitHub)" <gi...@apache.org> on 2023/06/16 11:09:31 UTC

[GitHub] [incubator-opendal] kassane commented on issue #2471: Zig Binding doesn't work with static libopendal_c

kassane commented on issue #2471:
URL: https://github.com/apache/incubator-opendal/issues/2471#issuecomment-1594509738

   Static construction of glibc on the Zig toolchain is problematic.
   However it is possible to build musl-libc statically.
   
   **Note**: the error is libunwind missing (eql to gcc_s) exception library (C++)
   Try replacing in `build.zig`, `.linkLibC()` to `.linkLibCpp()` (libcxx+libuwind+libc+libcompiler-rt), using `--verbose-link`.
   
   Only, musl, libcxx and (custom)compiler-rt are static libraries.
   https://github.com/ziglang/zig/tree/master/lib/libc
   https://github.com/ziglang/zig/tree/master/lib/libunwind


-- 
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: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org