Fail to build with musl
- Lingua principale
- C++
- Stelle
- 18.1k
- Fork
- 3.2k
- Merge medio
- 20h 36m
- PR unite (30g)
- 1
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.