abseil / abseil/abseil-cpp

Fail to build with musl

Đang mở
#1,169 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
C++
Star
18.1k
Fork
3.2k
Merge trung bình
20 giờ 36 phút
Pull request đã merge (30 ngày)
1

Mô tả

I'm cross compiling `abseil(version 20211102.1)` on Linux from x64 to arm with libc `musl(version 1.2.3)` libc.
It failed to build because of function `GetProgramCounter` in `absl/debugging/internal/examine_stack.cc`, which uses `ucontext` to get the `pc` register. In this function, `abseil` use macros to check the platform and use the member of `struct ucontext_t`, so the behavior depends on the implementation of `glibc`'s `ucontext_t`. Meanwhile, `ucontext` **is deprecated** by `POSIX`, so `musl` doesn't implement it.
On current master branch this problem is still exist:
https://github.com/abseil/abseil-cpp/blob/d3f0c70673ed71ba1581702bbbd0aa8865a575d1/absl/debugging/internal/examine_stack.cc#L151-L234

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.