abseil / abseil/abseil-cpp

Fail to build with musl

Ouverte
#1,169 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
bug
Langage dominant
C++
Étoiles
18.1k
Forks
3.2k
Merge moyen
20 h 36 min
PR mergées (30 j)
1

Description

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

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.