OS: macOS 15.5
Formula: x86_64-unknown-linux-gnu version 0.1.0
Expected: getauxval is in the provided libc.
Observed:
> find -H $(brew --prefix x86_64-unknown-linux-gnu) -name 'libc.*' | grep -E '(so|a)$' | xargs -t -I {} bash -c 'nm {} 2&>1 | grep getauxval'
bash -c nm /opt/homebrew/opt/x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/sysroot/usr/lib/libc.a 2&>1 | grep getauxval
bash -c nm /opt/homebrew/opt/x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/sysroot/usr/lib/libc.so 2&>1 | grep getauxval
Contrast this with https://github.com/SergioBenitez/homebrew-osxct/releases/tag/x86_64-unknown-linux-gnu (currently pointing to commit df32adb47bdbc7bdbe696f77c16bd48a241f0caf in that repo)
> find x86_64-unknown-linux-gnu/ -name 'libc.*' | grep -E '(so|a)$' | xargs -t -I{} bash -c 'nm {} 2>&1 | grep getauxval'
bash -c nm x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/sysroot/usr/lib64/libc.a 2>&1 | grep getauxval
getauxval.o:
0000000000000000 T __getauxval
0000000000000000 W getauxval
bash -c nm x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/sysroot/usr/lib64/libc.so 2>&1 | grep getauxval
bash -c nm x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/sysroot/usr/lib/libc.a 2>&1 | grep getauxval
getauxval.o:
0000000000000000 T __getauxval
0000000000000000 W getauxval
bash -c nm x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/sysroot/usr/lib/libc.so 2>&1 | grep getauxval
For context: When targeting Linux, Rust's std crate depends on getauxval in std::sys::pal::unix::stack_overflow::imp::sigstack_size. As a result, the libc here cannot be used to cross-build Rust projects that use std.
OS: macOS 15.5
Formula:
x86_64-unknown-linux-gnuversion 0.1.0Expected:
getauxvalis in the provided libc.Observed:
Contrast this with https://github.com/SergioBenitez/homebrew-osxct/releases/tag/x86_64-unknown-linux-gnu (currently pointing to commit df32adb47bdbc7bdbe696f77c16bd48a241f0caf in that repo)
For context: When targeting Linux, Rust's
stdcrate depends ongetauxvalinstd::sys::pal::unix::stack_overflow::imp::sigstack_size. As a result, the libc here cannot be used to cross-build Rust projects that usestd.