We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
target: x86_64-unknown-linux-musl
x86_64-unknown-linux-musl
minidump_linux_writer (part of firefox) fails to build on musl because these constants are missing (the getregs issue is separate):
minidump_linux_writer
getregs
5:39.87 Compiling minidump_writer_linux v0.1.0 (https://github.com/msirringhaus/minidump_writer_linux.git?rev=9191af36343846b2c7ada65b9602b481b717c4d8#9191af36) 5:40.22 error[E0425]: cannot find value `AT_NULL` in crate `libc` 5:40.22 --> /builddir/firefox-87.0/third_party/rust/minidump_writer_linux/src/auxv_reader.rs:98:29 5:40.22 | 5:40.22 98 | at_null = libc::AT_NULL; 5:40.22 | ^^^^^^^ help: a constant with a similar name exists: `PT_NULL` 5:40.22 | 5:40.22 ::: /builddir/firefox-87.0/third_party/rust/libc/src/unix/linux_like/linux/mod.rs:1614:1 5:40.22 | 5:40.22 1614 | pub const PT_NULL: u32 = 0; 5:40.22 | --------------------------- similarly named constant `PT_NULL` defined here 5:40.22 error[E0425]: cannot find value `AT_PHDR` in crate `libc` 5:40.22 --> /builddir/firefox-87.0/third_party/rust/minidump_writer_linux/src/dso_debug.rs:91:25 5:40.22 | 5:40.22 91 | at_phdr = libc::AT_PHDR; 5:40.22 | ^^^^^^^ help: a constant with a similar name exists: `PT_PHDR` 5:40.22 | 5:40.22 ::: /builddir/firefox-87.0/third_party/rust/libc/src/unix/linux_like/linux/mod.rs:1620:1 5:40.22 | 5:40.22 1620 | pub const PT_PHDR: u32 = 6; 5:40.22 | --------------------------- similarly named constant `PT_PHDR` defined here 5:40.22 error[E0425]: cannot find value `AT_PHNUM` in crate `libc` 5:40.22 --> /builddir/firefox-87.0/third_party/rust/minidump_writer_linux/src/dso_debug.rs:92:26 5:40.22 | 5:40.22 92 | at_phnum = libc::AT_PHNUM; 5:40.22 | ^^^^^^^^ not found in `libc` 5:40.22 error[E0425]: cannot find function `getregs` in module `ptrace` 5:40.22 --> /builddir/firefox-87.0/third_party/rust/minidump_writer_linux/src/linux_ptrace_dumper.rs:121:32 5:40.22 | 5:40.22 121 | let regs = ptrace::getregs(pid); 5:40.22 | ^^^^^^^ not found in `ptrace` 5:40.22 error[E0425]: cannot find value `AT_ENTRY` in crate `libc` 5:40.22 --> /builddir/firefox-87.0/third_party/rust/minidump_writer_linux/src/linux_ptrace_dumper.rs:241:30 5:40.22 | 5:40.22 241 | at_entry = libc::AT_ENTRY; 5:40.22 | ^^^^^^^^ not found in `libc`
They are defined in include/elf.h on musl, and are defined for glibc in
include/elf.h
libc/src/unix/linux_like/linux/gnu/mod.rs
Lines 1227 to 1251 in bd7e052
The text was updated successfully, but these errors were encountered:
AT_*
linux_like/linux/gnu
linux_like/linux
3c6a2d8
Thanks!
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
target:
x86_64-unknown-linux-musl
minidump_linux_writer
(part of firefox) fails to build on musl because these constants are missing (thegetregs
issue is separate):They are defined in
include/elf.h
on musl, and are defined for glibc inlibc/src/unix/linux_like/linux/gnu/mod.rs
Lines 1227 to 1251 in bd7e052
The text was updated successfully, but these errors were encountered: